/* ==========================================================================
   Pucara Films — hoja de estilos principal
   Paleta cinematográfica oscura · tipografía editorial · 100% responsive
   ========================================================================== */

/* ---------- Tokens ----------
   Paleta del altiplano: el negro es frío, de sombra en altura, no neutro.
   El hueso es adobe blanqueado por el sol, no crema cálido.
   Los tres acentos son las bandas de un aguayo, y el rojo sale del isotipo.
   -------------------------------------------------------------------- */
:root {
  --black: #0b0b0d;
  --ink: #121216;
  --ink-2: #17171c;
  --ink-3: #212128;
  --line: rgba(237, 233, 225, .14);
  --line-soft: rgba(237, 233, 225, .08);

  --paper: #ede9e1;
  --text: #e4e0d8;
  --muted: #a8a49b;
  --muted-2: #8a867e;      /* aclarado para cumplir AA 4.5:1 sobre --black */

  --red: #c1272d;          /* rojo óxido del isotipo Pucara */
  --magenta: #c41fb6;
  --sand: #e8a33d;
  --focus: #e8a33d;        /* anillo de foco, ajustado por tema */

  /* Componentes RGB del fondo, para los velos y la cabecera translúcida. */
  --bg-rgb: 11, 11, 13;
  --tint: rgba(237, 233, 225, .03);   /* franjas y notas, sutil sobre el fondo */

  /* Texto que va SOBRE fotografía: no cambia con el tema, porque el velo
     bajo él siempre es oscuro. */
  --on-media: #ede9e1;
  --on-media-dim: #b4b0a7;

  /* La firma del sitio: la franja roja de la cabecera y los rótulos. */
  --band: var(--red);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;

  /* Todo el sitio usa la misma familia que el menú. Los tres alias se
     conservan para poder diferenciar de nuevo con un solo cambio aquí. */
  /* Dorado de los laureles: un laurel de festival es dorado en papel blanco y
     en pantalla negra por igual, así que el tono no se invierte con el tema.
     Sólo cambia de intensidad — ver el bloque de tema claro más abajo, donde
     este dorado se apagaba hasta 2,3:1 sobre el papel. */
  --laurel: #d9992f;
  /* El laurel del mosaico va sobre fotografía y sobre su propio velo oscuro:
     igual que --on-media, no cambia con el tema del dispositivo. */
  --laurel-media: #e8a83c;
  --laurel-soft: #8a7448;

  --font-display: 'Bricolage Grotesque', 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-body: var(--font-display);
  --font-mono: var(--font-display);

  --ease: cubic-bezier(.22, .61, .36, 1);
  /* Curva de las micro-animaciones: arranca y termina muy suave. */
  --ease-soft: cubic-bezier(.33, .02, .18, 1);
  --header-h: 76px;
  /* Altura real de la cabecera fija. app.js la mide y la sobreescribe, porque
     en pantallas angostas el menú pasa a dos filas y crece. Todo lo que deba
     quedar por debajo de la cabecera usa esta variable, no --header-h. */
  --header-real: 76px;
}

/* ---------- Tema claro ----------
   Se activa solo si el dispositivo está en modo claro. Toda la escala se
   invierte: --black pasa a ser el papel y --paper la tinta, así que cada
   componente sigue funcionando sin tocar una sola regla.
   Lo que va sobre fotografía usa --on-media y no se invierte.
   -------------------------------------------------------------------- */
@media (prefers-color-scheme: light) {
  /* El dorado brillante se pierde sobre papel: 2,3:1 contra el fondo. Un
     ámbar más profundo llega a 3,9:1 y sigue leyéndose como dorado. */
  :root:not([data-theme="dark"]) { --laurel: #a8721c; }

  /* El velo del hero se aligera: sobre papel, .55 lavaba la fotografía. */
  .film-hero__bg::after {
    background: linear-gradient(to top,
      var(--black) 6%,
      rgba(var(--bg-rgb), .84) 40%,
      rgba(var(--bg-rgb), .28) 100%) !important;
  }
  :root {
    --black: #faf8f4;      /* papel */
    --ink: #f2efe8;
    --ink-2: #ebe7df;
    --ink-3: #e0dbd1;
    --line: rgba(20, 19, 15, .18);
    --line-soft: rgba(20, 19, 15, .10);

    --paper: #14130f;      /* tinta: máximo contraste */
    --text: #2a2822;
    --muted: #5a5650;
    --muted-2: #6f6b64;

    --focus: #8a5a00;      /* el ocre no contrasta sobre papel */
    --bg-rgb: 250, 248, 244;
    --tint: rgba(20, 19, 15, .04);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  /* La grotesca tiene la x más alta que la serif anterior: mismo cuerpo, algo
     menos de interlínea para que el bloque no se abra de más. */
  font-size: 17px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  /* `clip` y no `hidden`: `hidden` convertiría al body en contenedor de scroll
     y la cabecera fija se dimensionaría incluyendo el ancho de la barra de
     desplazamiento, desbordando la pantalla. */
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--red); color: var(--on-media); }

/* ---------- Utilidades ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1560px; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
/* Primera sección de una página: arranca por debajo de la cabecera fija. */
.section--top { padding-top: calc(var(--header-real) + clamp(2.5rem, 6vw, 6rem)); }
.section--alt { background: var(--ink); }
.center { text-align: center; }
.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;
}
.hide { display: none !important; }
/* El enlace de salto se vuelve visible al recibir foco por teclado */
a.sr-only:focus {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  width: auto; height: auto; margin: 0; clip: auto; overflow: visible;
  padding: .7rem 1.1rem; background: var(--paper); color: var(--black);
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; border-radius: var(--radius);
}

