/* ═══════════════════════════════════════════════════════════════════════════
   BRASANTA · Grill and Drinks — Querétaro
   Hoja única. CSS puro, sin framework, sin librería de movimiento.

   El color sale de MEDIR su propio material (36 fotogramas de sus reels),
   no de la referencia. Detalle y contrastes en ../adn-visual.md
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1 · TOKENS ──────────────────────────────────────────────────────────── */
:root {
  /* Color — medido en su fotografía. Ratios comprobados con la fórmula WCAG. */
  --noche:    #06080C;  /* su negro dominante (33.1% del área)               */
  --brasa:    #12141B;  /* LA SUPERFICIE ÚNICA del sitio                     */
  --brasa-2:  #191C25;  /* un escalón: tarjetas sobre la superficie          */
  --ceniza:   #EAE4D6;  /* LA ÚNICA INVERSIÓN A CLARO. Blanco cálido suyo    */
  --ascua:    #D8281A;  /* ACENTO EXCLUSIVO DEL CTA. Es relleno, no letra    */
  --rescoldo: #E8543C;  /* el ascua legible como TEXTO (5.05 sobre brasa)    */
  --llama:    #FDFFB3;  /* el núcleo de su fuego. Detalle fino, nunca campo  */
  --hueso:    #F4F1EA;  /* tinta sobre oscuro (16.31). Nunca #fff puro       */
  --humo:     #A8AAB4;  /* secundario sobre oscuro (7.95)                    */
  --hollin:   #5A5750;  /* secundario sobre ceniza (5.69)                    */
  --borde:    rgb(244 241 234 / 0.14);
  --borde-claro: rgb(18 20 27 / 0.14);

  /* Tipografía — Archivo (variable wdth+wght) e Instrument Sans, ambas OFL */
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --texto:   'Instrument Sans', system-ui, -apple-system, sans-serif;

  /* Escala ratio 1.5, siete tamaños. Nada baja de 14px. */
  --t-xs:  0.875rem;  /* 14 — la más pequeña del sitio */
  --t-s:   1rem;      /* 16 */
  --t-m:   1.125rem;  /* 18 */
  --t-l:   1.5rem;    /* 24 */
  --t-xl:  2.25rem;   /* 36 */
  --t-2xl: clamp(2.75rem, 9vw, 4.5rem);
  --t-3xl: clamp(3.5rem, 15vw, 9rem);

  /* Espaciado 4/8/12/16/24/32/48/64/96 */
  --e-1: 0.25rem; --e-2: 0.5rem;  --e-3: 0.75rem; --e-4: 1rem;
  --e-6: 1.5rem;  --e-8: 2rem;    --e-12: 3rem;   --e-16: 4rem;
  --e-24: 6rem;   --e-32: 8rem;

  /* Movimiento — la curva y la duración heredadas de la referencia.
     Entra lento, sale seco: todo pesa. */
  --curva: cubic-bezier(0.625, 0.05, 0, 1);
  --dur: 600ms;
  --dur-corta: 260ms;

  --radio: 2px;      /* el logotipo es geométrico y filoso: casi sin radio */
  --barra-alto: 4.25rem;
  --ancho: 68rem;
  --ancho-texto: 40rem;
}

/* ── 2 · FUENTES ─────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Archivo';
  src: url('../fuentes/archivo-var.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fuentes/instrument-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

/* ── 3 · BASE ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* la barra fija reserva su alto: ningún ancla queda debajo de ella */
  scroll-padding-top: calc(var(--barra-alto) + var(--e-4));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--brasa);
  color: var(--hueso);
  font-family: var(--texto);
  font-size: var(--t-s);
  line-height: 1.6;
  /* clip y no hidden: hidden crea un contenedor de scroll y deja quietas
     las animaciones de animation-timeline sin dar ningún error */
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }   /* sin esto, el atributo height gana al aspect-ratio */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 78%;          /* la anchura del logotipo, medida */
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: var(--t-3xl); }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-l); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 var(--e-4); }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--llama);
  outline-offset: 3px;
  border-radius: var(--radio);
}

.saltar {
  position: absolute; left: var(--e-4); top: -4rem; z-index: 100;
  background: var(--ascua); color: #fff; padding: var(--e-3) var(--e-4);
  transition: top var(--dur-corta) var(--curva);
}
.saltar:focus { top: var(--e-4); }

