/* =========================================================
   Bailemos las penas · Programa de mano
   Identidad tomada de las piezas finales (FINAL/).
   Idea rectora: escenario + carnet de baile.
   ========================================================= */

:root {
  --negro: #050001;
  --vino: #2a0309;
  --vino-medio: #4a0812;
  --rojo: #8c0b14;
  --amarillo: #FDE431;
  --crema: #F3E7D8;
  --rosa: #FFC9C2;
  --crema-suave: rgba(243, 231, 216, 0.7);
  --crema-tenue: rgba(243, 231, 216, 0.4);

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --entre: clamp(150px, 32svh, 320px); /* aire entre escenas */
  --sombra-texto: 0 1px 14px rgba(42, 3, 9, 0.85), 0 0 2px rgba(42, 3, 9, 0.6);

  /* grano de terciopelo / cartulina */
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

/* Sin scroll-behavior: smooth: interfiere con las medidas de ScrollTrigger.
   Los enlaces internos se desplazan suave desde main.js. */
html {
  background: var(--negro);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--negro);
  color: var(--crema);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.telon-cerrado, .telon-cerrado body { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--amarillo); color: var(--negro); }

:focus-visible {
  outline: 1px solid var(--amarillo);
  outline-offset: 4px;
}

.saltar {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--amarillo);
  color: var(--negro);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.saltar:focus { top: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Escena de partículas ---------- */
#escena {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
}
.sin-particulas #escena { display: none; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--gutter);
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(5, 0, 1, 0.94), rgba(5, 0, 1, 0.7) 70%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transform: translateY(-110%);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav.es-visible { transform: none; }
.nav__marca img { width: 74px; height: auto; }
.nav__links { display: flex; gap: clamp(18px, 4vw, 36px); }
.nav__links a {
  padding: 10px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  text-decoration: none;
  color: var(--crema-suave);
  transition: color 0.3s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--amarillo); }
@media (max-width: 359px) { .nav__marca { display: none; } .nav { justify-content: center; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero__foto {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 84%;
  aspect-ratio: 2436 / 3636;
  min-width: 100%;
  transform: translateX(-50%);
  z-index: 0;
}
.hero__foto picture, .hero__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__foto img { will-change: transform; }
.hero__foto::before, .hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  z-index: 1;
  pointer-events: none;
}
.hero__foto::before { top: -2px; height: 26%; background: linear-gradient(to bottom, var(--negro), rgba(5, 0, 1, 0)); }
.hero::after { bottom: 0; height: 30%; z-index: 0; background: linear-gradient(to top, var(--negro) 8%, rgba(5, 0, 1, 0.75) 40%, rgba(5, 0, 1, 0)); }

@media (min-aspect-ratio: 3/4) {
  .hero__foto {
    min-width: 0;
    height: 87%;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  }
  .hero__titulo { width: min(86vw, 760px, 44svh); }
}

.hero__contenido {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(7svh, 44px) var(--gutter) 0;
  width: 100%;
}

.brilla { mix-blend-mode: plus-lighter; text-shadow: var(--sombra-texto); }

/* Rótulos en mayúsculas espaciadas: tomados tal cual del flyer */
.hero__antetitulo {
  margin: 0 0 clamp(10px, 2svh, 20px);
  display: flex;
  align-items: center;
  gap: 0.8em;
  font-size: clamp(8.5px, 2.45vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;   /* en celular, para que "música canto popular" quepa en una línea */
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 600px) { .hero__antetitulo { letter-spacing: 0.32em; gap: 0.9em; } }
@media (max-width: 340px) { .hero__antetitulo { flex-wrap: wrap; justify-content: center; row-gap: 4px; white-space: normal; } }
.punto {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amarillo);
  flex: none;
}

.hero__titulo {
  margin: 0;
  width: min(86vw, 760px, 52svh);
  aspect-ratio: 210 / 78.5;
}
.hero__titulo img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 10px rgba(42, 3, 9, 0.7));
  transition: opacity 0.45s ease;
}
.con-particulas .hero__titulo img { opacity: 0; }
.con-particulas.titulo-listo .hero__titulo img { opacity: 1; }
.con-particulas.titulo-listo .hero__titulo.baila img { opacity: 0; transition-duration: 0.18s; }

