/* =========================================================================
   GEMIA OPS — styles.css
   Estilo: agresivo / performance. Mobile first.
   Paleta del brief: negro/grafito + verde neón + blanco/gris claro.
   ========================================================================= */
/* Montserrat alojada en el sitio (subset latin: incluye tildes y ñ) */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: optional; src: url('assets/fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: optional; src: url('assets/fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: optional; src: url('assets/fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: optional; src: url('assets/fonts/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: optional; src: url('assets/fonts/montserrat-800.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: optional; src: url('assets/fonts/montserrat-900.woff2') format('woff2'); }


/* ---------- 1. Tokens ---------- */
:root {
  --bg: #141416;
  --bg-2: #1c1c1f;
  --bg-3: #26262a;
  --line: #2e2e33;
  --line-2: #45454c;
  --text: #ffffff;
  --soft: #f4f4f5;
  --muted: #a1a1aa;
  --neon: #00ff66;
  --neon-2: #00e65c;
  --neon-dim: rgba(0, 255, 102, 0.12);
  --accent: #00ff66; /* color de textos/íconos destacados (cambia según el fondo de la sección) */
  --danger: #ff4d4d;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Montserrat", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --pad: clamp(1.25rem, 4vw, 2rem);
  --section: clamp(4.5rem, 10vw, 8rem);
  --header-h: 68px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--neon); color: #000; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.neon { color: var(--accent); }
.muted { color: var(--muted); }

/* ---------- 3. Tipografía de sección ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 5.5vw, 3.5rem); margin-top: 1rem; }
.section-head p { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); margin-top: 1.1rem; max-width: 620px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .9rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.2;
  cursor: pointer; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--neon); color: #000; box-shadow: 0 0 0 0 rgba(0,255,102,.5); }
.btn--primary:hover { background: var(--neon-2); transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(0,255,102,.6); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: .6rem 1.1rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- 5. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(20,20,22,.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .header { background: rgba(20,20,22,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* Logo: si assets/img/logo.png no existe, se muestra el wordmark de texto */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 900; letter-spacing: -0.02em; font-size: 1.2rem; }
.brand img { height: 42px; width: auto; }
.footer .brand img { height: 64px; }
.brand__text { display: none; }
.brand.no-logo .brand__text { display: inline; }
.brand__text b { color: var(--accent); font-weight: 900; }

.nav { display: none; }
.nav__list { display: flex; gap: 2rem; }
.nav__list a { font-size: .92rem; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--text); }
.header__cta { display: none; }

.menu-toggle {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--text); position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Menú mobile desplegable */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  background: #000; border-bottom: 1px solid var(--line);
  padding: 1.5rem var(--pad) 2rem;
  display: none;
}
.menu-open .mobile-menu { display: block; }
.mobile-menu ul { display: grid; gap: .25rem; margin-bottom: 1.5rem; }
.mobile-menu a:not(.btn) { display: block; padding: .85rem 0; font-size: 1.25rem; font-weight: 700; border-bottom: 1px solid var(--line); }

@media (min-width: 960px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 6rem); overflow: hidden; }
.hero::before { /* grilla técnica de fondo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after { /* halo neón */
  content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%;
  right: -200px; top: -150px; pointer-events: none;
  background: radial-gradient(circle, rgba(0,255,102,.16), transparent 65%);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 3.5rem; align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-top: 1.25rem; max-width: none; letter-spacing: -0.02em; }
.hero h1 .strike { position: relative; color: var(--muted); white-space: nowrap; }
.hero h1 .strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: 5px;
  background: var(--neon); transform: rotate(-3deg); box-shadow: 0 0 14px var(--neon);
}
.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin-top: 1.5rem; max-width: 560px; }
.hero__sub strong { color: var(--text); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.hero__ctas .btn { flex: 1 1 220px; }
.hero__micro { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.75rem; font-size: .88rem; color: var(--muted); }
.hero__micro li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__micro svg { width: 16px; height: 16px; color: var(--accent); }

@media (min-width: 600px) { .hero__ctas .btn { flex: 0 0 auto; } }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; } }