.solo-lectores {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ── 4 · LA TERCERA VOZ ──────────────────────────────────────────────────────
   Sale literalmente del logotipo: así está compuesto «GRILL AND DRINKS».
   No es un adorno del estudio, es su propia voz repetida.                    */
.rotulo {
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--humo);
  margin: 0 0 var(--e-4);
  display: flex;
  align-items: center;
  gap: var(--e-3);
}
.rotulo::before {
  content: '';
  width: 1.75rem; height: 1px;
  background: var(--rescoldo);
  flex: none;
}
.claro .rotulo { color: var(--hollin); }

/* ── 5 · REJILLA ─────────────────────────────────────────────────────────── */
.envoltura {
  width: min(100% - var(--e-8), var(--ancho));
  margin-inline: auto;
}
section { padding-block: var(--e-16); }
@media (min-width: 56.25rem) { section { padding-block: var(--e-24); } }

.medida { max-width: var(--ancho-texto); }
.entrada { font-size: var(--t-m); color: var(--humo); }
.claro .entrada { color: var(--hollin); }

.cabecera { display: grid; gap: var(--e-4); }
@media (min-width: 56.25rem) {
  .cabecera {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--e-16);
    align-items: end;
  }
  .cabecera > :last-child { padding-bottom: 0.35rem; }
}
.cabecera p:last-child { margin-bottom: 0; }

/* ── 6 · EL GESTO PROPIO · LAS CHISPAS ───────────────────────────────────────
   Los cinco puntos del logotipo son chispas y debajo hay una fogata. El gesto
   ya estaba en su marca; nadie lo puso.

   Técnica heredada de registro/piezas/personalidad/deriva.css: UN solo
   @keyframes, y la trayectoria de cada chispa derivada de su índice --i con
   calc(), en pasos que no comparten múltiplo — así el campo no se sincroniza
   nunca y añadir la chispa doce no añade una línea de CSS.
   Compositor puro: solo translate/scale/opacity. Cero JavaScript.           */
.chispas {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
  z-index: 0;
}
.chispa {
  position: absolute;
  bottom: -2rem;
  left: calc(4% + var(--i) * 8.3%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--llama);
  opacity: 0;
  /* mezcla: la chispa se suma a la luz del fondo en vez de taparlo.
     Es el mismo recurso con el que la referencia hace el calor — y pesa 0 KB */
  mix-blend-mode: screen;
  animation: subir calc(7s + var(--i) * 1.37s) linear infinite;
  animation-delay: calc(var(--i) * -2.11s);
  will-change: translate, opacity;
}
@keyframes subir {
  0%   { opacity: 0;   translate: 0 0;                    scale: 0.6; }
  8%   { opacity: 0.9; }
  70%  { opacity: 0.55; }
  100% { opacity: 0;   translate: calc(var(--i) * 6px - 30px) -78vh; scale: 0.2; }
}

/* ── 7 · EL CALOR ────────────────────────────────────────────────────────────
   Como la referencia: mix-blend-mode y filtro, NO video. Pesa cero y no
   depende de que un mp4 llegue a tiempo.                                     */
.calor { position: relative; isolation: isolate; }
.calor::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: radial-gradient(70% 100% at 50% 118%,
              rgb(216 40 26 / 0.55), rgb(216 40 26 / 0) 70%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* ── 8 · BARRA ──────────────────────────────────────────────────────────────
   No es fija durante el héroe: una barra fija sobre un héroe a sangre tapa el
   CTA y ninguna medición en reposo lo canta. Se pega al salir del héroe.     */
.barra {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--barra-alto);
  display: flex;
  align-items: center;
  gap: var(--e-6);
  background: rgb(6 8 12 / 0.94);
  border-bottom: 1px solid var(--borde);
}
.barra .envoltura {
  display: flex;
  align-items: center;
  gap: var(--e-4);
  width: min(100% - var(--e-6), var(--ancho));
}
.barra-marca { display: flex; align-items: center; gap: var(--e-3); flex: none; }
.barra-marca img, .barra-marca svg { width: 5.5rem; height: auto; color: var(--hueso); }
@media (min-width: 56.25rem) { .barra-marca img, .barra-marca svg { width: 6.75rem; } }
.barra-marca .fogata { width: 0.9rem; color: var(--rescoldo); }

