/* ==========================================================================
   OnZap — Landing corporativa
   1. Tokens y base        6. Cómo funciona      11. Planes
   2. Utilidades           7. En acción          12. Preguntas
   3. Botones              8. IA agéntica        13. CTA final
   4. Header               9. Marca / lorito     14. Footer y WhatsApp
   5. Hero y credibilidad 10. Portal Cloud       15. Responsive
   ========================================================================== */

/* 1. Tokens y base ------------------------------------------------------- */
:root {
  --blue: #0b8fc4;
  --blue-light: #08a8dd;
  --blue-soft: #e8f6fb;
  --lime: #89e52f;
  --lime-dark: #63bd15;
  --lime-soft: #f2fde5;
  --petrol: #092f3c;
  --petrol-light: #16505f;
  --ink: #16323b;
  --muted: #5b6f76;
  --paper: #fff;
  --mist: #f5f9fa;
  --line: #e1eaec;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(9, 47, 60, .06);
  --shadow-md: 0 18px 44px rgba(9, 47, 60, .12);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Mulish, "Segoe UI", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.12; }
h1 { font-size: clamp(2.5rem, 4.2vw, 3.9rem); font-weight: 800; margin-bottom: 20px; }
h2 { font-size: clamp(1.95rem, 3vw, 2.85rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin-bottom: 16px; }

:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

/* 2. Utilidades ---------------------------------------------------------- */
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--lime); }
.lead { font-size: 1.1rem; font-weight: 400; color: var(--muted); }
.muted { color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:last-child { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--petrol); color: #fff; font-weight: 600; }
.skip-link:focus { top: 14px; }

/* 3. Botones ------------------------------------------------------------- */
.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--lime); color: var(--petrol); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--lime-dark); color: #fff; }
.btn-dark { background: var(--petrol); color: #fff; }
.btn-dark:hover { background: var(--petrol-light); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--line); color: var(--petrol); background: #fff; }
.btn-outline:hover { border-color: var(--petrol); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn-block { width: 100%; }

/* 4. Header -------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(6, 36, 47, .55);
  backdrop-filter: blur(10px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand img { width: 26px; height: 32px; object-fit: contain; }
.wordmark { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; }
.wordmark .on { color: var(--blue-light); }
.wordmark .zap { color: var(--lime); }
.nav-links { display: flex; align-items: center; gap: 26px; color: rgba(255, 255, 255, .92); font-size: .93rem; font-weight: 600; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; border-bottom: 2px solid transparent; }
.nav-links a:not(.btn):hover { border-color: var(--lime); }
.is-scrolled .nav-links { color: var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--r-sm); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; }
.is-scrolled .menu-toggle { border-color: var(--line); color: var(--ink); }

/* 5. Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: #fff; background: var(--petrol); overflow: hidden; }
/* Dos videos alternándose de fondo: solo uno visible a la vez */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hero-video.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .45) 35%, rgba(0, 0, 0, .12) 58%, transparent 75%),
    linear-gradient(to top, rgba(0, 0, 0, .45), transparent 35%);
}
.hero-content { position: relative; z-index: 3; flex: 1; display: flex; align-items: center; width: 100%; padding: calc(var(--header-h) + 48px) 0 56px; }
.hero-copy { max-width: 680px; }
.hero .eyebrow { color: var(--lime); }
/* Panel de vidrio: desenfoca solo lo que queda detrás del texto, el resto del video se ve limpio */
.hero-copy {
  padding: 34px 38px 30px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* En escritorio el texto queda alineado con el logo; el panel sobresale hacia la izquierda */
@media (min-width: 1001px) { .hero-copy { margin-left: -38px; } }
.hero p { color: rgba(255, 255, 255, .86); font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin: 18px 0 0; font-size: .88rem; color: rgba(255, 255, 255, .7); }
.video-control { position: absolute; z-index: 5; right: 28px; top: calc(var(--header-h) + 24px); width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .45); border-radius: var(--r-sm); background: rgba(6, 38, 49, .45); color: #fff; cursor: pointer; }

/* Franja de credibilidad: al pie de la portada, sobre el video */
.trust-bar { position: relative; z-index: 3; border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .38); backdrop-filter: blur(6px); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 16px 24px 16px 0; border-right: 1px solid rgba(255, 255, 255, .16); }
.trust-item:last-child { border-right: 0; padding-right: 0; }
.trust-item:not(:first-child) { padding-left: 24px; }
.trust-item h3 { margin-bottom: 2px; font-size: .86rem; color: #fff; }
.trust-item p { margin: 0; font-size: .78rem; line-height: 1.5; color: rgba(255, 255, 255, .75); }

/* Frase de posicionamiento */
.statement { padding: 80px 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.statement-inner { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.statement h2 { max-width: 760px; margin-bottom: 0; font-size: clamp(1.7rem, 2.4vw, 2.3rem); font-weight: 600; line-height: 1.3; }
.statement em { font-style: normal; font-weight: 800; color: var(--blue); }

/* Qué hace --------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 42% 58%; background: var(--petrol); color: #fff; }
/* La pieza gráfica se muestra completa, centrada sobre el fondo */
.split-media { position: relative; display: flex; align-items: center; justify-content: center; min-height: 520px; overflow: hidden; background: #123a4c; }
.split-media img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 6vw, 88px); }
.split-copy .eyebrow { color: var(--lime); }
.split-copy p { color: rgba(255, 255, 255, .78); max-width: 560px; }
.feature-list { display: grid; gap: 1px; margin: 12px 0 0; padding: 0; list-style: none; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); overflow: hidden; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 18px 22px; background: var(--petrol); }
.feature-list li::before { content: "▸"; color: var(--lime); font-size: .9rem; line-height: 1.7; }
.feature-list strong { display: block; font-weight: 700; }
.feature-list span { color: rgba(255, 255, 255, .72); font-size: .93rem; }

/* 6. Cómo funciona ------------------------------------------------------- */
.how { background: var(--paper); }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.steps { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 38px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: .82rem; font-weight: 800;
}
.steps strong { display: block; font-weight: 700; }
.steps span { color: var(--muted); font-size: .95rem; }
.device-frame { position: relative; display: grid; place-items: center; padding: 48px 24px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--r-lg); }
.phone-video { height: 560px; width: auto; max-width: 100%; border: 9px solid #0d0f10; border-radius: 34px; background: #0d0f10; box-shadow: var(--shadow-md); }
.media-tag { position: absolute; left: 22px; bottom: 22px; padding: 7px 12px; border-radius: 999px; background: var(--petrol); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }


/* Nota de voz animada junto al video */
.voice-note {
  position: absolute;
  z-index: 3;
  left: -30px;
  top: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 20px 20px 20px 5px;
  background: #d9fdd3;
  box-shadow: var(--shadow-md);
}
.voice-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: .62rem;
  padding-left: 2px;
}
.voice-wave { display: flex; align-items: center; gap: 3px; height: 30px; }
.voice-wave i {
  width: 3px;
  height: var(--alto, 16px);
  border-radius: 2px;
  background: #4a9b76;
  transform-origin: center;
  animation: onda 1.3s ease-in-out infinite;
}
.voice-wave i:nth-child(1) { --alto: 10px; } .voice-wave i:nth-child(2) { --alto: 16px; } .voice-wave i:nth-child(3) { --alto: 22px; } .voice-wave i:nth-child(4) { --alto: 14px; } .voice-wave i:nth-child(5) { --alto: 20px; } .voice-wave i:nth-child(6) { --alto: 26px; } .voice-wave i:nth-child(7) { --alto: 18px; } .voice-wave i:nth-child(8) { --alto: 12px; } .voice-wave i:nth-child(9) { --alto: 24px; } .voice-wave i:nth-child(10) { --alto: 20px; } .voice-wave i:nth-child(11) { --alto: 14px; } .voice-wave i:nth-child(12) { --alto: 22px; } .voice-wave i:nth-child(13) { --alto: 16px; } .voice-wave i:nth-child(14) { --alto: 26px; } .voice-wave i:nth-child(15) { --alto: 12px; } .voice-wave i:nth-child(16) { --alto: 18px; } .voice-wave i:nth-child(17) { --alto: 24px; } .voice-wave i:nth-child(18) { --alto: 14px; } .voice-wave i:nth-child(19) { --alto: 20px; } .voice-wave i:nth-child(20) { --alto: 10px; } .voice-wave i:nth-child(21) { --alto: 16px; } .voice-wave i:nth-child(22) { --alto: 22px; }
.voice-wave i:nth-child(1) { animation-delay: 0.00s; } .voice-wave i:nth-child(2) { animation-delay: 0.13s; } .voice-wave i:nth-child(3) { animation-delay: 0.26s; } .voice-wave i:nth-child(4) { animation-delay: 0.39s; } .voice-wave i:nth-child(5) { animation-delay: 0.52s; } .voice-wave i:nth-child(6) { animation-delay: 0.65s; } .voice-wave i:nth-child(7) { animation-delay: 0.78s; } .voice-wave i:nth-child(8) { animation-delay: 0.00s; } .voice-wave i:nth-child(9) { animation-delay: 0.13s; } .voice-wave i:nth-child(10) { animation-delay: 0.26s; } .voice-wave i:nth-child(11) { animation-delay: 0.39s; } .voice-wave i:nth-child(12) { animation-delay: 0.52s; } .voice-wave i:nth-child(13) { animation-delay: 0.65s; } .voice-wave i:nth-child(14) { animation-delay: 0.78s; } .voice-wave i:nth-child(15) { animation-delay: 0.00s; } .voice-wave i:nth-child(16) { animation-delay: 0.13s; } .voice-wave i:nth-child(17) { animation-delay: 0.26s; } .voice-wave i:nth-child(18) { animation-delay: 0.39s; } .voice-wave i:nth-child(19) { animation-delay: 0.52s; } .voice-wave i:nth-child(20) { animation-delay: 0.65s; } .voice-wave i:nth-child(21) { animation-delay: 0.78s; } .voice-wave i:nth-child(22) { animation-delay: 0.00s; }
.voice-time { color: #4a9b76; font-size: .74rem; font-weight: 700; }

@keyframes onda {
  0%, 100% { transform: scaleY(.45); opacity: .6; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* 7. En acción ----------------------------------------------------------- */
.showcase { background: var(--mist); border-block: 1px solid var(--line); }
.showcase-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: end;
  padding: 64px 40px 52px;
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--petrol) 0%, var(--blue) 100%);
  overflow: hidden;
}
.phone-shot { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 0; }
.phone-shot img {
  height: 480px;
  width: auto;
  filter: drop-shadow(0 26px 34px rgba(4, 25, 33, .35));
  animation: flotar 7s ease-in-out infinite;
}
.phone-shot--center img { height: 530px; animation-duration: 8s; animation-delay: -2.5s; }
.phone-shot--right img { animation-delay: -4s; }
.phone-shot figcaption {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--petrol);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.showcase-hint { display: none; margin: 16px 0 0; text-align: center; font-size: .85rem; color: var(--muted); }

