/* ================================================================
   RONCALESS — Hoja de estilos
   ----------------------------------------------------------------
   MOBILE FIRST. El diseño se decide a 375-430px de ancho.
   Los breakpoints de escritorio solo evitan que se rompa; no son
   un rediseño. Toda la pauta llega de celular.

   Sin framework: el CDN de Tailwind no es apto para producción y
   este layout es lo bastante específico como para no necesitarlo.
   ================================================================ */

/* ----------------------------------------------------------------
   1. TOKENS
   ---------------------------------------------------------------- */

:root {
  /* Azul noche — el color del sueño y de lo médico/confiable */
  --blue-950: #02102F;
  --blue-900: #041B4D;
  --blue-800: #06266B;
  --blue-700: #0B3A9E;
  --blue-600: #1050C7;
  --blue-500: #1466E0;
  --blue-400: #3B8BF5;
  --blue-200: #A8CDFF;

  /* Amarillo Vizion — reservado para CTAs y para la palabra clave
     del titular. Si se usa en más sitios deja de llamar la atención. */
  --yellow: #FFD700;
  --yellow-dark: #F5B800;
  --yellow-deep: #C98A00;

  --ink: #151515;
  --white: #FFFFFF;
  --gray-100: #F3F5F9;
  --gray-300: #D5DCE8;
  --gray-500: #6B7280;

  --green: #10B981;
  --green-dark: #059669;
  --red: #EF4444;

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-lg: 26px;

  --shadow-cta: 0 6px 0 var(--yellow-deep), 0 10px 24px rgba(0, 0, 0, .35);
  --shadow-card: 0 10px 30px rgba(2, 16, 47, .35);

  --wrap: 520px;          /* el contenido nunca pasa de esto, ni en desktop */
}


/* ----------------------------------------------------------------
   2. RESET
   ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--blue-950);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; }
input, select, textarea { font-family: inherit; font-size: 16px; } /* 16px evita el zoom de iOS */
a { color: inherit; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ----------------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 18px;
}

.section { padding-block: 46px; position: relative; overflow: hidden; }

/* Fondo azul con el resplandor central del que abusa el nicho —
   funciona porque separa visualmente cada bloque en el scroll. */
.section--night {
  background:
    radial-gradient(120% 80% at 50% 0%, var(--blue-700) 0%, transparent 60%),
    linear-gradient(180deg, var(--blue-900) 0%, var(--blue-950) 100%);
  color: var(--white);
}

.section--light { background: var(--gray-100); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }


/* ----------------------------------------------------------------
   4. TITULARES
   ----------------------------------------------------------------
   El estilo del nicho: mayúsculas muy pesadas, apretadas, con la
   palabra clave en amarillo y relieve. Se replica con gradiente de
   texto + sombras apiladas en vez de una imagen, para poder
   cambiar el copy sin abrir Photoshop.
   ---------------------------------------------------------------- */

.hl {
  font-weight: 800;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.02em;
  text-align: center;
  margin: 0;
}

.hl--xl { font-size: clamp(2.1rem, 11vw, 3.1rem); }
.hl--lg { font-size: clamp(1.8rem, 9vw, 2.6rem); }
.hl--md { font-size: clamp(1.5rem, 7.5vw, 2.1rem); }

/* Plata: para la primera línea */
.hl-silver {
  background: linear-gradient(180deg, #FFFFFF 30%, #B9C7DE 70%, #8FA2C0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(2, 16, 47, .55));
}

/* Oro: para la palabra que carga el mensaje */
.hl-gold {
  background: linear-gradient(180deg, #FFF3A8 12%, var(--yellow) 45%, #E9A400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(2, 16, 47, .55));
}

/* Subtítulo en píldora, como el "DUERME MEJOR, VIVE MEJOR" del referente */
.hl-pill {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-800));
  border: 1px solid rgba(168, 205, 255, .45);
  color: var(--white);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.eyebrow {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-200);
  margin-bottom: 8px;
}

.lead {
  text-align: center;
  font-size: 1rem;
  margin-top: 14px;
  color: var(--blue-200);
}

.section--light .lead, .section--white .lead { color: var(--gray-500); }


