/* ---------- FUENTES ---------- */
@font-face {
  font-family: "Aktiv Grotesk";
  src: url("../fonts/AktivGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aktiv Grotesk";
  src: url("../fonts/AktivGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ancho-poster: 560px; /* ancho de la columna "póster": logo, carrusel, manifiesto, footer y el marco de escritorio */


  --textura-grano: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22260%22%20height%3D%22260%22%3E%3Cfilter%20id%3D%22g%22%3E%3CfeTurbulence%20type%3D%22turbulence%22%20baseFrequency%3D%220.9%22%20numOctaves%3D%223%22%20seed%3D%222%22%20stitchTiles%3D%22stitch%22%20result%3D%22n%22%2F%3E%3CfeColorMatrix%20in%3D%22n%22%20type%3D%22matrix%22%20values%3D%220%200%200%200%201%20%200%200%200%200%201%20%200%200%200%200%201%20%200%200%200%201%200%22%20result%3D%22w%22%2F%3E%3CfeComponentTransfer%20in%3D%22w%22%3E%3CfeFuncA%20type%3D%22gamma%22%20amplitude%3D%223.2%22%20exponent%3D%224%22%20offset%3D%220%22%2F%3E%3C%2FfeComponentTransfer%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23g%29%22%2F%3E%3C%2Fsvg%3E");
  /* Gradiente base: la textura original NO es un degradado liso, sino un
     vaivén que va y viene entre bandas más azules (más saturadas, matiz
     ~200°) y bandas casi blancas (matiz ~150-180°, casi sin saturación),
     medido con muestras de color/matiz/saturación cada 5% de la altura
     de la imagen original. Período corto (160px) y contraste subido para
     que el vaivén se note incluso en tramos cortos, como el poco fondo
     visible detrás del carrusel. */
  --textura-gradiente: repeating-linear-gradient(
    180deg,
    #eaf0ee 0px,
    #dbe3e4 40px,
    #c3d2da 80px,
    #dbe3e4 120px,
    #eaf0ee 160px
  );
}

/* Parpadeo sutil tipo grano de película: el grano salta entre posiciones
   (steps, no easing) para que se sienta como ruido, no como un deslizamiento. */
@keyframes grano-flicker-top {
  0%   { background-position: 0% 0%; }
  9%   { background-position: -2% 1.5%; }
  18%  { background-position: 1% -2.5%; }
  27%  { background-position: -1% -1%; }
  36%  { background-position: 2.5% 0.5%; }
  45%  { background-position: -1.5% 3%; }
  54%  { background-position: 2% -2%; }
  63%  { background-position: -3% -0.5%; }
  72%  { background-position: 0.5% 2%; }
  81%  { background-position: -0.5% -2%; }
  90%  { background-position: 2% 1%; }
  100% { background-position: 0% 0%; }
}

@keyframes grano-flicker-center {
  0%   { background-position: 0% 0%, center; }
  9%   { background-position: -6% 4%, center; }
  18%  { background-position: 3% -7%, center; }
  27%  { background-position: -3% -3%, center; }
  36%  { background-position: 7% 2%, center; }
  45%  { background-position: -4% 8%, center; }
  54%  { background-position: 5% -5%, center; }
  63%  { background-position: -8% -2%, center; }
  72%  { background-position: 2% 6%, center; }
  81%  { background-position: -2% -6%, center; }
  90%  { background-position: 6% 3%, center; }
  100% { background-position: 0% 0%, center; }
}

@media (prefers-reduced-motion: reduce) {
  .fondo-continuo, .boletos, .hero__logo, .logo img, .mf-ojo, .boletos__ojo {
    animation: none !important;
  }
}

/* Señal que titila al encender, como un letrero de neón que todavía no
   termina de sintonizar la frecuencia (encaja con "el primer contacto
   con la señal" del manifiesto). */
@keyframes hero-logo-flicker {
  0%, 3%, 6%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 151, 255, 0.85))
            drop-shadow(0 0 26px rgba(255, 151, 255, 0.5));
  }
  1%, 4.5% { opacity: 0.35; filter: none; }
  8%, 65%  { opacity: 1; filter: drop-shadow(0 0 10px rgba(255, 151, 255, 0.85)); }
  66%      { opacity: 0.5; filter: none; }
  67%, 92% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 151, 255, 0.85))
            drop-shadow(0 0 26px rgba(255, 151, 255, 0.5));
  }
  93%      { opacity: 0.4; filter: none; }
}