.hero__artista {
  margin: clamp(12px, 2.4svh, 26px) 0 0.35em;
  font-size: clamp(15px, 4.6vw, 34px);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}
.hero__maestra {
  margin: 0;
  font-size: clamp(9.5px, 2.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__pie {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__pista {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--rosa);
  opacity: 0;
  transition: opacity 0.8s ease;
}
.pista-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .pista-tactil { display: none; }
  .pista-cursor { display: inline; }
}
.con-particulas.titulo-listo:not(.ya-bailo) .hero__pista { opacity: 0.9; }

.hero__datos {
  margin: 0;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 22px);
  font-size: clamp(13px, 3.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.barra {
  width: 1.5px;
  height: 1.3em;
  background: var(--crema);
  flex: none;
}
.hero__bajar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--crema-suave);
}
.hero__bajar svg { color: var(--amarillo); animation: bajar 2.4s ease-in-out infinite; }
@keyframes bajar { 0%, 100% { transform: translateY(0); opacity: 0.6; } 50% { transform: translateY(5px); opacity: 1; } }

/* ---------- Telón ---------- */
.telon { display: none; }
.js .telon {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  --pliegue: clamp(42px, 5.6vw, 84px);
  --bamb-h: clamp(58px, 10svh, 112px);
  /* Seguro: si el script no toma el control, el telón se retira solo */
  animation: telon-seguro 0.6s ease 7s forwards;
}
@keyframes telon-seguro { to { opacity: 0; visibility: hidden; } }
.telon--abierto { visibility: hidden; }

.telon__pano {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background:
    linear-gradient(to bottom, rgba(5, 0, 1, 0.7) 0%, rgba(5, 0, 1, 0) 24%, rgba(5, 0, 1, 0) 70%, rgba(5, 0, 1, 0.65) 100%),
    /* pliegues de distinto ancho para que la tela no se vea de fábrica */
    linear-gradient(90deg, rgba(5, 0, 1, 0.32), rgba(5, 0, 1, 0) 30%, rgba(255, 220, 200, 0.05) 52%, rgba(5, 0, 1, 0) 70%, rgba(5, 0, 1, 0.26)) 0 0 / calc(var(--pliegue) * 2.7) 100% repeat-x,
    linear-gradient(90deg, rgba(5, 0, 1, 0.18), rgba(5, 0, 1, 0) 45%, rgba(5, 0, 1, 0.14)) 0 0 / calc(var(--pliegue) * 1.6) 100% repeat-x,
    linear-gradient(90deg, #22020a 0%, #5e0811 18%, #a3121d 38%, #cc1d29 50%, #9a101a 62%, #4f060e 82%, #22020a 100%) 0 0 / var(--pliegue) 100% repeat-x;
  will-change: transform;
}
.telon__pano::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grano);
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.telon__pano::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 26px;
  z-index: 1;
}
.telon__pano--izq { left: 0; transform-origin: 0 0; }
.telon__pano--izq::before { right: 0; background: linear-gradient(to left, rgba(5, 0, 1, 0.75), transparent); }
.telon__pano--der { right: 0; transform-origin: 100% 0; }
.telon__pano--der::before { left: 0; background: linear-gradient(to right, rgba(5, 0, 1, 0.75), transparent); }

.telon__luz {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 36% 50% at 50% 46%, rgba(255, 214, 170, 0.34), rgba(255, 170, 130, 0.08) 55%, transparent 76%);
  mix-blend-mode: screen;
  opacity: 0;
}