/* ----------------------------------------------------------------
   5. CTA
   ----------------------------------------------------------------
   Un solo estilo de botón principal en toda la página. Aparece
   después de cada bloque; nunca debe haber una pantalla sin uno.
   ---------------------------------------------------------------- */

.cta-block { padding-block: 26px; text-align: center; }

.cta {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: 17px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFE55C 0%, var(--yellow) 45%, var(--yellow-dark) 100%);
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(1rem, 4.4vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
  transition: transform .12s ease, box-shadow .12s ease;
}

.cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--yellow-deep), 0 4px 12px rgba(0, 0, 0, .3);
}

.cta small {
  display: block;
  margin-top: 3px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  opacity: .72;
}

/* Latido sutil: llama la atención sin ser un carnaval */
@media (prefers-reduced-motion: no-preference) {
  .cta--pulse { animation: pulse 2.6s ease-in-out infinite; }
  @keyframes pulse {
    0%, 92%, 100% { transform: scale(1); }
    96%           { transform: scale(1.035); }
  }
}


/* ----------------------------------------------------------------
   6. FILA DE ICONOS (beneficios rápidos)
   ---------------------------------------------------------------- */

.icon-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.icon-row--4 { grid-template-columns: repeat(4, 1fr); }

.icon-item { text-align: center; }

.icon-item .bubble {
  width: 54px; height: 54px;
  margin: 0 auto 8px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-800));
  border: 1.5px solid rgba(168, 205, 255, .55);
  box-shadow: 0 0 18px rgba(59, 139, 245, .5);
}

.icon-item .bubble svg { width: 26px; height: 26px; fill: var(--white); }

.icon-item span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.icon-row--4 .bubble { width: 46px; height: 46px; }
.icon-row--4 .bubble svg { width: 22px; height: 22px; }
.icon-row--4 .icon-item span { font-size: .6rem; }


/* ----------------------------------------------------------------
   7. HERO
   ---------------------------------------------------------------- */

.hero { padding-top: 78px; padding-bottom: 30px; }

.hero__media {
  margin-top: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: rgba(255, 255, 255, .04);
}

/* Reserva el alto de la imagen para que no salte el layout al cargar */
.hero__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: .78rem;
  font-weight: 600;
}

.trust-strip b { color: var(--yellow); }

.stars { color: var(--yellow); letter-spacing: 2px; }


/* ----------------------------------------------------------------
   8. BARRA SUPERIOR
   ---------------------------------------------------------------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(2, 16, 47, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 205, 255, .18);
}

.topbar__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* El logo es blanco sobre transparente: solo funciona sobre la barra
   oscura. Si algún día la barra se aclara, hace falta la versión oscura
   del logo, no un filtro. */
.topbar__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.topbar__brand img {
  display: block;
  height: 22px;
  width: auto;
}

.topbar__badge {
  font-size: .64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}


/* ----------------------------------------------------------------
   9. TARJETAS DE COMBO
   ----------------------------------------------------------------
   Aquí está la diferencia real con el referente: sus combos son una
   imagen plana y todos llevan al mismo precio. Estos se seleccionan
   y el precio elegido viaja hasta el pedido.
   ---------------------------------------------------------------- */

.pay-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pay-strip div {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; line-height: 1.15;
}

.pay-strip svg { width: 26px; height: 26px; fill: var(--blue-200); flex: none; }

.combos { display: grid; gap: 14px; }

.combo {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 16px 16px 58px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 102, 224, .22), rgba(4, 27, 77, .5));
  border: 2px solid rgba(168, 205, 255, .3);
  color: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.combo:active { transform: scale(.99); }

/* Radio dibujado a mano para poder estilarlo libremente */
.combo::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(168, 205, 255, .6);
  background: transparent;
  transition: border-color .15s ease, background .15s ease;
}

.combo[aria-checked="true"] {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, .18), 0 0 26px rgba(255, 215, 0, .22);
}

.combo[aria-checked="true"]::before {
  border-color: var(--yellow);
  background: radial-gradient(circle, var(--yellow) 0 42%, transparent 46%);
}