.menu {
  display: none;
  margin-left: auto;
  gap: var(--e-6);
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (min-width: 56.25rem) { .menu { display: flex; } }
.menu a {
  text-decoration: none;
  color: var(--humo);
  padding: var(--e-3) 0;
  transition: color var(--dur-corta) var(--curva);
}
.menu a:hover, .menu a[aria-current='page'] { color: var(--hueso); }

.barra .boton {
  margin-left: auto;
  flex: none;
  padding-inline: var(--e-4);
  letter-spacing: 0.1em;
}
@media (min-width: 56.25rem) {
  .barra .boton { margin-left: 0; padding-inline: var(--e-6); letter-spacing: 0.14em; }
}

/* ── 9 · BOTONES ────────────────────────────────────────────────────────────
   UN acento, exclusivo del CTA. Si el ascua estuviera en más sitios dejaría
   de acentuar nada. Blanco sobre ascua = 4.95 (AA).
   Sin text-box-trim: clava los titulares pero recorta el área táctil.        */
.boton, .boton-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--e-2);
  min-height: 2.875rem;      /* 46px — por encima de los 44 exigidos */
  padding: var(--e-3) var(--e-6);
  border-radius: var(--radio);
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur) var(--curva),
              border-color var(--dur) var(--curva),
              color var(--dur) var(--curva);
}
.boton { background: var(--ascua); color: #fff; }
/* la referencia no cambia su CTA en hover — ése es un defecto suyo, no se hereda */
.boton:hover { background: #B71D11; }

.boton-2 { background: transparent; color: var(--hueso); border-color: var(--borde); }
.boton-2:hover { border-color: var(--hueso); }
.claro .boton-2 { color: var(--brasa); border-color: var(--borde-claro); }
.claro .boton-2:hover { border-color: var(--brasa); }

.acciones { display: flex; flex-wrap: wrap; gap: var(--e-3); }

/* ── 10 · HÉROE ─────────────────────────────────────────────────────────── */
.heroe {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-content: end;
  padding-block: var(--e-16) var(--e-12);
  background: var(--noche);
  overflow: clip;
}
.heroe-fondo {
  position: absolute; inset: 0; z-index: 0;
}
.heroe-fondo img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* la imagen es vertical (1080x1920) y el escritorio es apaisado: sin fijar
     el encuadre, la llama queda donde caiga */
  object-position: 62% 42%;
  opacity: 0.62;
}
.heroe-fondo::after {
  content: '';
  position: absolute; inset: 0;
  /* el texto del héroe cae en la mitad baja: ahí el velo tiene que ser opaco
     de verdad o el contraste depende de dónde quede la llama */
  background: linear-gradient(to top,
              var(--noche) 8%, rgb(6 8 12 / 0.80) 52%, rgb(6 8 12 / 0.35) 100%);
}
.heroe .envoltura { position: relative; z-index: 2; }

/* El LOGOTIPO hace de título visual — es la marca, y ya trae la palabra.
   El h1 queda debajo, en tamaño de bajada: sin esto «BRASANTA» sale dos veces
   en la primera pantalla y el CTA se va por debajo del pliegue. */
.heroe-logo { width: min(78%, 21rem); color: var(--hueso); margin-bottom: var(--e-8); }
.heroe h1 {
  max-width: 15ch;
  font-size: clamp(2.25rem, 6.4vw, 4rem);
}
.heroe-pie {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--e-3) var(--e-6);
  margin-top: var(--e-8);
}
.heroe-dato {
  font-family: var(--display);
  font-size: var(--t-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--humo);
}
.heroe-dato b { color: var(--hueso); font-weight: 700; }

/* ── 11 · SEPARADOR DE CAPÍTULO · LA FOGATA ─────────────────────────────────
   En el logotipo separa EST. de 2018. Aquí separa un capítulo del siguiente:
   mismo trazo, mismo papel.                                                  */
.fogata-sep {
  display: flex; align-items: center; gap: var(--e-4);
  color: var(--rescoldo);
  margin-block: 0 var(--e-8);
}
.fogata-sep::before, .fogata-sep::after {
  content: ''; height: 1px; background: var(--borde); flex: 1;
}
.claro .fogata-sep::before, .claro .fogata-sep::after { background: var(--borde-claro); }
.fogata-sep svg { width: 1.15rem; flex: none; }