/* Rótulo: datos en mono, precedido por la banda aguayo. */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; flex: none;
  background: var(--band);
}
.eyebrow.center { justify-content: center; }

.h-xl { font-size: clamp(2.4rem, 6.2vw, 5rem); }
.h-lg { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.15rem); }
.h-sm { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }
.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .82rem 1.5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background .5s var(--ease-soft), color .5s var(--ease-soft), border-color .5s var(--ease-soft), transform .5s var(--ease-soft);
}
.btn:hover { background: var(--paper); color: var(--black); border-color: var(--paper); }
.btn--solid { background: var(--red); border-color: var(--red); color: var(--on-media); }
.btn--solid:hover { background: #a81f25; border-color: #a81f25; color: var(--on-media); }
.btn--ghost { border-color: var(--line); }
.btn--sm { padding: .6rem 1.1rem; font-size: .7rem; }
.btn svg { width: 14px; height: 14px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: border-color .3s var(--ease), color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { border-color: var(--red); color: var(--paper); gap: .85rem; }

/* ==========================================================================
   Header — barra plana: logo · menú · contacto. Todo visible, sin desplegables.
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center;
  min-height: var(--header-h);
  background: rgba(var(--bg-rgb), .84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .4s var(--ease), min-height .4s var(--ease);
}
.header.is-stuck { background: rgba(var(--bg-rgb), .97); }
/* La banda aguayo cierra la cabecera: es lo primero que se ve del sitio. */
.header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--band);
}

.header__inner {
  width: 100%; max-width: 1720px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1.5rem;
}
.header__left { justify-self: start; }
.header__center { justify-self: center; display: flex; align-items: center; gap: clamp(1.4rem, 3.4vw, 3.6rem); }
.header__right { justify-self: end; display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.6rem); }

.brand { display: block; flex: none; }
.brand img { width: auto; height: 42px; transition: height .4s var(--ease); }

.nav__link {
  position: relative; white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(.72rem, 1.05vw, .84rem); font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text);
  padding-block: 5px;
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--paper); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link--contact { color: var(--paper); }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 100px; overflow: hidden;
}
.lang button {
  padding: .32rem .62rem;
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .14em; color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.lang button.is-active { background: var(--paper); color: var(--black); }

/* En pantallas chicas la barra sigue siendo plana, pero se compacta a DOS
   filas: el logo y el idioma arriba, y los tres enlaces abajo, todos a la
   misma altura. `display: contents` en .header__right saca a sus hijos de su
   caja para poder repartirlos por separado en la retícula.
   --header-real sube en el mismo punto de quiebre: es el respaldo por si el
   JS no llega a medir la cabecera. */
@media (max-width: 820px) {
  :root { --header-real: 80px; }
  .header { min-height: 0; padding-block: .5rem; }
  .header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo .   lang"
      "nav  nav contacto";
    row-gap: .4rem; column-gap: .8rem;
  }
  .header__left { grid-area: logo; justify-self: start; }
  .header__center { grid-area: nav; justify-self: start; gap: 1.4rem; }
  .header__right { display: contents; }
  .header__right .nav__link--contact { grid-area: contacto; justify-self: end; }
  .lang { grid-area: lang; justify-self: end; }
  .brand img { height: 28px; }
}
@media (max-width: 420px) {
  :root { --header-real: 74px; }
  .header { padding-block: .45rem; }
  .header__inner { column-gap: .6rem; }
  .header__center { gap: .95rem; }
  .nav__link { font-size: .66rem; letter-spacing: .08em; }
  .brand img { height: 24px; }
  .lang button { padding: .24rem .45rem; font-size: .58rem; }
}


/* ==========================================================================
   Declaración / bloque de texto grande
   ========================================================================== */
