/* =========================================================
   AQUA WAVES · Hoja de estilos
   Dirección: cinematográfica, editorial, sobria.
   Alternancia de secciones oscuras y marfil.
   Índice:
   1. Variables          6. Inicio: secciones
   2. Base               7. Páginas interiores
   3. Cabecera           8. Formularios y pie
   4. Menú derecho       9. Animaciones y transiciones
   5. Componentes       10. Móvil y movimiento reducido
   ========================================================= */

/* 1. VARIABLES ------------------------------------------- */
/* Bebas Neue (manual de identidad). Solo mayúsculas y sin cursiva. Licencia: fonts/OFL.txt */
@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/BebasNeue-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Paleta del manual de identidad: azul petróleo #00374B, aguamarina #B3DFE0 y blanco */
  --c-ink: #0a0d11;          /* negro casi puro: hero y pie */
  --c-petrol: #00374b;       /* azul petróleo: secciones oscuras alternas y texto sobre marfil */
  --c-ivory: #f4efe6;        /* marfil: secciones claras */
  --c-ivory-deep: #e8e0d1;
  --c-cream: #f3ede2;        /* texto claro sobre oscuro */
  --c-cream-soft: rgb(243 237 226 / 0.74);
  --c-text: var(--c-petrol); /* texto sobre marfil (11:1) */
  --c-text-soft: #365f6d;    /* petróleo atenuado sobre marfil (6:1) */
  --c-aqua: #b3dfe0;         /* acento aguamarina: SOLO sobre fondos oscuros (sobre marfil da 1,3:1) */
  --c-aqua-deep: #2e6680;    /* acento sobre marfil (5,5:1) */
  --line-light: rgb(243 237 226 / 0.18);
  --line-dark: rgb(0 55 75 / 0.16);

  /* Tipografías: Bebas Neue para títulos y menú, Montserrat para el texto */
  --f-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --f-body: "Montserrat", system-ui, sans-serif;

  /* Medidas */
  --nav-w: clamp(220px, 17vw, 270px);
  --gutter: clamp(1.5rem, 5vw, 5.5rem);
  --header-h: 6.5rem;
  --logo-h: 72px;
  --section-y: clamp(5rem, 12vw, 10rem);

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* 2. BASE ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-cream);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 400; line-height: 0.95; letter-spacing: 0.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--c-aqua); outline-offset: 3px; }
.t-light :focus-visible, [data-ui="light"] .site-header :focus-visible, [data-ui="light"] .side-nav :focus-visible { outline-color: var(--c-petrol); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; padding: 0.6rem 1rem; background: var(--c-ivory); color: var(--c-text); border-radius: 4px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* Contenedor: deja libre el hueco del menú derecho */
.wrap { padding-left: var(--gutter); padding-right: calc(var(--nav-w) + var(--gutter)); }

/* Temas de sección */
.t-dark  { background: var(--c-ink); color: var(--c-cream); }
.t-night { background: var(--c-petrol); color: var(--c-cream); }
.t-light { background: var(--c-ivory); color: var(--c-text); }

/* 3. CABECERA -------------------------------------------- */
.site-header {
  position: fixed; inset: 0 var(--nav-w) auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  color: var(--c-cream);
  transition: color 0.5s var(--ease);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: var(--logo-h); width: auto; }
.logo__dark { display: none; }
/* Inicio en escritorio: logo a 120 px (72 × 1,667) hasta empezar a bajar. Con transform no mueve nada;
   crece desde la esquina superior izquierda y acaba justo donde empieza el contenido del hero */
@media (min-width: 901px) {
  .js .home .logo img { transform-origin: 0 0; transition: transform 0.45s var(--ease); }
  .js:not(.is-scrolled) .home .logo img { transform: scale(1.667); }
}
/* Pantallas bajas: unos 97 px, para dejar aire sobre el título */
@media (min-width: 901px) and (max-height: 640px) {
  .js:not(.is-scrolled) .home .logo img { transform: scale(1.35); }
}
/* Sobre secciones claras la cabecera pasa a oscuro */
[data-ui="light"] .site-header { color: var(--c-text); }
[data-ui="light"] .logo__light { display: none; }
[data-ui="light"] .logo__dark { display: block; }
.menu-toggle { display: none; }

/* 4. MENÚ DERECHO ---------------------------------------- */
.side-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center;
  width: var(--nav-w);
  padding: var(--header-h) 2rem 2rem;
  background: rgb(10 13 17 / 0.42);
  border-left: 1px solid var(--line-light);
  color: var(--c-cream);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
[data-ui="light"] .side-nav { background: rgb(244 239 230 / 0.72); color: var(--c-text); border-color: var(--line-dark); }

.side-nav__list { display: grid; gap: 0.2rem; }
.side-nav__list a {
  position: relative; display: block;
  padding: 0.6rem 0 0.6rem 1.25rem;
  font-family: var(--f-display); font-size: 1.6rem; line-height: 1; letter-spacing: 0.05em;
  text-decoration: none;
  opacity: 0.62;
  transition: opacity 0.3s, padding 0.4s var(--ease);
}
.side-nav__list a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 0.45rem; height: 1px; background: currentColor;
  transition: width 0.4s var(--ease);
}
.side-nav__list a:hover { opacity: 1; }
.side-nav__list a[aria-current="page"] { opacity: 1; }
.side-nav__list a[aria-current="page"]::before { width: 0.9rem; background: var(--c-aqua); }
[data-ui="light"] .side-nav__list a[aria-current="page"]::before { background: var(--c-petrol); }

