/* ===============================
   Servicios Cards Plugin Styles
   =============================== */

.servicios-cards-wrapper {

    width:100%;
  min-height: 60vh;

}

.cards-wrapper {
  display: flex; /* fallback si no hay grid */
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.cards-wrapper a{
    width: 100%;
}
.card-container {
  perspective: 1000px;
}

a.card-link {
  text-decoration: none;
  color: inherit;
}

.card {
  /* tamaños se controlan con el shortcode (inline CSS) */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  cursor: none;
  transition: transform 0.6s ease-in-out;
}

/* FRONT */
.card .front {
  position: absolute;
  inset: 0;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  z-index: 2;
}

.card .front .number-bg {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 120px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.1);
  line-height: 1;
  z-index: 1;
  transition: all 0.6s ease-in-out;
}



/* BACK */
.card:hover .front {
  opacity: 0;
  transform: translateY(-100%);
}

.card .back {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  background-color: #333;
  color: #fff;
  z-index: 1;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.card:hover .back {
  opacity: 1;
  transform: translateY(0);
}

.card .back .number-top {
  font-size: 80px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: auto;
}

.card .back .title-back {
  font-family: var(--e-global-typography-3cf980e-font-family), Sans-serif;
    font-size: var(--e-global-typography-3cf980e-font-size);
    font-weight: var(--e-global-typography-3cf980e-font-weight);
    line-height: var(--e-global-typography-3cf980e-line-height);
  margin-bottom: 10px;
}

.card .back .description {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease-in-out, max-height 0.6s ease-in-out;
}

.card:hover .back .description {
  opacity: 1;
  max-height: 100px;
}

/* Cursor personalizado */
.custom-cursor {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  background-color: #0033a0;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.custom-cursor svg {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .cards-wrapper {
    gap: 20px;
    display: flex; /* fallback en móvil */
    flex-wrap: wrap;
  }

  .card {
    width: 280px !important;
    height: 400px !important;
    cursor: pointer;
  }

  .card .front .number-bg {
    font-size: 100px;
  }

  .card .front .title {
    font-size: 24px;
  }

  .custom-cursor {
    display: none; /* Ocultar cursor personalizado en móvil */
  }
}