@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* Aparición al hacer scroll (la clase .js la añade main.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, .8, .3, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* 8. IA agéntica --------------------------------------------------------- */
.agent { background: var(--paper); }
.agent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.agent-item { padding: 28px 26px 30px; border: 1px solid var(--line); border-top: 3px solid var(--lime); border-radius: var(--r-md); background: var(--paper); transition: box-shadow .2s ease, transform .2s ease; }
.agent-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.agent-item .number { display: block; margin-bottom: 14px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .1em; }
.agent-item h3 { margin-bottom: 8px; }
.agent-item p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }

/* 9. Marca / lorito ------------------------------------------------------ */
.mascot { background: var(--petrol); color: #fff; }
.mascot .eyebrow { color: var(--lime); }
.mascot .section-head p { color: rgba(255, 255, 255, .74); }
.mascot-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.mascot-card { display: flex; flex-direction: column; margin: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-md); overflow: hidden; background: rgba(255, 255, 255, .04); }
/* Las piezas de campaña se ven completas, sin recortes */
.mascot-card img { width: 100%; height: auto; }
/* El texto empieza justo bajo la pieza: ENTIENDE, RESUELVE y CONECTA quedan en la misma línea */
.mascot-card figcaption { padding: 22px 24px 26px; }
.mascot-card figcaption span { display: block; margin-bottom: 6px; color: var(--lime); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mascot-card figcaption strong { display: block; margin-bottom: 6px; font-size: 1.08rem; }
.mascot-card figcaption p { margin: 0; color: rgba(255, 255, 255, .74); font-size: .94rem; }

/* 10. Portal Cloud ------------------------------------------------------- */
.portal { background: var(--mist); border-block: 1px solid var(--line); }
.portal-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.check-list { margin: 8px 0 24px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 11px 0 11px 32px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--lime-soft); color: var(--lime-dark); font-size: .72rem; font-weight: 800; }
.portal-media { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-md); }
.portal-media video { width: 100%; border-radius: var(--r-sm); }

