/* ═══════════════════════════════════════════════════════════════
   FAST CASUAL — fastcasual.es
   Sistema completo: tokens, layout, animación.
   Regla de motion: solo transform/opacity · ease-out · one-shot
   (infinitas permitidas: sello, marquesina, punto pulsante).
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --ink: #0A0A0A;
  --paper: #FAF6F1;
  --accent: #FF4C00;
  --accent-deep: #E43F00;
  --accent-text: #C63E00;          /* naranja legible en texto pequeño sobre crema (AA) */
  --ink-muted: rgba(10, 10, 10, .62);
  --paper-muted: rgba(250, 246, 241, .72);

  --font: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --fw-detalle: 500;
  --fw-dato: 600;
  --fw-titulo: 700;
  --fw-fuerte: 800;

  --fs-label: .75rem;              /* 12px — suelo de legibilidad */
  --fs-body: .9375rem;             /* 15px */

  --pad-x: clamp(18px, 3.5vw, 44px);
  --container: 1360px;
  --radius-pill: 99px;

  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-ui: 240ms;
}

/* ── Fuente auto-hospedada ── */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-latin-wght.woff2') format('woff2-variations'),
       url('/assets/fonts/bricolage-latin-wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: block;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: #0A0A0A;             /* pinta negro al instante: la intro enmascara la carga */
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--paper); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-label);
  font-weight: var(--fw-titulo);
  text-decoration: none;
  transform: translateY(-64px);
  transition: transform var(--t-ui) var(--ease-out-expo);
}
.skip:focus-visible { transform: none; }

/* ── i18n: nodos duplicados [data-l] ── */
html:not([data-lang]) [data-l="en"] { display: none !important; }
html[data-lang="es"] [data-l="en"] { display: none !important; }
html[data-lang="en"] [data-l="es"] { display: none !important; }

