/* ==========================================================================
   ImpulsoWeb
   Paleta: azul marino (header, footer, botón principal), dorado sólo en
   detalles, fondo hueso, blanco para superficies, gris carbón para texto.
   Forma: controles en píldora, contenedores 14px, capturas 10px.
   ========================================================================== */
/* Fuentes alojadas en el sitio (sin pedir nada a Google al cargar) */
@font-face { font-family: "Geist"; src: url("assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
/* Arial ajustada a las medidas de Geist: evita que el texto salte cuando carga la fuente */
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"); size-adjust: 103.77%; ascent-override: 96.84%; descent-override: 28.43%; line-gap-override: 0%; }

:root {
  --navy: #1B2A4A;
  --navy-2: #2A3F63;
  --gold: #C9A876;
  --gold-soft: #E8DCC4;

  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #1B2A4A;          /* títulos */
  --text: #2E2E2E;         /* cuerpo */
  --muted: #5B6172;
  --line: rgba(27, 42, 74, .12);
  --line-strong: rgba(27, 42, 74, .22);
  --shadow: 0 1px 2px rgba(27, 42, 74, .06), 0 24px 48px -24px rgba(27, 42, 74, .28);
  --btn-bg: var(--navy);
  --btn-text: #FAF7F2;
  --btn-hover: var(--navy-2);

  --font: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --r-box: 14px;
  --r-shot: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1628;
    --surface: #16223B;
    --ink: #F3EFE8;
    --text: #D9D5CE;
    --muted: #9EA7B8;
    --line: rgba(243, 239, 232, .10);
    --line-strong: rgba(243, 239, 232, .2);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 48px -24px rgba(0, 0, 0, .6);
    --btn-bg: var(--gold);
    --btn-text: #14203A;
    --btn-hover: #D6BA8F;
  }
}
@media (prefers-color-scheme: dark) {
  .shot-phone-side { border-color: #2F4670; }
}

/* ----- Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }  /* sin JS: salto suave nativo */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
strong { color: var(--ink); font-weight: 600; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--navy); color: #FAF7F2; padding: .6rem 1rem; border-radius: 999px; }
.skip-link:focus { top: .75rem; }

/* ----- Botones ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 50px; padding: 0 1.4rem; border-radius: 999px; white-space: nowrap;
  font: 500 .975rem/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { height: 40px; padding: 0 1rem; font-size: .9rem; }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-ghost svg { transition: transform .25s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D6BA8F; }
.btn-gold-line { color: #FAF7F2; border-color: rgba(201, 168, 118, .7); }
.btn-gold-line:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--ink);
  text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 100% 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 3px;
  transition: background-size .3s var(--ease);
}
.text-link svg { width: 16px; height: 16px; }
.text-link:hover { background-size: 100% 2px; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--navy); color: #FAF7F2; transition: box-shadow .3s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 1px 0 rgba(201, 168, 118, .28), 0 12px 30px -12px rgba(8, 14, 28, .45); }
.header-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: #FAF7F2; }
.brand-mark { position: relative; width: 20px; height: 20px; border: 1.5px solid var(--gold); border-radius: 5px; }
.brand-mark::after { content: ""; position: absolute; right: 3px; top: 3px; width: 7px; height: 7px; background: var(--gold); border-radius: 2px; }
.brand-word { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.03em; }
.brand-word span { color: var(--gold); }

.nav { position: relative; display: flex; align-items: center; gap: 1.75rem; }
/* Indicador dorado que se desliza hasta la sección actual */
.nav-indicator {
  position: absolute; left: 0; top: 0; height: 2px; width: 0; border-radius: 2px; background: var(--gold);
  opacity: 0; pointer-events: none;
  transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s var(--ease);
}
.nav a.is-current:not(.btn) { color: #FAF7F2; }
.nav a:not(.btn) { font-size: .92rem; color: rgba(250, 247, 242, .78); text-decoration: none; transition: color .2s; }
.nav a:not(.btn):hover { color: #FAF7F2; }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(250, 247, 242, .25); background: transparent; color: #FAF7F2; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

/* ----- Hero ----- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.hero-title {
  font-size: clamp(2.5rem, 6.2vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; font-weight: 600;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }

/* Palabra que rota: todas ocupan la misma celda, así el ancho no salta */
.rotator { display: inline-grid; vertical-align: top; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rotator > span { grid-area: 1 / 1; color: var(--gold-text, var(--ink)); transform: translateY(105%); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.rotator > span.is-active { transform: none; opacity: 1; }
.rotator > span.is-leaving { transform: translateY(-105%); opacity: 0; }
.rotator > span::after { content: ""; display: block; height: .07em; margin-top: -.02em; background: var(--gold); width: calc(100% - .35em); border-radius: 2px; }

.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: end; }
.hero-sub { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Tira de pantallas reales (única marquesina de la página) */
.work-strip {
  display: block; margin-top: clamp(2.75rem, 5vw, 4rem); text-decoration: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.work-strip-track { display: flex; width: max-content; will-change: transform; }
.hero.is-offscreen .work-strip-track { animation-play-state: paused !important; }
.work-strip ul { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0 .5rem; }
.work-strip li {
  width: clamp(220px, 24vw, 340px); aspect-ratio: 16 / 10; flex: none; border-radius: var(--r-shot); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: -1px;
}
.work-strip picture { display: block; width: 100%; height: 100%; }
.work-strip img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-strip:focus-visible { outline-offset: -4px; }

.shot { border-radius: var(--r-shot); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: -1px; }
.shot picture { display: block; }
.shot img { width: 100%; }

/* ----- Secciones ----- */
.section { padding: clamp(5rem, 10vw, 8.5rem) 0; }
.section-title { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 20ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-sub { color: var(--muted); max-width: 44ch; font-size: 1.05rem; }

/* Trabajos: caso con captura grande + captura superpuesta */
.work { border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: minmax(0, 7.6fr) minmax(0, 4.4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.case + .case { margin-top: clamp(5rem, 10vw, 8rem); }
.case-flip { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); }
.case-flip .case-media { order: 2; }
.case-media { position: relative; }
.case-media .shot-main { aspect-ratio: 16 / 10; }
.case-media .shot-main img { height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.case:hover .shot-main img { transform: scale(1.015); }
.case-media-video { padding-right: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.case-media-video .shot-phone-side { position: absolute; right: 0; bottom: 0; width: 26%; border-radius: 18px; border: 5px solid var(--navy); outline: none; }

/* Video real de la portada de Sabor L28 */
.shot-video { background: #0b0b0b; }
.case-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.case-link:hover .case-video { transform: scale(1.02); }
/* El caso publicado es un link: imagen y título llevan al sitio */
.case-link { display: block; text-decoration: none; border-radius: var(--r-shot); }
.case-link .shot { transition: box-shadow .4s var(--ease); }
.case-link:hover .shot-main { box-shadow: 0 1px 2px rgba(27, 42, 74, .08), 0 32px 60px -24px rgba(27, 42, 74, .42); }
.case-link:hover .shot-main img { transform: scale(1.02); }
.case-link:focus-visible { outline-offset: 6px; }
.case-title-link { color: inherit; text-decoration: none; }
.case-title-link:hover { color: var(--navy-2); }
.case-info h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; }
.case-kind { font-family: var(--mono); font-size: .8rem; color: var(--muted); margin: .4rem 0 1.25rem; }
.case-info > p:not(.case-kind) { font-size: 1.05rem; max-width: 36ch; }
.case-list { list-style: none; padding: 0; margin: 1.5rem 0 1.75rem; display: grid; gap: .6rem; }
.case-list li { display: flex; align-items: center; gap: .6rem; font-size: .97rem; }
.case-list svg, .plan li svg { width: 16px; height: 16px; flex: none; color: var(--gold); }

/* Servicios: bento con variación */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.tile { position: relative; border-radius: var(--r-box); padding: clamp(1.5rem, 2.5vw, 2.25rem); background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .6rem; transition: border-color .3s var(--ease); }
.tile:hover { border-color: var(--gold); }
.tile h3 { font-size: 1.3rem; letter-spacing: -0.025em; }
.tile p { color: var(--muted); max-width: 42ch; }
.tile-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); border: 1px solid var(--line-strong); }
.tile-icon svg { width: 22px; height: 22px; }
.tile .tile-icon { margin-bottom: 2.5rem; }
.tile-navy { grid-row: span 2; background: var(--navy); border-color: var(--navy); min-height: 22rem; }
.tile-navy h3 { color: #FAF7F2; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.tile-navy p { color: rgba(250, 247, 242, .75); }
.tile-navy .tile-icon { color: var(--gold); border-color: rgba(201, 168, 118, .5); margin-bottom: auto; }
.tile-tint { background: var(--gold-soft); border-color: transparent; }
.tile-tint p { color: #4A4A4A; }
.tile-tint h3, .tile-tint .tile-icon { color: var(--navy); }
.tile-tint .tile-icon { border-color: rgba(27, 42, 74, .25); }
.tile-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 1.5rem; }
.tile-wide .tile-icon { margin: 0; flex: none; }

/* Planes: tabla comparativa sin tarjetas */
.plans-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.plans-head .section-title { margin-bottom: 0; }
.plan-table { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.plan { padding: 2rem clamp(1rem, 2vw, 1.75rem) 0 0; }
.plan + .plan { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--line); }
.plan h3 { font-size: 1.25rem; letter-spacing: -0.025em; margin-bottom: .6rem; }
.plan p { color: var(--muted); font-size: .95rem; min-height: 4.8em; }
.plan ul { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: .55rem; }
.plan li { display: flex; gap: .55rem; align-items: center; font-size: .94rem; }
.plan-top { position: relative; }
.plan-top::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 3px; background: var(--gold); }

/* Proceso: línea de tiempo horizontal */
.process { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; top: 0; left: 0; height: 1px; }
.steps::before { right: 0; background: var(--line-strong); }
.steps::after { width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.steps.is-visible::after, html:not(.js) .steps::after { transform: scaleX(1); }
.steps li { padding-top: 1.75rem; }
.steps h3 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .96rem; }

/* Sobre mí: declaración editorial */
.about { background: var(--surface); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.about-statement { font-size: clamp(1.75rem, 3.4vw, 2.9rem); line-height: 1.12; letter-spacing: -0.035em; color: var(--ink); font-weight: 500; text-wrap: balance; }
.about-statement em { font-style: normal; color: var(--muted); }
.about-side p { color: var(--muted); margin-bottom: 1.5rem; }
.tools { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tools li { font-family: var(--mono); font-size: .78rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-grid .section-title { position: sticky; top: calc(var(--header-h) + 2rem); margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.35rem 0; font-size: 1.12rem; font-weight: 500; color: var(--ink); letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 20px; height: 20px; flex: none; color: var(--gold); transition: transform .3s var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 3rem 1.5rem 0; max-width: 62ch; }

/* ----- Footer + cierre ----- */
.site-footer { background: var(--navy); color: rgba(250, 247, 242, .72); padding: clamp(5rem, 10vw, 8rem) 0 2rem; }
.closing h2 { color: #FAF7F2; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.045em; margin-bottom: 1.25rem; }
.closing p { font-size: 1.1rem; max-width: 42ch; margin-bottom: 2.25rem; }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.text-link-light { color: #FAF7F2; }
.footer-bottom {
  margin-top: clamp(4rem, 9vw, 7rem); padding-top: 1.75rem; border-top: 1px solid rgba(250, 247, 242, .14);
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2.5rem; align-items: center;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; }
.footer-nav a { text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-legal { font-size: .85rem; }

/* ----- Transición de sección: círculo que tapa, salto oculto y círculo que abre ----- */
.iris {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: var(--navy); display: grid; place-items: center;
  clip-path: circle(0px at 50% 50%); visibility: hidden;
}
.iris.is-active { visibility: visible; pointer-events: auto; }
/* llegada desde otra página: la pantalla ya empieza tapada (red de seguridad a los 3 s) */
html.iris-cover .iris { visibility: visible; clip-path: none; animation: irisSafety 0s linear 3s forwards; }
@keyframes irisSafety { to { visibility: hidden; } }
.iris-mark {
  position: relative; width: clamp(56px, 11vw, 84px); aspect-ratio: 1; border: 3px solid var(--gold); border-radius: 22%;
  opacity: 0; transform: scale(.75);
}
.iris-mark::after { content: ""; position: absolute; right: 16%; top: 16%; width: 34%; height: 34%; background: var(--gold); border-radius: 22%; }
.iris.is-closing .iris-mark, html.iris-cover .iris-mark { animation: markIn .4s var(--ease) forwards; }
.iris.is-opening .iris-mark { animation: markOut .28s var(--ease) forwards; }
@keyframes markIn { 45% { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes markOut { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.3); } }

/* ----- Llegada a una sección desde el menú ----- */
.section-title, .closing h2 { position: relative; }
.section-title::after, .closing h2::after {
  content: ""; position: absolute; left: 0; bottom: -.3em; height: 3px; width: 0; border-radius: 2px; background: var(--gold); opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .section-title.is-arrived, .closing h2.is-arrived { animation: arrive .8s var(--ease) both; }
  .section-title.is-arrived::after, .closing h2.is-arrived::after { animation: arriveLine 1.8s var(--ease) both; }
}
@keyframes arrive { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes arriveLine { 0% { width: 0; opacity: 1; } 45% { width: 4rem; opacity: 1; } 100% { width: 4rem; opacity: 0; } }

/* ----- Página 404 ----- */
body:has(.notfound) { min-height: 100svh; display: flex; flex-direction: column; }
.notfound { flex: 1; display: flex; align-items: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.notfound-code {
  font-family: var(--mono); font-size: clamp(5rem, 16vw, 11rem); line-height: .9; font-weight: 500; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold); margin-bottom: 1.5rem;
}
.notfound-title { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: 1rem; }
.notfound-text { color: var(--muted); font-size: 1.1rem; max-width: 42ch; margin-bottom: 2.25rem; }
.notfound-footer { padding-top: 0; }
.notfound-footer .footer-bottom { margin-top: 0; border-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .notfound-inner > * { animation: fadeUp .8s var(--ease) both; }
  .js .notfound-inner > :nth-child(2) { animation-delay: .06s; }
  .js .notfound-inner > :nth-child(3) { animation-delay: .12s; }
  .js .notfound-inner > :nth-child(4) { animation-delay: .18s; }
}

/* ----- Áreas táctiles de 44px en pantallas táctiles (links chicos del pie, logo, links de texto) ----- */
@media (max-width: 900px), (pointer: coarse) {
  .brand { min-height: 44px; }
  .footer-nav { gap: 0 1.25rem; }
  .footer-nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .text-link { min-height: 44px; padding-bottom: 0; background-position: 0 calc(50% + .85em); }
}

/* ----- WhatsApp flotante ----- */
.wa-float {
  position: fixed; z-index: 40; right: max(1.25rem, env(safe-area-inset-right)); bottom: max(1.25rem, env(safe-area-inset-bottom));
  display: flex; align-items: flex-end; gap: .75rem;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.wa-float.is-away { opacity: 0; visibility: hidden; transform: translateY(12px); }
.wa-fab {
  position: relative; width: 60px; height: 60px; flex: none; border-radius: 999px; display: grid; place-items: center;
  background: var(--btn-bg); color: var(--btn-text); border: 1.5px solid var(--gold);
  box-shadow: 0 14px 30px -10px rgba(14, 22, 40, .55); transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab:hover { transform: translateY(-2px); background: var(--btn-hover); }
.wa-fab:active { transform: scale(.96); }
.wa-fab::before { content: ""; position: absolute; inset: -1.5px; border-radius: inherit; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }

.wa-bubble {
  position: relative; display: flex; align-items: center; gap: .25rem; margin-bottom: .35rem;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px;
  padding: .7rem .5rem .7rem 1rem; box-shadow: 0 18px 40px -16px rgba(14, 22, 40, .45);
  transform-origin: bottom right;
}
.wa-bubble::after {
  content: ""; position: absolute; right: -6px; bottom: 16px; width: 12px; height: 12px; background: inherit;
  border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}
.wa-bubble-link { display: grid; gap: .1rem; text-decoration: none; padding-right: .35rem; }
.wa-bubble-link strong { color: var(--ink); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.wa-bubble-link strong::after { content: ""; display: block; width: 1.75rem; height: 2px; margin-top: .3rem; background: var(--gold); border-radius: 2px; }
.wa-bubble-link span { color: var(--muted); font-size: .82rem; margin-top: .2rem; }
.wa-bubble-close { width: 32px; height: 32px; flex: none; align-self: flex-start; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.wa-bubble-close:hover { color: var(--ink); background: var(--line); }
.wa-bubble-close svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .wa-bubble.is-in { animation: bubbleIn .5s var(--ease) both; }
  .wa-fab::before { animation: fabPulse 3.2s ease-out 2s infinite; }
}
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fabPulse { 0% { opacity: .9; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.45); } }

@media (max-width: 640px) {
  .wa-fab { width: 56px; height: 56px; }
  .wa-bubble { padding: .6rem .4rem .6rem .85rem; }
  .wa-bubble-link strong { font-size: .95rem; }
}

/* ----- Movimiento (motivado: jerarquía de entrada y lectura por secciones) ----- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .line > span { animation: rise .9s var(--ease) both; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: .08s; }
  .js .hero-copy { animation: fade .8s var(--ease) .25s both; }
  .js .work-strip { animation: fade 1.2s var(--ease) .45s both; }
  .work-strip-track { animation: strip 70s linear infinite; }
  .work-strip:hover .work-strip-track, .work-strip:focus-visible .work-strip-track { animation-play-state: paused; }
  .js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes strip { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .work-strip { overflow-x: auto; }
  .work-strip-track > ul[aria-hidden] { display: none; }
  .rotator > span { transition: none; }
}

/* ----- Responsive ----- */
@media (max-width: 1080px) {
  .nav { gap: 1.25rem; }
  .nav a:not(.btn) { font-size: .88rem; }
  .plan-table { grid-template-columns: repeat(2, 1fr); }
  .plan:nth-child(3) { border-left: 0; padding-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before, .steps::after { display: none; }
  .steps li { border-top: 1px solid var(--line-strong); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: .5rem var(--pad) 1.5rem; border-bottom: 1px solid rgba(201, 168, 118, .3);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 1rem 0; font-size: 1.05rem; border-bottom: 1px solid rgba(250, 247, 242, .08); }
  .nav-indicator { display: none; }
  .nav a.is-current:not(.btn) { color: var(--gold); }
  .nav-cta { margin: 1.25rem 0 0; height: 50px; }

  .hero-row, .case, .case-flip, .about-grid, .faq-grid { grid-template-columns: 1fr; }
  .case-flip .case-media { order: 0; }
  .faq-grid .section-title { position: relative; top: auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-navy { grid-row: auto; grid-column: span 2; min-height: 16rem; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 640px) {
  :root { --header-h: 62px; }
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3.2rem); }
  .hero-actions .btn { width: 100%; }
  .case-media-video { padding-right: 18%; }
  .case-media-video .shot-phone-side { width: 30%; }
  .bento { grid-template-columns: 1fr; }
  .tile-navy, .tile-wide { grid-column: auto; }
  .tile-wide { flex-direction: column; align-items: flex-start; }
  .tile .tile-icon { margin-bottom: 1.5rem; }
  .plan-table { grid-template-columns: 1fr; }
  .plan, .plan + .plan, .plan:nth-child(3) { padding: 1.75rem 0 0; border-left: 0; }
  .plan + .plan { border-top: 1px solid var(--line); margin-top: 1.75rem; }
  .plan p { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 1.5rem 0; }
  .faq-list details p { padding-right: 0; }
  .closing-actions .btn { width: 100%; }
}