/* ── 12 · LA INVERSIÓN A CLARO ──────────────────────────────────────────────
   UNA sola en todo el sitio, como la referencia. Es la sección que respira.
   Los tokens se reapuntan DENTRO del bloque: lo que sigue claro se redefine
   a sí mismo en vez de pelearse con reglas de más abajo.                     */
.claro {
  background: var(--ceniza);
  color: var(--brasa);
}
.claro h2, .claro h3 { color: var(--brasa); }

/* ── 13 · SUCURSALES ─────────────────────────────────────────────────────── */
.duo {
  display: grid;
  gap: var(--e-6);
  /* min-w-0 en las dos direcciones: sin esto un carril interno ensancha la
     celda y corta el texto sin dejar barra de scroll visible */
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56.25rem) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-8); }
}

.local {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--brasa-2);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: clip;
}
.local-foto { aspect-ratio: 16 / 11; }
.local-foto img { width: 100%; height: 100%; object-fit: cover; }
.local-cuerpo { padding: var(--e-6); display: flex; flex-direction: column; gap: var(--e-3); flex: 1; }
.local h3 { font-family: var(--display); font-stretch: 78%; font-weight: 800;
            font-size: var(--t-xl); text-transform: uppercase; }
.local dl { margin: 0; display: grid; gap: var(--e-2); font-size: var(--t-xs); }
.local dl div { display: flex; gap: var(--e-3); }
.local dt { color: var(--humo); flex: none; width: 5.5rem; }
.local dd { margin: 0; }
.local .acciones { margin-top: auto; padding-top: var(--e-4); }

/* ── 14 · LA SEMANA ─────────────────────────────────────────────────────── */
.semana { display: grid; gap: 0; margin-top: var(--e-8); }
.dia {
  display: grid;
  gap: var(--e-1) var(--e-6);
  padding-block: var(--e-6);
  border-top: 1px solid var(--borde-claro);
  align-items: baseline;
}
@media (min-width: 56.25rem) {
  .dia { grid-template-columns: 12rem 1fr auto; }
}
.dia:last-child { border-bottom: 1px solid var(--borde-claro); }
.dia-cuando {
  font-family: var(--display); font-weight: 800; font-stretch: 78%;
  font-size: var(--t-l); text-transform: uppercase; line-height: 1;
}
.dia-donde {
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--hollin);
}
.dia p { margin: 0; color: var(--hollin); }
.dia b { color: var(--brasa); font-weight: 600; }

/* ── 15 · TIRA DE IMÁGENES ───────────────────────────────────────────────── */
.tira {
  display: grid;
  gap: var(--e-2);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--e-12);
}
@media (min-width: 56.25rem) {
  .tira { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tira figure { margin: 0; position: relative; overflow: clip; border-radius: var(--radio); }
.tira img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tira figcaption {
  position: absolute; left: var(--e-3); bottom: var(--e-3);
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hueso);
  text-shadow: 0 1px 8px rgb(6 8 12 / 0.95);
}

/* ── 16 · CARTA ──────────────────────────────────────────────────────────── */
/* los grupos son <section> y heredaban el padding-block global: eso sumaba
   160px de aire entre un grupo y el siguiente, no los 64 que se querían */
.carta-grupo { padding-block: 0; margin-bottom: var(--e-16); }
.carta-grupo > h3 {
  font-family: var(--display); font-stretch: 78%; font-weight: 800;
  font-size: var(--t-xl); text-transform: uppercase;
  padding-bottom: var(--e-3); margin-bottom: var(--e-6);
  border-bottom: 1px solid var(--borde);
}
.platos {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--e-6);
  align-items: start;   /* cada plato ocupa lo suyo, no la altura de su fila */
}
@media (min-width: 56.25rem) {
  .platos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-6) var(--e-12); }
}
.plato { min-width: 0; }
.plato-linea {
  display: flex; align-items: baseline; gap: var(--e-3);
  font-family: var(--display); font-weight: 700; font-stretch: 88%;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: var(--t-m);
}
.plato-linea span:first-child { flex: 0 1 auto; min-width: 0; }
.plato-guia { flex: 1; height: 1px; background: var(--borde); translate: 0 -0.28em; }
.plato-precio { flex: none; color: var(--llama); font-variant-numeric: tabular-nums; }
.plato p { margin: var(--e-1) 0 0; font-size: var(--t-xs); color: var(--humo); }