/* ── Barra de progreso de scroll ── */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 100;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress-grow linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: var(--paper-muted);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 10, 10, .12);
  transition: background-color 350ms ease-out, border-color 350ms ease-out;
}
/* Nav adaptativo: sobre secciones oscuras se funde con ellas (JS añade .nav-dark) */
.nav-dark {
  background: rgba(10, 10, 10, .55);
  border-bottom-color: rgba(250, 246, 241, .14);
}
.nav-dark .brand, .nav-dark .nav-links a, .nav-dark .lang-btn { color: var(--paper); }
.nav-dark .brand-dot { box-shadow: 0 0 0 2px var(--paper); }
.nav-dark .nav-links a:hover { color: var(--accent); }
.nav-dark .lang { border-color: var(--paper); }
html[data-lang="es"] .nav-dark .lang-btn[data-set-lang="es"],
html[data-lang="en"] .nav-dark .lang-btn[data-set-lang="en"],
html:not([data-lang]) .nav-dark .lang-btn[data-set-lang="es"] {
  background: var(--paper);
  color: var(--ink);
}
.nav .brand, .nav .nav-links a, .nav .lang-btn, .nav .lang, .nav .brand-dot {
  transition: color 350ms ease-out, border-color 350ms ease-out, background-color 350ms ease-out, box-shadow 350ms ease-out;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  font-weight: var(--fw-fuerte);
  font-size: 19px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand sup { font-size: 10px; }
.brand-dot {
  width: 11px; height: 11px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
  flex: none;
}
.nav-links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav-links a {
  font-size: var(--fs-label);
  font-weight: var(--fw-dato);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  opacity: .65;
  transition: opacity 150ms ease-out, color 150ms ease-out;
}
.nav-links a:hover { opacity: 1; color: var(--accent-text); }
.lang {
  display: flex;
  gap: 2px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 2px;
}
.lang-btn {
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-label);
  font-weight: var(--fw-titulo);
  letter-spacing: .08em;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--t-ui) ease-out, color var(--t-ui) ease-out;
}
html[data-lang="es"] .lang-btn[data-set-lang="es"],
html[data-lang="en"] .lang-btn[data-set-lang="en"],
html:not([data-lang]) .lang-btn[data-set-lang="es"] {
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 680px) { .nav-links { display: none; } }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 112px var(--pad-x) 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.spot {
  position: absolute;
  top: 0; left: 0;
  width: 660px; height: 660px;
  margin: -330px 0 0 -330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 76, 0, .42), rgba(255, 76, 0, 0) 66%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease-out;
  mix-blend-mode: screen;
  z-index: 2;
}
.hero-meta {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: auto;
  padding-top: 8px;
  font-size: var(--fs-label);
  font-weight: var(--fw-dato);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-meta .col { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .col.right { text-align: right; }
.hero-meta .hi { color: var(--accent); }
.hero-meta .lo { opacity: .55; }

.seal {
  position: absolute;
  top: clamp(116px, 15vw, 186px);
  right: clamp(18px, 5vw, 86px);
  width: clamp(104px, 12.5vw, 164px);
  aspect-ratio: 1;
  z-index: 2;
}
@media (max-width: 600px) {
  .seal { top: 176px; width: 96px; }   /* en móvil no pisa la meta del hero */
}
.seal-rot { position: absolute; inset: 0; }
.seal svg { width: 100%; height: 100%; overflow: visible; display: block; }
.seal-star {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(28px, 3.6vw, 42px);
  color: var(--paper);
}

.hero-h1 {
  position: relative;
  z-index: 3;
  font-weight: var(--fw-fuerte);
  font-size: clamp(3.6rem, 15vw, 15rem);
  line-height: .82;
  letter-spacing: -.04em;
}
.mask { display: block; overflow: hidden; padding-top: .04em; }
.mask .line { display: block; }
.line-accent { color: var(--accent); }
.line-accent .dot-paper { color: var(--paper); }

.hero-foot {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  flex-wrap: wrap;
  margin: 32px 0 40px;
}
.hero-sub {
  max-width: 440px;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  font-weight: var(--fw-detalle);
  opacity: .75;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: var(--fw-dato);
  color: var(--ink);
  background: var(--accent);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 16px 26px;
  transition: transform 300ms var(--ease-out-expo), background-color 300ms ease-out;
  will-change: transform;
}
.btn:hover { background: var(--accent-deep); }
.btn:active { transform: scale(.97); transition-duration: 80ms; }
.btn .arr { font-size: 19px; line-height: 1; }
.btn-big { font-size: clamp(15px, 1.5vw, 19px); padding: 17px 30px; gap: 10px; }

/* ── Marquesina ── */
.marquee {
  position: relative;
  z-index: 3;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 13px 0;
  background: var(--accent);
}
.marquee-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  color: var(--ink);
  font-weight: var(--fw-titulo);
  font-size: clamp(15px, 1.6vw, 20px);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.marquee-seg { display: flex; gap: 26px; padding-right: 26px; }

/* ── Secciones comunes ── */
.section { padding: clamp(88px, 10vw, 150px) var(--pad-x); }
.section-inner { max-width: var(--container); margin: 0 auto; }
.kicker {
  margin: 0 0 46px;
  font-size: var(--fs-label);
  font-weight: var(--fw-titulo);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ""; width: 30px; height: 2px; background: currentColor; flex: none; }
.h2 {
  font-weight: var(--fw-fuerte);
  font-size: clamp(2rem, 5.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 960px;
}
.h2 em, .h2 .em { font-style: normal; font-weight: var(--fw-fuerte); color: var(--accent); }

/* ── 01 Principio ── */
.principio {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(96px, 12vw, 180px) var(--pad-x);
}
.principio .h2 {
  font-size: clamp(2.2rem, 6.2vw, 6.6rem);
  max-width: 1200px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  border: 1px solid rgba(250, 246, 241, .3);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: var(--fw-dato);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── 02 Soluciones (filas flood) ── */
.soluciones { background: var(--paper); }
.soluciones .kicker { color: var(--accent-text); }
.soluciones .h2 { margin-bottom: clamp(50px, 6vw, 84px); }
.rows { border-top: 1px solid var(--ink); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1.2fr 1fr auto;
  gap: clamp(14px, 2.6vw, 38px);
  align-items: center;
  padding: clamp(26px, 3vw, 42px) clamp(14px, 2vw, 26px);
  border-bottom: 1px solid var(--ink);
  cursor: default;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: top;             /* al salir: el telón se retira hacia arriba */
  transition: transform 450ms var(--ease-out-expo);
}
.row:hover::before {
  transform: scaleY(1);
  transform-origin: bottom;          /* al entrar: el telón sube desde abajo */
}
.row > * { position: relative; z-index: 1; }
.row-idx {
  font-weight: var(--fw-fuerte);
  font-size: clamp(15px, 1.5vw, 20px);
  transition: color 350ms ease-out;
}
.row-title {
  font-size: clamp(1.35rem, 2.9vw, 2.6rem);
  font-weight: var(--fw-titulo);
  letter-spacing: -.02em;
  line-height: 1;
  transition: color 350ms ease-out;
}
.row-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  transition: color 350ms ease-out;
}
.row-arrow {
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--accent);
  transition: transform 350ms var(--ease-out-expo);
}
.row:hover .row-idx, .row:hover .row-title { color: var(--paper); }
.row:hover .row-desc { color: var(--paper-muted); }
.row:hover .row-arrow { transform: translateX(8px); }
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr 34px; gap: 8px 14px; }
  .row-idx { grid-column: 1; }
  .row-title { grid-column: 1; }
  .row-desc { grid-column: 1; }
  .row-arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: end; }
}

