/* ─────────────────────────────────────────────────────────────
   Cristal líquido — Club_motiFX
   Superficie translúcida que desenfoca lo que tiene detrás (el fondo
   Silk Aurora o un título), con borde y brillos de cristal.
   La usan las tarjetas del método y las de precio.
   ───────────────────────────────────────────────────────────── */

.glass {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgb(255 255 255 / 0.85);
  background: linear-gradient(145deg, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.28) 45%, rgb(255 255 255 / 0.45));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 0 rgb(255 255 255 / 0.4),
    0 0 0 1px rgb(10 10 10 / 0.06),
    0 24px 60px -30px rgb(10 10 10 / 0.3);
}
/* Reflejo: una luz suave que entra por la esquina superior izquierda */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 80% at 0% 0%, rgb(255 255 255 / 0.9), transparent 55%);
  pointer-events: none;
}
/* Sin soporte de desenfoque, el cristal sería ilegible: se vuelve una superficie opaca */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: var(--cm-paper);
  }
}

/* ── Cabecera de sección centrada ── */
.section-head {
  text-align: center;
}
.section-head > * {
  margin-inline: auto;
}

/* ── Método: ocho tarjetas separadas ── */
.glass-grid {
  display: grid;
  gap: 1rem;
  list-style: none;
}
@media (min-width: 40rem) {
  .glass-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 64rem) {
  .glass-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
.glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.25rem 1.75rem;
  text-align: center;
}
.glass-card p {
  max-width: 22rem;
}

/* ── Precio ── */
.pricing__title {
  text-align: center;
  font-size: clamp(2.6rem, 7.4vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
}
.pricing__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 64rem) {
  .pricing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    /* Las tarjetas pisan la parte baja del título y la desenfocan */
    margin-top: calc(clamp(2.6rem, 7.4vw, 9rem) * -0.18);
  }
}
.pricing__card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
}
@media (min-width: 40rem) {
  .pricing__card {
    padding: 2.5rem 2.25rem;
  }
}
.pricing__card--featured {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 0 0 1px rgb(255 140 0 / 0.45),
    0 30px 80px -30px rgb(255 140 0 / 0.5);
}
.pricing__label {
  font-size: 0.9375rem;
  color: var(--muted);
}
.pricing__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.875rem;
  margin-top: 1rem;
  font-size: clamp(2.5rem, 4.2vw, 4rem);
  line-height: 1;
  color: var(--fg);
}
.pricing__prev {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--muted);
  text-decoration-color: #ff2d2d;
  text-decoration-thickness: 2px;
}
.pricing__rule {
  margin: 1.75rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.pricing__text {
  line-height: 1.65;
  color: var(--muted);
}
.pricing__foot {
  margin-top: auto;
  padding-top: 2rem;
}
.pricing__secure {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Lista con check en insignia redonda */
.check-list {
  display: grid;
  gap: 1rem;
  list-style: none;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: color-mix(in srgb, var(--fg) 85%, transparent);
}
.check {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 5%, transparent);
  color: var(--cm-red);
}
.check svg {
  width: 0.875rem;
  height: 0.875rem;
}

/* ── Borde luminoso que sigue al cursor (js/glow.js) ──
   Un arco con el degradado de marca sobre el borde de la tarjeta, orientado hacia el cursor.
   --glow-start (grados) y --glow-active (0/1) los pone el script en cada tarjeta. */
.glow-host {
  position: relative;
}
.glow-ring {
  --glow-spread: 40; /* medio ancho del arco, en grados */
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--glow-active, 0);
  transition: opacity 300ms var(--ease-out);
  background: conic-gradient(
      from calc((var(--glow-start, 0) - var(--glow-spread)) * 1deg),
      transparent 0deg,
      #ff2d2d calc(var(--glow-spread) * 0.5deg),
      #ff8c00 calc(var(--glow-spread) * 1deg),
      #ffd700 calc(var(--glow-spread) * 1.5deg),
      transparent calc(var(--glow-spread) * 2deg)
    )
    border-box;
  /* Solo se ve la franja del borde: se recorta todo el interior */
  -webkit-mask:
    linear-gradient(#000 0 0) padding-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) padding-box exclude,
    linear-gradient(#000 0 0);
}