/* Bambalina con borde dorado festoneado */
.telon__bambalina, .telon__fleco {
  position: absolute;
  top: 0; left: 0; right: 0;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 22px) no-repeat,
    radial-gradient(circle 22px at 50% 0, #000 97%, transparent 100%) bottom / 44px 22px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - 22px) no-repeat,
    radial-gradient(circle 22px at 50% 0, #000 97%, transparent 100%) bottom / 44px 22px repeat-x;
  will-change: transform;
}
.telon__bambalina {
  height: var(--bamb-h);
  background:
    var(--grano),
    repeating-linear-gradient(90deg, rgba(5, 0, 1, 0.22) 0 7px, rgba(255, 255, 255, 0.025) 7px 15px, rgba(5, 0, 1, 0.14) 15px 22px),
    linear-gradient(to bottom, #170105 0%, #4e0710 34%, #8c0b14 62%, #5c0811 86%, #2a0309 100%);
}
.telon__fleco {
  height: calc(var(--bamb-h) + 4px);
  background: linear-gradient(to bottom, #8a7410, var(--amarillo) 70%, #b39a12);
}

/* ---------- Bloques de texto ---------- */
/* las escenas entran desde los lados: recortar para que nunca ensanchen la página */
main, .pie { overflow-x: clip; }
main { position: relative; z-index: 2; }

.bloque {
  width: min(100% - 2 * var(--gutter), 1080px);
  margin: var(--entre) auto 0;
}
.bloque--carta { width: min(100% - 2 * var(--gutter), 620px); }

.titular {
  margin: 0 0 0.55em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 8.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.005em;
  color: var(--crema);
  text-wrap: balance;
}

.prosa p {
  margin: 0 0 1.1em;
  max-width: 62ch;
  color: var(--crema-suave);
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}
.prosa p:first-child { color: var(--crema); font-size: clamp(17px, 4.2vw, 19px); }
.firma {
  margin-top: 1.6em;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--rosa);
}

/* Texto aún no entregado: renglones de papel en espera */
.pendiente__que {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--crema-tenue);
}
.pendiente__renglones {
  height: 132px;
  background: repeating-linear-gradient(to bottom, transparent 0 32px, rgba(243, 231, 216, 0.12) 32px 33px);
}

/* ---------- Programa: carnet de baile ---------- */
.programa {
  width: min(100% - 32px, 760px);
  margin: var(--entre) auto 0;
  scroll-margin-top: 70px;
}
.cortesia {
  margin: 0 auto 22px;
  max-width: 30ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.45;
  color: var(--rosa);
  text-align: center;
  text-wrap: balance;
}
.carnet {
  position: relative;
  padding: clamp(46px, 8vw, 80px) clamp(24px, 6vw, 72px) clamp(40px, 7vw, 72px);
  background:
    var(--grano),
    radial-gradient(130% 70% at 50% 0%, #4c0913 0%, #2a0309 55%, #160105 100%);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95);
  text-align: center;
}
/* filete doble estampado en dorado */
.carnet::before, .carnet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.carnet::before { inset: 10px; border: 1px solid rgba(253, 228, 49, 0.6); }
.carnet::after { inset: 15px; border: 1px solid rgba(253, 228, 49, 0.22); }

.carnet__titulo {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 12vw, 72px);
  line-height: 1;
  color: var(--amarillo);
}
.carnet__orn { display: block; margin: 18px auto 8px; color: rgba(253, 228, 49, 0.7); }

.parte__nombre {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  color: var(--rosa);
}
.parte__nombre::before, .parte__nombre::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(253, 228, 49, 0.28);
}

.piezas { list-style: none; margin: 0; padding: 0; text-align: left; }

.pieza__fila {
  display: grid;
  grid-template-columns: 1.6em minmax(0, 1fr) auto;
  grid-template-areas: "n t t" ". p c";
  column-gap: 10px;
  align-items: baseline;
  width: 100%;
  padding: 13px 0;
  border: 0;
  background: none;
  text-align: left;
}
@media (min-width: 640px) {
  .pieza__fila { grid-template-columns: 1.8em auto minmax(24px, 1fr) auto; grid-template-areas: "n t p c"; }
}
button.pieza__fila { cursor: pointer; }
.pieza__n {
  grid-area: n;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--amarillo);
  font-variant-numeric: lining-nums;
}
.pieza__t {
  grid-area: t;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 5.2vw, 24px);
  line-height: 1.25;
  color: var(--crema);
  transition: color 0.3s;
}
.pieza__p {
  grid-area: p;
  align-self: end;
  height: 3px;
  margin-bottom: 0.45em;
  background: radial-gradient(circle, rgba(243, 231, 216, 0.42) 0.9px, transparent 1.4px) left center / 7px 3px repeat-x;
}
.pieza__c {
  grid-area: c;
  font-size: 13px;
  color: var(--crema-suave);
  white-space: nowrap;
}
button.pieza__fila:hover .pieza__t { color: var(--amarillo); }
.pieza__c .mas {
  display: inline-block;
  margin-left: 8px;
  color: var(--amarillo);
  transition: transform 0.4s;
}
.pieza__fila[aria-expanded="true"] .mas { transform: rotate(45deg); }

