/* ============================================================
   AV AI — Landing (AV Engineering Corp)
   Brand: Navy #1F1646 · Gold #F7BE00 · Gray #3F3F3E · Black #1D1D1B
   Type: Poppins (display) · Roboto (body) · Roboto Mono (log)
   ============================================================ */

:root {
  --navy: #1F1646;
  --navy-deep: #14102F;
  --navy-ink: #0E0B22;
  --gold: #F7BE00;
  --gold-soft: rgba(247, 190, 0, 0.14);
  --gray: #3F3F3E;
  --black: #1D1D1B;
  --white: #FFFFFF;
  --paper: #F5F5F7;
  --line: rgba(31, 22, 70, 0.10);
  --line-light: rgba(255, 255, 255, 0.12);
  --font-display: 'Poppins', 'Century Gothic', sans-serif;
  --font-body: 'Roboto', 'Segoe UI', sans-serif;
  --font-mono: 'Roboto Mono', 'Consolas', monospace;
  --radius: 14px;
  --maxw: 1120px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { color: var(--gray); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 3px;
  flex: none;
}

/* ---------- Gold dot separator (brand motif) ---------- */
.dot-sep {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 auto;
}
.dot-sep i { width: 60px; height: 2px; background: var(--gold); }
.dot-sep b { width: 8px; height: 8px; background: var(--gold); border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.98rem;
  padding: 15px 28px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--navy-ink); box-shadow: 0 8px 28px rgba(247, 190, 0, 0.32); }
.btn-gold:hover { box-shadow: 0 12px 34px rgba(247, 190, 0, 0.45); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); }
.btn svg { flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(20, 16, 47, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-light);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-logo { text-decoration: none; }
.wordmark {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.4rem; letter-spacing: 0.03em;
  color: var(--white);
  display: inline-flex; align-items: center; gap: 8px;
}
.wordmark b {
  width: 9px; height: 9px; background: var(--gold);
  border-radius: 3px; flex: none;
}
.wordmark span { color: var(--gold); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-links a:hover { color: var(--white); border-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
}
.lang-toggle a { color: rgba(255,255,255,0.55); text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.lang-toggle a.active { color: var(--navy-ink); background: var(--gold); }
.lang-toggle a:not(.active):hover { color: var(--white); }
.nav .btn { padding: 10px 20px; font-size: 0.88rem; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(1100px 600px at 78% 12%, rgba(247, 190, 0, 0.10), transparent 60%),
    radial-gradient(900px 700px at 12% 88%, rgba(90, 70, 190, 0.20), transparent 55%),
    linear-gradient(180deg, var(--navy-ink) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  padding: calc(var(--nav-h) + 64px) 0 72px;
  overflow: hidden;
}
.hero h1 { color: var(--white); max-width: 780px; }
.hero h1 .hl {
  color: var(--gold);
  position: relative; white-space: nowrap;
}
.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 640px;
  margin: 26px 0 38px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .eyebrow { margin-bottom: 22px; }

/* Parallax dot field: 3 layers moving at different scroll speeds */
.dotfield { position: absolute; inset: 0; pointer-events: none; }
.dotlayer { position: absolute; inset: -20% 0; will-change: transform; }
.dotlayer .dot {
  position: absolute;
  background: var(--gold);
  border-radius: 3px;
  opacity: 0.55;
}
.dotlayer[data-speed="0.5"] .dot { opacity: 0.8; }
.dotlayer[data-speed="0.15"] .dot { opacity: 0.28; }

/* Production log ticker */
.hero-log {
  margin-top: 64px;
  max-width: 720px;
  background: rgba(14, 11, 34, 0.66);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.hero-log-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-mono); font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
}
.hero-log-head i { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
.hero-log-body {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 14px 16px;
  min-height: 92px;
  color: rgba(255,255,255,0.85);
}
.hero-log-body .log-line { display: block; opacity: 0; animation: logfade 0.5s forwards; padding: 2px 0; }
.hero-log-body .log-line .t { color: var(--gold); }
.hero-log-body .log-line .agent { color: #8fd3ff; }
@keyframes logfade { to { opacity: 1; } }
.hero-log-note {
  font-family: var(--font-body); font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  padding: 0 16px 12px;
}

/* ---------- Proof bar ---------- */
.proof {
  background: var(--navy-ink);
  border-top: 1px solid var(--line-light);
  padding: 42px 0;
}
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.proof-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--gold);
}
.proof-num .ph { opacity: 0.45; font-size: 0.6em; vertical-align: middle; }
.proof-label { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-top: 6px; }
.proof-note { text-align: center; color: rgba(255,255,255,0.4); font-size: 0.78rem; margin-top: 26px; }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head p { margin-top: 16px; font-size: 1.06rem; }
.sec-alt { background: var(--paper); }

/* ---------- Laboratorio ---------- */
.lab-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.lab-story p + p { margin-top: 18px; }
.lab-story strong { color: var(--navy); }
.lab-card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 20px;
  padding: 36px;
  color: var(--white);
  box-shadow: 0 24px 60px rgba(31, 22, 70, 0.35);
  position: relative; overflow: hidden;
}
.lab-card::after {
  content: '';
  position: absolute; right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(247,190,0,0.22), transparent 70%);
}
.lab-card h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 8px; }
.lab-card .lab-tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--gold); text-transform: uppercase;
}
.lab-list { list-style: none; margin-top: 22px; }
.lab-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.94rem; color: rgba(255,255,255,0.85);
}
.lab-list li:last-child { border-bottom: none; }
.lab-list li::before {
  content: '';
  flex: none;
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--gold);
  margin-top: 7px;
}