/* Respiración lenta: el logo fijo "late" como un trance sostenido, más
   calmo que el parpadeo del hero. */
@keyframes logo-respirar {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 151, 255, 0)); }
  50%      { filter: drop-shadow(0 0 16px rgba(255, 151, 255, 0.65)); }
}

/* El ojo parpadea de vez en cuando, como un ojo real que observa
   (motivo del "trance" repetido en todo el sitio). */
@keyframes ojo-parpadeo {
  0%, 92%, 100% { transform: scaleY(1); }
  95%           { transform: scaleY(0.08); }
  97%           { transform: scaleY(1); }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #fff;
  color: #0a0a0a;
  overflow-x: hidden;

  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* ---------- CONTENEDOR "PÓSTER" (pantallas grandes) ---------- */
/* El diseño es formato póster (columna de ~480px). En celular ocupa
   todo el ancho real; en pantallas más anchas que un teléfono, en vez
   de dejar esa columna flotando en un vacío blanco, se enmarca como un
   póster centrado sobre fondo negro. */
@media (min-width: 641px) {
  body {
    background-color: #000;
  }

  .page {
    max-width: var(--ancho-poster);
    margin-inline: auto;
    background-color: #fff;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  }
}

/* ---------- HERO (primera parte a pantalla completa) ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;              /* alto real del viewport en móviles */
  overflow: hidden;
  background-color: #000;          /* base mientras cargan/disuelven las fotos */

  /* Logo centrado (aparece a la mitad) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Las fotos ocupan el mismo lugar y se turnan apareciendo/desapareciendo
   — nunca hay un corte duro entre una y otra. */
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
}

.hero__bg--1 { background-image: url('../images/backgrounds/DINOSAUR_JR_01.webp'); }
.hero__bg--2 { background-image: url('../images/backgrounds/GOD_SPEED_01.webp'); }
.hero__bg--3 { background-image: url('../images/backgrounds/DINOSAUR_JR_02.webp'); }
.hero__bg--4 { background-image: url('../images/backgrounds/GOD_SPEED_02.webp'); }
.hero__bg--5 { background-image: url('../images/backgrounds/DINOSAUR_JR_03.webp'); }
.hero__bg--6 { background-image: url('../images/backgrounds/GOD_SPEED_03.webp'); }

/* Viñeta oscura fija: unifica el tono de las fotos y mantiene el logo
   legible sin importar cuál esté activa. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.55) 100%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__bg {
    animation: hero-bg-carrusel 18s ease-in-out infinite;
  }
  .hero__bg--1 { animation-delay: 0s; }
  .hero__bg--2 { animation-delay: 3s; }
  .hero__bg--3 { animation-delay: 6s; }
  .hero__bg--4 { animation-delay: 9s; }
  .hero__bg--5 { animation-delay: 12s; }
  .hero__bg--6 { animation-delay: 15s; }
}

/* Sin animación: se queda en la última foto (la que ya existía). */
@media (prefers-reduced-motion: reduce) {
  .hero__bg--6 { opacity: 1; }
}


@keyframes hero-bg-carrusel {
  0%     { opacity: 0; transform: scale(1.05); filter: url(#mf-tv-glitch) blur(6px) saturate(0.65) contrast(1.08) hue-rotate(0deg); }
  1.7%   { opacity: 1; transform: scale(1.02); filter: url(#mf-tv-glitch) blur(0)   saturate(1.08) contrast(1.04) hue-rotate(0deg); }
  14%    { opacity: 1; transform: scale(1);    filter: url(#mf-tv-glitch) blur(0)   saturate(1.08) contrast(1.04) hue-rotate(5deg); }
  16.7%  { opacity: 0; transform: scale(0.985); filter: url(#mf-tv-glitch) blur(6px) saturate(0.65) contrast(1.08) hue-rotate(-5deg); }
  100%   { opacity: 0; }
}

/* Versión de escritorio: solo 3 fotos en vez de 6, así que cada una
   necesita quedarse "encendida" el doble de tiempo (33% en vez de
   16.7% del ciclo) para que no haya hueco negro entre una y otra. */
@keyframes hero-bg-carrusel-desktop {
  0%     { opacity: 0; transform: scale(1.05); filter: url(#mf-tv-glitch) blur(6px) saturate(0.65) contrast(1.08) hue-rotate(0deg); }
  3.4%   { opacity: 1; transform: scale(1.02); filter: url(#mf-tv-glitch) blur(0)   saturate(1.08) contrast(1.04) hue-rotate(0deg); }
  28%    { opacity: 1; transform: scale(1);    filter: url(#mf-tv-glitch) blur(0)   saturate(1.08) contrast(1.04) hue-rotate(5deg); }
  33.4%  { opacity: 0; transform: scale(0.985); filter: url(#mf-tv-glitch) blur(6px) saturate(0.65) contrast(1.08) hue-rotate(-5deg); }
  100%   { opacity: 0; }
}

/* Líneas de escaneo tipo CRT: normalmente invisibles, parpadean encima
   del fondo justo en el mismo golpe de estática (mismo ciclo de 3s). */
.hero__tv-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.45) 0px,
    rgba(255, 255, 255, 0.45) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__tv-fx {
    animation: hero-tv-scan 3s steps(1, end) infinite;
  }
}

@keyframes hero-tv-scan {
  0%     { opacity: 0;    transform: translateY(0); }
  2%     { opacity: 0.9;  transform: translateY(-6px); }
  6%     { opacity: 0.65; transform: translateY(4px); }
  10%    { opacity: 0.85; transform: translateY(-3px); }
  14%    { opacity: 0.5;  transform: translateY(2px); }
  18%    { opacity: 0.15; transform: translateY(-1px); }
  20%    { opacity: 0;    transform: translateY(0); }
  100%   { opacity: 0;    transform: translateY(0); }
}

/* Grano de película fijo sobre el hero (mismo ruido vectorial que se usa
   en .fondo-continuo y .boletos), para que el fondo se sienta más sucio
   y análogo incluso fuera del golpe de estática. */
.hero__grano {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--textura-grano);
  background-size: 220px 220px;
  background-repeat: repeat;
  mix-blend-mode: overlay;
  opacity: 0.45;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__grano {
    animation: grano-flicker-hero 1.8s steps(1) infinite;
  }
}

@keyframes grano-flicker-hero {
  0%   { background-position: 0% 0%; }
  9%   { background-position: -6% 4%; }
  18%  { background-position: 3% -7%; }
  27%  { background-position: -3% -3%; }
  36%  { background-position: 7% 2%; }
  45%  { background-position: -4% 8%; }
  54%  { background-position: 5% -5%; }
  63%  { background-position: -8% -2%; }
  72%  { background-position: 2% 6%; }
  81%  { background-position: -2% -6%; }
  90%  { background-position: 6% 3%; }
  100% { background-position: 0% 0%; }
}

.hero__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: min(70%, 340px);
  height: auto;
  animation: hero-logo-flicker 6s ease-in-out infinite;
}

.hero__ojo {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin-inline: auto;   /* centrado sin usar transform: el parpadeo al
                             hacer clic anima scaleY() en transform, y si
                             el centrado también viviera ahí, ese clic lo
                             pisaría y el ojo saltaría hacia la derecha */
  z-index: 2;
}

.hero__ojo.boletos__ojo {
  animation: none;
}


.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 9rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  text-shadow: 0 0 8px rgba(255, 151, 255, 0.65);
}

.hero__scroll-chevron {
  width: 16px;
  height: 16px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px rgba(255, 151, 255, 0.8));
}

@media (prefers-reduced-motion: no-preference) {
  .hero__scroll {
    animation: hero-scroll-rebote 1.8s ease-in-out infinite;
  }
}

@keyframes hero-scroll-rebote {
  0%, 100% { transform: translateX(-50%) translateY(0);    opacity: 0.75; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ---------- MALLA DE 12 COLUMNAS ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1rem;
  row-gap: 2rem;

  max-width: var(--ancho-poster);
  margin-inline: auto;
  padding: 0.5rem 1rem 1rem;
}

.grid > * {
  grid-column: 1 / -1;
}

/* ---------- LOGO (fijo) ---------- */
.logo {
  margin-top: -1.5rem;   /* lo sube, más pegado al manifiesto */
  text-align: center;
}

.logo img {
  display: block;
  max-width: 58%;
  height: auto;
  margin-inline: auto;
  animation: logo-respirar 4.5s ease-in-out infinite;
}

/* ---------- CARRUSEL ---------- */
.carrusel {
  position: relative;
  margin-inline: 1rem;
}

.carrusel__viewport {
  position: relative;
  overflow: hidden;
}

/* Ondas concéntricas: dos anillos que se expanden desde el centro en
   cada cambio de fase, mientras el filtro SVG #mf-ondas distorsiona de
   verdad los píxeles de las imágenes a su paso (ver .slide--onda y
   carrusel.js, que dispara ambas cosas con beginElement()). */
.carrusel__viewport::before,
.carrusel__viewport::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 151, 255, 0.75);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .carrusel__viewport.is-ondeando::before {
    animation: mf-onda 0.7s ease-out;
  }

  .carrusel__viewport.is-ondeando::after {
    animation: mf-onda 0.7s ease-out 0.12s;
  }

  @keyframes mf-onda {
    0%   { width: 0;    height: 0;    opacity: 0.9; border-width: 3px; }
    70%  { opacity: 0.3; }
    100% { width: 220%; height: 220%; opacity: 0;   border-width: 1px; }
  }
}

/* Riel horizontal: todas las fases en fila; cambiar de fase mueve el
   riel con translateX. */
.carrusel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
}

/* Mientras dura la onda, ambas fases (la que sale y la que entra)
   quedan detrás del filtro SVG #mf-ondas — carrusel.js agrega esta
   clase y dispara la animación del filtro con beginElement(). */
@media (prefers-reduced-motion: no-preference) {
  .slide--onda {
    filter: url(#mf-ondas);
  }
}

.slide__img {
  display: block;
  width: 92%;
  height: auto;
  margin-inline: auto;
}

/* Solo aparece en escritorio (ver breakpoint ≥1024px): en móvil el
   logo compartido arriba del carrusel ya cumple ese rol. */
.slide__logo {
  display: none;
}

.slide__titulo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(10, 10, 10, 0.35);
  border-radius: 50%;
  background-color: rgba(255, 151, 255, 0.6);   /* relleno rosa transparente */
  color: #0a0a0a;
  font-family: "Aktiv Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1;
}

.slide__titulo h2 {
  font-family: "Aktiv Grotesk", Arial, sans-serif;
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.slide__fecha {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.6rem;
  font-family: "Aktiv Grotesk", Arial, sans-serif;
}

/* Recuadro tipo boleto: borde punteado para que se lea como un talón/
   sello de evento en vez de un adorno de color suelto. */
.slide__fecha-dia {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0.3rem 0.6rem;
  border: 1px dashed rgba(10, 10, 10, 0.45);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.7);
  white-space: nowrap;
}

.slide__fecha-artista {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.slide__texto {
  margin-top: 1rem;
  text-align: left;
  font-family: "Aktiv Grotesk", Arial, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- CONTROLES ---------- */
/* Sin fondo ni círculo: para que la flecha se lea igual sobre pósters
   claros u oscuros sin un chip detrás, usamos mix-blend-mode: difference
   (blanco contra cualquier color de fondo siempre queda invertido y
   visible), en vez del contraste que antes daba el fondo semitransparente. */
.carrusel__flecha {
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: none;
  color: #fff;
  mix-blend-mode: difference;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s ease;
}

/* Área de toque más grande que el ícono visible, con más margen hacia
   abajo para que sea más fácil de seleccionar/tocar sin agrandar la
   flecha en sí. */
.carrusel__flecha::after {
  content: '';
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  bottom: -2rem;
  left: -0.5rem;
}

.carrusel__flecha:hover {
  opacity: 0.7;
}

.carrusel__flecha--prev { left: -1.25rem; }
.carrusel__flecha--next { right: -1.25rem; }

.carrusel__flecha:disabled {
  opacity: 0.35;
  cursor: default;
  transform: translateY(-50%);
}

.carrusel__puntos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.punto {
  width: 1.5rem;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background-color: #0a0a0a;
  cursor: pointer;
}

.punto--activo {
  width: 2.5rem;
  background-color: #ff97ff;
}

.boletos {
  margin-top: 1.5rem;
}

.boletos__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.boletos__redes {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.boletos__icono {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background-color: rgba(255, 151, 255, 0.6);
  border: 1px solid rgba(10, 10, 10, 0.35);
}

.boletos__icono img {
  width: 1.25rem;
  height: auto;
  display: block;
}

.boletos__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  flex: 0 1 auto;
  border-radius: 10px;
  background-color: rgba(255, 151, 255, 0.6);
  border: 1px solid rgba(10, 10, 10, 0.35);
  color: #0a0a0a;
  font-family: "Aktiv Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.boletos__ojo {
  width: 3.2rem;
  height: 3.2rem;
  flex: 0 0 auto;
  padding: 0.7rem;
  border-radius: 50%;
  background-color: rgba(255, 151, 255, 0.6);
  border: 1px solid rgba(10, 10, 10, 0.35);
  box-sizing: border-box;
  cursor: pointer;
  transform-origin: center;
  animation: ojo-parpadeo 7s ease-in-out infinite 1.2s;
}

/* Celulares angostos: el fix de arriba ya da margen, pero acá se achica
   un poco más para que nada quede pegado o recortado contra el borde. */
@media (max-width: 360px) {
  .boletos__inner {
    gap: 0.5rem;
  }

  .boletos__icono {
    width: 2.15rem;
    height: 2.15rem;
  }

  .boletos__ojo {
    width: 2.7rem;
    height: 2.7rem;
  }

  .boletos__icono img {
    width: 1.1rem;
  }

  .boletos__ojo {
    padding: 0.6rem;
  }

  .boletos__cta {
    padding: 0.7rem 1.1rem;
    font-size: 0.9rem;
  }
}

/* Parpadeo rápido al presionar el ojo (clic/tap/Enter), independiente
   del parpadeo ambiental de fondo — feedback directo a la interacción. */
@keyframes ojo-parpadeo-click {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.08); }
}

@media (prefers-reduced-motion: no-preference) {
  .mf-ojo.is-parpadeando,
  .boletos__ojo.is-parpadeando {
    animation: ojo-parpadeo-click 0.32s ease-in-out;
  }
}

.footer {
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 3.5rem 1rem;
}


.footer__inner {
  max-width: var(--ancho-poster);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-family: "Aktiv Grotesk", Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer__dash {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  line-height: 1;
}

.footer__links a {
  color: #fff;
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__marca {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Aktiv Grotesk", Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer__marca img {
  width: 1.5rem;
  height: auto;
  display: block;
}

/* ---------- FONDO CONTINUO (manifiesto + malla, sin costura entre ambos) ---------- */
.fondo-continuo {
  position: relative;
  background-color: #c5cdd0;
  /* Textura real (foto) en vez del ruido SVG + degradado generados:
     una versión para mobile y otra, más ancha, para desktop (ver
     breakpoint ≥1024px). Se repite en X y en Y porque la imagen es
     más angosta/corta que el alto total del sitio. */
  background-image: url('../images/textures/textura-web-movil.webp');
  background-repeat: repeat;
  animation: grano-flicker-top 2s steps(1) infinite;
}

@media (min-width: 1024px) {
  .fondo-continuo {
    background-image: url('../images/textures/textura-web.webp');
  }
}

/* ---------- MANIFIESTO (bloque explicativo) ---------- */
.manifiesto {
  position: relative;
  width: 100%;
  padding: 3rem 0 3.5rem;
}

/* Contenido en columna póster, igual que la malla */
.manifiesto__inner {
  position: relative;
  z-index: 2;
  max-width: var(--ancho-poster);
  margin-inline: auto;
  padding: 0 1.5rem;
  font-family: "Aktiv Grotesk", Arial, sans-serif;
  color: #0a0a0a;
}

.mf-ojo {
  float: left;
  width: 4.5rem;
  height: auto;
  margin: 0.2rem 0.9rem 0.4rem 0;
  cursor: pointer;
  transform-origin: center;
  animation: ojo-parpadeo 6s ease-in-out infinite;
}

.mf-lead {
  overflow: hidden;              /* el texto forma columna a la derecha del ojo, no se mete debajo */
  margin-left: 5.4rem;           /* alinea con el ojo (ancho + separación) */
  padding-right: 1.5rem;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 400;
}

.mf-lead strong { font-weight: 700; }

.mf-italic {
  clear: both;
  margin: 1.9rem 0 0 5.4rem;     /* mismo borde izquierdo que .mf-lead */
  padding-right: 1.5rem;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
}

.mf-tex {
  display: block;
  width: 100%;
  height: auto;
}

.mf-tex--ancha  { margin-top: 1.4rem; transition: opacity 0.35s ease; }

.mf-tex-doble-row {
  display: flex;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.mf-tex-cuadro {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  background-color: #bdced5;
  overflow: visible;
}

.mf-tex-cuadro__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

@media (max-width: 640px) {
  .mf-tex-doble-row {
    gap: 0.9rem;
  }
}

/* Permite superponer los círculos rosas sobre la textura ancha */
.mf-tex-wrap--ancha {
  position: relative;
  margin-top: 1.4rem;
  background-color: #bdced5;
}

.mf-tex-wrap--ancha .mf-tex--ancha {
  margin-top: 0;
  display: block;
}

/* Canvas del remolino WebGL: se superpone a la <img> cuando WebGL está
   disponible. Arranca invisible (opacity, no display:none, para poder
   transicionar) y se revela con fundido cuando el JS agrega .is-activo,
   en vez de aparecer de golpe. */
.mf-swirl-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mf-swirl-canvas.is-activo {
  opacity: 1;
}

/* Ancla: fija la posición de origen del círculo, nunca se anima */
.mf-circulo {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.mf-circulo:focus-visible {
  outline: 2px solid #ff97ff;
  outline-offset: 6px;
  border-radius: 50%;
}

.mf-circulo.is-activo {
  z-index: 5;
}

/* Capa de flotación: orbita en círculo dentro de su propia imagen,
   independiente del regreso al origen que vive en .mf-circulo__dot.
   --orbit-duration/--orbit-delay los fija el JS por círculo para que
   los 6 no giren todos en fase (se sienten flotando, no clonados). */
.mf-circulo__float {
  display: block;
  width: 100%;
  height: 100%;
}

/* Círculo visible: la órbita y el regreso al origen viven acá */
/* --dx/--dy los calcula el JS: distancia desde el origen hasta el texto "total en el sueño" */
.mf-circulo__dot {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(10, 10, 10, 0.35);
  border-radius: 50%;
  background-color: #ff97ff;
  opacity: 0.6;
  mix-blend-mode: multiply;
  transform: translate(0, 0) scale(1);
  --dx: 0px;
  --dy: 0px;
}

.mf-circulo.is-activo .mf-circulo__dot {
  opacity: 0.85;
}

/* Hint: nada sugiere que el círculo es clickeable, así que en la primera
   visita se marca con un pulso ("toca aquí") hasta el primer clic. */
.mf-circulo__dot--hint {
  box-shadow: 0 0 0 4px rgba(255, 151, 255, 0.35);
}

@media (prefers-reduced-motion: no-preference) {
  .mf-circulo__dot--hint {
    box-shadow: 0 0 0 0 rgba(255, 151, 255, 0.55);
    animation: mf-circulo-hint 1.8s ease-out 3;
  }

  @keyframes mf-circulo-hint {
    0%   { box-shadow: 0 0 0 0 rgba(255, 151, 255, 0.55); }
    70%  { box-shadow: 0 0 0 14px rgba(255, 151, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 151, 255, 0); }
  }
}

/* Sube desde el origen hasta el texto "total en el sueño" */
.mf-circulo__dot.is-subiendo {
  transition: transform 1.1s cubic-bezier(0.34, 0.94, 0.4, 1);
  transform: translate(var(--dx), var(--dy)) scale(1.3);
}

.mf-circulo__dot.is-bajando {
  transition: transform 1.2s cubic-bezier(0.5, 0, 0.35, 1);
  transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: no-preference) {

  /* Reposo: orbita en círculo dentro de la imagen, suave y continua */
  .mf-circulo__float {
    animation: mf-orbit var(--orbit-duration, 7s) linear infinite;
    animation-delay: var(--orbit-delay, 0s);
  }

  @keyframes mf-orbit {
    0%    { transform: translate(14%, 0%); }
    12.5% { transform: translate(10%, 10%); }
    25%   { transform: translate(0%, 14%); }
    37.5% { transform: translate(-10%, 10%); }
    50%   { transform: translate(-14%, 0%); }
    62.5% { transform: translate(-10%, -10%); }
    75%   { transform: translate(0%, -14%); }
    87.5% { transform: translate(10%, -10%); }
    100%  { transform: translate(14%, 0%); }
  }
}

.mf-centro {
  margin-top: 1.6rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.35;
}

.mf-centro em { font-style: italic; }

.mf-cierre {
  display: flex;
  align-items: flex-end;
  gap: 1.1rem;
  margin-top: 1.9rem;
}

.mf-logo {
  flex: 0 0 auto;
  width: 12.0rem;
  height: auto;
  align-self: center;
}

.mf-cierre__txt {
  font-size: 0.95rem;
  line-height: 1.3;
}

.mf-cierre__txt strong { font-weight: 700; }


/* ================================================================
   ESCRITORIO (≥1024px)
   Debajo de este ancho el sitio se queda con el diseño "póster" de
   una sola columna (el original). A partir de acá --ancho-poster se
   agranda (así .page, .grid y .manifiesto__inner se ensanchan todos
   juntos, ya que los tres miden su max-width con esa misma variable)
   y el manifiesto + el carrusel pasan a dos columnas, según el
   layout de referencia.
   ================================================================ */
@media (min-width: 1024px) {
  :root {
    --ancho-poster: min(92vw, 1680px);
  }

  /* A partir de acá el sitio deja el marco "póster sobre fondo negro"
     y ocupa el 100% del ancho de la pantalla. */
  body {
    background-color: #fff;
  }

  .page {
    max-width: none;
    box-shadow: none;
  }

  /* --- Hero: 3 fotos horizontales en vez de 6 verticales --- */
  .hero__bg--4, .hero__bg--5, .hero__bg--6 {
    display: none;
  }

  /* El grano se ve bien en móvil, pero en una pantalla mucho más ancha
     se nota menos. Estirar el tile (background-size) se ve feo —
     el ruido no está pensado para agrandarse, salen líneas raras — así
     que se deja del mismo tamaño y solo se sube la opacidad. */
  .hero__grano {
    opacity: 0.65;
  }

  .hero__bg--1 { background-image: url('../images/backgrounds/DINO_01.webp'); }
  .hero__bg--2 { background-image: url('../images/backgrounds/DINO_02.webp'); }
  .hero__bg--3 { background-image: url('../images/backgrounds/DINO_03.webp'); }

  /* --- Manifiesto: texto a la izquierda, texturas a la derecha --- */
  .manifiesto__inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "intro    texturas"
      "italic   texturas"
      "centro   centro"
      "ancha    cierre";
    column-gap: 3.5rem;
  }

  .mf-intro   { grid-area: intro; }
  .mf-italic  { grid-area: italic; }

  .mf-tex-doble-row {
    grid-area: texturas;
    margin-top: 0;
    height: 100%;
    min-width: 0;
  }

  .mf-centro { grid-area: centro; }

  .mf-tex-wrap--ancha {
    grid-area: ancha;
    min-width: 0;
  }

  .mf-cierre {
    grid-area: cierre;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .mf-ojo { width: 9.5rem; }

  .mf-lead   { font-size: 1.5rem; margin-left: 10.4rem; }
  .mf-italic { font-size: 1.5rem; margin-left: 10.4rem; }
  .mf-centro { font-size: 1.5rem; }

  .mf-logo {
    width: 20rem;
    align-self: center;
  }

  .mf-cierre__txt {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  /* --- Carrusel: póster a la izquierda, info a la derecha --- */
  .slide {
    display: grid;
    grid-template-columns: 0.85fr 1fr;
    column-gap: 3.5rem;
  }

  .slide__img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
  }

  .slide__info {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem 1.5rem 0;
  }

  .num {
    width: 3.8rem;
    height: 3.8rem;
    font-size: 2.5rem;
  }

  .slide__titulo h2 {
    font-size: 3.5rem;
  }

  .slide__fecha {
    margin-top: 0.85rem;
    gap: 0.75rem;
  }

  .slide__fecha-dia {
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
  }

  .slide__fecha-artista {
    font-size: 1.6rem;
  }

  .slide__texto {
    padding: 1.5rem;
    font-size: 1.5rem;
    line-height: 1.75;
  }

  /* El header .logo compartido queda oculto: en escritorio cada fase
     trae su propio logo arriba de su título (ver .slide__logo), a la
     misma altura que el póster. */
  .logo {
    display: none;
  }

  .slide__logo {
    display: block;
    width: 16rem;
    height: auto;
    margin-bottom: 1.5rem;
  }

  .slide__info .boletos {
    margin-top: auto;
    padding-top: 2rem;
  }

  .slide__info .boletos__inner {
    gap: 1.25rem;
  }

  .slide__info .boletos__cta {
    padding: 1.1rem 2.5rem;
    font-size: 1.3rem;
  }

  /* En desktop la imagen ocupa el alto completo de la fila (grid con
     info al lado), así que el 50% del contenedor coincide con el
     centro real de la imagen — en móvil (imagen apilada arriba del
     texto) ese centro está más arriba, por eso ahí se deja en 30%. */
  .carrusel__flecha {
    top: 50%;
  }

  .carrusel__flecha--prev { left: -2.25rem; }
  .carrusel__flecha--next { right: -2.25rem; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero__bg {
    animation-name: hero-bg-carrusel-desktop;
    animation-duration: 12s;
  }
  .hero__bg--1 { animation-delay: 0s; }
  .hero__bg--2 { animation-delay: 4s; }
  .hero__bg--3 { animation-delay: 8s; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .hero__bg--6 { opacity: 0; }
  .hero__bg--3 { opacity: 1; }
}