.combo__top {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.combo__units { font-size: 1.32rem; font-weight: 800; line-height: 1; }
.combo__label { font-size: .78rem; font-weight: 600; opacity: .82; }

.combo__price {
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.combo__now { font-size: 1.62rem; font-weight: 800; color: var(--yellow); line-height: 1; }
.combo__was { font-size: .82rem; text-decoration: line-through; opacity: .55; }
.combo__each { font-size: .72rem; font-weight: 600; color: var(--blue-200); }

/* Cinta de "MÁS VENDIDO" / "MÁXIMO AHORRO" */
.combo__tag {
  position: absolute;
  top: -10px; right: 14px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .35);
}

.combo__tag--save { background: var(--green); color: var(--white); }

.combo--featured { border-color: rgba(255, 215, 0, .5); }


/* ----------------------------------------------------------------
   10. ANTES / DESPUÉS
   ---------------------------------------------------------------- */

.split { display: grid; gap: 14px; margin-top: 24px; }

.split__side {
  border-radius: var(--radius);
  padding: 16px;
  border: 1.5px solid;
}

.split__side--before {
  background: linear-gradient(180deg, rgba(239, 68, 68, .12), rgba(2, 16, 47, .4));
  border-color: rgba(239, 68, 68, .4);
}

.split__side--after {
  background: linear-gradient(180deg, rgba(16, 185, 129, .12), rgba(2, 16, 47, .4));
  border-color: rgba(16, 185, 129, .45);
}

.split__badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}

.split__badge--before { background: var(--red); color: var(--white); }
.split__badge--after  { background: var(--green); color: var(--white); }
n/* Misma proporcion que las resenas para que el scroll no cambie de ritmo */
.split__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.split ul { display: grid; gap: 9px; }

.split li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .88rem;
  font-weight: 500;
}

.split li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.split__side--before svg { fill: var(--red); }
.split__side--after  svg { fill: var(--green); }


/* ----------------------------------------------------------------
   11. CÓMO FUNCIONA / RESULTADOS
   ---------------------------------------------------------------- */

.steps { display: grid; gap: 14px; margin-top: 24px; }

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(168, 205, 255, .22);
}

.step__num {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.15rem;
  background: linear-gradient(180deg, var(--yellow), var(--yellow-dark));
  color: var(--ink);
}

.step h3 { font-size: 1rem; font-weight: 800; margin-bottom: 3px; }
.step p { font-size: .86rem; opacity: .85; }

.checklist { display: grid; gap: 10px; margin-top: 20px; }

.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .92rem; font-weight: 600;
}

.checklist svg { width: 21px; height: 21px; fill: var(--green); flex: none; margin-top: 1px; }


/* ----------------------------------------------------------------
   12. RESEÑAS
   ---------------------------------------------------------------- */

.reviews { display: grid; gap: 14px; margin-top: 24px; }

.review {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(168, 205, 255, .25);
}

.review img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.review__body { padding: 13px 15px 15px; }

.review__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 5px;
}

.review__name {
  display: flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .92rem;
}

.review__name svg { width: 16px; height: 16px; fill: var(--blue-400); flex: none; }
.review__when { font-size: .68rem; opacity: .6; white-space: nowrap; }

.review__meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; flex-wrap: wrap;
}

.review__verified {
  font-size: .62rem; font-weight: 700;
  background: var(--blue-600); color: var(--white);
  padding: 2px 9px; border-radius: 999px;
}

.review p { font-size: .86rem; line-height: 1.5; opacity: .9; }


/* ----------------------------------------------------------------
   13. FAQ
   ---------------------------------------------------------------- */

.faq { display: grid; gap: 10px; margin-top: 24px; }

.faq__item {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-300);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  display: flex; align-items: center; gap: 12px;
  padding: 15px;
  background: none;
  text-align: left;
  font-weight: 700;
  font-size: .95rem;
  color: var(--blue-800);
}

.faq__n {
  width: 27px; height: 27px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-700); color: var(--white);
  font-size: .8rem; font-weight: 800;
}

.faq__chev {
  margin-left: auto; flex: none;
  width: 17px; height: 17px; fill: var(--gray-500);
  transition: transform .22s ease;
}

.faq__item[data-open="true"] .faq__chev { transform: rotate(180deg); }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .26s ease;
}

.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }

.faq__a > div { overflow: hidden; }