.side-nav__footer {
  position: absolute; left: 2rem; right: 1.5rem; bottom: 2rem;
  display: grid; gap: 0.4rem;
  font-size: 0.8rem; letter-spacing: 0.06em;
  opacity: 0.75;
}
.side-nav__footer a { text-decoration: none; }
.side-nav__footer a:hover { text-decoration: underline; }
.social { display: flex; gap: 1.1rem; }

/* 5. COMPONENTES ----------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.26em; text-transform: uppercase;
  opacity: 0.75;
}
.eyebrow::before { content: ""; width: 2rem; height: 1px; background: var(--c-aqua); }
.t-light .eyebrow::before { background: var(--c-petrol); }

/* Bebas Neue es estrecha y en mayúsculas: tamaños algo mayores e interlineado apretado */
.h-xl { font-size: clamp(3.4rem, 8vw, 8.4rem); line-height: 0.92; }
.h-lg { font-size: clamp(2.8rem, 5.8vw, 5.6rem); }
.h-md { font-size: clamp(2.1rem, 3.3vw, 3.1rem); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 34rem; }
.t-dark .lead, .t-night .lead { color: var(--c-cream-soft); }
.t-light .lead { color: var(--c-text-soft); }
.italic { font-style: italic; }

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit;
  font: 400 0.82rem/1 var(--f-body); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
}
.t-dark .btn:hover, .t-night .btn:hover, .hero .btn:hover, .page-hero .btn:hover { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }
.t-light .btn:hover { background: var(--c-text); color: var(--c-ivory); border-color: var(--c-text); }
.btn--solid { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }
.t-light .btn--solid { background: var(--c-text); color: var(--c-ivory); border-color: var(--c-text); }
.btn__icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn:hover .btn__icon, .link-arrow:hover .btn__icon { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 0.3rem;
}

