/* Estado Norteño
   Paleta tomada del video oficial: cal de la arquitectura, vidrio turquesa,
   vino de las camisas y la noche del plano final.
   Radios: botones en píldora, medios 14px, campos 10px.
   Capas: frente 1, video 2, cuerdas 3, ayuda 4, lema 5, barra 20. */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../fonts/alfa-slab-one.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --cal: #E9EDEA;
  --cal-2: #D9E1DD;
  --tinta: #0F2326;
  --tinta-suave: #3C5154;
  --vidrio: #0E7C82;
  --vino: #A32236;
  --vino-hondo: #7F1828;
  --sobre-vino: #FBF3F1;
  --noche: #131B2E;
  --noche-2: #0D1422;
  --luna: #EEF0EC;
  --luna-suave: #B9C0CC;

  --rotulo: "Alfa Slab One", "Rockwell", "Georgia", serif;
  --texto: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;

  --orilla: clamp(1rem, 4vw, 3.5rem);
  --radio: 14px;
  --suave: cubic-bezier(.3, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cal);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
a, button, input, select { touch-action: manipulation; -webkit-tap-highlight-color: rgb(163 34 54 / .18); }
section[id] { scroll-margin-top: 3.5rem; }
:focus-visible { outline: 3px solid var(--vidrio); outline-offset: 3px; border-radius: 4px; }

.oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.salto {
  position: fixed; left: 1rem; top: -4rem; z-index: 30;
  background: var(--tinta); color: var(--cal); padding: .6rem 1rem; border-radius: 999px;
}
.salto:focus { top: 1rem; }

.ancho { width: min(100% - 2 * var(--orilla), 1240px); margin-inline: auto; }