.faq__a p {
  padding: 0 15px 15px 54px;
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.55;
}


/* ----------------------------------------------------------------
   14. LOGÍSTICA Y GARANTÍAS
   ---------------------------------------------------------------- */

.carriers {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 10px; margin-top: 20px;
}

.carriers span {
  font-size: .74rem; font-weight: 700;
  padding: 7px 14px; border-radius: 8px;
  background: var(--white); color: var(--blue-900);
}

.seals {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 26px;
}

.seal { text-align: center; }
.seal svg { width: 32px; height: 32px; fill: var(--blue-200); margin: 0 auto 7px; }
.seal b { display: block; font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.seal small { font-size: .66rem; opacity: .7; }

.wa-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #25D366;
  color: #0B3D22;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(37, 211, 102, .3);
}

.wa-banner svg { width: 34px; height: 34px; fill: #0B3D22; flex: none; }
.wa-banner b { display: block; font-size: 1.02rem; font-weight: 800; line-height: 1.15; }
.wa-banner small { font-size: .74rem; opacity: .78; }


/* ----------------------------------------------------------------
   15. URGENCIA
   ---------------------------------------------------------------- */

.stock-bar { margin-top: 20px; }

.stock-bar__label {
  display: flex; justify-content: space-between;
  font-size: .74rem; font-weight: 700; margin-bottom: 6px;
}

.stock-bar__track {
  height: 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  overflow: hidden;
}

.stock-bar__fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #FF8A3D);
  transition: width .6s ease;
}

.viewers {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 12px; font-size: .78rem; font-weight: 600;
}

.viewers .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
}

@media (prefers-reduced-motion: no-preference) {
  .viewers .dot { animation: ping 2s ease-out infinite; }
  @keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, .7); }
    70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
  }
}

/* Notificación "alguien acaba de pedir" */
.notif {
  position: fixed;
  left: 12px; bottom: 88px;
  z-index: 55;
  max-width: 310px;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .3);
  transform: translateX(-120%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.notif[data-show="true"] { transform: translateX(0); }
.notif img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex: none; }
.notif b { display: block; font-size: .82rem; line-height: 1.2; }
.notif small { font-size: .7rem; color: var(--gray-500); }


/* ----------------------------------------------------------------
   16. CTA PEGAJOSO (móvil)
   ---------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 58;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(2, 16, 47, .95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(168, 205, 255, .2);
  transform: translateY(110%);
  transition: transform .3s ease;
}

.sticky-cta[data-show="true"] { transform: translateY(0); }

.sticky-cta .cta { padding: 14px 20px; }


/* ----------------------------------------------------------------
   17. MODAL DE PEDIDO
   ---------------------------------------------------------------- */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  background: rgba(2, 16, 47, .72);
  backdrop-filter: blur(4px);
}

.modal[data-open="true"] { display: block; }

.modal__panel {
  position: absolute;
  inset: auto 0 0 0;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  padding: 0 0 calc(20px + env(safe-area-inset-bottom));
  animation: slideUp .3s cubic-bezier(.22, 1, .36, 1);
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.modal__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 13px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}

.modal__head h2 { font-size: 1.12rem; font-weight: 800; color: var(--blue-900); }

.modal__close {
  width: 34px; height: 34px; flex: none;
  border-radius: 50%;
  background: var(--gray-100);
  display: grid; place-items: center;
}

.modal__close svg { width: 17px; height: 17px; fill: var(--gray-500); }

.modal__body { padding: 18px; }

/* Resumen del combo elegido, arriba del formulario */
.summary {
  border-radius: var(--radius);
  padding: 15px;
  background: linear-gradient(180deg, var(--blue-800), var(--blue-900));
  color: var(--white);
  margin-bottom: 20px;
}

.summary__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 9px;
}

.summary__name { font-size: 1.05rem; font-weight: 800; }

.summary__change {
  font-size: .72rem; font-weight: 700;
  color: var(--yellow);
  background: none;
  text-decoration: underline;
  padding: 0;
}