/* línea en blanco del carnet: aún sin pieza asignada */
.pieza--vacia .pieza__fila { grid-template-columns: 1.6em 1fr; grid-template-areas: "n p"; padding: 17px 0; }
@media (min-width: 640px) { .pieza--vacia .pieza__fila { grid-template-columns: 1.8em 1fr; } }
.pieza--vacia .pieza__n { color: rgba(253, 228, 49, 0.55); }
.pieza--vacia .pieza__p { margin-bottom: 0.3em; }

.pieza__detalle {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pieza__detalle > div { overflow: hidden; }
.pieza__fila[aria-expanded="true"] + .pieza__detalle { grid-template-rows: 1fr; }
.pieza__cuerpo { padding: 0 0 20px calc(1.6em + 10px); }
.pieza__cuerpo p { margin: 0 0 12px; color: var(--crema-suave); font-size: 15px; line-height: 1.7; }
.pieza__letra p { font-family: var(--serif); font-style: italic; font-size: 17px; white-space: pre-line; }

.intermedio {
  margin: 30px 0 4px;
  text-align: center;
}
.intermedio__nombre {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 6vw, 30px);
  color: var(--amarillo);
}
.intermedio__dur { margin: 4px 0 0; font-size: 13px; color: var(--crema-suave); }

/* ---------- Videos ---------- */
.videos { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video { margin: 0; }
.video__marco { aspect-ratio: 16 / 10; overflow: hidden; background: #0a0102; }
.video__marco video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 17px; }
.video figcaption small { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--crema-suave); }

/* ---------- Músicos: composición del flyer ---------- */
.rotulo {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(253, 228, 49, 0.85);
  color: var(--rosa);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1.3;
}

.musicos {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin: var(--entre) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "foto foto" "rot rot" "izq der";
  column-gap: 16px;
  scroll-margin-top: 70px;
}
.musicos__rotulo { grid-area: rot; justify-self: center; text-align: center; }
.musicos__foto {
  grid-area: foto;
  position: relative;
  margin: 0 calc(-1 * var(--gutter)) 36px;
  height: min(118vw, 520px);
  overflow: hidden;
}
.musicos__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.musicos__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--negro) 2%, rgba(5, 0, 1, 0) 45%);
}
.musicos__col { min-width: 0; }
.musicos__col .rotulo { display: none; }
.musicos__col--izq { grid-area: izq; text-align: left; }
.musicos__col--der { grid-area: der; text-align: right; }
.musicos ul { list-style: none; margin: 0; padding: 0; }
.musico { padding: 7px 0; }
.musico__nombre { display: block; font-size: clamp(15px, 4vw, 17px); font-weight: 500; line-height: 1.35; }
.musico__instr { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--rosa); line-height: 1.3; }