.encabezado {
  font-family: var(--rotulo);
  font-weight: 400;
  font-size: clamp(2.1rem, 8.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.entrada { margin-top: 1rem; max-width: 46ch; color: var(--tinta-suave); font-size: 1.125rem; }
.nota { font-size: .9rem; color: var(--tinta-suave); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .7rem 1.5rem;
  border: 2px solid var(--vino); border-radius: 999px;
  background: var(--vino); color: var(--sobre-vino);
  font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s;
}
.boton:hover { background: var(--vino-hondo); border-color: var(--vino-hondo); }
.boton:active { transform: scale(.97); }
.boton--linea { background: transparent; color: var(--tinta); border-color: currentColor; }
.boton--linea:hover { background: var(--tinta); border-color: var(--tinta); color: var(--cal); }
.boton--chico { min-height: 2.75rem; padding: .4rem 1rem; font-size: .95rem; }
.boton--ancho { width: 100%; }

/* ---------- Barra ---------- */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: calc(3.75rem + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(var(--orilla), env(safe-area-inset-right)) 0 max(var(--orilla), env(safe-area-inset-left));
  color: var(--tinta);
  transition: background-color .3s, color .3s;
}
.barra[data-fondo] { background: rgb(233 237 234 / .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.barra[data-tono="oscuro"] { color: var(--luna); }
.barra[data-tono="oscuro"][data-fondo] { background: rgb(13 20 34 / .8); }
.barra__marca { display: inline-flex; align-items: center; min-height: 2.75rem; font-family: var(--rotulo); font-size: .95rem; white-space: nowrap; text-decoration: none; letter-spacing: .01em; }
/* El logo viene sobre negro: va en su propia placa para leerse igual en claro y en oscuro. */
.barra__marca img { height: 2.6rem; width: auto; border-radius: 8px; background: #000; }
.barra__nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 1.75rem); font-weight: 600; font-size: .95rem; }
.barra__nav a:not(.boton) { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
@media (max-width: 560px) {
  .barra__extra { display: none !important; }
  .barra { gap: .5rem; }
  .barra__marca { font-size: .85rem; }
  .barra__nav { gap: .6rem; font-size: .88rem; }
  .barra__nav .boton--chico { padding-inline: .8rem; font-size: .88rem; }
}
.barra__nav a:not(.boton):hover { text-decoration: underline; text-underline-offset: .3em; }

/* ---------- Apertura ---------- */
.apertura__escena {
  position: relative; min-height: 100svh; overflow: hidden;
  --fade: 1; --lema: 0;
}
.cine .apertura { height: 260svh; }
.cine .apertura__escena { position: sticky; top: 0; height: 100svh; }

.apertura__frente {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4.25rem var(--orilla) 1.25rem;
  opacity: var(--fade);
}
.titular {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--rotulo); font-weight: 400; text-transform: uppercase;
  font-size: min(16vw, 10svh);
  line-height: .86; letter-spacing: -.005em;
}
.boca {
  display: block; position: relative;
  width: min(72vw, 40svh); aspect-ratio: 1; border-radius: 50%;
  margin-block: 26px 22px;
  background: var(--tinta) url("../media/apertura-v.webp") center / cover;
  /* roseta */
  box-shadow:
    0 0 0 5px var(--cal),
    0 0 0 7px var(--tinta),
    0 0 0 12px var(--cal),
    0 0 0 17px var(--vino),
    0 0 0 19px var(--cal),
    0 0 0 20px var(--tinta);
}
.cine .boca { background: transparent; }
.puente {
  position: relative; z-index: 2;
  width: min(52vw, 28svh); height: 12px; margin-top: 12px;
  border-radius: 3px; background: var(--tinta);
  box-shadow: 0 3px 0 rgb(15 35 38 / .18);
}

.apertura__pie { margin-top: 1.1rem; text-align: center; }
.apertura__texto { max-width: 30ch; margin-inline: auto; font-size: 1.05rem; color: var(--tinta-suave); }
.apertura__acciones { display: flex; justify-content: center; gap: .75rem; margin-top: 1rem; }

.apertura__video { display: none; }
.cine .apertura__video {
  display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  clip-path: circle(var(--r, 0px) at var(--cx, 50%) var(--cy, 40%));
  background: var(--tinta) center / cover;
}
.apertura__video video { width: 100%; height: 100%; object-fit: cover; }
.apertura__velo {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(9 20 22 / .82), rgb(9 20 22 / 0) 58%);
  opacity: var(--lema);
}

.cuerdas { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; opacity: var(--fade); }
.cuerdas__ayuda {
  display: flex; justify-content: center; align-items: center; gap: .75rem;
  margin-top: 1rem; font-size: .85rem; color: var(--tinta-suave);
}
.sonido {
  background: none; border: 1px solid currentColor; border-radius: 999px;
  padding: .2rem .9rem; min-height: 2.75rem; cursor: pointer;
}
html:not(.cuerdas-listas) .cuerdas__ayuda { display: none; }

.lema { padding: 3rem var(--orilla); }
.lema h2 {
  font-family: var(--rotulo); font-weight: 400;
  font-size: clamp(1.9rem, 7.6vw, 4.6rem); line-height: 1.04; max-width: 17ch; text-wrap: balance;
}
.cine .lema {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  display: flex; align-items: flex-end;
  padding-bottom: max(3rem, 9svh);
  color: var(--luna);
  opacity: var(--lema);
  transform: translateY(calc((1 - var(--lema)) * 24px));
}

/* ---------- Grupo: el fuelle ---------- */
.grupo { padding-block: clamp(4rem, 12vw, 8rem) 0; }
.fuelle {
  display: flex; flex-direction: column; gap: 3px;
  height: max(34rem, 92svh);
  margin-top: 2rem;
  background: var(--tinta);
}
.fuelle__pliegue {
  position: relative; overflow: hidden;
  flex: 1 1 0; min-height: 0; min-width: 0;
  padding: 0; border: 0; background: var(--tinta); color: var(--luna);
  text-align: left; cursor: pointer;
  transition: flex-grow .6s var(--suave);
}
.fuelle__pliegue[aria-expanded="true"] { flex-grow: 7; cursor: default; }
.fuelle__pliegue video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--foco, 50% 50%);
  filter: saturate(.55) brightness(.62);
  transition: filter .5s;
}
.fuelle__pliegue[aria-expanded="true"] video { filter: none; }
.fuelle__pliegue::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(9 20 22 / .7), rgb(9 20 22 / 0) 55%);
  /* sombra de pliegue */
  box-shadow: inset 0 12px 14px -12px rgb(0 0 0 / .7), inset 0 -12px 14px -12px rgb(0 0 0 / .7);
}
.fuelle__nombre {
  position: absolute; z-index: 1; left: var(--orilla); bottom: .7rem; right: 1rem;
  font-family: var(--rotulo); font-size: 1.25rem; line-height: 1.05;
  transition: font-size .4s var(--suave);
}
.fuelle__pliegue[aria-expanded="true"] .fuelle__nombre { font-size: clamp(1.9rem, 8vw, 3.2rem); bottom: 1.25rem; }
.fuelle__pliegue:focus-visible { outline-offset: -4px; outline-color: var(--luna); }