/* Contenedor de imagen o vídeo. Si falta el archivo, muestra qué archivo poner. */
.media { position: relative; overflow: hidden; background: linear-gradient(150deg, #1d3646, #0c141c 70%); }
.t-light .media { background: linear-gradient(150deg, #cfd9dc, #a9bcc4); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing > img, .media.is-missing > video { visibility: hidden; }
.media.is-missing::after {
  content: "Falta: " attr(data-file);
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  font: 400 0.68rem/1.4 var(--f-body); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.55);
}

/* Botón discreto de pausa para vídeos de fondo */
.video-toggle {
  position: absolute; z-index: 3; bottom: 2rem; right: calc(var(--nav-w) + var(--gutter));
  display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--line-light); border-radius: 50%;
  background: rgb(10 13 17 / 0.3); color: var(--c-cream);
  cursor: pointer; opacity: 0.7; transition: opacity 0.3s;
}
.video-toggle:hover { opacity: 1; }
.video-toggle svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.no-js .video-toggle { display: none; }

/* 6. INICIO ---------------------------------------------- */

/* Hero */
.hero { position: relative; display: grid; align-items: end; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media > .media { position: absolute; inset: 0; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(10 13 17 / 0.92) 0%, rgb(10 13 17 / 0.72) 28%, rgb(10 13 17 / 0.3) 46%, rgb(10 13 17 / 0) 62%),
    linear-gradient(0deg, rgb(10 13 17 / 0.7) 0%, rgb(10 13 17 / 0) 35%);
}
/* El bloque de texto no tapa el botón de pausa del vídeo */
.hero__content, .page-hero__content, .reel__content { pointer-events: none; }
.hero__content > *, .page-hero__content > *, .reel__content > * { pointer-events: auto; }
.hero__content { position: relative; z-index: 2; padding-bottom: clamp(5rem, 14vh, 9rem); padding-top: calc(var(--header-h) + 2rem); }
.hero__title { max-width: 15ch; margin-bottom: 1.25rem; color: var(--c-cream); }
/* Escritorio: el texto no pasa del 40 % izquierdo para no tapar la acción del vídeo (centro del encuadre) */
@media (min-width: 901px) {
  .hero .media > video { object-position: 40% 50%; } /* por debajo del 50 % la acción se aleja del texto */
  .hero__content > * { max-width: calc(40vw - var(--gutter)); }
  .hero__title { font-size: clamp(3.4rem, 6vw, 6.6rem); }
  .hero__title span { display: block; }
}
.hero__subtitle { margin-bottom: 2.5rem; font-weight: 300; font-size: clamp(1.15rem, 1.7vw, 1.5rem); letter-spacing: 0.01em; color: var(--c-cream-soft); }

/* Donde el agua cobra vida (marfil, asimétrica). En escritorio el bloque entero cabe en una pantalla:
   arriba deja libre la cabecera fija y la foto nunca supera el alto disponible */
.intro { --intro-pt: calc(var(--header-h) + 1rem); --intro-pb: 4rem; position: relative; z-index: 2; padding-block: var(--intro-pt) var(--intro-pb); }
.intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.intro__text .h-lg { margin-bottom: 2rem; }
.intro__text .lead + .lead { margin-top: 1.1rem; }
.intro__figure { margin: 0; }
.intro__figure .media { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--intro-pt) - var(--intro-pb)); }
.intro__figure figcaption { margin-top: 0.9rem; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--c-text-soft); }

/* Espectáculos (oscura) */
.shows { padding-block: var(--section-y); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .lead { max-width: 28rem; }
.shows__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2.25rem); align-items: start; }
.show-card { position: relative; display: block; text-decoration: none; color: var(--c-cream); }
.show-card:nth-child(2) { margin-top: clamp(2rem, 8vw, 7rem); }
.show-card .media { aspect-ratio: 4 / 5; }
.show-card .media > img { transition: transform 1.4s var(--ease); }
.show-card:hover .media > img { transform: scale(1.04); }
.show-card .media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(10 13 17 / 0.75), rgb(10 13 17 / 0) 55%); }
.show-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.25rem, 3vw, 2.25rem); }
.show-card__body p { margin: 0.6rem 0 1.2rem; max-width: 26rem; color: var(--c-cream-soft); }