/* ---------- Agentes ---------- */
.agents-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.agent-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.agent-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 190, 0, 0.6);
  box-shadow: 0 22px 50px rgba(31, 22, 70, 0.13);
}
.agent-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.agent-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.agent-chip {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1c7a3d; background: rgba(61, 220, 132, 0.14);
  border: 1px solid rgba(61, 220, 132, 0.4);
  padding: 5px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.agent-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #1c7a3d; }
.agent-card h3 { margin-bottom: 4px; }
.agent-role {
  font-family: var(--font-display); font-size: 0.82rem; font-weight: 600;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.agent-card p { font-size: 0.95rem; flex: 1; }
.agent-feats { list-style: none; margin-top: 18px; }
.agent-feats li {
  font-size: 0.88rem; color: var(--gray);
  padding: 6px 0 6px 20px;
  position: relative;
}
.agent-feats li::before {
  content: '';
  position: absolute; left: 0; top: 13px;
  width: 7px; height: 7px; border-radius: 2.5px;
  background: var(--gold);
}

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 30px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--gold); letter-spacing: 0.15em;
  margin-bottom: 14px; display: block;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; }
.step-note {
  margin-top: 16px; padding: 12px 16px;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  font-size: 0.86rem; color: var(--navy);
}

/* ---------- Casos ---------- */
.cases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.case-card {
  background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%);
  border-radius: 20px;
  padding: 38px 34px;
  color: var(--white);
}
.case-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.case-card h3 { color: var(--white); font-size: 1.35rem; margin: 12px 0 18px; }
.case-metric {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  color: var(--gold);
  line-height: 1.1;
}
.case-metric .ph { opacity: 0.45; font-size: 0.55em; vertical-align: middle; }
.case-metric-label { color: rgba(255,255,255,0.68); font-size: 0.9rem; margin: 6px 0 20px; }
.case-body { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.case-body strong { color: var(--white); }
.case-stamp {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.42);
  margin: 16px 0 0;
}