@media (min-width: 900px) {
  .musicos {
    grid-template-columns: 1fr minmax(260px, 340px) 1fr;
    grid-template-areas: "izq foto der";
    align-items: start;
    column-gap: clamp(36px, 5vw, 80px);
  }
  .musicos__col { padding-top: clamp(48px, 7vw, 110px); }
  .musico__nombre { font-size: 18px; }
  .musicos__rotulo {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .musicos__col .rotulo { display: inline-block; }
  .musicos__foto { margin: 0; height: auto; aspect-ratio: 3 / 4.1; }
  .musicos__foto::after { background: radial-gradient(120% 80% at 50% 40%, rgba(5, 0, 1, 0) 50%, var(--negro) 100%); }
}

/* ---------- Perfiles ---------- */
.perfil { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (min-width: 860px) {
  .perfil { grid-template-columns: 5fr 7fr; }
  .perfil--invertido { grid-template-columns: 7fr 5fr; }
  .perfil--invertido .perfil__foto { order: 2; justify-self: end; }
}
.perfil__foto { margin: 0; position: relative; width: 100%; max-width: 500px; }
.perfil__foto::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(253, 228, 49, 0.35);
  pointer-events: none;
}
.perfil__foto img { width: 100%; }

/* ---------- Pie ---------- */
.pie {
  position: relative;
  z-index: 2;
  margin-top: var(--entre);
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
  text-align: center;
}
.pie__titulo { width: min(64vw, 300px); height: auto; margin: 0 auto 56px; opacity: 0.9; }
.pie__logos { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 5vw, 36px); }
.pie__logos img { width: auto; height: clamp(34px, 9vw, 48px); }
.pie__logos .barra { height: 44px; width: 1px; opacity: 0.7; }
.pie__creditos { margin: 24px 0 4px; color: var(--crema-tenue); font-size: 12px; }
.pie__creditos:empty { display: none; }

/* ---------- Escenario fijo: todo ocurre en la primera pantalla ----------
   Solo con .escenas-activas (lo pone main.js). Sin ella, la página fluye normal. */
.recorrido { display: none; }
.escenas-activas .recorrido { display: block; }
.escenas-activas .escenario {
  position: fixed;
  inset: 0;
  overflow: hidden;
  --nav-h: calc(64px + env(safe-area-inset-top));
}
.escenas-activas .telon { z-index: 5; }
.escenas-activas .hero { position: absolute; inset: 0; height: auto; min-height: 0; }
.escenas-activas main { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.escenas-activas main > section,
.escenas-activas .pie {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: auto;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) var(--gutter) max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  pointer-events: auto;
  visibility: hidden;
  opacity: 0;
}
.escenas-activas main > section[hidden] { display: none; }
/* si una escena no cabe, se alinea arriba y su contenido corre durante la pausa */
.escenas-activas main > section.desborda,
.escenas-activas .pie.desborda { justify-content: flex-start; }
.escenas-activas .escena { width: 100%; flex: none; }
.escenas-activas .bloque--carta .escena { max-width: 620px; }
.escenas-activas .programa .escena { max-width: 760px; }
.escenas-activas .perfil { max-width: 1080px; }
.escenas-activas .musicos { width: 100%; max-width: 1120px; margin: 0; }
.escenas-activas .pie { text-align: center; }
.escenas-activas .pie__titulo { margin-bottom: 44px; }

/* el carnet no crece más que la pantalla: sus líneas corren dentro del marco */
.escenas-activas .programa .escena { display: flex; flex-direction: column; min-height: 0; max-height: 100%; flex: 0 1 auto; }
.escenas-activas .carnet { display: flex; flex-direction: column; min-height: 0; flex: 0 1 auto; padding-top: clamp(32px, 6svh, 64px); }
.escenas-activas .carnet__ventana {
  min-height: 0;
  flex: 0 1 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 30px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 30px), transparent);
}
.escenas-activas .carnet__lista { padding: 4px 0 18px; }
.escenas-activas .cortesia { margin-bottom: 14px; }

/* fotos a la medida de la pantalla */
.escenas-activas .musicos__foto { height: 30svh; margin: 0 0 18px; }
.escenas-activas .perfil__foto { height: 40svh; max-width: none; }
.escenas-activas .perfil__foto img { height: 100%; object-fit: cover; object-position: 50% 22%; }
.escenas-activas .perfil { gap: 24px; }
@media (min-width: 860px) {
  .escenas-activas .perfil { gap: clamp(32px, 6vw, 80px); }
  .escenas-activas .perfil__foto { height: min(72svh, 640px); max-width: 500px; }
}
@media (min-width: 900px) {
  .escenas-activas .musicos__foto { height: min(68svh, 560px); margin: 0; aspect-ratio: auto; }
}

/* ---------- Entrada del hero ---------- */
.js [data-entra] { opacity: 0; }
.js.sin-movimiento [data-entra] { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