/* Eventos (marfil) */
.events { padding-block: var(--section-y); }
.event-list { border-top: 1px solid var(--line-dark); }
.event-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; gap: 1.5rem 3rem; align-items: center;
  padding: clamp(1.4rem, 2.8vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
  transition: padding 0.45s var(--ease);
}
.event-row h3 { font-size: clamp(1.9rem, 3.3vw, 2.9rem); }
.event-row p { color: var(--c-text-soft); max-width: 30rem; }
.event-row .btn__icon { width: 1.4rem; height: 1.4rem; }
.event-row:hover { padding-left: 1rem; }
.event-row:hover .btn__icon { transform: translateX(6px); }

.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem 4rem; align-items: center; margin-top: clamp(3.5rem, 7vw, 6rem); }
.proof__stat { font-family: var(--f-display); font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1; letter-spacing: 0.02em; }
.proof__stat em { font-style: normal; color: var(--c-aqua-deep); }
.proof__label { margin-bottom: 1rem; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-text-soft); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.75rem; }
.logos li { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--c-text-soft); }
.logos img { height: 2.4rem; width: auto; filter: grayscale(1); opacity: 0.75; }
.proof__note { margin-top: 1rem; font-size: 0.85rem; color: var(--c-text-soft); }

/* Showreel (vídeo a sangre) */
.reel { position: relative; display: grid; align-items: center; min-height: 90vh; overflow: hidden; }
.reel .media { position: absolute; inset: 0; }
.reel .media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(10 13 17 / 0.75), rgb(10 13 17 / 0.15) 70%); }
.reel__content { position: relative; z-index: 2; padding-block: var(--section-y); }
.reel__content .h-lg { max-width: 12ch; margin-bottom: 2rem; }
/* El poster es vertical (sirve también en móvil): en escritorio se alinea con la franja que recorta el vídeo */
@media (min-width: 901px) {
  video[poster*="showreel-poster"] { object-position: 50% 59%; }
}

/* Equipo (marfil) */
.team { padding-block: var(--section-y); }
.team__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.team__figure .media { aspect-ratio: 5 / 4; }
.founders { display: grid; gap: 1.75rem; margin: 2.5rem 0; }
.founder h3 { font-size: 1.95rem; margin-bottom: 0.35rem; }
.founder p { color: var(--c-text-soft); }
.press { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--line-dark); }
.press__label { font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-text-soft); }
.press li { font-family: var(--f-display); font-size: 1.5rem; }

/* Llamada final */
.cta { padding-block: var(--section-y); text-align: left; }
.cta .h-lg { max-width: 14ch; margin-bottom: 1.5rem; }
.cta .lead { margin-bottom: 2.5rem; }

/* 7. PÁGINAS INTERIORES ---------------------------------- */
.page-hero { position: relative; display: grid; align-items: end; min-height: 100vh; min-height: 100svh; overflow: hidden; }
.page-hero .media { position: absolute; inset: 0; }
.page-hero .media::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(10 13 17 / 0.82) 0%, rgb(10 13 17 / 0.35) 50%, rgb(10 13 17 / 0.05) 80%),
              linear-gradient(0deg, rgb(10 13 17 / 0.6), rgb(10 13 17 / 0) 40%);
}
.page-hero__content { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 2rem); padding-bottom: clamp(4.5rem, 12vh, 8rem); }
.page-hero h1 { max-width: 12ch; margin-bottom: 1.5rem; }
.page-hero .lead { color: var(--c-cream-soft); margin-bottom: 2.25rem; }

/* Bloque dividido imagen/texto (Espectáculos, Eventos) */
.split { padding-block: var(--section-y); }
.split__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media .media { aspect-ratio: 4 / 5; }
.split__media .media.is-video { aspect-ratio: 16 / 10; }
.split__text h2 { margin-bottom: 1.75rem; }
.split__text .lead + .lead { margin-top: 1rem; }
.split__text .btn, .split__text .link-arrow { margin-top: 2.25rem; }
.checklist { display: grid; gap: 0.8rem; margin-top: 2rem; }
.checklist li { padding-left: 1.6rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.8rem; height: 1px; background: var(--c-aqua); }
.t-light .checklist li::before { background: var(--c-petrol); }

