/* ==========================================================================
   OBSERVATORIO · Capa «inmersiva» (v2)
   --------------------------------------------------------------------------
   Se carga después de sistema.css y reutiliza sus tokens. Cambia la maqueta,
   no la identidad: la serie a pantalla completa, fotogramas a sangre,
   titulares de cartel y menos texto.

   Índice
     1. Membrete flotante      5. Película (cortinilla + tira)
     2. Escena de portada      6. Simulador
     3. Titulares              7. Crítica en cinta
     4. La serie y el equipo   8. Tienda · 9. Movimiento reducido
   ========================================================================== */


/* 1. MEMBRETE FLOTANTE ----------------------------------------------------
   Sobre la escena va transparente y en claro; al pasar la portada se vuelve
   papel (clase .es-solido, la pone sitio.js). */

.membrete--flotante {
  position: fixed; inset: 0 0 auto; z-index: 20;
  color: var(--papel-claro);
  transition: background-color 0.3s, color 0.3s;
}
.membrete--flotante .estratos { opacity: 0; transition: opacity 0.3s; }
.membrete--flotante a:hover { color: var(--e-rosa); }
.membrete--flotante.es-solido {
  background: var(--papel) url("../img/papel.webp") repeat;
  background-size: 320px 320px;
  color: var(--tinta);
}
.membrete--flotante.es-solido .estratos { opacity: 1; }
.membrete--flotante.es-solido a:hover { color: var(--e-rojo); }
.membrete--flotante:not(.es-solido) .membrete__nombre { visibility: hidden; }

@media (max-width: 40rem) {
  .membrete--flotante:not(.es-solido) { display: none; }
  .membrete--flotante .membrete__int { padding-block: 0.4rem 0.3rem; }
  .membrete--flotante .membrete__nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .membrete--flotante .membrete__nav::-webkit-scrollbar { display: none; }
  .membrete--flotante .membrete__nav ul { flex-wrap: nowrap; gap: 0 1.1rem; white-space: nowrap; }
  .membrete--flotante .membrete__nav a { padding-block: 0.35rem; }
}

/* Las anclas no deben quedar debajo del membrete fijo */
section[id] { scroll-margin-top: 4rem; }


/* 2. ESCENA DE PORTADA ----------------------------------------------------
   La montaña del cartel (o el tráiler, cuando llegue) a pantalla completa. El título
   en la letra del cartel, enorme, abajo. */

.escena {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background: var(--tinta);
  color: var(--papel-claro);
  --foco: var(--e-ocre);
}

.escena__fondo { position: absolute; inset: 0; z-index: -1; }
.escena__imagen, .escena__video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
}
.escena__fondo::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, rgb(12 18 23 / 0.55) 0, rgb(12 18 23 / 0) 22%),
    linear-gradient(to top, rgb(12 18 23 / 0.92) 0, rgb(12 18 23 / 0.55) 30%, rgb(12 18 23 / 0.1) 52%, rgb(12 18 23 / 0) 62%);
}
@media (max-width: 40rem) { .escena__imagen, .escena__video { object-position: 50% 0; } }
.escena__fondo picture { display: contents; }
.escena__video {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0;
}
.escena__video.en-marcha { opacity: 1; }
@keyframes acercar { from { transform: scale(1.12); } to { transform: scale(1); } }