/* 11. Planes ------------------------------------------------------------- */
.plans { background: var(--paper); }
.billing { display: inline-flex; margin: 24px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--mist); }
.billing button { padding: 9px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: .9rem; font-weight: 700; cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--petrol); color: #fff; }
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; max-width: 780px; margin-inline: auto; }
.price-card { display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.price-card h3 { margin-bottom: 4px; font-size: 1.28rem; }
.price-card .plan-for { margin-bottom: 20px; color: var(--muted); font-size: .92rem; }
.price { margin: 0 0 4px; font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.price small { font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.note { margin-bottom: 22px; font-size: .86rem; color: var(--muted); }
.features { margin: 0 0 26px; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.features li { position: relative; padding: 8px 0 8px 26px; font-size: .95rem; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--lime-dark); font-weight: 800; }
.price-card .btn { margin-top: auto; }
.price-card--featured { position: relative; background: var(--petrol); color: #fff; border-color: var(--petrol); box-shadow: var(--shadow-md); }
.price-card--featured .plan-for, .price-card--featured .price small, .price-card--featured .note { color: rgba(255, 255, 255, .7); }
.price-card--featured .features { border-color: rgba(255, 255, 255, .18); }
.price-card--featured .features li::before { color: var(--lime); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.plan-tag { color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.price-card--featured .plan-tag { color: var(--lime); }
.badge { padding: 4px 10px; border-radius: 999px; background: var(--lime); color: var(--petrol); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* 11b. Convenios y plataformas ------------------------------------------- */
.partners { background: var(--mist); border-top: 1px solid var(--line); }
.partners-group + .partners-group { margin-top: 64px; }
.partners h2 { margin-bottom: 36px; text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; color: var(--ink); }
.logo-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; align-items: center; margin: 0; padding: 0; list-style: none; }
.logo-row li { display: flex; justify-content: center; }
.logo-row img[width="120"] { max-height: 72px; }
/* Ancho y alto máximos: los logos anchos y los cuadrados se ven con el mismo peso */
.logo-row img { width: auto; height: auto; max-width: min(100%, 160px); max-height: 56px; object-fit: contain; }

/* 12. Preguntas ---------------------------------------------------------- */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 1.03rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--blue); font-size: 1.1rem; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 700px; margin: 0; padding-bottom: 22px; color: var(--muted); font-size: .97rem; }

/* 13. CTA final ---------------------------------------------------------- */
.final { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--petrol); color: #fff; }
.final-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(56px, 7vw, 96px); }
.final-copy .eyebrow { color: var(--lime); }
.final-copy p { color: rgba(255, 255, 255, .8); max-width: 520px; }
.final-actions { display: flex; align-items: center; gap: 28px; margin-top: 24px; }
.qr { display: flex; align-items: center; gap: 12px; font-size: .86rem; line-height: 1.4; color: rgba(255, 255, 255, .8); }
.qr img { width: 84px; height: 84px; padding: 6px; border-radius: var(--r-sm); background: #fff; }
.final-media { position: relative; overflow: hidden; background: var(--petrol-light); }
.final-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.final-media::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--petrol), rgba(9, 47, 60, 0) 30%); }

/* 14. Footer y WhatsApp -------------------------------------------------- */
.site-footer { padding: 64px 0 24px; background: #062430; color: rgba(255, 255, 255, .68); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand { margin-bottom: 14px; }
.site-footer h4 { margin-bottom: 14px; color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer p { max-width: 320px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 2px 0; }
.site-footer li a, .footer-contact li { display: inline-flex; align-items: center; min-height: 40px; }
.footer-contact li { display: flex; }
.site-footer a:hover { color: var(--lime); }
.footer-creds { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-creds p { max-width: 520px; margin: 0; font-size: .84rem; line-height: 1.6; color: rgba(255, 255, 255, .6); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; color: #fff; transition: border-color .2s ease, color .2s ease; }
.footer-social a:hover { border-color: var(--lime); }
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: .84rem; color: rgba(255, 255, 255, .5); }

/* Aviso de cookies */
.cookies { position: fixed; left: 50%; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 24px; width: min(100% - 32px, 820px); padding: 16px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-md); transform: translateX(-50%); }
.cookies[hidden] { display: none; }
.cookies p { margin: 0; font-size: .92rem; color: var(--ink); }
.cookies p a { color: var(--blue); }
.cookies-actions { display: flex; flex: none; gap: 10px; }

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 26px rgba(9, 47, 60, .3);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* 14b. Una sección por pantalla (escritorio) ---------------------------- */
/* Cada giro de la rueda lleva a la siguiente sección, ya encuadrada.
   En celular y en pantallas muy bajas el scroll queda libre. */
@media (min-width: 1001px) and (min-height: 600px) {
  html { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
  main > section { scroll-snap-align: start; min-height: 100svh; }
  .site-footer { scroll-snap-align: end; }

  /* El header fijo tapa el borde superior: el contenido se centra en el espacio visible */
  main > .section, main > .statement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header-h) + 3svh) 0 4svh;
  }
  main > .section > .container { width: min(1180px, calc(100% - 48px)); }
  .section-head { margin-bottom: clamp(24px, 4svh, 44px); }

  /* La frase ocupa su propia pantalla: centrada y en grande */
  .statement-inner { grid-template-columns: 1fr; gap: 8px; max-width: 980px; text-align: center; }
  .statement .eyebrow { justify-content: center; }
  .statement h2 { max-width: none; font-size: clamp(2.2rem, 3.4vw, 3.3rem); line-height: 1.25; }

  .agent-grid { gap: 24px; }
  .agent-item { padding: 36px 30px 38px; }
  .agent-item h3 { font-size: 1.4rem; }
  .agent-item p { font-size: 1rem; }

  /* La pieza no empuja la altura: se adapta a la pantalla */
  .split-media { min-height: 0; }
  .split-media img { position: absolute; inset: var(--header-h) 0 0; height: calc(100% - var(--header-h)); object-fit: cover; object-position: 50% 0; }
  .split-copy { padding: calc(var(--header-h) + 4svh) clamp(48px, 6vw, 88px) 5svh; }
  .feature-list li { padding: 15px 22px; }

  .phone-video { height: min(560px, calc(100svh - var(--header-h) - 190px)); }

  .showcase .section-head { max-width: none; }
  .showcase-stage { padding: 4svh 40px 3svh; }
  .phone-shot { gap: 16px; }
  .phone-shot img { height: min(480px, calc(100svh - 475px)); }
  .phone-shot--center img { height: min(530px, calc(100svh - 435px)); }

  /* Las piezas del lorito se achican con la pantalla para que entren completas */
  .mascot .section-head { margin-inline: auto; text-align: center; }
  .mascot .eyebrow { justify-content: center; }
  .mascot-track { max-width: max(640px, calc((100svh - 470px) * .8 * 3 + 44px)); margin-inline: auto; }
  .mascot-card figcaption { padding: 18px 22px 20px; }

  /* Planes: características en dos columnas para que todo entre en una pantalla */
  .plans .section-head { max-width: 900px; }
  .pricing { max-width: none; }
  main > .plans { padding: calc(var(--header-h) + 2svh) 0 3svh; }
  /* Encabezado en una fila: título a la izquierda, ciclo de pago a la derecha */
  .plans .section-head { display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: end; max-width: none; text-align: left; }
  .plans .section-head > * { grid-column: 1; }
  .plans .section-head .eyebrow { justify-content: flex-start; }
  .plans .section-head h2 { margin-bottom: 8px; }
  .plans .section-head .billing { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  /* Tarjeta: el precio va al lado del nombre del plan */
  .price-card { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-content: start; }
  .price-card > * { grid-column: 1 / -1; }
  .price-card .plan-head { margin-bottom: 6px; }
  .price-card h3 { grid-column: 1; grid-row: 2; }
  .price-card .plan-for { grid-column: 1; grid-row: 3; margin-bottom: 0; }
  .price-card .price { grid-column: 2; grid-row: 2; align-self: end; text-align: right; margin: 0; }
  .price-card .note { grid-column: 2; grid-row: 3; text-align: right; margin: 0; }
  .price-card .features { margin-top: 16px; }
  .price-card { padding: 20px 26px 22px; }
  .price-card .plan-for { margin-bottom: 10px; }
  .note { margin-bottom: 10px; }
  .features { display: grid; grid-template-columns: 1.12fr 1fr; column-gap: 16px; margin-bottom: 16px; padding-top: 12px; }
  .features li { padding: 4px 0 4px 22px; font-size: .9rem; line-height: 1.45; }
  .features li:first-child { grid-column: 1 / -1; }
  .plans .billing { margin-top: 16px; }
  .plan-head { margin-bottom: 8px; }
  .price { font-size: 2.1rem; }
  
  .final { min-height: 100svh; }
  .final-copy { padding-top: calc(var(--header-h) + 5svh); }
}

/* 3. Escritorio con poca altura (laptops, o navegador con zoom) */
@media (min-width: 1001px) and (min-height: 600px) and (max-height: 780px) {
  .hero-content { padding: calc(var(--header-h) + 3svh) 0 3svh; }
  .hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); }
  .split-copy { padding-top: calc(var(--header-h) + 3svh); padding-bottom: 3svh; }
  .split-copy h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
  .feature-list li { padding: 11px 22px; }
  .mascot-track { max-width: max(560px, calc((100svh - 440px) * .8 * 3 + 44px)); }
  .mascot .section-head { margin-bottom: 20px; }
  .mascot-card figcaption { padding: 14px 18px 16px; }
  .mascot-card figcaption span { margin-bottom: 4px; }
  .mascot-card figcaption strong { margin-bottom: 4px; font-size: .98rem; line-height: 1.3; }
  .mascot-card figcaption p { font-size: .86rem; line-height: 1.5; }
  .features li { font-size: .86rem; }
}