/* ---------- 7. Mockup del sistema (hero visual) ---------- */
.mock { position: relative; }
.mock__card {
  background: linear-gradient(180deg, #141414, #0b0b0b);
  border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,255,102,.05);
  overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock__bar span { margin-left: auto; font-family: var(--mono); font-size: .7rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 10px var(--neon); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.mock__body { padding: 1.1rem; display: grid; gap: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kpi { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: .75rem; }
.kpi small { display: block; font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; font-size: clamp(1.1rem, 3.5vw, 1.45rem); margin-top: .2rem; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: .7rem; color: var(--accent); font-family: var(--mono); }
.chart { background: var(--bg-3); border: 1px solid var(--line); border-radius: 10px; padding: .9rem; }
.chart__head { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-bottom: .75rem; }
.bars { height: 110px; display: flex; align-items: flex-end; gap: 6px; }
.bars i { flex: 1; background: linear-gradient(180deg, var(--neon), rgba(0,255,102,.25)); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.bars i:nth-child(odd) { background: linear-gradient(180deg, #3f3f46, #27272a); }
@keyframes grow { from { transform: scaleY(0); } }
.flow { display: flex; align-items: center; justify-content: space-between; gap: .3rem; flex-wrap: nowrap; }
.flow__node {
  flex: 1; min-width: 0; text-align: center; font-size: .66rem; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.flow__node--on { border-color: var(--neon); color: var(--accent); box-shadow: 0 0 18px -6px var(--neon); }
.flow__arrow { color: var(--line-2); font-size: .8rem; flex-shrink: 0; }
@media (max-width: 480px) { .flow { flex-wrap: wrap; justify-content: center; gap: .4rem; } .flow__arrow { display: none; } .flow__node { flex: 1 1 28%; font-size: .7rem; overflow: visible; } }
@keyframes floaty { 50% { transform: translateY(-6px); } }
.mock__caption { display: none; font-size: .72rem; color: var(--muted); font-family: var(--mono); text-align: right; }

/* ---------- 8. Cinta de métricas + stack ---------- */
.proof { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 2rem 1rem; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat strong { display: block; font-size: clamp(2rem, 6vw, 3.2rem); font-weight: 900; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.stat span { display: block; margin-top: .6rem; font-size: .88rem; color: var(--muted); }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
}
.marquee { overflow: hidden; border-top: 1px solid var(--line); padding-block: 1.1rem; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(2.5rem, 6vw, 4.5rem); width: max-content; padding-right: clamp(2.5rem, 6vw, 4.5rem); animation: marquee 32s linear infinite; }
.tool { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); white-space: nowrap; }
.tool svg { width: clamp(26px, 5vw, 34px); height: clamp(26px, 5vw, 34px); fill: currentColor; flex-shrink: 0; }
.tool b { font-size: clamp(.9rem, 2vw, 1.05rem); font-weight: 700; letter-spacing: -0.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. Problema vs Solución ---------- */
.versus { display: grid; gap: 1rem; }
.vs-col { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); background: var(--bg-2); }
.vs-col h3 { font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.vs-col h3 svg { width: 22px; height: 22px; flex-shrink: 0; }
.vs-col--bad h3 svg { color: var(--danger); }
.vs-col--good h3 svg { color: var(--accent); }
.vs-col--bad h3 { color: var(--muted); }
.vs-col--good { border-color: var(--neon); background: linear-gradient(180deg, rgba(0,255,102,.07), var(--bg-2) 40%); }
.vs-list li { display: grid; grid-template-columns: 22px 1fr; gap: .75rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.vs-list li:first-child { border-top: 0; }
.vs-list svg { width: 20px; height: 20px; margin-top: 2px; }
.vs-col--bad svg { color: var(--danger); }
.vs-col--good svg { color: var(--accent); }
.vs-list b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .15rem; }
.vs-col--bad .vs-list p { color: var(--muted); }
@media (min-width: 860px) { .versus { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }

/* ---------- 10. Servicios (pilares) ---------- */
.pillars { display: grid; gap: 1rem; }
.pillar {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  background: var(--bg-2); transition: border-color .25s, transform .25s;
}
.pillar:hover { border-color: var(--neon); transform: translateY(-4px); }
.pillar__num { position: absolute; top: 1.4rem; right: 1.5rem; font-family: var(--mono); font-size: .8rem; color: var(--line-2); }
.pillar__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--neon-dim); color: var(--accent); margin-bottom: 1.4rem; }
.pillar__icon svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 1.35rem; }
.pillar > p { color: var(--muted); margin-top: .6rem; font-size: .96rem; }
.pillar ul { margin-top: 1.25rem; display: grid; gap: .5rem; }
.pillar li { font-size: .9rem; display: flex; gap: .55rem; align-items: baseline; }
.pillar li::before { content: "→"; color: var(--accent); font-weight: 700; }
@media (min-width: 700px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pillars { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 11. Modelo de cobro + calculadora ---------- */
.model { display: grid; gap: 1rem; }
.fee { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: var(--bg); }
.fee__tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.fee h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-top: .75rem; }
.fee > p { color: var(--muted); margin-top: .75rem; }
.fee ul { margin-top: 1.25rem; display: grid; gap: .55rem; }
.fee li { display: flex; gap: .6rem; font-size: .95rem; }
.fee li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.fee--accent { border-color: var(--neon); }
.plus { display: grid; place-items: center; font-size: 2.5rem; font-weight: 900; color: var(--accent); line-height: 1; }
@media (min-width: 900px) { .model { grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1.5rem; } }

.calc {
  margin-top: 2.5rem; border: 1px solid var(--line-2); border-radius: 18px;
  background: radial-gradient(ellipse at top right, rgba(0,255,102,.1), transparent 55%), var(--bg);
  padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 2rem;
}
.calc h3 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
.calc > div > p { color: var(--muted); margin-top: .6rem; }
.calc__field label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; margin-bottom: 1rem; gap: 1rem; }
.calc__field output { font-size: 1.5rem; font-weight: 900; color: var(--text); white-space: nowrap; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: var(--line); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--neon); cursor: pointer; box-shadow: 0 0 0 6px rgba(0,255,102,.2); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--neon); cursor: pointer; }
.range-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: .5rem; font-family: var(--mono); }
.calc__results { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1.75rem; }
.calc__result { background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.calc__result small { display: block; font-size: .75rem; color: var(--muted); }
.calc__result strong { display: block; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900; letter-spacing: -0.03em; margin-top: .25rem; }
.calc__result--hl { border-color: var(--neon); }
.calc__result--hl strong { color: var(--accent); }
.calc__note { font-size: .78rem; color: var(--muted); margin-top: 1rem; }
@media (min-width: 900px) { .calc { grid-template-columns: .9fr 1.1fr; align-items: center; gap: 3rem; } }

/* ---------- 12. Proceso ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.step__n { font-size: 3.5rem; font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--neon); }
.step h3 { font-size: 1.25rem; margin-top: 1rem; }
.step p { color: var(--muted); margin: .5rem 0 1.25rem; font-size: .95rem; }
.step__tag { display: inline-block; margin-top: auto; font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding: .3rem .6rem; border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); }
.step--free .step__tag { border-color: var(--neon); color: var(--accent); }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 13. Escenarios (casos hipotéticos) ---------- */
.disclaimer {
  display: flex; gap: .75rem; align-items: flex-start;
  border: 1px dashed var(--line-2); border-radius: 12px; padding: 1rem 1.25rem; margin-bottom: 2rem;
  font-size: .88rem; color: var(--muted);
}
.disclaimer svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.cases { display: grid; gap: 1rem; }
.case { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 1.75rem; display: flex; flex-direction: column; }
.case__industry { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.case h3 { font-size: 1.3rem; margin-top: .75rem; }
.case > p { color: var(--muted); font-size: .94rem; margin-top: .6rem; }
.case__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: auto; padding-top: 1.5rem; }
.case__metrics div { background: var(--bg-3); border-radius: 10px; padding: .75rem .5rem; text-align: center; }
.case__metrics strong { display: block; font-size: 1.3rem; font-weight: 900; color: var(--accent); letter-spacing: -0.03em; }
.case__metrics span { display: block; font-size: .68rem; color: var(--muted); line-height: 1.3; margin-top: .2rem; }
@media (min-width: 960px) { .cases { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 14. FAQ (details nativo) ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); transition: border-color .2s; }
.faq details[open] { border-color: var(--neon); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.4rem; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .25s; flex-shrink: 0; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 1.4rem 1.4rem; color: var(--muted); }

/* ---------- 15. CTA final + formulario ---------- */
.cta-final { position: relative; overflow: hidden; background: var(--neon); color: #000; }
.cta-final__grid { display: grid; gap: 2.5rem; align-items: start; }
.cta-final h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.03em; }
.cta-final__copy p { font-size: 1.1rem; margin-top: 1.25rem; max-width: 480px; font-weight: 500; }
.cta-final__copy ul { margin-top: 1.75rem; display: grid; gap: .6rem; font-weight: 600; }
.cta-final__copy li { display: flex; gap: .6rem; align-items: center; }
.cta-final__copy li svg { width: 20px; height: 20px; }
.cta-final .eyebrow { color: #000; }
.cta-final .eyebrow::before { background: #000; box-shadow: none; }
@media (min-width: 1000px) { .cta-final__grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }

.form-card { background: #000; color: var(--text); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.form-card h3 { font-size: 1.4rem; }
.form-card > p { color: var(--muted); font-size: .92rem; margin-top: .35rem; }
.lead-form { display: grid; gap: .9rem; margin-top: 1.5rem; }
.form-row { display: grid; gap: .9rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--soft); margin-bottom: .4rem; }
.field label i { font-style: normal; color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text);
  font-size: 16px; /* evita zoom en iOS */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300ff66' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field select option { background: #18181b; }
.field input::placeholder, .field textarea::placeholder { color: #71717a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,255,102,.15); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--danger); }
.form-legal { font-size: .75rem; color: var(--muted); }
.form-legal a { color: var(--soft); text-decoration: underline; }
.form-status { font-size: .88rem; min-height: 1.2em; }
.form-status.is-error { color: var(--danger); }

/* ---------- 16. Footer ---------- */
.footer { background: #0e0e10; border-top: 1px solid var(--line); padding-block: 4rem 2rem; }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand p { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 320px; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.footer ul { display: grid; gap: .6rem; }
.footer ul a { font-size: .95rem; color: var(--soft); transition: color .2s; }
.footer ul a:hover { color: var(--accent); }
.socials { display: flex; gap: .6rem; margin-top: 1.25rem; }
.socials a { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--neon); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* ---------- 17. WhatsApp flotante + modal ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--neon); color: #000; display: grid; place-items: center;
  box-shadow: 0 10px 30px -5px rgba(0,255,102,.55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--neon); animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

.wa-dialog {
  width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: #0a0a0a; color: var(--text);
  overflow: auto;
}
.wa-dialog::backdrop { background: rgba(0,0,0,.75); }
.wa-dialog__head { display: flex; align-items: center; gap: .85rem; padding: 1.25rem 1.5rem; background: var(--bg-2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.wa-dialog__avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #000; color: #000; display: grid; place-items: center; font-weight: 900; flex-shrink: 0; }
.wa-dialog__head b { display: block; }
.wa-dialog__head span { font-size: .8rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }
.wa-dialog__close { margin-left: auto; width: 38px; height: 38px; border-radius: 10px; background: transparent; border: 1px solid var(--line-2); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.wa-dialog__body { padding: 1.5rem; }
.wa-dialog__body .lead-form { margin-top: 1rem; }
.wa-bubble { background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: .85rem 1rem; font-size: .92rem; max-width: 90%; }

/* ---------- 18. Páginas internas (Nosotros / Legal / Gracias) ---------- */
.page-hero { position: relative; padding-block: clamp(4rem, 10vw, 7rem) clamp(3rem, 7vw, 5rem); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -350px; border-radius: 50%; background: radial-gradient(circle, rgba(0,255,102,.14), transparent 65%); pointer-events: none; }
.page-hero h1 { font-size: clamp(2.5rem, 7.5vw, 5.2rem); max-width: 15ch; margin-top: 1.25rem; position: relative; z-index: 1; }
.page-hero p { color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 640px; margin-top: 1.5rem; position: relative; z-index: 1; }

.story { display: grid; gap: 2.5rem; }
.story__text p { color: var(--soft); font-size: 1.08rem; margin-top: 1.1rem; }
.story__text p:first-child { margin-top: 0; }
.story__text strong { color: var(--text); }
.story__quote { border-left: 3px solid var(--neon); padding: .5rem 0 .5rem 1.5rem; font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; align-self: start; }
@media (min-width: 900px) { .story { grid-template-columns: 1.2fr .8fr; gap: 4rem; } .story__quote { position: sticky; top: calc(var(--header-h) + 2rem); } }

.mv { display: grid; gap: 1rem; margin-top: 3.5rem; }
.mv__card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: var(--bg); }
.mv__card h3 { font-size: 1.5rem; margin-top: .75rem; }
.mv__card p { color: var(--muted); margin-top: .75rem; }
@media (min-width: 800px) { .mv { grid-template-columns: 1fr 1fr; } }

.values { display: grid; gap: 1rem; }
.value { border-top: 2px solid var(--line); padding-top: 1.5rem; transition: border-color .25s; }
.value:hover { border-color: var(--neon); }
.value span { font-family: var(--mono); color: var(--accent); font-size: .8rem; }
.value h3 { font-size: 1.25rem; margin-top: .6rem; }
.value p { color: var(--muted); margin-top: .5rem; font-size: .95rem; }
@media (min-width: 700px) { .values { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; } }

.team { display: grid; gap: 1.25rem; }
.member { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.member__photo { aspect-ratio: 4/3; background: linear-gradient(135deg, #18181b, #0a0a0a); display: grid; place-items: center; color: var(--line-2); position: relative; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo svg { width: 64px; height: 64px; }
.member__body { padding: 1.5rem; }
.member__body h3 { font-size: 1.25rem; }
.member__role { color: var(--accent); font-size: .85rem; font-weight: 600; margin-top: .25rem; }
.member__body p { color: var(--muted); font-size: .94rem; margin-top: .75rem; }
@media (min-width: 700px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(3, 1fr); } }

.cta-band { border: 1px solid var(--neon); border-radius: 20px; padding: clamp(2rem, 5vw, 3.5rem); text-align: center; background: radial-gradient(ellipse at center, rgba(0,255,102,.1), transparent 70%); }
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 3.2rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { color: var(--muted); margin: 1rem auto 0; max-width: 520px; }
.cta-band .hero__ctas { justify-content: center; }

/* Legal */
.legal { max-width: 800px; margin-inline: auto; }
.legal__meta { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.legal h2 span { color: var(--accent); font-family: var(--mono); font-size: .9rem; display: block; margin-bottom: .5rem; }
.legal p, .legal li { color: var(--soft); margin-top: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li { margin-top: .5rem; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal .note { border: 1px solid var(--line-2); border-radius: 12px; padding: 1.25rem; background: var(--bg-2); font-size: .92rem; }

/* Gracias */
.thanks { min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-block: 4rem; position: relative; overflow: hidden; }
.thanks__check { width: 88px; height: 88px; border-radius: 50%; background: var(--neon); color: #000; display: grid; place-items: center; margin: 0 auto 2rem; box-shadow: 0 0 60px rgba(0,255,102,.45); }
.thanks__check svg { width: 42px; height: 42px; }
.thanks h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); }
.thanks > div > p { color: var(--muted); font-size: 1.15rem; max-width: 560px; margin: 1.25rem auto 0; }
.next-steps { display: grid; gap: .75rem; max-width: 680px; margin: 2.75rem auto 0; text-align: left; }
.next-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; background: var(--bg-2); }
.next-steps b { width: 40px; height: 40px; border-radius: 10px; background: var(--neon-dim); color: var(--accent); display: grid; place-items: center; font-weight: 900; }
.next-steps strong { display: block; }
.next-steps span { color: var(--muted); font-size: .92rem; }
.thanks .hero__ctas { justify-content: center; }

/* ---------- 19. Animaciones de entrada ----------
   El contenido es visible por defecto. Solo se oculta si JS cargó (.js en <html>).
   main.js tiene un timeout de seguridad que muestra todo a los 6s. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensivo */
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

/* ---------- Mobile first: comparativa en filas ---------- */
.vs-mobile { display: grid; gap: .75rem; }
.vsm { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 1.1rem 1.1rem 1.2rem; }
.vsm__label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: .7rem; }
.vsm p { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; margin: 0; }
.vsm p svg { width: 18px; height: 18px; margin-top: 3px; }
.vsm em { display: block; font-style: normal; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .1rem; }
.vsm__bad { color: var(--muted); padding-bottom: .75rem; border-bottom: 1px dashed var(--line); margin-bottom: .75rem !important; }
.vsm__bad svg, .vsm__bad em { color: var(--danger); }
.vsm__good { color: var(--text); }
.vsm__good svg, .vsm__good em { color: var(--accent); }
.versus { display: none; }
@media (min-width: 860px) { .vs-mobile { display: none; } .versus { display: grid; } }

/* ---------- Mobile first: barra de CTA fija ---------- */
.m-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: .75rem 16px calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(20,20,22,.9); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .3s ease;
}
.m-cta.is-on { transform: none; }
.m-cta .btn { width: 100%; justify-content: center; }
body.has-mcta .wa-float { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.wa-float { transition: bottom .3s ease, transform .2s ease; }
@media (min-width: 860px) { .m-cta { display: none; } body.has-mcta .wa-float { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Mobile: números que no se parten ---------- */
.calc__result strong, .case__metrics strong { white-space: nowrap; }
@media (max-width: 480px) {
  .calc__result strong { font-size: 1.3rem; }
  .case__metrics strong { font-size: 1.1rem; }
  .case__metrics div { padding: .7rem .3rem; }
}
.calc > * { min-width: 0; }
.calc__results { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
@media (max-width: 480px) { .calc__result { padding: .85rem .75rem; } .calc__result strong { font-size: 1.15rem; } .calc__field output { font-size: 1.25rem; } }

/* =========================================================================
   TEMAS DE SECCIÓN — alternan grafito / blanco / verde para dar ritmo
   ========================================================================= */
.t-dark, .t-light, .t-neon { background: var(--bg); color: var(--text); }
.t-dark { border-block: 0; }

/* Blanco: tipografía negra, botones verdes */
.t-light {
  --bg: #ffffff; --bg-2: #f4f4f5; --bg-3: #ffffff;
  --line: #e4e4e7; --line-2: #d4d4d8;
  --text: #0a0a0a; --soft: #18181b; --muted: #52525b;
  --accent: #009e40; --neon-dim: rgba(0, 200, 80, 0.14);
  border-block: 0;
}
.t-light .neon { color: #0a0a0a; background: linear-gradient(transparent 58%, var(--neon) 58%, var(--neon) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-inline: .06em; }
.t-light .eyebrow::before { box-shadow: none; }

/* Verde: tipografía negra, botones negros */
.t-neon {
  --bg: #00ff66; --bg-2: rgba(255,255,255,.45); --bg-3: rgba(255,255,255,.6);
  --line: rgba(0,0,0,.14); --line-2: rgba(0,0,0,.28);
  --text: #000000; --soft: #000000; --muted: #0d3d1f;
  --accent: #000000; --neon-dim: rgba(0,0,0,.08);
  border-block: 0;
}
.t-neon .neon { color: var(--neon); background: #000; padding: 0 .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.t-neon .eyebrow::before { background: #000; box-shadow: none; }
.t-neon .btn--primary { background: #000; color: #fff; }
.t-neon .btn--primary:hover { background: #1c1c1f; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.t-neon .btn--ghost { border-color: #000; color: #000; }

/* Ajustes puntuales por tema */
.t-light .vs-col--good, .t-light .vsm { box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.t-light .vs-col--good { background: #0a0a0a; border-color: #0a0a0a; --text: #fff; --muted: #a1a1aa; --line: #2e2e33; --accent: #00ff66; color: #fff; }
.t-light .vs-col--good h3 { color: #fff; }
.t-light .calc { --bg-2: #141416; --bg-3: #26262a; --line: #2e2e33; --line-2: #45454c; --text: #fff; --muted: #a1a1aa; --accent: #00ff66; color: #fff; background: #141416; }
.t-light .fee--hl, .t-light .fee:nth-child(3) { }
.t-neon .stat strong { color: #000; }
.t-neon .marquee { border-top-color: rgba(0,0,0,.15); }
.t-neon .tool { color: #000; }
.t-neon .step__n { -webkit-text-stroke-color: #000; }
.t-neon .step--free .step__tag { border-color: #000; background: #000; color: var(--neon); }
.t-light .step__n { -webkit-text-stroke-color: #009e40; }

/* ---------- Industrias (experiencia) ---------- */
.inds { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.ind { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 1.6rem; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.ind:hover { border-color: var(--neon); transform: translateY(-3px); }
.ind__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--neon-dim); color: var(--accent); display: grid; place-items: center; }
.ind__icon svg { width: 24px; height: 24px; }
.ind h3 { font-size: 1.15rem; margin-top: 1.1rem; }
.ind p { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.ind--cta { background: var(--neon); border-color: var(--neon); color: #000; justify-content: center; }
.ind--cta p { color: #0d3d1f; }
.ind__link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; margin-top: 1.1rem; font-size: .95rem; }
.ind__link svg { width: 18px; height: 18px; }
@media (min-width: 600px) { .inds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .inds { grid-template-columns: repeat(4, 1fr); } }

/* =========================================================================
   FORMULARIOS PASO A PASO (estilo Typeform)
   ========================================================================= */
.stepper { gap: 0; }
.stepper__top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.stepper__back { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .25rem 0; }
.stepper__back:hover { color: var(--text); }
.stepper__count { margin-left: auto; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.stepper__count b { color: var(--accent); }
.stepper__bar { height: 4px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .6rem 0 1.6rem; }
.stepper__bar i { display: block; height: 100%; width: 0; background: var(--neon); border-radius: 99px; transition: width .35s ease; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; min-height: 230px; display: flex; flex-direction: column; animation: qIn .35s ease both; }
.q[hidden] { display: none; }
@keyframes qIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.q__intro { font-size: .92rem; color: var(--muted); line-height: 1.55; margin: 0 0 .9rem; padding: .9rem 1rem; border-left: 3px solid var(--neon); background: var(--bg-3); border-radius: 0 10px 10px 0; }
.q__intro strong { color: var(--text); }
.q__title { font-size: clamp(1.15rem, 2.6vw, 1.4rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; padding: 0; margin-bottom: 1.1rem; color: var(--text); }
.q__title label { cursor: text; }
.q__opts { display: grid; gap: .55rem; }
.opt { display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left; font: inherit; font-size: .95rem; font-weight: 500; line-height: 1.35;
  color: var(--text); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.opt b { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: var(--muted); }
@media (hover: hover) { .opt:hover { border-color: var(--neon); transform: translateX(3px); } }
.opt:focus-visible { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,255,102,.2); }
.opt.is-selected { border-color: var(--neon); background: rgba(0,255,102,.1); }
.opt.is-selected b { background: var(--neon); border-color: var(--neon); color: #000; }
.q__input { width: 100%; font: inherit; font-size: 1.15rem; color: var(--text); background: transparent; border: 0; border-bottom: 2px solid var(--line-2); padding: .6rem 0; border-radius: 0; transition: border-color .2s; }
.q__input::placeholder { color: #5b5b63; }
.q__input:focus { outline: none; border-bottom-color: var(--neon); }
.q__input.is-invalid { border-bottom-color: var(--danger); }
.q__error { color: var(--danger); font-size: .82rem; min-height: 1.2em; margin: .5rem 0 0; }
.q__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.q__skip { background: none; border: 0; color: var(--muted); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: .3rem 0; }
.q__skip:hover { color: var(--text); }
.q__hint { font-size: .75rem; color: var(--muted); }
.q__hint kbd { font-family: inherit; font-weight: 700; color: var(--soft); }
@media (hover: none) { .q__hint { display: none; } }
.stepper .form-status { margin-top: .5rem; }
.stepper .form-legal { margin-top: .75rem; }
.wa-dialog .q { min-height: 250px; }
.q:focus { outline: none; }

/* Botón flotante con colores oficiales de WhatsApp */
.wa-float { background: #25D366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6); }
.wa-float::before { border-color: #25D366; }
.wa-float svg { width: 32px; height: 32px; }

/* WhatsApp con selector de país (select invisible encima de una etiqueta con bandera + código) */
.phone { display: flex; align-items: stretch; gap: .75rem; }
.phone__ccwrap { position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: .5rem; padding: 0 .85rem; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px; font-weight: 700; font-size: 1rem; white-space: nowrap; color: var(--text); }
.phone__ccwrap::after { content: ""; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300ff66' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.phone__cc { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.phone__cc option { background: #18181b; color: #fff; }
.phone__ccwrap:focus-within { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,255,102,.15); }
.phone .q__input { flex: 1; min-width: 0; }
.phone__area { flex: 0 0 4.2rem; width: 4.2rem; min-width: 0; font: inherit; font-size: 1.15rem; font-weight: 600; text-align: center; color: var(--text); background: transparent; border: 0; border-bottom: 2px solid var(--line-2); border-radius: 0; padding: .6rem 0; }
.phone__area:focus { outline: none; border-bottom-color: var(--neon); }
.phone__area[hidden] { display: none; }
.phone__help { font-size: .78rem; color: var(--muted); margin: .55rem 0 0; }
.phone__help[hidden] { display: none; }
@media (max-width: 420px) { .phone { gap: .5rem; } .phone__ccwrap { padding: 0 .6rem; font-size: .9rem; } .phone__area { flex-basis: 3.4rem; width: 3.4rem; } }
.hero__sub .hl { color: var(--accent); font-weight: 600; }

/* ---------- Hero: legibilidad, jerarquía y contención (mobile first) ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }   /* no rompe el header sticky */
.hero { width: 100%; max-width: 100%; overflow-x: hidden; }
.hero .container { padding-inline: 1.25rem; }
.hero__copy { min-width: 0; max-width: 100%; }

/* Badge: pastilla compacta, nunca más ancha que la pantalla */
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  max-width: 100%; white-space: normal;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.35;
  color: #33ff85; background: rgba(0,255,102,.1); border: 1px solid rgba(0,255,102,.22);
  padding: .3rem .75rem; border-radius: 999px;
}
.hero__badge::before { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
@media (max-width: 400px) { .hero__badge { font-size: 10px; letter-spacing: .04em; padding: .3rem .65rem; gap: .4rem; } }

/* H1 */
.hero h1 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; overflow-wrap: break-word; word-break: normal; hyphens: none; margin-top: 1rem; }
@media (min-width: 480px) { .hero h1 { font-size: 2rem; } }
@media (min-width: 768px) { .hero h1 { font-size: clamp(2.2rem, 3.5vw, 2.8rem); line-height: 1.15; } }

/* Bajada */
.hero__sub { font-size: 1rem; color: #d4d4d8; line-height: 1.65; margin-top: 1.1rem; }
.hero__sub strong { color: #fff; font-weight: 700; }
@media (min-width: 768px) { .hero__sub { font-size: 1.1rem; } }

/* Botón: ancho completo dentro del padding en mobile */
.hero__ctas { margin-top: 1.75rem; }
@media (max-width: 599px) {
  .hero__ctas { display: flex; flex-direction: column; }
  .hero__ctas .btn { flex: 0 0 auto; width: 100%; max-width: 100%; min-height: 52px; justify-content: center; white-space: normal; text-align: center; }
}

/* Espacio inferior para que el botón flotante de WhatsApp no tape contenido */
@media (max-width: 859px) {
  .hero { padding-bottom: calc(clamp(4rem, 9vw, 6rem) + 56px); }
  .footer { padding-bottom: calc(2rem + 84px); }
}
@media (max-width: 359px) { .hero__ctas .btn { font-size: .92rem; padding-inline: 1rem; } }
.thanks .thanks__msg { color: #e4e4e7; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.5; font-weight: 500; max-width: 720px; margin: 1.75rem auto 0; }

/* =========================================================================
   SERVICIOS — el sistema en 4 etapas (debajo del hero)
   ========================================================================= */
.services__head { max-width: 820px; }
.services__head h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.1; }
.services__head p { font-size: clamp(1.02rem, 1.8vw, 1.2rem); color: var(--soft); }
.stages { display: grid; gap: 1.25rem; counter-reset: stage; }
.stage {
  position: relative; display: flex; flex-direction: column;
  background: #0e0e10; color: #fff; border: 1px solid #0e0e10; border-radius: 20px;
  padding: 1.6rem 1.5rem 1.7rem; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
@media (hover: hover) { .stage:hover { transform: translateY(-4px); border-color: #00ff66; box-shadow: 0 24px 50px -24px rgba(0,255,102,.35); } }
.stage__top { display: flex; align-items: center; justify-content: space-between; }
.stage__num { font-size: 2.6rem; font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #00ff66; letter-spacing: -0.03em; }
.stage__icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(0,255,102,.12); color: #00ff66; display: grid; place-items: center; }
.stage__icon svg { width: 24px; height: 24px; }
.stage__name { font-size: 1.7rem; font-weight: 800; margin-top: 1.1rem; letter-spacing: -0.02em; color: #fff; }
.stage__result { color: #a1a1aa; font-size: .98rem; line-height: 1.55; margin-top: .45rem; }
.stage__list { list-style: none; margin: 1.3rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid #26262a; display: grid; gap: .7rem; }
.stage__list li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; align-items: start; font-size: .98rem; font-weight: 600; color: #f4f4f5; line-height: 1.4; }
.stage__list svg { width: 18px; height: 18px; color: #00ff66; margin-top: 1px; }
/* conector entre etapas: vertical en mobile */
.stage:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -1.25rem; width: 2px; height: 1.25rem; transform: translateX(-50%);
  background: #00ff66; box-shadow: 0 0 10px #00ff66;
}
.services__cta { display: flex; justify-content: center; margin-top: 2.5rem; }
@media (max-width: 599px) { .services__cta .btn { width: 100%; } }
@media (min-width: 700px) { .stages { grid-template-columns: repeat(2, 1fr); } .stage:not(:last-child)::after { display: none; } }
@media (min-width: 1100px) {
  .stages { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  /* conector horizontal con flecha en desktop */
  .stage:not(:last-child)::after {
    display: block; left: auto; right: -1.5rem; top: 3rem; bottom: auto; width: 1.5rem; height: 2px; transform: none;
  }
}
/* herramientas por etapa (logos con color de marca) */
.stage__tools { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: 1.3rem; }
.stage__list { margin-bottom: 0; }
.stool {
  display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .6rem .35rem .45rem; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, #16161a); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  font-size: .74rem; font-weight: 700; color: #e4e4e7; white-space: nowrap;
}
.stool svg { width: 15px; height: 15px; fill: var(--c); flex: none; }
.services__cta { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.services__cta p { font-size: 1.05rem; font-weight: 600; color: var(--text, #111); max-width: 560px; margin: 0; }

/* =========================================================================
   HERO sin tablero: una columna, centrado y con auroras multicolor
   ========================================================================= */
.hero__grid--solo { grid-template-columns: 1fr !important; max-width: 920px; margin-inline: auto; text-align: center; justify-items: center; }
.hero__grid--solo .hero__copy { display: flex; flex-direction: column; align-items: center; }
.hero__grid--solo h1 { font-size: clamp(1.75rem, 4.4vw, 3.5rem); line-height: 1.12; }
.hero__grid--solo .hero__sub { max-width: 720px; margin-inline: auto; }
.hero__grid--solo .hero__ctas { justify-content: center; }
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 5.5rem); }
.hero::after { display: none; }
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; transform: translate3d(0, calc(var(--sy, 0) * .25px), 0); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.aurora i:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -160px; background: radial-gradient(circle, rgba(124,92,255,.55), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 460px; height: 460px; right: -120px; top: -60px; background: radial-gradient(circle, rgba(56,189,248,.45), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 420px; height: 420px; left: 40%; bottom: -260px; background: radial-gradient(circle, rgba(0,255,102,.28), transparent 65%); animation: drift3 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-100px, 120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-140px, -60px) scale(1.15); } }
.hero .hl { background: linear-gradient(90deg, #00ff66, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================================
   Servicios: un color por etapa (menos verde, más vida)
   ========================================================================= */
.stage { --sc: #00ff66; }
.stage__num { -webkit-text-stroke-color: var(--sc); }
.stage__icon { background: color-mix(in srgb, var(--sc) 14%, transparent); color: var(--sc); }
.stage__list svg { color: var(--sc); }
.stage::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--sc); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.8,.2,1) .25s; }
.stage.is-in::before { transform: scaleX(1); }
@media (hover: hover) { .stage:hover { border-color: var(--sc); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--sc) 55%, transparent); } }
.stage:not(:last-child)::after { background: linear-gradient(90deg, var(--sc), #a78bfa); box-shadow: none; }
.stool svg.gen { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.js .stage.reveal { transform: translateY(36px) scale(.97); }
.js .stage.reveal.is-in { transform: none; }

/* =========================================================================
   Tablero dentro de "Cómo trabajamos"
   ========================================================================= */
.proc-board { display: grid; gap: 2rem; align-items: center; margin-top: clamp(3rem, 6vw, 4.5rem); }
.proc-board__copy h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.proc-board__copy p { margin-top: .8rem; font-size: 1.05rem; line-height: 1.6; max-width: 480px; }
.mock--proc { max-width: 560px; width: 100%; justify-self: center; }
@media (min-width: 960px) { .proc-board { grid-template-columns: .9fr 1.1fr; gap: 4rem; } }

/* =========================================================================
   Animaciones de scroll
   ========================================================================= */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; transform-origin: left; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, #00ff66, #38bdf8, #a78bfa); }
.js .section-head.reveal h2 { clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.2,.8,.2,1) .1s; }
.js .section-head.reveal.is-in h2 { clip-path: inset(0 0 -20% 0); }
.js .t-light .reveal .neon { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .9s ease .6s; }
.js .t-light .reveal.is-in .neon { background-size: 100% 100%; }
.eyebrow::before { animation: pulseSq 2.4s ease-in-out infinite; }
@keyframes pulseSq { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .aurora i, .eyebrow::before { animation: none; }
  .aurora { transform: none; }
  .js .section-head.reveal h2 { clip-path: none; }
  .stage::before { transform: none; transition: none; }
}
.hero__grid--solo { max-width: 1080px; }
.hero__grid--solo h1 { font-size: clamp(1.75rem, 3.6vw, 3.05rem); }
@media (min-width: 1024px) { .hero { padding-block: 4.5rem 4.5rem; } }
.aurora i { opacity: .7; }
.section.services { padding-top: clamp(3rem, 5vw, 4.5rem); }
.mock--proc.t-dark { background: transparent; }
.mock--proc { --bg: #141416; --bg-2: #1c1c1f; --bg-3: #26262a; --line: #2e2e33; --line-2: #45454c; --text: #fff; --soft: #f4f4f5; --muted: #a1a1aa; --accent: #00ff66; --neon-dim: rgba(0,255,102,.12); color: #fff; }
.mock--proc .neon { color: #00ff66; background: none; padding: 0; }
.savings .stat:nth-child(1) strong { color: #00ff66; }
.savings .stat:nth-child(2) strong { color: #38bdf8; }
.savings .stat:nth-child(3) strong { color: #a78bfa; }
.savings .stat:nth-child(4) strong { color: #fbbf24; }

/* =========================================================================
   AHORRO — comparación de costos (esquema ilustrativo)
   ========================================================================= */
.savings__head { max-width: 860px; }
.savings__head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; }
.cost { margin-top: 2.5rem; background: #0e0e10; border: 1px solid #26262a; border-radius: 22px; padding: clamp(1.2rem, 3vw, 2rem); }
.cost__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; font-size: .9rem; font-weight: 700; }
.cost__legend span { display: inline-flex; align-items: center; gap: .5rem; }
.cost__legend em { margin-left: auto; font-style: normal; font-weight: 500; font-size: .78rem; color: #71717a; }
.k { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.k--ag, .cb--ag { background: linear-gradient(180deg, #f87171, #7f1d1d); }
.k--gm, .cb--gm { background: linear-gradient(180deg, #00ff66, #0e7a3c); }
.cost__chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(4px, 1vw, 12px); height: clamp(170px, 26vw, 260px); margin-top: 1.5rem; align-items: end; border-bottom: 1px solid #2e2e33; }
.cm { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; }
.cb { width: 44%; max-width: 22px; height: var(--h); border-radius: 5px 5px 0 0; transform-origin: bottom; }
.cm small { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: .68rem; color: #71717a; white-space: nowrap; }
.js .cost .cb { transform: scaleY(0); transition: transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i) * 70ms + .2s); }
.js .cost.is-in .cb { transform: none; }
.js .cost .cb--gm { transition-delay: calc(var(--i) * 70ms + .5s); }
.cost__notes { display: grid; gap: .6rem; margin-top: 2.6rem; }
.cost__notes p { margin: 0; color: #d4d4d8; font-size: .98rem; line-height: 1.5; }
.c-ag { color: #f87171; } .c-gm { color: #00ff66; }
.cost__notes strong { color: #fff; background: rgba(0,255,102,.14); padding: .05em .35em; border-radius: 6px; }
@media (min-width: 860px) { .cost__notes { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 559px) { .cm small { font-size: 0; } .cm:first-child small, .cm:last-child small { font-size: .62rem; } }
.why { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 860px) { .why { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
.why__item { background: #1a1a1d; border: 1px solid #2a2a2f; border-radius: 18px; padding: 1.4rem; }
.why__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); }
.why__icon svg { width: 22px; height: 22px; }
.why__item h3 { font-size: 1.15rem; font-weight: 800; margin-top: 1rem; color: #fff; }
.why__item p { font-size: .95rem; color: #a1a1aa; line-height: 1.55; margin-top: .4rem; }
.savings__cta { display: flex; justify-content: center; margin-top: 2.2rem; }
@media (max-width: 599px) { .savings__cta .btn { width: 100%; } }
.savings__stats { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2.5rem; border-top: 1px solid #26262a; }
.savings .marquee { margin-top: 2rem; }

/* =========================================================================
   SECCIONES APILADAS: cada sección queda fija y la siguiente sube por encima
   ========================================================================= */
.stack-on main > section { position: sticky; top: var(--stick, 0px); }
.stack-on main > section + section { border-radius: 28px 28px 0 0; box-shadow: 0 -24px 50px -20px rgba(0,0,0,.45); }
.stack-on main > section::after { content: ""; position: absolute; inset: 0; background: #000; opacity: calc(var(--cover, 0) * .55); pointer-events: none; z-index: 5; border-radius: inherit; }
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .stack-on main > section { transform: scale(calc(1 - var(--cover, 0) * .05)); transform-origin: 50% 0; }
}
.stack-on .hero::after { display: block; background: #000; width: auto; height: auto; top: 0; left: 0; right: 0; bottom: 0; }
.stack-on .hero::after { border-radius: 0; }

/* =========================================================================
   CHATBOT previo a WhatsApp
   ========================================================================= */
.wa-chat { display: none; width: min(420px, calc(100% - 20px)); height: min(640px, calc(100dvh - 20px)); max-height: none; overflow: hidden; background: #0e0e10; }
.wa-chat[open] { display: flex; flex-direction: column; }
.wa-chat .wa-dialog__head { padding: .9rem 1rem; gap: .7rem; flex: none; }
.wa-chat .wa-dialog__close { margin-left: 0; }
.chat__restart { margin-left: auto; width: 38px; height: 38px; border-radius: 10px; background: transparent; border: 1px solid var(--line-2); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.chat__restart svg { width: 17px; height: 17px; }
.chat__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem 1rem .6rem; display: flex; flex-direction: column; gap: .55rem; scroll-behavior: smooth; }
.msg { display: flex; align-items: flex-end; gap: .5rem; max-width: 88%; animation: msgIn .28s ease both; }
.msg--user { align-self: flex-end; justify-content: flex-end; }
.msg__av { width: 28px; height: 28px; border-radius: 50%; background: #000; flex: none; object-fit: cover; }
.msg__bubble { padding: .65rem .9rem; border-radius: 16px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg--bot .msg__bubble { background: #1f1f23; color: #f4f4f5; border-bottom-left-radius: 5px; }
.msg--user .msg__bubble { background: #00ff66; color: #000; font-weight: 600; border-bottom-right-radius: 5px; }
.msg--bot + .msg--bot .msg__av { visibility: hidden; }
.dots { display: inline-flex; gap: 4px; padding: .2rem 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat__chips { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; padding: .2rem 0 .3rem 2.2rem; animation: msgIn .28s ease both; }
.chip { max-width: 100%; text-align: left; font: inherit; font-size: .92rem; font-weight: 600; line-height: 1.35; color: #00ff66; background: rgba(0,255,102,.06); border: 1px solid rgba(0,255,102,.45); border-radius: 14px; padding: .6rem .95rem; cursor: pointer; transition: background .2s, color .2s; text-decoration: none; }
.chip:hover, .chip:focus-visible { background: #00ff66; color: #000; }
.chip--wa { background: #25d366; border-color: #25d366; color: #fff; }
.chat__bar { flex: none; display: flex; gap: .5rem; padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: #141416; }
.chat__input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: #fff; background: #1f1f23; border: 1px solid #2e2e33; border-radius: 12px; padding: .7rem .9rem; }
.chat__input:focus { outline: none; border-color: #00ff66; }
.chat__input:disabled { opacity: .55; }
.chat__send { flex: none; width: 46px; border-radius: 12px; border: 0; background: #00ff66; color: #000; display: grid; place-items: center; cursor: pointer; }
.chat__send svg { width: 19px; height: 19px; }
.chat__send:disabled { background: #2e2e33; color: #71717a; cursor: default; }
@media (max-width: 480px) {
  .wa-chat { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  .wa-chat .wa-dialog__head { padding-top: calc(.9rem + env(safe-area-inset-top, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .msg, .chat__chips { animation: none; } .dots i { animation: none; } }
@media (min-width: 481px) {
  .wa-chat { position: fixed; inset: auto 24px 96px auto; margin: 0; height: min(620px, calc(100dvh - 120px)); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
  .wa-chat::backdrop { background: rgba(0,0,0,.35); }
}

/* CTA al final de cada sección (más puntos de contacto al scrollear en mobile) */
.sec-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }
@media (max-width: 599px) { .sec-cta .btn { width: 100%; justify-content: center; } }
.savings__cta { flex-wrap: wrap; gap: .75rem; }
@media (max-width: 599px) { .savings__cta .btn { width: 100%; justify-content: center; } }

/* =========================================================================
   HERO a pantalla completa + franja verde de herramientas al pie
   ========================================================================= */
.hero { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; padding-block: 0 !important; }
.hero__grid--solo { flex: 1; align-content: center; padding-block: clamp(2rem, 5vh, 4rem); }
.hero-strip {
  position: relative; z-index: 2; flex: none; overflow: hidden;
  background: #00ff66; color: #0a0a0a; padding-block: .55rem;
}
.hero-strip .marquee__track { gap: clamp(2rem, 5vw, 3.5rem); padding-right: clamp(2rem, 5vw, 3.5rem); animation-duration: 45s; }
.hero-strip .tool { color: #0a0a0a; gap: .45rem; opacity: .85; }
.hero-strip .tool svg { width: 18px; height: 18px; }
.hero-strip .tool b { font-size: .8rem; font-weight: 700; }
/* la sección siguiente arranca debajo de la franja: sin redondeo que tape los logos */
.stack-on main > .hero + section { margin-top: 0; }
@media (max-width: 599px) {
  .hero__grid--solo { padding-block: 1.5rem; }
  .hero__grid--solo .hero__sub { font-size: .98rem; }
}
@media (max-height: 700px) and (max-width: 599px) {
  .hero__grid--solo h1 { font-size: 1.6rem; }
  .hero__badge { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-strip .marquee__track { animation: none; } }

/* =========================================================================
   HERO VIVO: red de nodos, notificaciones en vivo, título palabra a palabra
   ========================================================================= */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .75;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,.25), #000 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(0,0,0,.25), #000 75%); }

/* notificación que va cambiando (ilustrativa) */
.live { display: grid; justify-items: center; margin-bottom: 1.1rem; max-width: 100%; }
.live__item {
  grid-area: 1 / 1; display: inline-flex; align-items: center; gap: .55rem; max-width: 100%;
  padding: .38rem .8rem .38rem .38rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: #e4e4e7;
  background: rgba(28,28,32,.72); border: 1px solid rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
  white-space: nowrap;
}
.live__item > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.live__item.is-on { opacity: 1; transform: none; }
.live__item.is-out { opacity: 0; transform: translateY(-10px) scale(.96); }
.live__ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--c) 20%, transparent); position: relative; }
.live__ic::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--c); opacity: 0; animation: ping 2.8s ease-out infinite; }
.live__ic svg { width: 13px; height: 13px; fill: var(--c); }
.live__ic svg.gen { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.live__item em { font-style: normal; font-weight: 500; font-size: .7rem; color: #71717a; flex: none; }
@keyframes ping { 0% { opacity: .8; transform: scale(.8); } 70%, 100% { opacity: 0; transform: scale(1.5); } }

/* título: entra palabra por palabra */
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg);
  animation: wordUp .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * 55ms + .15s); }
@keyframes wordUp { to { opacity: 1; transform: none; } }
.hero__title .shimmer { background-image: linear-gradient(90deg, rgba(0,255,102,.5), rgba(56,189,248,.5));
  background-repeat: no-repeat; background-position: 0 94%; background-size: 0% .07em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__title.is-counted .shimmer { transition: background-size .9s cubic-bezier(.2,.8,.2,1); background-size: 100% .07em; }
.hero__title .shimmer .w { animation-name: wordUp, glow; animation-duration: .7s, 3.2s; animation-iteration-count: 1, infinite;
  animation-delay: calc(var(--i) * 55ms + .15s), 2.2s; animation-fill-mode: forwards, none; animation-direction: normal, alternate; }
@keyframes glow { from { text-shadow: 0 0 0 rgba(0,255,102,0); } to { text-shadow: 0 0 28px rgba(0,255,102,.45); } }
.hero .reveal.d2 { transition-delay: .95s; }
.hero .reveal.d3 { transition-delay: 1.15s; }

/* palabras destacadas de la bajada: se encienden en secuencia */
.hero__sub .hl { animation: hlOn 1.1s ease both; }
.hero__sub .hl:nth-of-type(1) { animation-delay: 1.4s; } .hero__sub .hl:nth-of-type(2) { animation-delay: 1.6s; }
.hero__sub .hl:nth-of-type(3) { animation-delay: 1.8s; } .hero__sub .hl:nth-of-type(4) { animation-delay: 2s; }
.hero__sub .hl:nth-of-type(5) { animation-delay: 2.2s; }
@keyframes hlOn { 0% { filter: brightness(1); } 40% { filter: brightness(1.8) drop-shadow(0 0 10px rgba(0,255,102,.6)); } 100% { filter: brightness(1); } }

/* botón principal: brillo que lo recorre cada tanto */
.btn--shine { position: relative; overflow: hidden; isolation: isolate; }
.btn--shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out 2.4s infinite; }
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }
.btn--shine svg { animation: nudge 4.5s ease-in-out 2.4s infinite; }
@keyframes nudge { 0%, 20%, 40%, 100% { transform: none; } 30% { transform: translateX(4px); } }

/* franja de logos: más rápida en mobile */
@media (max-width: 767px) { .hero-strip .marquee__track { animation-duration: 16s; } }

/* barra fija mobile más compacta */
.m-cta { padding: .45rem 14px calc(.45rem + env(safe-area-inset-bottom, 0px)); }
.m-cta .btn { min-height: 0; padding: .6rem 1rem; font-size: .88rem; gap: .4rem; }
.m-cta .btn svg { width: 15px; height: 15px; }
body.has-mcta .wa-float { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
@media (max-height: 700px) and (max-width: 599px) { .live { margin-bottom: .7rem; } }

@media (prefers-reduced-motion: reduce) {
  .hero__title .w, .hero__sub .hl, .btn--shine::after, .btn--shine svg, .live__ic::after { animation: none !important; opacity: 1; transform: none; filter: none; }
  .hero-net { display: none; }
}

/* Rendimiento en celulares: auroras quietas y sin filtro de desenfoque */
@media (max-width: 767px) {
  .aurora i { filter: none; animation: none; will-change: auto; }
}
/* el contador 0→80 no mueve el resto del título */
.hero__title [data-countup] { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