.statement { max-width: 980px; margin-inline: auto; text-align: center; }
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.1vw, 2.4rem);
  font-weight: 400; line-height: 1.28; letter-spacing: -.015em;
  color: var(--paper);
}
.statement__text em { font-style: normal; color: var(--red); }

/* Cifras */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; background: var(--line-soft); border-block: 1px solid var(--line-soft);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.stat { background: var(--black); padding: clamp(1.6rem, 3vw, 2.4rem) 1.2rem; text-align: center; }
.stat__n {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: var(--paper); line-height: 1;
}
.stat__l {
  margin-top: .7rem; font-family: var(--font-mono); font-size: .64rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.section--alt .stat { background: var(--ink); }

/* ==========================================================================
   Grilla de proyectos
   ========================================================================== */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filters button {
  padding: .5rem 1.05rem;
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 100px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.filters button:hover { color: var(--paper); border-color: rgba(237,233,225,.32); }
.filters button.is-active { background: var(--paper); border-color: var(--paper); color: var(--black); }

.grid-films {
  display: grid; gap: clamp(1.2rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.grid-films--featured { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.film-card {
  position: relative; display: block; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.film-card:hover { border-color: rgba(237,233,225,.26); transform: translateY(-4px); }
.film-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.film-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
  transform: scale(1.02);
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.film-card:hover .film-card__media img { transform: scale(1.09); filter: grayscale(0) contrast(1); }
.film-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 13, .92) 0%, rgba(11, 11, 13, .15) 55%, rgba(11, 11, 13, .25) 100%);
}
.film-card__year {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: .28rem .6rem;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; color: var(--paper);
  background: rgba(193,39,45,.94); border-radius: 2px;
}
.film-card__status {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  padding: .28rem .6rem;
  font-family: var(--font-display); font-size: .62rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--paper);
  background: rgba(196,31,182,.92); border-radius: 2px;
}
.film-card__body { position: relative; z-index: 2; padding: 1.35rem 1.4rem 1.5rem; }
.film-card__title {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  line-height: 1.12; color: var(--paper); margin-bottom: .55rem;
}
.film-card__meta { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.film-card__meta strong { color: var(--text); font-weight: 500; }
.film-card__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .75rem; font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; font-family: var(--font-display); font-weight: 600;
  border: 1px solid var(--line); border-radius: 100px; color: var(--text);
  transition: background .5s var(--ease-soft), color .5s var(--ease-soft), border-color .5s var(--ease-soft);
}
.tag:hover { background: var(--paper); color: var(--black); border-color: var(--paper); }
.tag--accent { border-color: rgba(193,39,45,.6); color: #e0868a; }
.tag--accent:hover { background: var(--red); border-color: var(--red); color: var(--on-media); }
.tag svg { width: 11px; height: 11px; fill: currentColor; flex: none; }

/* ==========================================================================
   Mosaico de películas — portada. Fotos grandes a sangre; al pasar el cursor
   aparece el título y la info; al hacer clic se abre la ficha.
   ========================================================================== */
.mosaic-page { padding-top: calc(var(--header-real) + 2px); }

/* Grid envolvente: llega a los cuatro bordes de la pantalla y las juntas son
   casi invisibles, para que lo que se vea sea la fotografía y no la retícula. */
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(190px, 22vw, 340px);
  grid-auto-flow: dense;
  gap: 2px;
  padding: 0;
}

.mo {
  position: relative;
  grid-column: span 4;
  grid-row: span 1;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  /* Entrada al cargar: las baldosas aparecen en cascada, como un contacto
     fotográfico que se revela. Un solo momento, no efectos sueltos. */
  animation: mo-in .7s var(--ease) both;
}
.mo:nth-child(1)  { animation-delay: .02s; }
.mo:nth-child(2)  { animation-delay: .07s; }
.mo:nth-child(3)  { animation-delay: .12s; }
.mo:nth-child(4)  { animation-delay: .17s; }
.mo:nth-child(5)  { animation-delay: .22s; }
.mo:nth-child(6)  { animation-delay: .27s; }
.mo:nth-child(7)  { animation-delay: .32s; }
.mo:nth-child(8)  { animation-delay: .37s; }
.mo:nth-child(n+9) { animation-delay: .42s; }

@keyframes mo-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* Ritmo del mosaico. Las clases las asigna app.js en ciclos de 7 que
   completan las 12 columnas; la cola sobrante queda uniforme para que
   la grilla siempre cierre sin huecos. */
.mo--wide { grid-column: span 8; }
.mo--half { grid-column: span 6; }
.mo--full { grid-column: span 12; }
.mo--tall { grid-row: span 2; }

/* Micro-animación: el mosaico se ve a color, y al pasar el cursor la baldosa
   vira a blanco y negro y se apaga para dar paso a la ficha. El oscurecimiento
   no es decorativo: sostiene el contraste del texto que aparece encima. */
/* Con la imagen a brillo completo, el año se perdía sobre fotos claras.
   Este velo sólo cubre el borde superior y desaparece al pasar el cursor. */
.mo::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 32%;
  background: linear-gradient(to bottom, rgba(11, 11, 13, .45), transparent);
  z-index: 1; pointer-events: none;
  transition: opacity .7s var(--ease-soft);
}
.mo:hover::before, .mo:focus-within::before { opacity: 0; }

.mo__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0) contrast(1) brightness(1);
  transform: scale(1.01);
  transition: transform 1.4s var(--ease-soft), filter .9s var(--ease-soft);
}
.mo:hover .mo__img,
.mo:focus-within .mo__img {
  transform: scale(1.035);
  filter: grayscale(.5) contrast(1.04) brightness(.6);
}