/* 15. Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .menu-toggle { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: 24px;
    right: 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-md);
  }
  .nav-links a:not(.btn) { padding: 10px 6px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 10px; }
  .nav-links.is-open { display: flex; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2n) { border-right: 0; padding-right: 0; }
  .trust-item:nth-child(2n+1) { padding-left: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .statement-inner, .how-grid, .portal-grid, .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 380px; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .mascot-track { grid-template-columns: 1fr; }
  .showcase-stage { padding: 48px 24px 40px; gap: 18px; }
  .phone-shot img { height: 380px; }
  .phone-shot--center img { height: 420px; }
  .pricing { grid-template-columns: 1fr; max-width: 560px; }
  .final { grid-template-columns: 1fr; }
  .final-media { height: 420px; }
  .final-media::before { background: linear-gradient(to bottom, var(--petrol), rgba(9, 47, 60, 0) 30%); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
}

/* Tablets: menos alto en el escenario de celulares y en el video */
@media (min-width: 681px) and (max-width: 1000px) {
  .phone-shot img { height: 400px; }
  .phone-shot--center img { height: 440px; }
  .device-frame { padding: 36px 18px; }
  .phone-video { height: 500px; }
  .split-media { min-height: 420px; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .container { width: min(100% - 32px, 1180px); }
  .nav-links { left: 16px; right: 16px; }
  .section { padding: 68px 0; }
  .statement { padding: 56px 0; }
  .hero { min-height: 620px; }
  .hero-video { object-position: 72% 50%; }
  .hero::after { background: linear-gradient(to top, rgba(0, 0, 0, .55) 30%, rgba(0, 0, 0, .2)); }
  .hero-content { padding: calc(var(--header-h) + 84px) 0 48px; }
  .hero-copy { padding: 24px 20px 22px; }
  .video-control { right: 16px; top: calc(var(--header-h) + 16px); }
  .hero-actions .btn { width: 100%; }
  .trust-item { padding: 16px 12px 16px 0 !important; }
  .trust-item:nth-child(2n) { padding-left: 14px !important; }
  .trust-item h3 { font-size: .9rem; }
  .trust-item p { font-size: .8rem; }
  .split-copy { padding: 48px 20px; }
  .how-grid { gap: 40px; }
  .device-frame { padding: 28px 14px; }
  .voice-note { left: 8px; top: 14px; gap: 8px; padding: 9px 12px; }
  .voice-wave { gap: 2px; height: 24px; }
  .voice-wave i { width: 2px; }
  .phone-video { height: 460px; }
  .showcase-stage {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 74%;
    gap: 16px;
    padding: 40px 20px 36px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .showcase-stage::-webkit-scrollbar { display: none; }
  .phone-shot { scroll-snap-align: center; gap: 16px; }
  .phone-shot img, .phone-shot--center img { height: 400px; }
  .showcase-hint { display: block; }
  .agent-grid { grid-template-columns: 1fr; }
  .portal-media { padding: 10px; }
  .billing { display: flex; width: 100%; overflow-x: auto; }
  .billing button { flex: 1; white-space: nowrap; padding-inline: 10px; font-size: .82rem; }
  .final-copy { padding: 56px 20px; }
  .final-actions { flex-direction: column; align-items: stretch; gap: 20px; }
  .qr { display: none; }
  .final-media { height: 340px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .legal { flex-direction: column; gap: 4px; }
  .footer-creds { flex-direction: column; align-items: flex-start; gap: 18px; }
  .logo-row { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .logo-row img { max-width: min(100%, 130px); max-height: 46px; }
  .cookies { flex-direction: column; align-items: stretch; gap: 14px; bottom: 12px; }
  .cookies-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