.escena__int {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 7rem; padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.escena__titulo, .escena__lema, .escena__fecha { text-shadow: 0 2px 24px rgb(12 18 23 / 0.55); }
.escena__titulo {
  font-family: var(--f-rotulo);
  /* «OBSERVATORIO» en Jost 600 mide unas 7 veces su cuerpo: cabe justo en la columna. */
  font-size: clamp(2.5rem, calc((100vw - 2 * var(--margen)) / 7.15), 10.25rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-left: -0.04em;
  animation: aparecer 1.1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.escena__lema {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
  font-family: var(--f-texto);
  font-size: clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem);
  font-weight: 500; line-height: 1.15;
  animation: aparecer 1.1s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes aparecer { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }

.escena__pie {
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  border-top: 1px solid rgb(251 238 219 / 0.35);
  display: grid; gap: 1.25rem 2rem;
  grid-template-columns: 1fr;
  animation: aparecer 1.1s 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@media (min-width: 56rem) {
  .escena__pie { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .escena__redes { grid-column: 1 / -1; }
}

.escena__fecha {
  font-family: var(--f-rotulo); font-weight: 600;
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2rem);
  letter-spacing: 0.04em; line-height: 1.15;
}
.cuenta {
  margin-top: 0.35rem;
  font-family: var(--f-maquina); font-size: var(--t-maq);
  color: var(--e-piedra);
}
.cuenta__n {
  font-family: var(--f-rotulo); font-weight: 600; font-size: 1.25em;
  color: var(--papel-claro); font-variant-numeric: tabular-nums;
}

.escena__accion { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.boton--claro { background: var(--papel-claro); border-color: var(--papel-claro); color: var(--tinta); }
.boton--claro:hover { background: var(--e-rosa); border-color: var(--e-rosa); color: var(--tinta); }
.boton--hueco { background: transparent; border-color: var(--papel-claro); color: var(--papel-claro); }
.boton--hueco:hover { background: var(--papel-claro); border-color: var(--papel-claro); color: var(--tinta); }

.escena__redes {
  display: flex; flex-wrap: wrap; gap: 0 1.5rem;
  font-family: var(--f-rotulo); font-size: var(--t-nota); font-weight: 600; letter-spacing: 0.12em;
}
.escena__redes a { display: inline-block; padding-block: 0.4rem; text-decoration: none; border-bottom: 1px solid transparent; }
.escena__redes a:hover { color: var(--e-rosa); border-bottom-color: currentColor; }

.escena + .rayas { height: var(--raya-media); }

/* Ver Observatorio: en el resplandor, encima del observatorio. Hasta que haya enlace,
   abre un aviso y hace latir la fecha de abajo. */
.ver {
  position: absolute; z-index: 3; left: 0; right: 0; margin-inline: auto; top: 24%; top: 24svh;
  display: flex; flex-direction: column; align-items: center;
  width: min(24rem, calc(100% - 2 * var(--margen)));
  animation: aparecer 1.1s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.ver__boton {
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 0.85em 1.5em;
  font-family: var(--f-rotulo); font-size: var(--t-nota); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--papel-claro);
  background: rgb(12 18 23 / 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgb(251 238 219 / 0.55); border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.ver__boton svg { width: 0.7em; height: 0.8em; color: var(--e-rosa); transition: color 0.2s; }
.ver__boton:hover, .ver__boton[aria-expanded="true"] { background: var(--papel-claro); border-color: var(--papel-claro); color: var(--tinta); }
.ver__boton:hover svg, .ver__boton[aria-expanded="true"] svg { color: var(--tinta); }
.ver__boton:focus-visible, .ver__cerrar:focus-visible { outline: 2px solid var(--e-rosa); outline-offset: 3px; }

.ver__aviso {
  position: relative;
  margin-top: 0.85rem;
  padding: 1.25rem 3rem 1.3rem 1.4rem;
  background: rgb(12 18 23 / 0.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgb(251 238 219 / 0.3); border-radius: 0.6rem;
  box-shadow: 0 18px 50px rgb(12 18 23 / 0.45);
  font-family: var(--f-texto); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.35; color: var(--papel-claro); text-wrap: pretty;
}
.ver__aviso::before {
  content: ""; position: absolute; top: -0.45rem; left: 50%;
  width: 0.8rem; height: 0.8rem; transform: translateX(-50%) rotate(45deg);
  background: inherit; border: inherit; border-right: 0; border-bottom: 0;
}
.ver__aviso:not([hidden]) { animation: aviso-entra 0.28s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(-0.4rem); } to { opacity: 1; transform: none; } }
.ver__cerrar {
  position: absolute; top: 0.55rem; right: 0.55rem;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  color: var(--e-piedra); background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.ver__cerrar svg { width: 0.95rem; height: 0.95rem; }
.ver__cerrar:hover { color: var(--papel-claro); background: rgb(251 238 219 / 0.1); }

/* Mientras el aviso está abierto, la fecha de abajo late */
.escena__fecha { transform-origin: 0 70%; }
.aviso-estreno .escena__fecha { color: var(--e-rosa); }
@media (prefers-reduced-motion: no-preference) {
  .aviso-estreno .escena__fecha { animation: latido 0.9s ease-in-out infinite; }
}
@keyframes latido {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.09); }
}


/* 3. TITULARES ------------------------------------------------------------
   Rotulados como el título del cartel: grandes, Jost, sin caja. */

.titular {
  font-family: var(--f-rotulo);
  font-size: clamp(2.25rem, 1rem + 5vw, 5.5rem);
  font-weight: 600; line-height: 0.95;
  letter-spacing: 0.01em; text-transform: uppercase;
  text-wrap: balance;
}
.titular--noche { color: var(--papel-claro); font-size: clamp(2rem, 1rem + 4vw, 4.5rem); max-width: 14em; }

.subtitular {
  margin: var(--aire) 0 clamp(1.25rem, 3vw, 2rem);
  font-family: var(--f-rotulo); font-size: var(--t-grande); font-weight: 600;
  letter-spacing: 0.04em;
}

.entrada {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 21em;
  font-family: var(--f-texto);
  font-size: clamp(1.375rem, 0.9rem + 1.9vw, 2.5rem);
  font-weight: 500; line-height: 1.22; letter-spacing: -0.005em;
  text-wrap: pretty;
}


/* 4. LA SERIE Y EL EQUIPO ------------------------------------------------- */

.serie__mas {
  margin-top: clamp(1rem, 2.5vw, 1.5rem); max-width: 34em;
  font-family: var(--f-texto); font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.55; color: var(--e-piedra); text-wrap: pretty;
}
.serie__remate {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  font-family: var(--f-texto); font-style: italic; font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.7vw, 1.5rem); color: var(--e-rosa);
}

.seccion--serie { padding-top: var(--aire); }
.serie__int { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.serie__cartel { justify-self: center; width: min(70%, 20rem); }
.serie__cartel img { width: 100%; box-shadow: 0 0 0 1px rgb(12 18 23 / 0.35), 0 22px 40px -22px rgb(12 18 23 / 0.7); }
@media (min-width: 56rem) {
  .serie__int { grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); }
  .serie__cartel { width: 100%; justify-self: end; transform: rotate(1.5deg); }
}

/* Fichas: la figura manda. Tres por fila en escritorio, dos en móvil. */
.seccion--serie .rejilla--fichas { gap: clamp(1rem, 2.5vw, 2rem) clamp(0.75rem, 2vw, 1.75rem); }
@media (min-width: 48rem) { .seccion--serie .rejilla--fichas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .seccion--serie .rejilla--fichas { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; } }

.seccion--serie .ficha { background: transparent; border: 0; }
.seccion--serie .ficha.con-estrato { padding-top: 0; box-shadow: none; }
.seccion--serie .ficha__foto {
  margin: 0; border: 0;
  border-top: 0.5rem solid var(--estrato);
  background: var(--e-piedra);
  overflow: hidden;
}
.seccion--serie .ficha__foto img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.seccion--serie .ficha:hover .ficha__foto img { transform: scale(1.04); }
.seccion--serie .ficha__cuerpo { padding: 0.9rem 0 0; }
.seccion--serie .ficha__nombre { font-size: clamp(1.125rem, 0.8rem + 1.2vw, 1.75rem); letter-spacing: 0.04em; }
.seccion--serie .ficha__datos { margin-top: 0.4rem; border: 0; display: flex; flex-wrap: wrap; gap: 0 1rem; }
.seccion--serie .ficha__datos div { padding: 0; border: 0; }
.seccion--serie .ficha__datos dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.seccion--serie .ficha__datos dd { font-size: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem); }
.seccion--serie .ficha__datos div + div dd { color: var(--salvia-texto); }
.seccion--serie .ficha__observ {
  margin-top: 0.5rem;
  font-size: clamp(0.9375rem, 0.85rem + 0.5vw, 1.1875rem); line-height: 1.35;
}


/* 5. PELÍCULA -------------------------------------------------------------
   Un fotograma a sangre y, debajo, una tira que se desliza en horizontal. */

.pelicula {
  background: var(--tinta) url("../img/noche.webp") repeat;
  color: var(--papel-claro);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  --foco: var(--e-ocre);
}

.cortinilla { position: relative; overflow: hidden; height: clamp(18rem, 56vw, 88vh); }
.cortinilla img { width: 100%; height: 118%; object-fit: cover; }
@supports (animation-timeline: view()) {
  .cortinilla img { animation: deriva linear both; animation-timeline: view(); }
  @keyframes deriva { from { transform: translateY(-9%); } to { transform: translateY(0); } }
}
/* En móvil el fotograma se ve entero a lo ancho (2:1), sin recorte ni deriva */
@media (max-width: 48rem) {
  .cortinilla { height: auto; aspect-ratio: 2 / 1; }
  .cortinilla img { height: 100%; animation: none !important; transform: none; }
}

.tira {
  display: flex; gap: clamp(0.75rem, 2vw, 1.25rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: clamp(0.75rem, 2vw, 1.25rem) var(--margen) 1rem;
  scroll-padding-inline: var(--margen);
  scrollbar-width: thin; scrollbar-color: var(--e-ocre) transparent;
}
.tira:focus-visible { outline-offset: -3px; }
.tira__cuadro {
  flex: 0 0 min(88vw, 70rem);
  scroll-snap-align: start;
  aspect-ratio: 2 / 1;
  background: var(--petroleo);
}
@media (min-width: 56rem) { .tira__cuadro { flex-basis: 64vw; } }
.tira__cuadro img { width: 100%; height: 100%; object-fit: cover; }


/* 6. SIMULADOR ------------------------------------------------------------ */

#simulador .juego__cab { max-width: 60rem; }
#simulador .juego__linea { margin-top: 1rem; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.25rem); }


/* 7. CRÍTICA EN CINTA -----------------------------------------------------
   Dos cintas en sentidos opuestos. Con JS (clase .cinta--viva) se duplican y
   se mueven solas; se paran al pasar el ratón o al enfocar. Sin JS, o con
   movimiento reducido, se deslizan a mano. */

.seccion--critica { padding-top: var(--aire); overflow: hidden; }
.cintas { margin-top: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: 1rem; }

.cinta { overflow-x: auto; scrollbar-width: none; }
.cinta::-webkit-scrollbar { display: none; }
.cinta__pista { display: flex; gap: 1rem; width: max-content; padding-inline: var(--margen); }

.cinta--viva { overflow: hidden; }
.cinta--viva .cinta__pista { padding-inline: 0; animation: cinta 90s linear infinite; }
.cinta--viva[data-sentido="der"] .cinta__pista { animation-direction: reverse; animation-duration: 100s; }
.cinta--viva:hover .cinta__pista,
.cinta--viva:focus-within .cinta__pista { animation-play-state: paused; }
@keyframes cinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.seccion--critica .critica {
  flex: 0 0 auto; width: clamp(16rem, 60vw, 24rem);
  padding: 1.1rem 1.25rem 0.9rem;
  border-left: 1px solid var(--tinta);
}
.seccion--critica .critica blockquote { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
.cinta[data-sentido="izq"] .critica:nth-child(3n+1) { background: var(--e-arena); }
.cinta[data-sentido="der"] .critica:nth-child(3n+2) { background: var(--e-arena); }


/* 8. TIENDA --------------------------------------------------------------- */

.seccion--tienda > .rayas { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.seccion--tienda .titular { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.seccion--critica { padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem); }
.creditos__cab { margin: 0 auto clamp(2rem, 5vw, 3.5rem); }


/* 9. MOVIMIENTO REDUCIDO -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .escena__imagen, .escena__video { animation: none; transform: none; }
  .cortinilla img { animation: none !important; transform: none; height: 100%; }
  .cinta--viva { overflow-x: auto; }
  .cinta--viva .cinta__pista { animation: none; padding-inline: var(--margen); }
  .cinta__pista > [aria-hidden="true"] { display: none; }
}


/* 10. TEMA OSCURO ---------------------------------------------------------
   La noche del cartel como fondo de toda la página. El papel queda para
   acentos (botones claros, fotos de producto) y la franja de logotipos. */

body {
  background: var(--tinta) url("../img/noche.webp") repeat;
  color: var(--papel-claro);
  --foco: var(--e-ocre);
}
::selection { background: var(--e-rosa); color: var(--tinta); }
a:hover { color: var(--e-rosa); }

.seccion--serie .ficha__datos div + div dd,
.ficha__datos dt { color: var(--e-piedra); }
.seccion--serie .ficha__foto { box-shadow: 0 24px 40px -28px #000; }
.serie__cartel img { box-shadow: 0 0 0 1px rgb(0 0 0 / 0.6), 0 40px 70px -30px #000; }

/* El equipo, más contenido para que las figuras no se estiren */
.seccion--serie .rejilla--fichas { max-width: 62rem; margin-inline: auto; }
.seccion--serie .subtitular { max-width: 62rem; margin-inline: auto; }

/* Botones sobre fondo oscuro */
.boton { background: var(--papel-claro); border-color: var(--papel-claro); color: var(--tinta); }
.boton:hover { background: var(--e-rosa); border-color: var(--e-rosa); color: var(--tinta); }
.boton--linea { background: transparent; color: var(--papel-claro); border-color: var(--papel-claro); }
.boton--linea:hover { background: var(--papel-claro); color: var(--tinta); }

/* Membrete al bajar: noche translúcida */
.membrete--flotante.es-solido {
  background: rgb(12 18 23 / 0.82);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
          backdrop-filter: blur(10px) saturate(1.2);
  color: var(--papel-claro);
}
.membrete--flotante.es-solido a:hover { color: var(--e-rosa); }

/* Crítica */
.seccion--critica .critica {
  background: var(--petroleo);
  color: var(--papel-claro);
  border: 1px solid rgb(251 238 219 / 0.14);
}
.cinta[data-sentido="izq"] .critica:nth-child(3n+1),
.cinta[data-sentido="der"] .critica:nth-child(3n+2) { background: var(--petroleo-2); }
.seccion--critica .critica figcaption { border-top-color: rgb(203 187 161 / 0.35); color: var(--e-piedra); }
.estrellas { background: var(--e-ocre); }

/* Tienda: tarjetas de noche, foto de estudio en claro */
.producto { background: var(--petroleo); border-color: rgb(251 238 219 / 0.14); }
.producto__foto { border-bottom: 0; }
.producto__precio, .compra__precio { color: var(--e-rosa); }
.compra__producto { border-color: rgb(251 238 219 / 0.35); }
.producto__foto { overflow: hidden; }
.producto__foto img { transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.producto:hover .producto__foto img { transform: scale(1.035); }

/* Bandas de estratos en alta para pantallas grandes o densas */
@media (min-width: 50rem) and (min-resolution: 1.5dppx), (min-width: 100rem) {
  .rayas--ladera { background-image: url("../img/rayas-ladera-2880.webp"); }
  .rayas--falda  { background-image: url("../img/rayas-falda-2880.webp"); }
  .rayas--fondo  { background-image: url("../img/rayas-fondo-2880.webp"); }
}
.rayas { border-color: #000; }


/* 11. MOVIMIENTO LIGADO AL SCROLL ------------------------------------------
   Animaciones de CSS cuyo avance depende del scroll (animation-timeline),
   ya disponibles en Chrome, Safari y Firefox. Reglas:
   - el estado final es el normal: sin soporte, todo se ve quieto y completo;
   - solo transform, opacity y clip-path;
   - nada de esto con «reducir movimiento». */

.progreso {
  position: fixed; inset: 0 0 auto; z-index: 30; height: 3px;
  background: linear-gradient(to right, var(--e-niebla), var(--e-rosa), var(--e-coral), var(--e-ocre), var(--e-naranja), var(--e-rojo));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
@supports (animation-timeline: view()) {

  .progreso { animation: progreso linear both; animation-timeline: scroll(root); }
  @keyframes progreso { to { transform: scaleX(1); } }

  /* Portada: el texto sube y se apaga; el fondo se queda atrás */
  .escena { view-timeline: --escena; }
  .escena__int { animation: escena-texto linear both; animation-timeline: --escena; animation-range: exit 0% exit 80%; }
  .escena__fondo { animation: escena-fondo linear both; animation-timeline: --escena; animation-range: exit 0% exit 100%; }
  @keyframes escena-texto { to { opacity: 0; translate: 0 -14vh; } }
  @keyframes escena-fondo { to { translate: 0 22vh; scale: 1.06; } }

  /* Titulares: se descubren de abajo arriba, como una persiana */
  .titular {
    animation: persiana linear both;
    animation-timeline: view(); animation-range: entry 15% cover 32%;
  }
  @keyframes persiana {
    from { clip-path: inset(0 0 100% 0); translate: 0 0.35em; }
    to   { clip-path: inset(-0.4em -0.1em -0.25em -0.1em); translate: 0 0; }
  }

  /* Bloques que entran: suben un poco y aparecen */
  .entrada, .subtitular, .producto, .monitor, .controles, .creditos__grupo, .juego__linea {
    animation: subir linear both;
    animation-timeline: view(); animation-range: entry 0% entry 85%;
  }
  .producto:nth-child(3n+2) { animation-range: entry 8% entry 95%; }
  .producto:nth-child(3n+3) { animation-range: entry 16% entry 100%; }
  @keyframes subir { from { opacity: 0; translate: 0 3rem; } }

  /* El cartel se endereza al pasar */
  .serie__cartel { animation: cartel linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes cartel { from { opacity: 0; rotate: 7deg; translate: 0 4rem; } to { rotate: 1.5deg; } }
  @media (max-width: 55.99rem) { @keyframes cartel { from { opacity: 0; translate: 0 3rem; } to { rotate: 0deg; } } }

  /* Cortinilla: la ventana se abre hasta ocupar toda la pantalla */
  .cortinilla { animation: ventana linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes ventana { from { clip-path: inset(10% 8% round 0.5rem); } to { clip-path: inset(0 0 round 0); } }

  /* Tira: el fotograma centrado manda; los laterales se retiran */
  .tira__cuadro { animation: foco linear both; animation-timeline: view(inline); }
  @keyframes foco {
    0%   { opacity: 0.35; scale: 0.9; }
    35%, 65% { opacity: 1; scale: 1; }
    100% { opacity: 0.35; scale: 0.9; }
  }

}
}


/* 12. EL EQUIPO EN CARRUSEL -----------------------------------------------
   Los seis muñecos en fila; se desliza en horizontal (rueda, arrastre o
   teclado). Se asoma la siguiente ficha para que se entienda que hay más. */

.seccion--serie .subtitular { max-width: none; }
.equipo {
  display: flex; gap: clamp(1rem, 2.5vw, 1.75rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--margen));
  padding: 0.5rem var(--margen) 1.25rem;
  scroll-padding-inline: var(--margen);
  scrollbar-width: thin; scrollbar-color: var(--e-ocre) transparent;
}
.equipo:focus-visible { outline-offset: -3px; }
.equipo > .ficha { flex: 0 0 clamp(12.5rem, 62vw, 15rem); scroll-snap-align: start; }
/* Cuando caben los seis (pantallas anchas), fila fija alineada a la columna */
@media (min-width: 80rem) {
  .equipo {
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible; margin-inline: 0; padding-inline: 0;
  }
  .equipo > .ficha { flex: none; }
}

@media (prefers-reduced-motion: no-preference) {
@supports (animation-timeline: view()) {
  .equipo > .ficha { animation: foco-ficha linear both; animation-timeline: view(inline); animation-range: entry 0% entry 70%; }
  @keyframes foco-ficha { from { opacity: 0.3; translate: 2rem 0; } }
}
}


/* 13. DESLIZADORES (tira de fotogramas y equipo) --------------------------
   Además de la barra: arrastre con el ratón y botones anterior/siguiente
   (los añade sitio.js). En táctil se desliza con el dedo, como siempre. */

.deslizable { cursor: grab; position: relative; }
.deslizable img { -webkit-user-drag: none; user-select: none; }
.deslizable.arrastrando { cursor: grabbing; scroll-snap-type: none; }
.deslizable.arrastrando * { pointer-events: none; }

.mandos {
  display: flex; justify-content: flex-end; gap: 0.6rem;
  padding: 0 var(--margen) 0.25rem;
}
.mandos[hidden] { display: none; }
.mando {
  display: inline-grid; place-items: center;
  width: 3rem; height: 3rem; padding: 0;
  border: var(--linea) solid rgb(251 238 219 / 0.55); border-radius: 50%;
  background: transparent; color: var(--papel-claro);
  cursor: pointer; transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.mando:hover { background: var(--papel-claro); color: var(--tinta); }
.mando:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--papel-claro); }
.mando svg { width: 1.1rem; height: 1.1rem; }
.seccion--serie .mandos { padding-inline: 0; }
@media (min-width: 80rem) { .seccion--serie .mandos { display: none; } }



/* 15. Guía del simulador (desplegable) */
.guia { max-width: 60rem; margin: 1.75rem auto 0; border-top: 1px solid rgb(203 187 161 / 0.3); border-bottom: 1px solid rgb(203 187 161 / 0.3); }
.guia summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 0; font-family: var(--f-rotulo); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--papel-claro);
}
.guia summary::-webkit-details-marker { display: none; }
.guia summary::after { content: ""; width: 0.6em; height: 0.6em; border-right: 2px solid var(--e-rosa); border-bottom: 2px solid var(--e-rosa); transform: translateY(-25%) rotate(45deg); transition: transform 0.3s ease; }
.guia[open] summary::after { transform: translateY(15%) rotate(225deg); }
.guia summary:focus-visible { outline: 2px solid var(--e-ocre); outline-offset: 4px; }
.guia__cuerpo { display: grid; gap: 1.5rem 3rem; padding: 0.25rem 0 2rem; }
@media (min-width: 48rem) { .guia__cuerpo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guia__objetos, .guia__controles { grid-column: 1 / -1; } }
.guia h3 { font-family: var(--f-maquina); font-weight: 400; font-size: 0.9375rem; color: var(--e-rosa); letter-spacing: 0.04em; margin-bottom: 0.4rem; }
.guia p, .guia dd { font-family: var(--f-texto); font-size: 1.0625rem; line-height: 1.55; color: var(--e-piedra); text-wrap: pretty; }
.guia dl { display: grid; gap: 0.5rem 2rem; }
@media (min-width: 48rem) { .guia dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guia dl div { display: grid; gap: 0.1rem; padding-bottom: 0.5rem; border-bottom: 1px dotted rgb(203 187 161 / 0.25); }
.guia dt { font-family: var(--f-texto); font-weight: 500; color: var(--papel-claro); }
@media (prefers-reduced-motion: no-preference) {
  .guia[open] .guia__cuerpo { animation: guia-abre 0.45s ease both; }
  @keyframes guia-abre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

.controles--solo { display: flex; justify-content: flex-end; }


/* Créditos: un nombre nunca se parte en dos líneas */
.nombre { white-space: nowrap; }