/* Enlace que cubre toda la baldosa */
.mo__link { position: absolute; inset: 0; z-index: 2; }

.mo__year {
  position: absolute; top: 1rem; left: 1.1rem; z-index: 4;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; color: rgba(237, 233, 225, .82);
  text-shadow: 0 1px 6px rgba(11, 11, 13, .55);
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.mo:hover .mo__year, .mo:focus-within .mo__year { opacity: 0; }

/* Distintivo de laurel: arriba a la derecha, en diagonal con el año.
   Visible en reposo — ese es el punto: que el mosaico diga de un vistazo qué
   producciones han corrido festivales, sin obligar a pasar el cursor por cada
   una. Al hacer hover se apaga como el año, para no pelearse con la ficha.
   Se apoya en el mismo velo superior (.mo::before) que sostiene al año. */
.mo__laurel {
  position: absolute; top: .85rem; right: 1rem; z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  padding: .3rem;
  border-radius: 999px;
  /* Fondo propio, y no sólo una sombra: medimos el dorado contra la foto de
     cada baldosa y en El Río se caía a 1,24:1 — invisible. Con este velo el
     peor caso sube a 3,7:1 y el laurel se lee sobre cualquier fotograma.
     Al ir sobre fotografía, el color no se invierte con el tema. */
  background: rgba(11, 11, 13, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--laurel-media);
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.mo__laurel .laurel { width: 26px; height: 26px; }
.mo:hover .mo__laurel, .mo:focus-within .mo__laurel { opacity: 0; }

/* En el móvil la ficha está siempre abierta y la foto va oscurecida, así que
   el laurel no se apaga: si no, no se vería nunca. */
@media (hover: none) {
  .mo:hover .mo__laurel, .mo:focus-within .mo__laurel { opacity: 1; }
}
@media (max-width: 720px) {
  .mo__laurel { top: .7rem; right: .8rem; }
  .mo__laurel .laurel { width: 22px; height: 22px; }
  .mo:hover .mo__laurel, .mo:focus-within .mo__laurel { opacity: 1; }
}

/* Panel que se revela */
.mo__info {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.2rem, 2.2vw, 2.2rem);
  /* El degradado se concentra abajo, donde se apoya el texto: garantiza 4.5:1
     sobre cualquier fotograma sin tener que oscurecer la imagen entera. */
  background: linear-gradient(to top,
    rgba(11, 11, 13, .88) 0%,
    rgba(11, 11, 13, .72) 26%,
    rgba(11, 11, 13, .18) 62%,
    transparent 100%);
  opacity: 0;
  transition: opacity .7s var(--ease-soft);
  pointer-events: none;
}
.mo:hover .mo__info, .mo:focus-within .mo__info { opacity: 1; }

/* El texto sube apenas 8px y se escalona muy poco: se percibe como un
   asentarse, no como una animación. */
.mo__info > * { transform: translateY(8px); transition: transform .7s var(--ease-soft); }
.mo:hover .mo__info > *, .mo:focus-within .mo__info > * { transform: none; }
.mo__info > *:nth-child(2) { transition-delay: .03s; }
.mo__info > *:nth-child(3) { transition-delay: .06s; }
.mo__info > *:nth-child(4) { transition-delay: .09s; }

.mo__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.6rem);
  font-weight: 800; line-height: .98; letter-spacing: -.035em;
  color: var(--on-media); margin-bottom: .55rem;
  text-wrap: balance;
}
.mo--tall .mo__title { font-size: clamp(1.7rem, 3.2vw, 3.4rem); }

/* La línea de datos de cada película se lee como una entrada de catálogo,
   no como un pie de foto: mono, versalitas, tracking abierto. */