/* ── 03 Resultados ── */
.resultados { background: var(--accent); color: var(--ink); }
.resultados .kicker { color: var(--ink); }
.resultados .h2 { margin-bottom: 12px; }
.resultados .h2 .em { color: var(--ink); }
.resultados-note {
  margin: 0 0 clamp(48px, 6vw, 80px);
  font-size: var(--fs-label);
  font-weight: var(--fw-titulo);
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .6;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.stat {
  position: relative;
  border: 1.5px solid var(--ink);
  padding: clamp(28px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  transition: background-color 350ms ease-out, color 350ms ease-out, transform 350ms var(--ease-out-expo);
}
.stat::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: 0 18px 40px -18px rgba(10, 10, 10, .45);  /* sombra neutra pre-renderizada */
  opacity: 0;
  transition: opacity 350ms ease-out;
  pointer-events: none;
}
.stat:hover { background: var(--ink); color: var(--paper); transform: translateY(-6px); }
.stat:hover::after { opacity: 1; }
.stat-num {
  font-weight: var(--fw-fuerte);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  line-height: .9;
  font-variant-numeric: tabular-nums;
}
.stat-unit { font-size: .42em; }        /* unidad a la baseline del número */
.stat-label {
  font-size: 13px;
  font-weight: var(--fw-titulo);
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.stat-desc { font-size: 14px; line-height: 1.55; color: rgba(10, 10, 10, .78); }
.stat:hover .stat-desc { color: var(--paper-muted); }

/* ── Contacto ── */
.contacto {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(110px, 13vw, 190px) var(--pad-x);
  text-align: center;
  overflow: hidden;
}
.contacto-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(250, 246, 241, .4);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: var(--fs-label);
  font-weight: var(--fw-titulo);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.contacto-h2 {
  font-weight: var(--fw-fuerte);
  font-size: clamp(2.6rem, 9vw, 8rem);
  line-height: .9;
  letter-spacing: -.035em;
}
.contacto-h2 .dot-accent { color: var(--accent); }
.contacto-sub {
  max-width: 520px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.65;
  opacity: .72;
}
.contacto-note {
  font-size: var(--fs-label);
  font-weight: var(--fw-titulo);
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .55;
}

/* ── Footer ── */
.footer {
  background: var(--paper);
  padding: 34px var(--pad-x) 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-top, .footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px 24px;
  flex-wrap: wrap;
}
.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--fw-fuerte);
  font-size: 15px;
  letter-spacing: -.01em;
}
.brand-mini .brand-dot { width: 9px; height: 9px; }
.footer a {
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms ease-out;
}
.footer a:hover { color: var(--accent-text); }
.footer-mail { font-size: 14px; font-weight: var(--fw-dato); }
.footer-legal {
  border-top: 1px solid rgba(10, 10, 10, .12);
  padding-top: 16px;
  font-size: var(--fs-label);
  font-weight: var(--fw-dato);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5C5852;
}
.footer-legal a { color: #5C5852; margin-left: 20px; }
.footer-legal a:first-child { margin-left: 0; }
.footer-legal a:hover { color: var(--accent-text); }

/* ── Páginas legales / 404 ── */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px var(--pad-x) 90px;
}
.legal-main h1 {
  font-weight: var(--fw-fuerte);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 18px;
}
.legal-main h1 .dot-accent { color: var(--accent); }
.legal-updated {
  font-size: var(--fs-label);
  font-weight: var(--fw-titulo);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #5C5852;
  margin-bottom: 54px;
}
.legal-main h2 {
  font-weight: var(--fw-titulo);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -.02em;
  margin: 44px 0 14px;
}
.legal-main p, .legal-main li {
  font-size: 16px;
  line-height: 1.7;
  font-weight: var(--fw-detalle);
  color: rgba(10, 10, 10, .82);
  margin-bottom: 12px;
}
.legal-main ul { padding-left: 22px; margin: 0 0 12px; }
.legal-main a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal-main strong { font-weight: var(--fw-titulo); color: var(--ink); }