/* Galería */
.gallery-page { padding-block: var(--section-y); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filters button {
  padding: 0.6rem 1.15rem; border: 1px solid var(--line-light); border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer;
  font: 400 0.78rem/1 var(--f-body); letter-spacing: 0.14em; text-transform: uppercase;
}
.filters button[aria-pressed="true"] { background: var(--c-cream); color: var(--c-ink); border-color: var(--c-cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.6rem, 1.2vw, 1rem); }
.gallery-grid .media { aspect-ratio: 4 / 5; }
.gallery-grid .media:nth-child(3n + 2) { aspect-ratio: 4 / 4.4; }
.gallery-grid [hidden] { display: none; }

/* Contacto */
.contact-page { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.contact-page__media { position: relative; }
.contact-page__media .media { position: absolute; inset: 0; }
.contact-page__body { padding: calc(var(--header-h) + 3rem) calc(var(--nav-w) + var(--gutter)) 4rem clamp(2rem, 5vw, 4.5rem); }
.contact-page__body h1 { margin-bottom: 1.25rem; }
.contact-page__body > .lead { margin-bottom: 2.5rem; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line-dark); font-size: 0.95rem; }
.contact-direct span { display: block; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-text-soft); }
.contact-direct a { text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

/* 8. FORMULARIOS Y PIE ----------------------------------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.75rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: grid; gap: 0.35rem; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-soft); }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.55rem 0;
  border: 0; border-bottom: 1px solid rgb(0 55 75 / 0.6); border-radius: 0;
  background: transparent; color: var(--c-text);
  font: 300 1.05rem/1.4 var(--f-body); letter-spacing: 0; text-transform: none;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 6px center, right 1px center; background-size: 5px 5px; background-repeat: no-repeat; }
.form textarea { resize: vertical; min-height: 6rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--c-aqua-deep); }
.form .check { display: flex; align-items: center; gap: 0.7rem; text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.form .check input { width: auto; accent-color: var(--c-aqua-deep); }
.form .btn { justify-self: start; }

.site-footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem; border-top: 1px solid var(--line-light); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2.5rem; }
.footer__logo { height: 6rem; width: auto; }
.footer__brand p { margin-top: 1rem; font-weight: 300; font-size: 1.05rem; color: var(--c-cream-soft); }
.footer__cols { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; font-size: 0.92rem; }
.footer__cols h2 { margin-bottom: 0.9rem; font-family: var(--f-body); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--c-cream-soft); }
.footer__cols li + li { margin-top: 0.4rem; }
.footer__cols a { text-decoration: none; }
.footer__cols a:hover { text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; font-size: 0.8rem; color: var(--c-cream-soft); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a { text-decoration: none; }

/* 9. ANIMACIONES Y TRANSICIONES -------------------------- */

/* Transición entre páginas (Chrome, Edge, Safari 18.2+). En el resto, cambio normal. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.45s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.65s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* El menú no parpadea al cambiar de página */
.side-nav { view-transition-name: side-nav; }
.site-header { view-transition-name: site-header; }

/* Entrada sutil del texto del hero (nada de letra a letra) */
.js .hero__content > *, .js .page-hero__content > * { animation: rise 1.1s var(--ease) both; }
.js .hero__content > :nth-child(2), .js .page-hero__content > :nth-child(2) { animation-delay: 0.12s; }
.js .hero__content > :nth-child(3), .js .page-hero__content > :nth-child(3) { animation-delay: 0.24s; }
.js .hero__content > :nth-child(4), .js .page-hero__content > :nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(1.5rem); } }

/* Revelado al hacer scroll (lo activa main.js) */
.js [data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: 0.12s; }
.js [data-reveal="3"] { transition-delay: 0.24s; }