/* ---------- Por qué ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.why-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.why-dot {
  flex: none;
  width: 14px; height: 14px; border-radius: 5px;
  background: var(--gold);
  margin-top: 6px;
}
.why-item h3 { margin-bottom: 6px; font-size: 1.05rem; }
.why-item p { font-size: 0.93rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  color: var(--navy); text-align: left;
}
.faq-q:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-q .plus {
  flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--gold-soft);
  position: relative;
  transition: transform 0.2s;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: '';
  position: absolute; inset: 0; margin: auto;
  background: var(--navy);
}
.faq-q .plus::before { width: 12px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 12px; transition: opacity 0.2s; }
.faq-item[data-open="true"] .plus { transform: rotate(180deg); }
.faq-item[data-open="true"] .plus::after { opacity: 0; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 4px 22px; font-size: 0.96rem; max-width: 660px; }

/* ---------- CTA final ---------- */
.cta-final {
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(247, 190, 0, 0.12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-ink) 100%);
  text-align: center;
  color: var(--white);
}
.cta-final h2 { color: var(--white); max-width: 720px; margin: 28px auto 16px; }
.cta-final p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 36px; font-size: 1.05rem; }
.cta-final .hero-ctas { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 34px;
  border-top: 1px solid var(--line-light);
  font-size: 0.9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer img { height: 34px; width: auto; margin-bottom: 16px; }
.footer h4 {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.footer ul { list-style: none; }
.footer li { padding: 5px 0; }
.footer a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.15s; }
.footer a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line-light);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  transition: transform 0.18s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dotlayer { transform: none !important; }
  .hero-log-body .log-line { animation: none; opacity: 1; }
  .btn, .agent-card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 76px 0; }
  .lab-grid, .cases-grid, .why-grid { grid-template-columns: 1fr; }
  .agents-grid, .steps { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--navy-ink);
    padding: 20px 24px 26px;
    border-bottom: 1px solid var(--line-light);
    gap: 4px;
  }
  .nav-links.open a { display: block; padding: 10px 0; font-size: 1.05rem; }
  .nav-burger { display: block; }
  .nav .btn-gold { display: none; }
}

/* ============================================================
   v1.2 — Sistema de escenas parallax (A+B+C+D)
   ============================================================ */

