/* =====================================================================
   Synaplead · synaplead.com
   Colores, letras y medidas arriba, en :root (brief, sección 7).
   Primero celular (375–430 px); luego tablet y computador.
   ===================================================================== */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/poppins-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/poppins-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/poppins-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --navy-950: #040C1A;
  --navy-900: #061226;
  --navy-800: #0A1A33;
  --navy-700: #10233F;
  --text: #F2F6FA;
  --muted: #8EA3BC;
  --line: rgba(255, 255, 255, .08);
  --cian: #00B4D8;
  --verde: #1ECB9A;
  --grad: linear-gradient(135deg, #00B4D8, #1ECB9A);
  --talk-bg: linear-gradient(180deg, #00B4D8, #1ECB9A); /* "Hablemos" and the light that leads to it */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 16px;
  --bar-h: 64px;
  --pad-y: clamp(88px, 13vh, 168px);
  --r-sheet: 28px;
  --r-card: 20px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --bar-h: 76px; } }
@media (min-width: 1280px) { :root { --gutter: 40px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--navy-900); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cian); outline-offset: 3px; }
::selection { background: var(--cian); color: var(--navy-900); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--navy-900); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .25s var(--ease);
}
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
.label {
  font-family: var(--mono); font-weight: 500; font-size: .75rem; line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.clock-sep:has(+ time:empty) { display: none; }
/* labels that decode start blank: keep their line so nothing below jumps when they appear */
#eyebrow, [data-scramble] { min-height: 1.4em; }

/* English chosen: hide the Spanish copy until main.js swaps it (failsafe after 2.5 s) */
.lang-pending main, .lang-pending .bar, .lang-pending .talk-stack { opacity: 0; animation: show-failsafe 0s 2.5s forwards; }
@keyframes show-failsafe { to { opacity: 1; } }

/* ---------- botones ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 22px 0 26px; border-radius: 999px;
  background: var(--grad); color: var(--navy-900);
  font-weight: 600; font-size: 1rem; line-height: 1.1; text-decoration: none;
  box-shadow: 0 14px 44px -16px rgba(0, 180, 216, .8);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn-dark { background: var(--navy-900); color: var(--text); box-shadow: 0 18px 40px -16px rgba(4, 12, 26, .7); }
/* brillo que sigue al mouse (solo computador) */
.btn-glow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .55), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
/* letras que ruedan (solo computador): cada letra lleva su copia debajo */
.roll { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; vertical-align: middle; }
.roll .rc { display: inline-block; white-space: pre; text-shadow: 0 1.3em 0 currentColor; transition: transform .6s var(--ease); transition-delay: calc(var(--i) * 14ms); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover svg { transform: translateX(3px); }
  .btn-glow:hover::before { opacity: 1; }
  a:hover > .roll .rc, a:focus-visible > .roll .rc { transform: translateY(-1.3em); }
}