/* ---------- Música ---------- */
.musica { padding-block: clamp(4rem, 12vw, 8rem); }
.pistas { margin-top: 2rem; }
.pista {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: .35rem 1rem; align-items: center;
  padding-block: 1.1rem;
}
.pista + .pista { border-top: 1px solid rgb(15 35 38 / .18); }
.pista img { width: 4.5rem; height: 4.5rem; border-radius: var(--radio); grid-row: span 2; align-self: start; }
.pista h3 { font-family: var(--rotulo); font-weight: 400; font-size: clamp(1.45rem, 5.6vw, 2.6rem); line-height: 1.05; }
.pista__datos p { color: var(--tinta-suave); font-size: .95rem; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.pista__enlaces { display: flex; gap: .5rem; grid-column: 2; }
.pista__enlaces a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .3rem 1rem;
  border: 1.5px solid var(--tinta); border-radius: 999px;
  font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.pista__enlaces a:hover { background: var(--tinta); color: var(--cal); }
.reproductor { margin-top: 1.75rem; display: grid; gap: .6rem; justify-items: start; }
.reproductor iframe { width: 100%; height: 352px; border: 0; border-radius: var(--radio); }

.oficial { width: min(100% - 2 * var(--orilla), 1240px); margin: clamp(3rem, 8vw, 5rem) auto 0; }
.oficial__marco { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radio); overflow: hidden; background: var(--tinta); }
.oficial__marco img, .oficial__marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.oficial__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: .7rem;
  min-height: 3.25rem; padding: .7rem 1.4rem;
  border: 0; border-radius: 999px; background: var(--vino); color: var(--sobre-vino);
  font-weight: 700; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, transform .15s;
}
.oficial__play:hover { background: var(--vino-hondo); }
.oficial__play:active { transform: translate(-50%, -50%) scale(.97); }
.oficial__triangulo { width: 0; height: 0; border-left: .8rem solid currentColor; border-block: .5rem solid transparent; }
.oficial figcaption { margin-top: .75rem; font-size: .9rem; color: var(--tinta-suave); }

/* ---------- Contratar ---------- */
.contratar {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--noche); color: var(--luna);
  padding-block: clamp(4.5rem, 13vw, 9rem);
}
.contratar__fondo { position: absolute; inset: 0; z-index: -1; background: var(--noche) center / cover; }
.contratar__fondo video { width: 100%; height: 100%; object-fit: cover; }
.contratar__fondo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(19 27 46 / .35), rgb(19 27 46 / .86) 62%, var(--noche));
}
.contratar .entrada, .contratar .nota { color: var(--luna-suave); }
.contratar__rejilla { display: grid; gap: 2.25rem; }