.nf-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  padding: 120px var(--pad-x) 80px;
  position: relative;
  overflow: hidden;
}
.nf-code {
  font-weight: var(--fw-fuerte);
  font-size: clamp(6rem, 24vw, 18rem);
  line-height: .82;
  letter-spacing: -.04em;
}
.nf-code .dot-accent { color: var(--accent); }
.nf-sub { max-width: 460px; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.6; opacity: .72; position: relative; z-index: 2; }

/* ═══════════════════════════════════════════════════════════════
   MOTION — todo dentro de no-preference.
   Con reduce: contenido visible al instante, infinitas paradas.
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {

  /* Intro del hero: las líneas nacen ocultas dentro de máscaras.
     Sin JS: los delays CSS corren solos. Con JS: espera a .fonts-ready. */
  @keyframes word-up { from { transform: translateY(115%); } to { transform: none; } }
  @keyframes fade-down { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes marq { to { transform: translateX(-50%); } }
  @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
  @keyframes seal-scrub { to { transform: rotate(240deg); } }

  .mask .line { animation: word-up 1s var(--ease-out-expo) both; }
  .mask:nth-child(1) .line { animation-delay: .35s; }
  .mask:nth-child(2) .line { animation-delay: .5s; }
  .nav .brand { animation: fade-down .6s ease-out both; }
  .nav .nav-links { animation: fade-down .6s ease-out .08s both; }
  .nav .lang { animation: fade-down .6s ease-out .16s both; }
  .hero-meta { animation: fade-down .7s ease-out .2s both; }
  .seal { animation: fade-up .8s var(--ease-out-expo) .5s both; }
  .hero-foot { animation: fade-up .8s var(--ease-out-expo) .8s both; }

  /* Con JS: congela la intro hasta que la fuente está lista (.fonts-ready) */
  html.js:not(.fonts-ready) .mask .line,
  html.js:not(.fonts-ready) .nav .brand,
  html.js:not(.fonts-ready) .nav .nav-links,
  html.js:not(.fonts-ready) .nav .lang,
  html.js:not(.fonts-ready) .hero-meta,
  html.js:not(.fonts-ready) .seal,
  html.js:not(.fonts-ready) .hero-foot { animation-play-state: paused; }

  .seal-rot { animation: spin 20s linear infinite; }
  @supports (animation-timeline: scroll()) and (animation-composition: add) {
    .seal-rot {
      animation: spin 20s linear infinite, seal-scrub linear both;
      animation-composition: replace, add;
      animation-timeline: auto, scroll(root);
    }
  }

  .marquee-track { animation: marq 24s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }

  .badge-dot { animation: pulse 1.6s ease-in-out infinite; }

  /* Scroll-reveals (IO one-shot desde main.js) */
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 850ms var(--ease-out-expo), transform 850ms var(--ease-out-expo);
  }
  html.js [data-reveal].in-view { opacity: 1; transform: none; }
  html.js .rows [data-reveal]:nth-child(2).in-view,
  html.js .stats [data-reveal]:nth-child(2).in-view { transition-delay: 70ms; }
  html.js .rows [data-reveal]:nth-child(3).in-view,
  html.js .stats [data-reveal]:nth-child(3).in-view { transition-delay: 140ms; }
  html.js .rows [data-reveal]:nth-child(4).in-view { transition-delay: 210ms; }

  /* Entrada suave páginas legales (CSS puro, one-shot) */
  .legal-main, .nf-hero > * { animation: fade-up .7s var(--ease-out-expo) both; }
  .nf-hero > :nth-child(2) { animation-delay: .12s; }
  .nf-hero > :nth-child(3) { animation-delay: .24s; }

  /* View Transitions entre páginas (cross-document) */
  ::view-transition-old(root) { animation: vt-out 250ms var(--ease-out-expo) both; }
  ::view-transition-new(root) { animation: vt-in 300ms var(--ease-out-expo) both; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
}
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spot { display: none; }
}