/* ---------- barra superior ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--bar-h);
  padding: 0 max(var(--gutter), (100% - 1280px) / 2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  pointer-events: none;
}
/* the three pills stay hidden over the hero and come in once you start scrolling (Leo, 2026-10-21) */
.bar > * {
  pointer-events: auto;
  opacity: 0; transform: translateY(-10px); visibility: hidden;
  transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s;
}
.bar.is-shown > *, html:not(.js) .bar > * { opacity: 1; transform: none; visibility: visible; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.bar.is-shown > .bar-right { transition-delay: .08s; }
.bar-brand {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 11px;
  border-radius: 999px; background: rgba(10, 26, 51, .78); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: .9375rem; letter-spacing: -.01em;
}
.bar-icon { width: 21px; height: 21px; }
@media (max-width: 399px) {
  /* narrow phones: the S alone, so the three pills fit */
  .bar-brand { padding: 0 9px; }
  .bar-name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.bar-right { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(10, 26, 51, .78); border: 1px solid var(--line); }
.lang button {
  min-width: 40px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px;
  background: none; color: var(--muted); cursor: pointer;
  font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .1em;
  transition: color .2s, background-color .2s;
}
.lang button[aria-pressed="true"] { background: var(--navy-700); color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 18px;
  border-radius: 999px; background: var(--text); color: var(--navy-900);
  font-weight: 600; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.pill-node { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

/* ---------- 1 · portada ---------- */
.hero-stack { position: relative; }
.hero {
  position: sticky; top: var(--hero-top, 0px); z-index: 0;
  isolation: isolate; overflow: hidden; display: flex;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--bar-h) + clamp(8px, 2.5vh, 32px)) var(--gutter) clamp(16px, 3vh, 28px);
}
html:not(.js) .hero { position: relative; }
.hero-inner { position: relative; width: 100%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob-c {
  width: 120vmax; height: 120vmax; top: -70vmax; right: -48vmax;
  background: radial-gradient(closest-side, rgba(0, 180, 216, .2), rgba(0, 180, 216, .07) 45%, rgba(0, 180, 216, 0));
  animation: drift-c 26s ease-in-out infinite alternate;
}
.blob-g {
  width: 110vmax; height: 110vmax; bottom: -72vmax; left: -52vmax;
  background: radial-gradient(closest-side, rgba(30, 203, 154, .16), rgba(30, 203, 154, .05) 45%, rgba(30, 203, 154, 0));
  animation: drift-g 30s ease-in-out infinite alternate;
}
@keyframes drift-c { to { transform: translate3d(-14vmax, 10vmax, 0) scale(1.12); } }
@keyframes drift-g { to { transform: translate3d(16vmax, -12vmax, 0) scale(.92); } }
.hero.is-hidden .blob { animation-play-state: paused; }
.grain {
  position: absolute; inset: 0; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.6 0 0 0 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 200px 200px;
}
.plus { position: absolute; width: 11px; height: 11px; color: rgba(242, 246, 250, .3); pointer-events: none; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; }
.plus::before { left: 5px; top: 0; width: 1px; height: 100%; }
.plus::after { top: 5px; left: 0; width: 100%; height: 1px; }
.plus-tl, .plus-bl { left: calc(var(--gutter) / 2 - 5px); }
.plus-tr, .plus-br { right: calc(var(--gutter) / 2 - 5px); }
.plus-tl, .plus-tr { top: calc(var(--bar-h) + 6px); }
.plus-bl, .plus-br { bottom: 10px; }

.logo { display: block; height: auto; overflow: visible; width: min(100%, 980px); margin: clamp(16px, 3vh, 40px) 0 clamp(26px, 4vh, 56px) -1.4%; }
@media (min-width: 768px) {
  /* computador: la portada va centrada y el logo grande (solo se achica en ventanas muy bajas) */
  .hero-inner { align-items: center; text-align: center; }
  .logo { width: clamp(560px, calc((100svh - 200px) * 3.4), min(100%, 1120px)); margin-inline: auto; }
  .hero-copy { align-items: center; }
  .hero-side { align-items: center; }
  .lead { margin-inline: auto; }
  .ctas { justify-content: center; }
  .hero-foot { align-self: stretch; text-align: left; }
}
/* the inline opening script shows it; if that script never runs, it shows after 2.5 s */
.intro-run .logo { visibility: hidden; animation: logo-failsafe 0s 2.5s forwards; }
.logo-live .logo { visibility: visible; animation: none; }
@keyframes logo-failsafe { to { visibility: visible; } }

.hero-copy { display: flex; flex-direction: column; }
.hero-title { font-weight: 600; font-size: clamp(2.5rem, min(6.2vw, 10vh), 6.5rem); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.hero-side { display: flex; flex-direction: column; gap: 24px; margin-top: clamp(18px, 3vh, 32px); }
.lead { max-width: 34em; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.more { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 500; font-size: .9375rem; text-decoration: none; }
.more span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.more svg { width: 12px; height: 12px; }
@media (hover: hover) and (pointer: fine) { .more:hover span { background-size: 0 1px; background-position: 100% 100%; } }
.hero-foot { margin-top: auto; padding-top: clamp(20px, 4vh, 44px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-foot p { white-space: nowrap; }
.scroll-hint { display: inline-flex; align-items: center; gap: 8px; }
.scroll-hint svg { width: 11px; height: 11px; }
@media (max-width: 479px) {
  /* en el celular, la flecha sola (el texto queda para lectores de pantalla) */
  .scroll-hint { width: 34px; height: 34px; justify-content: center; border: 1px solid rgba(142, 163, 188, .3); border-radius: 50%; }
  .scroll-hint .t { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* titulares: las palabras suben desde una máscara con un leve giro */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
.split .wi { display: inline-block; transform-origin: 0 100%; }
.motion .split:not(.hero-title) .wi { transform: translateY(108%) rotate(8deg); transition: transform 1.2s var(--ease) var(--d, 0ms); }
.motion .split.is-in .wi { transform: none; }

/* apertura de la portada: el logo es el protagonista (unos 8,5 s); los textos salen
   cuando se llena su nodo final (Leo, 2026-10-21). Un toque o el scroll lo completan todo. */
.intro-run .hero-bg { animation: fade-in 3s ease-out both; }
.intro-run .hero-title .wi { animation: word-rise 2.2s var(--ease) both; animation-delay: var(--d, 8s); }
.intro-run .rise { animation: fade-up 2s var(--ease) both; animation-delay: var(--d, 8.6s); }
.intro-run .plus { animation: fade-in 1.6s ease-out 9.4s both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes word-rise { from { transform: translateY(108%) rotate(8deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } }

/* ---------- secciones (comunes) ---------- */
.section-head { max-width: 920px; }
.h2 { margin-top: 18px; font-weight: 600; font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.intro { margin-top: 20px; max-width: 34em; color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }

/* ---------- 2 · por qué (hoja que sube sobre la portada) ---------- */
.sheet {
  position: relative; z-index: 2;
  background: var(--navy-800);
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: 0 -30px 60px -24px rgba(4, 12, 26, .65);
}
.why { padding: var(--pad-y) 0 calc(var(--pad-y) * .9); }
.manifesto {
  margin-top: 26px; max-width: 21em;
  font-weight: 500; font-size: clamp(1.75rem, 4.3vw, 3.6rem); line-height: 1.16; letter-spacing: -.028em;
}
.manifesto em, .manifesto .mw.em.is-lit {
  font-style: normal;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.motion .manifesto .mw { color: rgba(242, 246, 250, .16); transition: color .4s linear; }
.motion .manifesto .mw.is-lit { color: var(--text); }
.motion .manifesto .mw.em.is-lit { color: transparent; }
.motion .manifesto .mw.em:not(.is-lit) { background: none; color: rgba(242, 246, 250, .16); }

.synapse { margin: clamp(64px, 11vh, 132px) auto 0; max-width: 520px; text-align: center; }
.synapse-art { display: block; width: min(100%, 360px); height: auto; margin: 0 auto 18px; overflow: visible; }
.synapse figcaption { color: var(--muted); }
.synapse strong { color: var(--text); font-weight: 600; }
.syn-glow, .syn-spark { opacity: 0; }

/* ---------- 3 · lo que hacemos (tarjetas apiladas) ---------- */
.what { position: relative; padding: var(--pad-y) 0 calc(var(--pad-y) * .7); background: var(--navy-900); }
.cards { margin-top: clamp(40px, 7vh, 80px); }
.card {
  position: sticky; top: calc(var(--bar-h) + 10px + var(--i, 0) * 12px);
  display: grid; gap: 24px; padding: 22px;
  margin-bottom: 7vh;
  border-radius: var(--r-card); background: var(--navy-800); border: 1px solid var(--line);
  transform-origin: 50% 0;
  box-shadow: 0 -18px 50px -20px rgba(4, 12, 26, .8);
}
.card:last-child { margin-bottom: 0; }
.card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--navy-950); opacity: var(--dim, 0); pointer-events: none; }
.card-title { margin-top: 12px; font-weight: 600; font-size: clamp(1.625rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.025em; }
.card-text > p:last-child { margin-top: 12px; color: var(--muted); }
html:not(.js) .card, .no-stack .card { position: relative; top: auto; }
@media (min-width: 960px) {
  .card {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 56px;
    padding: 52px; min-height: min(620px, calc(100svh - var(--bar-h) - 56px));
  }
}

/* maquetas (todas dicen "Ejemplo") */
.mock { position: relative; overflow: hidden; border-radius: 16px; background: var(--navy-900); border: 1px solid var(--line); font-size: .6875rem; line-height: 1.35; }
.mock-tag {
  position: absolute; top: 9px; right: 10px; z-index: 3;
  padding: 4px 8px; border-radius: 999px; background: rgba(4, 12, 26, .85); border: 1px solid var(--line);
  font-family: var(--mono); font-weight: 500; font-size: .5625rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

/* sitio web + chat */
.mock-web { min-height: 330px; }
@media (min-width: 960px) { .mock-web { min-height: 0; aspect-ratio: 16 / 11; } }
.mw-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--navy-800); }
.mw-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mw-url { margin-left: 10px; width: 38%; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.mw-page { display: grid; gap: 9px; align-content: start; padding: 16px; }
.sk { display: block; height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.sk-nav { width: 32%; height: 7px; margin-bottom: 8px; }
.sk-h1 { width: 64%; height: 15px; }
.sk-h1.short { width: 42%; }
.sk-p { width: 56%; }
.sk-p.short { width: 38%; }
.sk-btn { width: 26%; height: 20px; margin-top: 4px; border-radius: 999px; background: linear-gradient(135deg, rgba(0, 180, 216, .45), rgba(30, 203, 154, .45)); }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; width: 56%; margin-top: 8px; }
.sk-grid b { height: 38px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.mw-chat {
  position: absolute; right: 12px; bottom: 12px; width: min(76%, 280px);
  border-radius: 14px; background: var(--navy-700); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .65); overflow: hidden;
}
.mw-head { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: linear-gradient(135deg, rgba(0, 180, 216, .24), rgba(30, 203, 154, .18)); }
.mw-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); }
.mw-name { display: grid; font-weight: 600; font-size: .75rem; line-height: 1.2; }
.mw-name small { font-weight: 400; font-size: .5625rem; color: var(--verde); }
.mw-msgs { display: grid; gap: 6px; padding: 10px 10px 2px; }
.msg { max-width: 86%; padding: 6px 9px; border-radius: 12px; }
.msg.in { justify-self: start; background: rgba(255, 255, 255, .09); border-bottom-left-radius: 4px; }
.msg.out { justify-self: end; background: var(--grad); color: var(--navy-900); font-weight: 500; border-bottom-right-radius: 4px; }
.mw-input { display: flex; align-items: center; justify-content: space-between; margin: 8px 10px 10px; padding: 7px 7px 7px 11px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: .625rem; color: var(--muted); }
.mw-input i { width: 15px; height: 15px; border-radius: 50%; background: var(--grad); }

/* CRM */
.mock-crm { padding: 14px; }
.mc-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; padding-right: 74px; font-size: .8125rem; font-weight: 600; }
.mc-search { width: 40%; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.mc-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mc-col { display: grid; gap: 6px; align-content: start; min-height: 190px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); }
.mc-col-title { padding: 2px 2px 4px; font-family: var(--mono); font-weight: 500; font-size: .5rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mc-card { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 7px; border-radius: 9px; background: var(--navy-700); border: 1px solid rgba(255, 255, 255, .06); font-weight: 500; line-height: 1.2; }
.mc-card > span:last-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mc-card small { display: block; overflow: hidden; text-overflow: ellipsis; font-weight: 400; font-size: .5rem; color: var(--muted); }
.mc-moving { z-index: 3; }
.mock-crm .mc-card { min-width: 0; }
@media (max-width: 479px) {
  /* narrow phones: three columns and no avatars, so the names fit */
  .mc-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mock-crm .mc-col-last, .mock-crm .mc-av { display: none; }
}
.mc-av { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); color: var(--navy-900); font-size: .5625rem; font-weight: 600; }
.mc-slot { min-height: 40px; border-radius: 9px; border: 1px dashed rgba(255, 255, 255, .12); }
@media (min-width: 960px) {
  .mock-crm { padding: 18px; font-size: .75rem; }
  .mc-col { min-height: 260px; }
  .mc-col-title { font-size: .5625rem; }
}

/* app */
.mock-app { display: grid; justify-items: center; align-content: end; min-height: 320px; padding-top: 34px; background: radial-gradient(120% 80% at 50% 0%, rgba(0, 180, 216, .2), transparent 62%), var(--navy-900); }
@media (min-width: 960px) { .mock-app { min-height: 420px; } }
.phone {
  position: relative; width: min(80%, 250px); height: 300px; padding: 40px 12px 0;
  border: 6px solid #1A2B47; border-bottom: 0; border-radius: 36px 36px 0 0;
  background: linear-gradient(165deg, #12406E, #0B2240 55%, #082A33); text-align: center;
}
@media (min-width: 960px) { .phone { height: 360px; } }
.phone-island { position: absolute; top: 10px; left: 50%; width: 30%; height: 15px; transform: translateX(-50%); border-radius: 999px; background: #02060D; }
.phone-time { font-size: 3rem; font-weight: 500; line-height: 1; letter-spacing: -.02em; }
.notif {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 8px;
  margin-top: 22px; padding: 10px; border-radius: 16px;
  background: rgba(242, 246, 250, .16); border: 1px solid rgba(255, 255, 255, .12);
  text-align: left; line-height: 1.3; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5);
}
.notif-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--navy-900); color: var(--text); }
.notif-icon svg { width: 15px; height: 15px; }
.notif-body b { display: block; font-weight: 600; }
.notif-time { font-size: .5625rem; color: rgba(242, 246, 250, .65); }

/* las maquetas se animan cuando su tarjeta queda al frente */
.motion .card .msg { opacity: 0; transform: translateY(8px) scale(.97); transform-origin: 0 100%; }
.motion .card .msg.out { transform-origin: 100% 100%; }
.motion .card.is-active .msg { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: calc(.3s + var(--i) * .85s); }
.motion .card .mc-moving { transition: transform 1.1s var(--ease), box-shadow .6s; }
/* --dx/--dy: measured in main.js from the card to the empty slot (right at any size) */
.motion .card.is-active .mc-moving { transform: translate(var(--dx, calc(100% + 24px)), var(--dy, 0px)); transition-delay: 1s; box-shadow: 0 0 0 1px rgba(30, 203, 154, .7), 0 10px 24px -8px rgba(30, 203, 154, .5); }
.motion .card .notif { opacity: 0; transform: translateY(-26px) scale(.94); }
.motion .card.is-active .notif { opacity: 1; transform: none; transition: transform .9s var(--ease) .6s, opacity .5s ease .6s; }

/* ---------- 4 · franja en movimiento ---------- */
.marquee { position: relative; overflow: hidden; padding: clamp(26px, 5vh, 44px) 0; background: var(--navy-900); border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; }
.motion .marquee-track { animation: marquee 42s linear infinite; }
.marquee-group { display: flex; flex: none; align-items: center; }
.marquee-group span {
  padding: 0 clamp(18px, 2.4vw, 34px); white-space: nowrap;
  font-family: var(--mono); font-weight: 500; font-size: clamp(1.25rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -.01em; text-transform: uppercase;
}
.marquee-group i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); }
.marquee-group i:nth-of-type(even) { background: none; border: 2.5px solid var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 5 · bajo pedido ---------- */
.extra { position: relative; padding: var(--pad-y) 0; background: var(--navy-900); }
.acc { margin-top: clamp(40px, 6vh, 72px); border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { font: inherit; }
.acc-btn {
  display: grid; grid-template-columns: 2.4em 1fr auto; align-items: center; gap: clamp(10px, 2.4vw, 32px);
  width: 100%; padding: clamp(22px, 3.4vh, 34px) 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.acc-num { font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .08em; color: var(--muted); }
.acc-title { font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 2.125rem); line-height: 1.15; letter-spacing: -.02em; }
.acc-icon { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); transition: background-color .35s, border-color .35s, color .35s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .45s var(--ease); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { background: var(--grad); border-color: transparent; color: var(--navy-900); }
.acc-btn[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (hover: hover) and (pointer: fine) { .acc-btn:hover .acc-icon { border-color: var(--cian); } }
.acc-panel { display: grid; grid-template-rows: 1fr; }
.acc-ready .acc-panel { transition: grid-template-rows .6s var(--ease); } /* not while they close on load */
.acc-panel.is-closed { grid-template-rows: 0fr; }
.acc-inner { min-height: 0; overflow: hidden; padding-left: calc(2.4em + clamp(10px, 2.4vw, 32px)); }
.acc-panel.is-closed .acc-inner { visibility: hidden; transition: visibility 0s .6s; }
.acc-inner p { max-width: 36em; color: var(--muted); }
.acc-link {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 30px; padding: 4px 0;
  font-weight: 600; text-decoration: none;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 6 · cómo trabajamos ---------- */
.how { position: relative; padding: var(--pad-y) 0 calc(var(--pad-y) * 1.1); background: var(--navy-900); }
.steps { display: grid; margin-top: clamp(40px, 7vh, 80px); }
.step { display: grid; align-content: start; gap: 14px; padding: 28px 0 34px; border-top: 1px solid var(--line); }
.step-num { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: .8125rem; letter-spacing: .1em; color: var(--muted); }
.step-num::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--text); transition: background-color .6s, border-color .6s; }
.step-title { font-weight: 600; font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; }
.step p { max-width: 30em; color: var(--muted); }
.motion .step-title { filter: blur(14px); opacity: .12; transition: filter 1.3s var(--ease), opacity 1.3s var(--ease); }
.motion .step.is-in .step-title { filter: none; opacity: 1; }
.motion .step.is-in .step-num::before, html:not(.motion) .step-num::before { background: var(--verde); border-color: var(--verde); }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 30px 40px 0 0; }
}

/* ---------- 7 · el recorrido ---------- */
/* the journey sits above "Hablemos": with the 3D tunnel, "Hablemos" is pulled up under the
   tunnel's last screen and shows up when the light fills it (no empty screen in between) */
.journey { position: relative; z-index: 2; }
.journey-head { position: relative; padding: var(--pad-y) 0 calc(var(--pad-y) * 1.5); background: linear-gradient(var(--navy-900), var(--navy-950) 45%); }
.giant {
  margin-top: 14px; font-weight: 600; font-size: clamp(3.4rem, 11.5vw, 11.5rem); line-height: .9; letter-spacing: -.045em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--text) 30%, rgba(242, 246, 250, .45)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.journey-intro { margin-top: clamp(20px, 3.4vh, 36px); max-width: 22em; font-size: clamp(1.25rem, 2.4vw, 1.875rem); line-height: 1.35; color: var(--muted); }

/* 100lvh: when the phone's address bar hides, the pinned tunnel still covers the whole screen */
.tunnel { position: relative; height: 100vh; height: 100lvh; overflow: hidden; background: var(--navy-950); pointer-events: none; }
.tunnel-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.tunnel-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 40%, rgba(4, 12, 26, .7) 100%); }
/* the phrases sit above the centre, where the node travels */
.tunnel-phrases { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gutter) 24vh; pointer-events: none; }
.tunnel-phrases li {
  grid-area: 1 / 1; max-width: 15em; text-align: center; text-wrap: balance;
  font-weight: 600; font-size: clamp(1.9rem, 4.8vw, 4.2rem); line-height: 1.08; letter-spacing: -.03em;
  text-shadow: 0 2px 30px rgba(4, 12, 26, .85);
  opacity: 0;
}
.tunnel-phrases .pw { display: inline-block; will-change: transform, opacity; }
/* the last phrase: "Un cliente más." on its own line, bigger, in the gradient */
.tunnel-phrases li > strong { display: block; margin-top: .12em; font-weight: 600; font-size: 1.4em; line-height: 1.05; transform-origin: 50% 60%; text-shadow: none; }
.tunnel-phrases li > strong:not(.pw-line) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tunnel-phrases .pw.em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 18px rgba(30, 203, 154, .45)); }
.burst {
  position: absolute; left: 50%; top: 50%; width: 40vmax; height: 40vmax; margin: -20vmax 0 0 -20vmax; border-radius: 50%;
  border: 3px solid rgba(236, 255, 250, .9); box-shadow: 0 0 40px rgba(30, 203, 154, .55), inset 0 0 40px rgba(0, 180, 216, .45);
  opacity: 0; transform: scale(0);
}
/* the way out: a glow from the node (--g) and then the gradient (--f), which continues
   seamlessly into "Hablemos" (both are vertical: cyan → middle → green) */
.tunnel-flash { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tunnel-flash::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 100vmax; height: 100vmax; margin: -50vmax 0 0 -50vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(236, 255, 250, .95), rgba(30, 203, 154, .9) 30%, rgba(0, 180, 216, .6) 62%, rgba(0, 180, 216, 0));
  transform: scale(var(--g, 0));
}
.tunnel-flash::after { content: ""; position: absolute; inset: 0; background: var(--talk-bg); opacity: var(--f, 0); }
/* sin WebGL, sin JavaScript o con "reducir movimiento": las frases en columna, sin vuelo */
html:not(.motion) .tunnel, .tunnel.is-static { height: auto; overflow: visible; padding: 0 0 var(--pad-y); }
html:not(.motion) .tunnel :is(.tunnel-canvas, .tunnel-vignette, .tunnel-flash), .tunnel.is-static :is(.tunnel-canvas, .tunnel-vignette, .tunnel-flash) { display: none; }
html:not(.motion) .tunnel-phrases, .tunnel.is-static .tunnel-phrases {
  position: static; display: grid; gap: clamp(40px, 9vh, 104px); justify-items: start; place-items: start;
  width: min(100% - 2 * var(--gutter), 1280px); margin: 0 auto; padding: 0;
}
html:not(.motion) .tunnel-phrases li, .tunnel.is-static .tunnel-phrases li { grid-area: auto; opacity: 1; text-align: left; max-width: 18em; }

/* ---------- 8 · hablemos ---------- */
.talk-stack { position: relative; }
.tunnel-live .talk-stack { margin-top: -100vh; margin-top: -100lvh; }
.talk {
  position: sticky; top: var(--talk-top, 0px); z-index: 0;
  display: flex; align-items: center; min-height: 100vh; min-height: 100lvh;
  padding: calc(var(--bar-h) + 48px) 0 96px;
  background: var(--talk-bg); color: var(--navy-900);
}
html:not(.motion) .talk { position: relative; }
.talk-title { font-weight: 600; font-size: clamp(4.2rem, 16vw, 14.5rem); line-height: .92; letter-spacing: -.055em; }
.talk-text { margin-top: clamp(20px, 3vh, 32px); max-width: 24em; font-weight: 500; font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.45; color: rgba(6, 18, 38, .84); }
.talk-cta { display: flex; align-items: center; gap: 22px; margin-top: clamp(28px, 4.5vh, 44px); }
.talk-node { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy-900); }
.talk-node::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--navy-900); opacity: 0; }
.motion .talk.is-in .talk-node { animation: node-pop .9s var(--ease) both; }
.motion .talk.is-in .talk-node::after { animation: node-pulse 2.6s var(--ease) .5s infinite; }
@keyframes node-pop { from { transform: scale(0); } 60% { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes node-pulse { from { transform: scale(1); opacity: .75; } to { transform: scale(3); opacity: 0; } }
.talk-phone { margin-top: 18px; font-family: var(--mono); font-weight: 500; font-size: .875rem; letter-spacing: .08em; color: rgba(6, 18, 38, .72); }

/* ---------- 9 · pie (hoja que sube) ---------- */
.foot {
  position: relative; z-index: 2; overflow: hidden;
  padding-top: clamp(56px, 9vh, 96px);
  background: var(--navy-950); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  box-shadow: 0 -30px 60px -24px rgba(4, 12, 26, .55);
}
.foot-grid { display: grid; gap: 34px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.foot-place { font-weight: 600; font-size: 1.125rem; }
.foot-col .label { margin-top: 8px; }
.foot-col .label:first-child { margin-top: 0; }
.foot-wa { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.foot-wa:hover { text-decoration: underline; }
.foot-mail { margin-top: 6px; font-size: .875rem; color: var(--muted); }
.foot-end { display: grid; justify-items: start; gap: 14px; }
.foot-link { color: var(--muted); font-size: .9375rem; }
.foot-copy { font-size: .875rem; color: var(--muted); }
.foot-giant { width: min(100% - 2 * var(--gutter), 1280px); margin: clamp(48px, 9vh, 104px) auto 0; aspect-ratio: 2983 / 790; overflow: hidden; }
.foot-giant svg { display: block; width: 100%; height: auto; transform: translateY(var(--rise, 0%)); }

/* ---------- el hilo ---------- */
.thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread-node {
  position: fixed; left: 0; top: 0; z-index: 55; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  pointer-events: none; opacity: 0; transition: opacity .35s; will-change: transform;
}
.thread-node.is-on { opacity: 1; }
.thread-node::before { content: ""; position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 180, 216, .5), rgba(0, 180, 216, 0)); }
.thread-node i { position: absolute; inset: 0; border-radius: 50%; border: 3.5px solid var(--text); box-shadow: 0 0 12px 1px rgba(0, 180, 216, .7); }
@media (max-width: 767px) {
  .thread-node { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .thread-node::before { inset: -12px; }
  .thread-node i { border-width: 2.5px; }
}

/* ---------- reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .blob { animation: none; }
  html:not(.force-motion) .talk-node::after { animation: none; }
}