.nota-carta {
  font-size: var(--t-xs); color: var(--humo);
  border-left: 2px solid var(--rescoldo);
  padding-left: var(--e-4); margin-top: var(--e-8);
}

/* ── 17 · MEZCAL ────────────────────────────────────────────────────────── */
.mezcal { position: relative; background: var(--noche); overflow: clip; }
.mezcal .envoltura { position: relative; z-index: 2; }
.mezcal-caja {
  display: grid; gap: var(--e-8); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56.25rem) {
  .mezcal-caja { grid-template-columns: 1fr minmax(0, 26rem); gap: var(--e-16); }
}
.mezcal-lote {
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--llama);
}

/* ── 18 · PIE ───────────────────────────────────────────────────────────── */
.pie { background: var(--noche); padding-block: var(--e-16) var(--e-8); }
.pie-rejilla { display: grid; gap: var(--e-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56.25rem) {
  .pie-rejilla { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--e-12); }
}
.pie h3 {
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--humo);
  margin-bottom: var(--e-4);
}
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--e-2); }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--rescoldo); }
/* la lista del pie es una columna de enlaces: cada uno necesita su zona
   táctil, no solo los marcados como contacto */
.pie li a {
  display: inline-flex; align-items: center;
  min-height: 2.75rem;    /* 44px exactos */
  line-height: 2.75rem;   /* con line-height, no con padding: un inline-flex
                             sobre nodos de texto se come el espacio entre
                             palabras y deja «Vercomo llegar» */
}
.pie li { line-height: 1.2; }
.pie-logo { width: 11rem; color: var(--hueso); margin-bottom: var(--e-4); }
.pie-legal {
  margin-top: var(--e-12); padding-top: var(--e-6);
  border-top: 1px solid var(--borde);
  font-size: var(--t-xs); color: var(--humo);
  display: flex; flex-wrap: wrap; gap: var(--e-3) var(--e-6);
}

/* enlaces de contacto: zona táctil real, no solo texto subrayado */
.contacto-enlace {
  display: inline-flex; align-items: center; gap: var(--e-2);
  min-height: 2.75rem;              /* 44px exactos */
  text-decoration: none;
  /* el aire se da con line-height, no con inline-flex sobre el texto:
     un flex sobre nodos de texto se come el espacio entre palabras */
  line-height: 2.75rem;
}
.contacto-enlace:hover { color: var(--rescoldo); }

/* ── 19 · AVISO DE MUESTRA ───────────────────────────────────────────────── */
.sello {
  display: inline-flex; align-items: center; gap: var(--e-2);
  font-family: var(--display); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--llama);
  border: 1px dashed rgb(253 255 179 / 0.4);
  border-radius: var(--radio);
  padding: var(--e-2) var(--e-3);
}

/* ── 20 · APARICIONES ────────────────────────────────────────────────────────
   animation-timeline nativo. NUNCA opacity:0 + clase por JS: eso borra el
   contenido cuando el JS no llega, y ya pasó en producción.

   El rango va de entry 8% a entry 46% — entry con entry, nunca mezclado con
   cover: al mezclarlos, lo que ya rebasó la pantalla se queda invisible.     */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .surge {
      animation: surgir linear both;
      animation-timeline: view();
      animation-range: entry 8% entry 46%;
    }
    @keyframes surgir {
      from { opacity: 0; translate: 0 1.75rem; }
      to   { opacity: 1; translate: 0 0; }
    }
  }
}

/* ── 21 · MOVIMIENTO REDUCIDO ───────────────────────────────────────────────
   Las chispas se apagan quietas en su posición intermedia, no en el fotograma
   0 — si no, desaparecerían.                                                 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .chispa { opacity: 0.5; translate: 0 -30vh; }
}

/* ── 22 · CAPA DE RENDIMIENTO EN MÓVIL ──────────────────────────────────────
   La segunda condición atrapa al teléfono o tableta ANCHO. Es `hover: none`
   Y `pointer: coarse` a propósito: un portátil táctil responde coarse pero
   también hover, y ése sí conserva los efectos.                              */
@media (max-width: 56.24rem), (hover: none) and (pointer: coarse) {
  * { backdrop-filter: none !important; }
  /* la mitad de las chispas: en un teléfono el resto no se percibe y cuesta */
  .chispa:nth-child(2n) { display: none; }
  .heroe { min-height: 92svh; }
}