.mo__meta {
  font-family: var(--font-mono);
  font-size: .66rem; line-height: 1.6; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-media-dim);
  margin-bottom: .55rem;
}
.mo__dir { font-size: .95rem; color: var(--on-media); margin-bottom: 1rem; }
.mo__dir span {
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--on-media-dim);
  display: block; margin-bottom: .1rem;
}

.mo__actions { display: flex; flex-wrap: wrap; gap: .5rem; pointer-events: auto; position: relative; z-index: 5; }
.mo__actions .tag { background: rgba(11, 11, 13, .55); backdrop-filter: blur(6px); color: var(--on-media); border-color: rgba(237,233,225,.3); }

/* Sin hover (táctil): la info se muestra siempre */
@media (hover: none) {
  .mo__img { filter: grayscale(0) brightness(.5); }
  .mo::before { opacity: 0; }
  .mo__info { opacity: 1; }
  .mo__info > * { transform: none; }
  .mo__year { opacity: 0; }
}

/* Se mantienen las 12 columnas para que el reparto calculado en JS siga
   siendo válido; sólo baja la altura de fila. */
@media (max-width: 1100px) {
  .mosaic { grid-auto-rows: clamp(170px, 26vw, 290px); }
  /* Con la fila más baja, las fichas de título largo ("98 Segundos sin
     sombra") se salían por arriba y perdían el título. Aquí van más juntas. */
  .mo__info { padding: clamp(1rem, 2vw, 1.6rem); }
  .mo__title { font-size: clamp(1.25rem, 2.2vw, 1.9rem); margin-bottom: .35rem; }
  .mo__meta { margin-bottom: .35rem; }
  .mo__dir { font-size: .85rem; line-height: 1.35; margin-bottom: .7rem; }
}
/* En móvil todo pasa a una sola columna: siempre cierra. */
@media (max-width: 720px) {
  .mosaic { grid-auto-rows: clamp(200px, 56vw, 330px); gap: 2px; padding: 0; }
  .mo, .mo--wide, .mo--half, .mo--full { grid-column: span 12; grid-row: span 1; }
  .mo--tall { grid-row: span 1; }
  .mo--tall .mo__title { font-size: clamp(1.5rem, 7vw, 2.2rem); }
  /* Red de seguridad: en pantallas chicas no hay cursor que pasar por encima,
     así que el título va siempre visible aunque el navegador no reporte
     `hover: none`. */
  .mo__img { filter: grayscale(0) brightness(.5); }
  .mo::before { opacity: 0; }
  .mo__info { opacity: 1; }
  .mo__info > * { transform: none; }
  .mo__year { opacity: 0; }

}

/* Filtros sobre el mosaico */
.mosaic-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: clamp(.9rem, 1.6vw, 1.2rem) clamp(1rem, 3vw, 1.6rem);
}
.mosaic-bar__title {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* ==========================================================================
   Catálogo con revelado al pasar el mouse
   ========================================================================== */
.catalog {
  display: grid;
  gap: clamp(.9rem, 1.6vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cat-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid var(--line-soft);
  transition: border-color .4s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cat-card:hover,
.cat-card:focus-within {
  border-color: rgba(237, 233, 225, .3);
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .55);
}

.cat-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.45) contrast(1.05) brightness(.9);
  transform: scale(1.01);
  transition: transform .9s var(--ease), filter .6s var(--ease);
}
.cat-card:hover .cat-card__img,
.cat-card:focus-within .cat-card__img {
  transform: scale(1.08);
  filter: grayscale(0) contrast(1) brightness(.55);
}

/* Enlace que cubre toda la tarjeta */
.cat-card__stretch { position: absolute; inset: 0; z-index: 2; }

