/* ZIMC Landing — tokens y base. Tema claro fijo (landing de pauta: debe verse
   idéntica al screenshot del anuncio en cualquier dispositivo). */

:root {
  --navy-900: #0b2e4f;
  --navy-700: #164b7e;
  --navy-050: #eef4fa;
  --slate-600: #44586e;
  --white: #ffffff;
  --line: #d7e2ee;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Idioma: el HTML trae data-lang="es" por defecto; JS lo cambia antes del paint */
html[data-lang="es"] .l-en { display: none !important; }
html[data-lang="en"] .l-es { display: none !important; }

img, svg { max-width: 100%; display: block; }

a { color: var(--navy-700); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: var(--white);
  padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 12px;
}
.brand {
  font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em;
  color: var(--navy-900); text-decoration: none;
}
.brand small {
  display: block; font-weight: 500; font-size: 0.6875rem;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--slate-600);
}
.lang-toggle { display: flex; gap: 4px; }
.lang-toggle button {
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); color: var(--slate-600); cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--navy-900); border-color: var(--navy-900); color: var(--white);
}

/* ---------- Botón CTA ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  background: var(--navy-900); color: var(--white);
  font-family: var(--font); font-size: 1.0625rem; font-weight: 700;
  text-decoration: none; text-align: center;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--navy-700); }
.btn--inverse { background: var(--white); color: var(--navy-900); }
.btn--inverse:hover { background: var(--navy-050); }
/* Puerta B: subordinado al CTA principal, nunca compite */
.btn--ghost {
  background: transparent; color: var(--navy-700);
  border: 2px solid var(--navy-700); font-weight: 600;
}
.btn--ghost:hover { background: var(--navy-050); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.cta-link {
  font-weight: 700; text-decoration: none; color: var(--navy-700);
  display: inline-flex; align-items: center; min-height: 44px;
}
.cta-link:hover { text-decoration: underline; }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--navy-050); }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--navy-700); margin-bottom: 10px;
}
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.section p { max-width: 62ch; color: var(--slate-600); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 60px; }
.hero p.lead {
  font-size: 1.15rem; margin: 18px 0 28px; color: var(--slate-600); max-width: 58ch;
}
.hero .trust {
  margin-top: 14px; font-size: 0.9rem; color: var(--slate-600); max-width: none;
}

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 20px; margin-top: 28px; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
}
.step .num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-900); color: var(--white);
  font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.step p { margin-top: 2px; }

/* ---------- Tarjetas 2027 ---------- */
.cards { display: grid; gap: 18px; margin-top: 28px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.card p { flex: 1; }

/* ---------- Cifras "Quiénes somos" ---------- */
.facts {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 24px;
}
.facts li {
  font-weight: 700; color: var(--navy-900);
  padding-left: 16px; border-left: 3px solid var(--navy-700);
}
@media (min-width: 760px) {
  .facts { flex-direction: row; flex-wrap: wrap; gap: 14px 40px; }
}

/* ---------- Pregunta (NEPQ) ----------
   p.ask (0,1,1) para empatar y ganar por orden a `.section p`, que de lo
   contrario le pisa el color. */
p.ask {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 800; letter-spacing: -0.01em; line-height: 1.15;
  color: var(--navy-900); text-wrap: balance;
}
p.ask-sub {
  margin-top: 10px; font-size: 1.15rem; color: var(--slate-600);
}

/* ---------- Banda final ---------- */
.band { background: var(--navy-900); color: var(--white); padding: 56px 0; }
.band h2 { color: var(--white); }
.band p { color: #c8d8e8; max-width: 58ch; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-050); border-top: 1px solid var(--line);
  padding: 36px 0 120px; font-size: 0.875rem; color: var(--slate-600);
}
.site-footer .cols { display: grid; gap: 18px; }
.site-footer a { color: var(--navy-700); }
.site-footer .legal { max-width: 72ch; }

/* ---------- Captura secundaria (Guía 2027) ---------- */
.form-embed { margin-top: 24px; }
.form-embed iframe {
  width: 100%; border: 0; border-radius: var(--radius);
  /* respaldo si el auto-resize de form_embed.js tarda o falla:
     777px = data-height sugerido por GHL */
  min-height: 777px;
}

/* ---------- Barra CTA fija (solo móvil) ---------- */
.ctabar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.ctabar .btn { width: 100%; }

/* ---------- Páginas legales ---------- */
.legal-page h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin-bottom: 8px; }
.legal-page h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.legal-page .updated { color: var(--slate-600); font-size: 0.9rem; margin-bottom: 24px; }
.legal-page p, .legal-page li { color: var(--slate-600); max-width: 72ch; }
.legal-page ul { padding-left: 22px; margin: 8px 0 12px; }
.legal-page li { margin-bottom: 6px; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .section { padding: 76px 0; }
  .hero { padding: 96px 0 84px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; }
  .step .num { margin-bottom: 12px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding-bottom: 36px; }
  .site-footer .cols { grid-template-columns: 1fr auto; align-items: start; }
  .ctabar { display: none; }
}

/* ---------- Video de la guía rewards (vertical 9:16) ---------- */
.video-guia { max-width: 400px; margin: 28px auto 0; }
.video-guia video {
  width: 100%; aspect-ratio: 9 / 16; display: block;
  border-radius: var(--radius); background: var(--navy-900);
}
.video-guia-cta { text-align: center; margin-top: 22px; margin-bottom: 8px; }

/* ---------- Red 2027 (cartel navy/gold, CTA sms de un tap) ---------- */
.red2027 {
  max-width: 560px; margin: 64px auto 0; padding: 30px 24px 34px;
  background: var(--navy-900); border: 3px solid #C9A227;
  border-radius: var(--radius); text-align: center;
}
.red2027-titulo { color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
p.red2027-texto { color: #f7f9fb; font-size: 1.02rem; margin: 0 auto 22px; max-width: 46ch; }
.btn--gold {
  background: #C9A227; color: var(--navy-900); font-weight: 800;
  border: 0; white-space: normal; line-height: 1.3;
  margin: 0 auto; max-width: 100%;
}
.btn--gold:hover { background: #b8931f; }
p.red2027-instr { color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.red2027-instr strong { color: #C9A227; }
.red2027-desktop img { margin: 0 auto; border-radius: 8px; }
p.red2027-qr-nota { color: #dbe4ee; font-size: 0.85rem; margin-top: 10px; }