.forma { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; color-scheme: dark; }
.campo { grid-column: 1 / -1; display: grid; gap: .4rem; }
.campo--mitad { grid-column: auto; }
.campo label { font-weight: 600; font-size: .95rem; }
.campo input, .campo select {
  width: 100%; min-height: 3rem; padding: .6rem .8rem;
  border: 1.5px solid rgb(238 240 236 / .45); border-radius: 10px;
  background: rgb(13 20 34 / .72); color: var(--luna);
}
.campo select option { background: var(--noche-2); color: var(--luna); }
.campo input:focus-visible, .campo select:focus-visible { outline-color: var(--luna); border-color: var(--luna); }
.campo [aria-invalid="true"] { border-color: #FF9C8F; }
.campo__error { color: #FFB3A8; font-size: .9rem; }
.forma .boton, .forma .nota { grid-column: 1 / -1; }

.numero { font-variant-numeric: tabular-nums; white-space: nowrap; }
.canales { margin-top: 1.75rem; }
.canales li + li { border-top: 1px solid rgb(238 240 236 / .2); }
.canales a { display: grid; gap: .15rem; padding-block: 1rem; text-decoration: none; }
.canales strong { font-family: var(--rotulo); font-weight: 400; font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1.1; transition: color .2s; }
.canales a > span { color: var(--luna-suave); }
.canales a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.qr {
  display: inline-grid; grid-template-columns: 7.5rem auto; gap: 1rem; align-items: center;
  margin-top: 1.25rem; padding: .6rem 1.1rem .6rem .6rem;
  border-radius: var(--radio); background: var(--luna); color: var(--noche-2);
  text-decoration: none;
}
.qr img { width: 7.5rem; height: 7.5rem; border-radius: 8px; }
.qr__texto { display: grid; gap: .2rem; }
.qr__texto .numero { font-family: var(--rotulo); font-size: 1.3rem; }

/* ---------- Promotores ---------- */
.prensa { background: var(--noche-2); color: var(--luna); padding-block: clamp(4rem, 12vw, 8rem); }
.prensa__rejilla { display: grid; gap: 1.75rem; margin-top: 2rem; }
.prensa__foto { width: 100%; height: auto; border-radius: var(--radio); }
.ficha { display: grid; gap: 1.25rem; align-content: start; }
.ficha dt { font-size: .9rem; color: var(--luna-suave); }
.ficha dd { font-family: var(--rotulo); font-size: clamp(1.25rem, 4.6vw, 1.7rem); line-height: 1.12; margin-top: .15rem; }
.prensa__sub { margin-top: 2.5rem; font-size: 1rem; font-weight: 700; }
.descargas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.descargas a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: .4rem 1.1rem;
  border: 1.5px solid rgb(238 240 236 / .5); border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: background-color .2s, color .2s;
}
.descargas a:hover { background: var(--luna); color: var(--noche-2); }

/* ---------- Pie ---------- */
.pie { background: var(--noche-2); color: var(--luna); padding-block: 1rem calc(2.5rem + env(safe-area-inset-bottom)); }
.pie__rejilla { display: grid; justify-items: center; gap: 1rem; text-align: center; border-top: 1px solid rgb(238 240 236 / .16); padding-top: 2rem; }
.pie__logo { width: min(19rem, 78vw); height: auto; mix-blend-mode: screen; }
.pie__redes { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.5rem; font-weight: 600; }
.pie__redes a { display: inline-block; padding-block: .6rem; text-underline-offset: .3em; }
.pie__nota { font-size: .9rem; color: var(--luna-suave); }
.pie__nota a:hover { color: var(--luna); }

/* ---------- Pantallas anchas ---------- */
@media (min-width: 900px) {
  .apertura__frente { align-items: stretch; justify-content: center; padding-inline: 4vw; }
  .titular { font-size: min(12.4vw, 25svh); align-items: center; }
  .titular__a { align-self: flex-start; }
  .titular__b { align-self: flex-end; margin-top: -.06em; }
  .boca { width: min(38vw, 48svh); margin-block: -.3em; }
  .puente { width: min(24vw, 32svh); margin-top: 20px; align-self: center; }
  .apertura__pie { position: absolute; left: 4vw; bottom: 6svh; margin: 0; text-align: left; }
  .apertura__texto { margin-inline: 0; max-width: min(24ch, 21vw); font-size: 1.15rem; }
  .apertura__acciones { justify-content: flex-start; flex-wrap: wrap; }
  .cuerdas__ayuda { flex-wrap: wrap; }
  .cuerdas__ayuda { justify-content: flex-start; font-size: .9rem; }

  .fuelle { flex-direction: row; height: max(30rem, 78svh); }
  .fuelle__pliegue::after { box-shadow: inset 12px 0 14px -12px rgb(0 0 0 / .7), inset -12px 0 14px -12px rgb(0 0 0 / .7); }
  .fuelle__nombre { left: 1.1rem; bottom: 1.1rem; font-size: 1.15rem; }
  .fuelle__pliegue[aria-expanded="true"] .fuelle__nombre { left: 1.75rem; bottom: 1.75rem; }

  .pista { grid-template-columns: 6rem 1fr auto; padding-block: 1.5rem; }
  .pista img { width: 6rem; height: 6rem; grid-row: auto; }
  .pista__enlaces { grid-column: auto; }

  .contratar__rejilla { grid-template-columns: 1fr minmax(22rem, 30rem); gap: 5rem; align-items: start; }
  .prensa__rejilla { grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: center; }
  .pie__rejilla { grid-template-columns: auto 1fr auto; text-align: left; justify-items: start; align-items: center; }
  .pie__logo { width: 13rem; }
  .qr { grid-template-columns: 10rem auto; }
  .qr img { width: 10rem; height: 10rem; }
  .pie__redes { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