/* Escena A: hero con profundidad, color dinámico via CSS vars */
.hero { --dc0:#F7BE00; --dc1:#F7BE00; --dc2:#F7BE00; --dc3:#F7BE00; --dc4:#F7BE00; --dc5:#F7BE00; }
.hero .wrap { position: relative; z-index: 2; will-change: transform, opacity; }
.dotlayer .dot.p0 { background: var(--dc0); }
.dotlayer .dot.p1 { background: var(--dc1); }
.dotlayer .dot.p2 { background: var(--dc2); }
.dotlayer .dot.p3 { background: var(--dc3); }
.dotlayer .dot.p4 { background: var(--dc4); }
.dotlayer .dot.p5 { background: var(--dc5); }

/* Escena B: agentes pinned storytelling */
.scene-agents { position: relative; height: 380vh; background: var(--navy-deep); padding: 0; }
.pin-agents { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.agents-bgnum {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700; font-size: 34vw;
  color: rgba(247,190,0,0.06); line-height: 1; user-select: none; will-change: transform;
}
.agents-progress { position: absolute; left: 26px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; z-index: 3; }
.agents-progress i { width: 9px; height: 9px; border-radius: 3px; background: rgba(255,255,255,0.2); transition: background .3s, transform .3s; }
.agents-progress i.on { background: var(--gold); transform: scale(1.35); }
.scene-agents .sec-head h2, .scene-agents .sec-head p { color: var(--white); }
.scene-agents .sec-head p { color: rgba(255,255,255,0.72); }
.agent-slides { position: relative; height: 56vh; }
.agent-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.agent-card-dark {
  background: linear-gradient(160deg, var(--navy), var(--navy-ink));
  border: 1px solid rgba(255,255,255,0.1); border-radius: 24px;
  padding: 44px 42px; max-width: 620px; box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.agent-card-dark .slide-role { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.agent-card-dark h3 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 12px 0 14px; }
.agent-card-dark p { color: rgba(255,255,255,0.78); font-size: 1.02rem; }
.agent-card-dark .agent-feats li { color: rgba(255,255,255,0.72); }
.agent-card-dark .agent-chip { margin-top: 20px; }

/* Escena C: proceso con tipografía gigante multi-velocidad */
.scene-proceso { position: relative; overflow: hidden; }
.bigword {
  position: absolute; top: 6%; left: 0; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 14vw;
  color: rgba(31,22,70,0.05); line-height: 1; user-select: none; will-change: transform;
}
.scene-proceso .wrap { position: relative; z-index: 2; }
.step { will-change: transform; }

/* Escena D: zoom cinematográfico pre-CTA */
.scene-zoom { position: relative; height: 260vh; background: var(--navy-ink); padding: 0; }
.pin-zoom { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pin-zoom::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 500px at 50% 50%, rgba(247,190,0,0.10), transparent 65%); }
.zoom-box { will-change: transform, opacity; text-align: center; position: relative; }
.zoom-mark { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 10vw, 7rem); letter-spacing: 0.02em; color: var(--white); display: inline-flex; align-items: center; gap: 0.22em; }
.zoom-mark b { width: 0.2em; height: 0.2em; background: var(--gold); border-radius: 0.06em; }
.zoom-mark span { color: var(--gold); }
.zoom-sub { font-size: clamp(1rem, 2.2vw, 1.35rem); color: rgba(255,255,255,0.72); margin-top: 20px; opacity: 0; transform: translateY(24px); will-change: transform, opacity; }

/* Fallback reduced-motion / no-JS: todo estático y visible */
.rm .scene-agents { height: auto; padding: 90px 0; }
.rm .pin-agents { position: static; height: auto; overflow: visible; }
.rm .agent-slides { height: auto; }
.rm .agent-slide { position: static; opacity: 1 !important; transform: none !important; margin-bottom: 26px; pointer-events: auto; }
.rm .agents-bgnum, .rm .agents-progress { display: none; }
.rm .scene-zoom { height: auto; padding: 90px 0; }
.rm .pin-zoom { position: static; height: auto; }
.rm .zoom-box { transform: none !important; opacity: 1 !important; }
.rm .zoom-sub { opacity: 1 !important; transform: none !important; }
.rm .bigword { display: none; }

@media (max-width: 960px) {
  .scene-agents { height: 330vh; }
  .agent-slides { height: 62vh; }
  .agents-progress { left: 12px; }
  .agents-bgnum { font-size: 58vw; opacity: 0.7; }
  .agent-card-dark { padding: 30px 24px; }
  .scene-zoom { height: 220vh; }
}

/* ============================================================
   v1.3 — Fix móvil (QA 6 jul) + ajustes de contenido
   ============================================================ */
html { -webkit-text-size-adjust: 100%; }
/* svh en pins: el 100vh clásico se corta bajo la barra de URL móvil */
.pin-agents, .pin-zoom { height: 100svh; }

@media (max-width: 640px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-sub { font-size: 1rem; }
  .hero-log-body { font-size: 0.7rem; min-height: 78px; }
  .hero-ctas .btn { width: 100%; }

  .scene-agents { height: 340vh; }
  .agent-slides { height: 78svh; }
  .agent-slide { align-items: center; }
  .agent-card-dark { padding: 24px 20px; max-width: 100%; }
  .agent-card-dark h3 { font-size: 1.55rem; margin: 8px 0 10px; }
  .agent-card-dark p { font-size: 0.9rem; }
  .agent-card-dark .agent-feats li { font-size: 0.8rem; padding: 4px 0 4px 18px; }
  .agent-card-dark .agent-chip { margin-top: 14px; }
  .agents-bgnum { font-size: 64vw; opacity: 0.55; }
  .agents-progress { left: 8px; gap: 10px; }
  .scene-agents .sec-head { margin-bottom: 14px; }
  .scene-agents .sec-head h2 { font-size: 1.45rem; }

  .bigword { font-size: 22vw; top: 2%; }
  .step { padding: 26px 22px; }

  .zoom-mark { font-size: clamp(2.6rem, 16vw, 4rem); }
  .zoom-sub { font-size: 0.95rem; padding: 0 20px; }

  .case-card { padding: 28px 22px; }
  .proof-num { font-size: 2rem; }
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}

/* ============================================================
   v1.3.1 — Fix hero móvil (el contenido no debe hundirse ni centrarse
   cuando es más alto que el viewport)
   ============================================================ */
@media (max-width: 768px) {
  .hero { justify-content: flex-start; min-height: 100svh; }
  .hero-log { margin-top: 36px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
}

/* ============================================================
   v1.3.2 — Fix definitivo corte horizontal móvil (QA screenshot 7 jul)
   Causa: .hl con nowrap más ancho que el viewport expande el layout
   viewport en Chrome Android; todo se maqueta más ancho que la pantalla.
   ============================================================ */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }
@media (max-width: 768px) {
  .hero h1 .hl { white-space: normal; }
}