.summary__price { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.summary__now { font-size: 1.75rem; font-weight: 800; color: var(--yellow); }
.summary__was { font-size: .82rem; text-decoration: line-through; opacity: .6; }

.summary__save {
  font-size: .72rem; font-weight: 700;
  background: var(--green); color: var(--white);
  padding: 2px 9px; border-radius: 999px;
}

/* Campos */
.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: .8rem; font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 5px;
}

.field .req { color: var(--red); }

.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea { resize: vertical; min-height: 74px; }

.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(20, 102, 224, .14);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .12);
}

.field__error {
  display: none;
  margin-top: 4px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--red);
}

.field__error[data-show="true"] { display: block; }

.field__hint { margin-top: 4px; font-size: .74rem; color: var(--gray-500); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Selector de método de pago */
.paymethods { display: grid; gap: 10px; margin: 20px 0; }

.paymethod {
  display: flex; align-items: flex-start; gap: 12px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid var(--gray-300);
  background: var(--white);
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}

.paymethod[aria-checked="true"] {
  border-color: var(--blue-500);
  background: rgba(20, 102, 224, .05);
}

.paymethod__ico {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--blue-700);
}

.paymethod__ico svg { width: 21px; height: 21px; fill: var(--white); }
.paymethod b { display: block; font-size: .92rem; font-weight: 800; color: var(--blue-900); }
.paymethod small { font-size: .74rem; color: var(--gray-500); line-height: 1.35; }

.paymethod__pill {
  margin-left: auto; flex: none;
  font-size: .62rem; font-weight: 800;
  background: var(--green); color: var(--white);
  padding: 3px 9px; border-radius: 999px;
}

/* Total */
.totals {
  border-top: 1px dashed var(--gray-300);
  padding-top: 14px;
  margin-bottom: 18px;
}

.total-row {
  display: flex; justify-content: space-between;
  font-size: .88rem; margin-bottom: 7px;
}

.total-row--final {
  font-size: 1.15rem; font-weight: 800;
  color: var(--blue-900);
  padding-top: 9px;
  border-top: 1px solid var(--gray-300);
}

.total-row--free { color: var(--green); font-weight: 700; }

.cta--submit { max-width: none; }

.cta[disabled] { opacity: .6; pointer-events: none; }

.form-error {
  display: none;
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #B91C1C;
  font-size: .84rem;
  font-weight: 600;
}

.form-error[data-show="true"] { display: block; }

.modal__legal {
  margin-top: 12px;
  font-size: .7rem;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.45;
}


/* ----------------------------------------------------------------
   18. OVERLAY DE CARGA
   ---------------------------------------------------------------- */

.loading {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  place-items: center;
  background: rgba(2, 16, 47, .85);
  backdrop-filter: blur(3px);
  color: var(--white);
  text-align: center;
}

.loading[data-open="true"] { display: grid; }

.spinner {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border: 4px solid rgba(255, 255, 255, .2);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* ----------------------------------------------------------------
   19. FOOTER
   ---------------------------------------------------------------- */

.footer {
  background: var(--blue-950);
  color: rgba(255, 255, 255, .62);
  padding: 34px 18px calc(96px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: .78rem;
  line-height: 1.7;
}

.footer b { color: var(--white); font-size: .95rem; letter-spacing: .06em; }
.footer a { color: var(--blue-200); }

.footer__links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px 14px; margin: 14px 0;
}


/* ----------------------------------------------------------------
   20. APARICIÓN AL HACER SCROLL
   ---------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal[data-visible="true"] { opacity: 1; transform: none; }
}


/* ----------------------------------------------------------------
   21. ESCRITORIO
   ----------------------------------------------------------------
   Objetivo mínimo: que no se rompa. El contenido sigue en una sola
   columna angosta, como en el celular, porque ahí está el tráfico.
   ---------------------------------------------------------------- */

@media (min-width: 700px) {
  .section { padding-block: 62px; }
  .hero { padding-top: 96px; }
  .split { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }

  /* En pantalla ancha el botón fijo estorba: el CTA de la página basta */
  .sticky-cta { display: none; }

  .modal { display: none; padding: 30px; }
  .modal[data-open="true"] { display: grid; place-items: center; }

  .modal__panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 540px;
    border-radius: 24px;
    max-height: 88vh;
  }

  .notif { bottom: 20px; }
}