/* Insignias */
.cat-card__badge {
  position: absolute; top: .9rem; left: .9rem; z-index: 4;
  padding: .3rem .62rem;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; color: var(--paper);
  background: rgba(193,39,45,.94); border-radius: 2px;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.cat-card__badge--dev { background: rgba(196, 31, 182, .92); text-transform: uppercase; font-size: .62rem; letter-spacing: .18em; }

/* Título siempre visible; se desvanece al revelar la ficha */
.cat-card__label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 3.2rem 1.15rem 1.05rem;
  background: linear-gradient(to top, rgba(11, 11, 13, .92), rgba(11, 11, 13, 0));
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 700;
  line-height: 1.15; color: var(--paper);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.cat-card:hover .cat-card__label,
.cat-card:focus-within .cat-card__label { opacity: 0; transform: translateY(10px); }

/* Panel revelado */
.cat-card__reveal {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.4rem 1.3rem 1.35rem;
  background: linear-gradient(to top, rgba(11, 11, 13, .95) 12%, rgba(11, 11, 13, .72) 60%, rgba(11, 11, 13, .45));
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.cat-card:hover .cat-card__reveal,
.cat-card:focus-within .cat-card__reveal { opacity: 1; }

.cat-card__reveal > * {
  transform: translateY(14px);
  transition: transform .5s var(--ease);
}
.cat-card:hover .cat-card__reveal > *,
.cat-card:focus-within .cat-card__reveal > * { transform: none; }
.cat-card__reveal > *:nth-child(2) { transition-delay: .04s; }
.cat-card__reveal > *:nth-child(3) { transition-delay: .08s; }
.cat-card__reveal > *:nth-child(4) { transition-delay: .12s; }

.cat-card__title {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700; line-height: 1.1; color: var(--paper); margin-bottom: .5rem;
}
.cat-card__format {
  font-size: .84rem; color: var(--muted); line-height: 1.45; margin-bottom: .3rem;
}
.cat-card__dir { font-size: .88rem; color: var(--paper); line-height: 1.45; margin-bottom: 1.05rem; }
.cat-card__dir span {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: .15rem;
}

/* Los botones sí reciben clics */
.cat-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; pointer-events: auto; position: relative; z-index: 5; }
.cat-card__actions .tag { background: rgba(11, 11, 13, .5); }

/* Sin hover (táctil): mostrar siempre la ficha */
@media (hover: none) {
  .cat-card__img { filter: grayscale(0) brightness(.55); }
  .cat-card__reveal { opacity: 1; }
  .cat-card__reveal > * { transform: none; }
  .cat-card__label { display: none; }
}

/* Tarjeta destacada (home) */
.feature {
  display: grid; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.feature:nth-child(even) { direction: rtl; }
.feature:nth-child(even) > * { direction: ltr; }
.feature + .feature { margin-top: clamp(3rem, 6vw, 5.5rem); }
.feature__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.05); }
.feature__title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); color: var(--paper); margin-bottom: .9rem; }

/* ==========================================================================
   Bloque split (bio, servicios)
   ========================================================================== */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); }
.split__media::before {
  content: ""; position: absolute; inset: auto -14px -14px auto;
  width: 45%; height: 45%; border: 1px solid rgba(193,39,45,.55); z-index: -1;
}
.prose { color: var(--text); }

/* Texto justificado en los bloques de lectura — también en el teléfono, por
   pedido del cliente.
   El guionado es lo que hace viable el justificado en columnas estrechas: sin
   él, medido a 375 px, una línea de la biografía se estiraba un 35 % y varias
   pasaban del 20 %. Con él, el navegador parte la palabra y el hueco se cierra.
   `hyphenate-limit-chars: 10 4 4` es el seguro: sólo se parten palabras de 10
   letras o más, y dejando al menos 4 a cada lado. Así los nombres propios
   cortos —Bolivia (7), Gosalvez (8), Pucara (6), Paola (5)— no se pueden
   cortar nunca, que era la queja original. */
.justificado, .justificado p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
  -webkit-hyphenate-limit-before: 4;
  -webkit-hyphenate-limit-after: 4;
  text-wrap: pretty;
}
.prose p + p { margin-top: 0; }
.prose a { color: var(--paper); border-bottom: 1px solid var(--red); word-break: break-word; }
.prose a:hover { color: var(--red); }

/* Carrusel de créditos / servicios */
/* El carrusel se desplaza solo, pero es un contenedor de scroll real: se puede
   arrastrar con el mouse, deslizar con el dedo o mover con la rueda. El avance
   automático lo hace app.js moviendo scrollLeft — no un `transform`, que es lo
   que antes impedía el desplazamiento manual. */
.marquee {
  overflow-x: auto; overflow-y: hidden;
  position: relative; margin-top: 2rem;
  cursor: grab;
  scrollbar-width: none;              /* Firefox */
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; }
.marquee.is-dragging img { pointer-events: none; }

/* En la portada el carrusel va a sangre, para que los afiches respiren. */
.marquee--wide { margin-top: clamp(2rem, 4vw, 3.2rem); }

/* Los velos de los bordes van fijos al contenedor, no al contenido que scrollea. */
.marquee-wrap { position: relative; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--black), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--black), transparent); }

.marquee__track { display: flex; gap: 1.1rem; width: max-content; }
.marquee__track img {
  height: clamp(320px, 44vw, 660px); width: auto; border-radius: var(--radius);
  filter: grayscale(1) contrast(1.05); opacity: .72;
  transition: filter .4s var(--ease), opacity .4s var(--ease);
  user-select: none; -webkit-user-drag: none;
}
.marquee__track img:hover { filter: none; opacity: 1; }

/* ==========================================================================
   Página de película
   ========================================================================== */