/* Transición hero → marfil, ligada al scroll (navegadores compatibles) */
@supports (animation-timeline: view()) {
  .hero__media { animation: hero-exit linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  .hero__content { animation-name: hero-content-exit; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: exit 0% exit 70%; animation-delay: 0s; }
  .intro { animation: curtain linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
  @keyframes hero-exit { to { transform: scale(1.08); filter: brightness(0.35); } }
  @keyframes hero-content-exit { to { opacity: 0; transform: translateY(-3rem); } }
  @keyframes curtain { from { clip-path: inset(6% 4% 0 4% round 28px); } to { clip-path: inset(0 0 0 0 round 0); } }
}

/* 10. MÓVIL ---------------------------------------------- */
@media (max-width: 900px) {
  :root { --nav-w: 0px; --header-h: 5rem; --logo-h: 56px; --gutter: 1.4rem; }

  .site-header { inset: 0 0 auto 0; z-index: 45; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 2.9rem; height: 2.9rem;
    border: 1px solid currentColor; border-radius: 50%;
    background: transparent; color: inherit; cursor: pointer;
  }
  .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
    display: block; width: 1.1rem; height: 1px; background: currentColor;
    transition: transform 0.35s var(--ease), background 0.2s;
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { transform: translateY(-5px); }
  .menu-toggle__bars::after { transform: translateY(5px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: rotate(-45deg); }
  .menu-open .site-header { color: var(--c-cream); }
  .menu-open .logo__light { display: block; }
  .menu-open .logo__dark { display: none; }

  .side-nav, [data-ui="light"] .side-nav {
    width: 100%;
    padding: 6rem 2rem 7rem;
    background: rgb(10 13 17 / 0.96); color: var(--c-cream);
    transform: translateX(100%); visibility: hidden;
    transition: transform 0.55s var(--ease), visibility 0s 0.55s;
  }
  .side-nav.is-open { transform: none; visibility: visible; transition: transform 0.55s var(--ease), visibility 0s; }
  .side-nav__list a { font-size: 2.4rem; }

  /* Hero en vertical: el texto va abajo, así que manda el degradado inferior y el lateral casi desaparece */
  .hero__media::after, .page-hero .media::before {
    background:
      linear-gradient(90deg, rgb(10 13 17 / 0.3) 0%, rgb(10 13 17 / 0) 70%),
      linear-gradient(0deg, rgb(10 13 17 / 0.92) 0%, rgb(10 13 17 / 0.75) 30%, rgb(10 13 17 / 0.3) 52%, rgb(10 13 17 / 0) 68%);
  }
  /* Interiores: antetítulo + H1 largo + entradilla llegan a media pantalla, el degradado sube más */
  .page-hero .media::before {
    background:
      linear-gradient(90deg, rgb(10 13 17 / 0.3) 0%, rgb(10 13 17 / 0) 70%),
      linear-gradient(0deg, rgb(10 13 17 / 0.92) 0%, rgb(10 13 17 / 0.8) 35%, rgb(10 13 17 / 0.5) 58%, rgb(10 13 17 / 0.15) 78%, rgb(10 13 17 / 0) 90%);
  }

  .intro { --intro-pt: var(--section-y); --intro-pb: var(--section-y); }
  .intro__figure .media { max-height: none; }
  .intro__grid, .team__grid, .split__grid, .proof { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .shows__grid { grid-template-columns: 1fr; }
  .show-card:nth-child(2) { margin-top: 0; }
  .event-row { grid-template-columns: 1fr auto; }
  .event-row p { grid-column: 1 / -1; grid-row: 2; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-page { grid-template-columns: 1fr; }
  .contact-page__media { min-height: 40vh; }
  .contact-page__body { padding: 3rem var(--gutter) 4rem; }
  .form { grid-template-columns: 1fr; }
  .video-toggle { bottom: 1.25rem; right: var(--gutter); }
  .h-xl { font-size: clamp(3rem, 13vw, 4rem); }
  .btn { letter-spacing: 0.1em; padding: 0.95rem 1.3rem; font-size: 0.74rem; }
}

/* Movimiento reducido: sin animaciones ni vídeo automático */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