.film-hero {
  position: relative; min-height: 62svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-real) + 4rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
}
.film-hero__bg { position: absolute; inset: 0; z-index: 0; }
.film-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.film-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--black) 4%, rgba(var(--bg-rgb), .72) 45%, rgba(var(--bg-rgb), .55) 100%);
}
.film-hero__inner { position: relative; z-index: 2; }
.film-hero h1 { font-size: clamp(2.2rem, 6.6vw, 4.6rem); color: var(--paper); margin-bottom: .8rem; }
.film-hero__meta {
  display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.film-hero__meta span:not(:last-child)::after { content: "·"; margin-left: .9rem; color: var(--muted-2); }
.film-hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.video-frame {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.block { padding-block: clamp(2.6rem, 5vw, 4.2rem); border-top: 1px solid var(--line-soft); }
.block__head { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.block__title {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--paper);
  display: flex; align-items: center; gap: .9rem;
}
.block__title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* Citas de prensa dentro de la ficha de película. Sobre fondo de página (no
   sobre foto), así que aquí sí usan los colores del tema. */
.quotes {
  display: grid; gap: clamp(1.4rem, 3vw, 2.2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.quote--lg {
  margin: 0; padding-left: clamp(1rem, 2vw, 1.4rem);
  border-left: 2px solid var(--red);
}
.quote--lg p {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.3; font-weight: 500;
  letter-spacing: -.01em; color: var(--paper);
  text-wrap: pretty;
}
.quote--lg cite {
  display: block; margin-top: .7rem; font-style: normal;
  font-family: var(--font-mono); font-size: .66rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2);
}
.quote--lg cite a { border-bottom: 1px solid var(--red); transition: color .3s var(--ease); }
.quote--lg cite a:hover { color: var(--red); }

/* Varias frases de la misma reseña van juntas bajo una sola firma. */
.quote--lg p + p { margin-top: .6rem; }
.quote__stars {
  display: block; margin-top: .5rem;
  color: var(--laurel); font-size: .8rem; letter-spacing: .28em;
}

/* --------------------------------------------------------------------------
   Premios y festivales
   Cada entrada lleva su corona de laurel. Lo ganado va en dorado; las
   selecciones, en el gris de apoyo, para que el palmarés se lea de un vistazo
   sin que 39 laureles dorados compitan entre sí.
   -------------------------------------------------------------------------- */
.awards {
  display: grid; gap: 1.1rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.award {
  display: flex; align-items: flex-start; gap: .8rem;
  break-inside: avoid;
}
.award .laurel {
  width: 26px; height: 26px; flex: none;
  margin-top: .1rem;
  color: var(--laurel);
}
.award__name {
  margin: 0;
  font-size: .98rem; line-height: 1.3; font-weight: 600;
  color: var(--paper);
  text-wrap: pretty;
}
.award__where {
  margin: .15rem 0 0;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2);
}
.award__result { margin: .25rem 0 0; font-size: .9rem; line-height: 1.35; color: var(--muted); }
.award__note {
  margin: .45rem 0 0; padding-left: .7rem;
  border-left: 1px solid var(--line);
  font-size: .86rem; line-height: 1.45; color: var(--muted-2);
  text-wrap: pretty;
}

/* Las selecciones pesan menos que los premios. */
.awards--soft .laurel { color: var(--laurel-soft); }
.awards--soft .award__name { font-weight: 500; color: var(--muted); }

@media (max-width: 560px) {
  .awards { gap: .9rem; }
  .award .laurel { width: 22px; height: 22px; }
}

.cols-2 { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cols-2--poster { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: start; }
.poster { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.poster img { width: 100%; }

.spec { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.spec__row {
  display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 1rem;
  padding: .85rem 1.15rem; border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.6;
}
.spec__row:last-child { border-bottom: 0; }
.spec__row:nth-child(odd) { background: var(--tint); }
.spec__k {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding-top: .18rem;
}
.spec__v { color: var(--text); }

.people { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.person {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.15rem 1.25rem; background: var(--ink-2);
}
.person__role {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); margin-bottom: .35rem;
}
.person__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--paper); margin-bottom: .55rem; }
.person__bio { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.person__bio a { color: var(--paper); border-bottom: 1px solid var(--red); }

/* Acordeón */
.acc { border-top: 1px solid var(--line-soft); }
.acc__item { border-bottom: 1px solid var(--line-soft); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; text-align: left;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--paper);
  transition: color .3s var(--ease);
}
.acc__btn:hover { color: var(--red); }
.acc__btn i {
  flex: none; width: 16px; height: 16px; position: relative; transition: transform .35s var(--ease);
}
.acc__btn i::before, .acc__btn i::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
}
.acc__btn i::before { top: 7.5px; left: 0; width: 16px; height: 1.5px; }
.acc__btn i::after { left: 7.5px; top: 0; width: 1.5px; height: 16px; transition: opacity .3s var(--ease); }
.acc__item.is-open .acc__btn i::after { opacity: 0; }
.acc__panel { overflow: hidden; max-height: 0; transition: max-height .45s var(--ease); }
.acc__panel > div { padding: 0 0 1.2rem; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.acc__panel a { color: var(--paper); border-bottom: 1px solid var(--red); }

/* Logos de aliados */
.logos { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; align-items: center; }
.logos img {
  height: clamp(46px, 6vw, 68px); width: auto;
  background: #fff; padding: .55rem .75rem; border-radius: var(--radius);
  filter: grayscale(1); opacity: .8;
  transition: filter .35s var(--ease), opacity .35s var(--ease), transform .35s var(--ease);
}
.logos img:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.logos--sm img { height: clamp(38px, 5vw, 54px); }
.logo-group { margin-bottom: 1.8rem; }
.logo-group__label {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .9rem;
}

/* Galería */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery button { padding: 0; overflow: hidden; border-radius: var(--radius); background: #000; }
.gallery img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  filter: grayscale(.25); transition: transform .7s var(--ease), filter .5s var(--ease);
}
.gallery button:hover img { transform: scale(1.06); filter: none; }

/* Enlaces de prensa */
.press-list { display: grid; gap: .5rem; }
.press-list a {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: .95rem 1.1rem; border: 1px solid var(--line-soft); border-radius: var(--radius);
  font-size: .93rem; color: var(--text); line-height: 1.5;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.press-list a::before { content: "→"; color: var(--red); flex: none; }
.press-list a:hover { background: var(--ink-2); border-color: rgba(237,233,225,.22); color: var(--paper); }

.kit { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kit a {
  display: flex; align-items: center; gap: .7rem;
  padding: .9rem 1rem; border: 1px solid var(--line-soft); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text);
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.kit a::before { content: "↗"; color: var(--magenta); }
.kit a:hover { background: var(--ink-2); border-color: rgba(237,233,225,.22); color: var(--paper); }

.note {
  padding: 1.1rem 1.25rem; border-left: 2px solid var(--red);
  background: var(--tint); font-size: .94rem; color: var(--text);
}
.list-check { display: grid; gap: .5rem; }
.list-check li { display: flex; gap: .7rem; font-size: .94rem; color: var(--text); }
.list-check li::before { content: "—"; color: var(--red); flex: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(var(--bg-rgb), .97); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; object-fit: contain; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.6rem; font-size: 2rem; line-height: 1; color: var(--paper);
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2.2rem; color: var(--paper); padding: 1rem; opacity: .65;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }

/* ==========================================================================
   Contacto + footer
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 9vw, 8rem);
  background: var(--ink); border-top: 1px solid var(--line-soft);
  text-align: center;
}
.cta-band__title { font-size: clamp(1.9rem, 5.4vw, 4rem); color: var(--paper); margin-bottom: 1.2rem; }
.cta-band__mail {
  display: inline-block; font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.5rem); font-weight: 500; color: var(--paper);
  border-bottom: 1px solid var(--red); padding-bottom: .25rem;
  transition: color .3s var(--ease);
}
.cta-band__mail:hover { color: var(--red); }

.footer { background: var(--black); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; border-top: 1px solid var(--line-soft); }
.footer__grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
  align-items: start;
}
.footer__logo { width: 190px; margin-bottom: 1.1rem; }
.footer__tag { color: var(--muted); font-size: .9rem; max-width: 34ch; }
.footer__h {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1rem;
}
.footer__list { display: grid; gap: .55rem; font-size: .92rem; color: var(--text); }
.footer__list a:hover { color: var(--paper); }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--text);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.socials a:hover { background: var(--paper); color: var(--black); border-color: var(--paper); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer__bottom {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  text-align: center;
  font-size: .8rem; color: var(--muted-2);
}
.footer__bottom a:hover { color: var(--paper); }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .split, .feature, .cols-2--poster { grid-template-columns: 1fr; }
  .feature:nth-child(even) { direction: ltr; }
  .cols-2--poster .poster { max-width: 320px; }
}
@media (max-width: 820px) {
  /* Ojo: aquí vivía `.nav, .header .lang { display: none }`, resto del menú
     hamburguesa que ya no existe. Ocultaba el selector ES/EN en móvil. */
  .film-hero { min-height: 54svh; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .grid-films, .catalog { grid-template-columns: 1fr; }
  .cat-card { aspect-ratio: 16 / 11; }
  .spec__row { grid-template-columns: 1fr; gap: .25rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* El carrusel se detiene por completo en vez de parpadear */
  .marquee__track { animation: none !important; transform: none; }
  .marquee { overflow-x: auto; }
}

@media print {
  .header, .drawer, .grain, .hero__scroll, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
