/* ==========================================================================
   MANCHAMAR ELECTRONIC FESTIVAL — hoja de estilos
   Paleta y tipografías del brandbook (Hackeo ES, 2026)
   ========================================================================== */

/* ---------- 1. Tipografías de marca ---------- */
@font-face {
  font-family: "Gluf MM";
  src: url("assets/fonts/gluf-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Panchang MM";
  src: url("assets/fonts/panchang-medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Konstant MM";
  src: url("assets/fonts/konstant-book.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: dark;

  /* Paleta oficial */
  --pantano: #2b0904;   /* neutro oscuro */
  --hueso:   #ede6e2;   /* neutro claro */
  --fucsia:  #d40050;
  --coral:   #ef7162;
  --menta:   #a0edc8;
  --azul:    #0056bc;

  /* Derivados */
  --hueso-70: rgba(237, 230, 226, .72);
  --linea:    rgba(237, 230, 226, .2);
  --panel:    rgba(237, 230, 226, .045);
  --abismo:   #1f0602;   /* pantano profundo, fondo de la sección 2026 */

  /* Tipos: títulos / subtítulos / información */
  --f-titulo: "Gluf MM", "Arial Black", Impact, sans-serif;
  --f-sub:    "Panchang MM", "Arial Black", Arial, sans-serif;
  --f-info:   "Konstant MM", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pantano);
  color: var(--hueso);
  font-family: var(--f-info);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.punto {
  display: inline-block;
  width: .45em; height: .45em;
  background: var(--coral);
  transform: rotate(45deg);
  flex: none;
}

/* Botón con la silueta de la cartela "ELECTRONIC FESTIVAL" del isologo */
.btn {
  --pico: .95em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1em 2.1em;
  font-family: var(--f-sub);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  color: var(--hueso);
  background: var(--fucsia);
  clip-path: polygon(var(--pico) 0, calc(100% - var(--pico)) 0, 100% 50%, calc(100% - var(--pico)) 100%, var(--pico) 100%, 0 50%);
  transition: background-color .25s ease, color .25s ease, transform .25s var(--ease-out);
}
.btn:hover { background: var(--coral); color: var(--pantano); transform: translateY(-2px); }
.btn:focus-visible { outline: none; background: var(--menta); color: var(--pantano); }
.btn--barra { padding: .85em 1.5em; font-size: .68rem; --pico: .8em; }

/* ---------- 4. Cabecera (hero) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-inline: var(--gutter);
  overflow: hidden;
  overflow: clip;
}

.hero__fondo { position: absolute; inset: 0; z-index: -2; }
.hero__fondo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  filter: saturate(1.12) brightness(.6) contrast(1.06);
  transform: scale(1.06);
  animation: fondo-entra 2.6s var(--ease-out) both;
}
/* Luna de coral sobre el embalse + fundido al pantano */
.hero__fondo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 40% at 50% 38%, rgba(239, 113, 98, .42), rgba(212, 0, 80, .2) 48%, transparent 74%),
    linear-gradient(180deg, rgba(43, 9, 4, .94) 0%, rgba(43, 9, 4, .4) 20%, rgba(43, 9, 4, .3) 48%, rgba(43, 9, 4, .78) 80%, var(--pantano) 100%);
}
.hero__grano {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: .22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* Barra superior */
.barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: calc(env(safe-area-inset-top, 0px) + 18px) 16px;
  border-bottom: 1px solid var(--linea);
  animation: aparece .9s var(--ease-out) .1s both;
}
.barra__logo { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 16px); flex: none; text-decoration: none; }
.barra__nombre { height: clamp(24px, 2.6vw, 38px); width: auto; }
.barra__fecha {
  display: flex; align-items: center; gap: .9em;
  font-family: var(--f-sub);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.barra__acciones { display: flex; align-items: center; gap: 12px; flex: none; }
.barra__link {
  font-family: var(--f-sub);
  font-size: .64rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hueso);
  padding: .8em .5em;
  transition: color .2s ease;
}
.barra__link:hover, .barra__link:focus-visible { color: var(--coral); outline: none; }
.barra__ig {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--linea);
  border-radius: 50%;
  color: var(--hueso);
  transition: border-color .25s ease, color .25s ease;
}
.barra__ig:hover, .barra__ig:focus-visible { border-color: var(--coral); color: var(--coral); outline: none; }

/* Centro */
.hero__centro {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(12px, 2.2vh, 24px);
  padding-block: clamp(24px, 4vh, 48px);
}
.hero__edicion {
  display: flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: .5em 1em;
  font-family: var(--f-sub);
  font-size: clamp(.62rem, 1vw, .74rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  animation: aparece .9s var(--ease-out) .2s both;
}

/* Emblema: luna + tridente, medio sumergido */
.emblema {
  --luna: var(--coral);
  --tri: var(--hueso);
  --agua: 60%;               /* altura de la línea de agua */
  position: relative;
  width: clamp(140px, 19vw, 280px);
  aspect-ratio: 586.7 / 536.5;
  margin-block: 4px 6px;
  animation: se-hunde 1.5s var(--ease-out) .15s both;
}
.emblema svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.emblema-luna { fill: var(--luna); }
.emblema-tridente { fill: var(--tri); }
.emblema__sobre { clip-path: inset(0 0 calc(100% - var(--agua)) 0); }
.emblema__bajo {
  --luna: var(--menta);
  --tri: var(--menta);
  clip-path: inset(var(--agua) -10% -10% -10%);
  opacity: .62;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, .25) 100%);
          mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, .25) 100%);
}
.emblema__linea {
  position: absolute;
  top: var(--agua); left: 50%;
  width: 100vw; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(160, 237, 200, .45) 28%, var(--hueso) 50%, rgba(160, 237, 200, .45) 72%, transparent 100%);
  transform: translateX(-50%) scaleX(1);
  animation: linea-entra 1.6s var(--ease-out) .55s both;
  pointer-events: none;
}
.emblema__onda {
  position: absolute;
  left: 51.1%; top: var(--agua);
  width: 44%;
  aspect-ratio: 4 / 1;
  border: 1.5px solid var(--menta);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.1);
  animation: onda 5.4s cubic-bezier(.2, .6, .3, 1) infinite;
  pointer-events: none;
}
.emblema__onda:nth-of-type(2) { animation-delay: 1.3s; }
.emblema__onda:nth-of-type(3) { animation-delay: 3.1s; }
.emblema__onda:nth-of-type(4) { animation-delay: 4.9s; }

/* Lema */
.hero__titulo {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(1.45rem, 5.1vw, 4.7rem);
  line-height: .98;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero__titulo .linea { display: block; overflow: hidden; padding-block: .05em; }
.hero__titulo .linea > span { display: inline-block; animation: sube 1.1s var(--ease-out) .5s both; }
.hero__titulo .linea + .linea > span { color: var(--coral); animation-delay: .64s; }

/* Cuenta atrás */
.cuenta {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
  animation: aparece 1s var(--ease-out) .85s both;
}
.cuenta__rotulo, .cuenta__etq {
  font-family: var(--f-info);
  text-transform: uppercase;
  letter-spacing: .24em;
}
.cuenta__rotulo { font-size: .7rem; color: var(--hueso-70); }
.cuenta__fila {
  display: grid;
  grid-template-columns: repeat(4, auto);
  border-block: 1px solid var(--linea);
}
.cuenta__celda {
  display: flex; flex-direction: column; align-items: center;
  gap: .55rem;
  padding: .95rem clamp(.5rem, 2.6vw, 2.4rem) .85rem;
}
.cuenta__celda + .cuenta__celda { border-left: 1px solid var(--linea); }
.cuenta__num {
  display: flex;
  font-family: var(--f-titulo);
  font-size: clamp(1.3rem, 4.6vw, 3.9rem);
  line-height: 1;
}
.cuenta__num > span { display: inline-block; width: 1.14em; text-align: center; }
.cuenta__num[data-u="s"] { color: var(--coral); }
.cuenta__etq { font-size: clamp(.56rem, .9vw, .66rem); color: var(--hueso-70); }
.cuenta__fin {
  font-family: var(--f-sub);
  font-size: clamp(.9rem, 2vw, 1.2rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1.2rem 0;
  border-block: 1px solid var(--linea);
}

.hero__acciones { animation: aparece 1s var(--ease-out) 1s both; }

/* Franja inferior (guiño al cartel) */
.hero__franja {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 16px calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linea);
  font-family: var(--f-sub);
  font-size: clamp(.58rem, 1vw, .78rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  animation: aparece 1s var(--ease-out) 1.1s both;
}
.hero__horas { font-family: var(--f-titulo); letter-spacing: .06em; font-size: 1.15em; color: var(--coral); }

/* ---------- 5. Entradas ---------- */
/* Dos columnas: información a la izquierda y venta a la derecha.
   La columna de venta mide como mucho 600px: así el listado de Fourvenues
   (2 columnas por debajo de 640px de ancho) llena el hueco con sus tarjetas. */
.entradas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(72px, 10vw, 140px);
  scroll-margin-top: 12px;
}
.eyebrow {
  display: flex; align-items: center; gap: .9em;
  font-family: var(--f-sub);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 2.4em; height: 1px; background: currentColor; }
.entradas__titulo {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 4.3rem);
  line-height: .95;
  text-transform: uppercase;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.datos { border-bottom: 1px solid var(--linea); }
.datos > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1rem;
  border-top: 1px solid var(--linea);
}
.datos dt {
  font-family: var(--f-sub);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hueso-70);
  padding-top: .35em;
}
.datos dd { font-size: 1rem; line-height: 1.45; }

.entradas__venta { width: 100%; max-width: 600px; justify-self: end; }
.entradas__nota { margin-top: 14px; font-size: .88rem; color: var(--hueso-70); }

/* ---- Entrada de papel: el pantano al atardecer con el tridente sumergido ---- */
.boleto-marco {
  filter: drop-shadow(0 28px 36px rgba(0, 0, 0, .5));
  transition: transform .6s var(--ease-out), filter .6s var(--ease-out);
}
.boleto-marco:hover, .boleto-marco:focus-within {
  transform: translateY(-6px) rotate(-.6deg);
  filter: drop-shadow(0 40px 44px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(239, 113, 98, .18));
}
.boleto {
  --talon: 76px;
  --muesca: 15px;
  --horizonte: 57%;
  position: relative;
  display: flex;
  text-decoration: none;
  color: var(--hueso);
  border-radius: 18px;
  /* muescas de la perforación, arriba y abajo */
  -webkit-mask:
    radial-gradient(circle var(--muesca) at calc(100% - var(--talon)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--muesca) at calc(100% - var(--talon)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--muesca) at calc(100% - var(--talon)) 0, #0000 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--muesca) at calc(100% - var(--talon)) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat;
}
.boleto:focus-visible { outline: none; }
.boleto:focus-visible .boleto__cta { outline: 2px solid var(--menta); outline-offset: 3px; }

.boleto__cuerpo {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 5 / 4.4;
  overflow: hidden;
  display: block;
  /* cielo de atardecer sobre el embalse */
  background:
    radial-gradient(ellipse 34% 26% at 50% var(--horizonte), rgba(255, 214, 196, .55), rgba(239, 113, 98, .25) 55%, transparent 100%),
    linear-gradient(180deg, #2b0904 0%, #4d0a1f 22%, #9b0645 40%, var(--fucsia) 48%, var(--coral) var(--horizonte), #0c3f8f var(--horizonte), #08265c 72%, #12091c 100%);
}
.boleto__agua {
  position: absolute;
  left: 0; right: 0; top: var(--horizonte); bottom: 0;
  background:
    repeating-linear-gradient(180deg, rgba(160, 237, 200, .14) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, rgba(239, 113, 98, .35), transparent 38%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  animation: brillo 7s linear infinite;
}
.boleto__grano {
  position: absolute; inset: 0;
  opacity: .28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.boleto__meta {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: clamp(14px, 2.4vw, 22px);
  font-family: var(--f-sub);
  font-size: clamp(.56rem, 1vw, .66rem);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.boleto__emblema {
  --luna: var(--hueso);
  --tri: var(--pantano);
  position: absolute;
  left: 50%; top: var(--horizonte);
  width: 42%;
  aspect-ratio: 586.7 / 536.5;
  transform: translate(-50%, -60%);
}
.boleto__capa { position: absolute; inset: 0; display: block; }
.boleto__capa svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  transition: transform 1.1s var(--ease-out);
}
.boleto__capa--sobre { clip-path: inset(-20% -20% 40% -20%); }
.boleto__capa--bajo {
  --luna: var(--menta);
  --tri: var(--menta);
  clip-path: inset(60% -20% -40% -20%);
  opacity: .5;
}
.boleto-marco:hover .boleto__capa svg,
.boleto-marco:focus-within .boleto__capa svg { transform: translateY(14%); }
.boleto__onda {
  position: absolute;
  left: 51.1%; top: 60%;
  width: 60%;
  aspect-ratio: 4 / 1;
  border: 1.5px solid rgba(160, 237, 200, .8);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.1);
  animation: onda 5s cubic-bezier(.2, .6, .3, 1) infinite;
  pointer-events: none;
}
.boleto__onda:nth-of-type(4) { animation-delay: 1.6s; }
.boleto__onda:nth-of-type(5) { animation-delay: 3.3s; }
.boleto-marco:hover .boleto__onda { animation-duration: 2.6s; }

.boleto__lema {
  position: absolute;
  left: 0; right: 0; top: 13%;
  text-align: center;
  font-family: var(--f-titulo);
  font-size: clamp(1rem, 2.6vw, 1.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  padding-inline: 12px;
  text-shadow: 0 2px 18px rgba(43, 9, 4, .5);
}
.boleto__cta {
  position: absolute;
  left: 50%; bottom: clamp(16px, 3.2vw, 28px);
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .7em;
  white-space: nowrap;
  padding: 1em 1.6em;
  border-radius: 999px;
  background: var(--hueso);
  color: var(--pantano);
  font-family: var(--f-sub);
  font-size: clamp(.62rem, 1.1vw, .74rem);
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .6);
  transition: background-color .3s ease, color .3s ease, gap .3s var(--ease-out);
}
.boleto-marco:hover .boleto__cta { background: var(--coral); gap: 1.1em; }

.boleto__talon {
  position: relative;
  flex: 0 0 var(--talon);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  background: var(--hueso);
  color: var(--pantano);
  border-left: 2px dashed rgba(43, 9, 4, .35);
}
.boleto__mini { width: 26px; height: auto; color: var(--pantano); }
.boleto__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-sub);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes brillo { from { background-position: 0 0, 0 0; } to { background-position: 0 28px, 0 0; } }

/* ---------- 5b. I edición: cartel, galería y encuesta ---------- */
.edicion {
  background: var(--abismo);
  border-top: 1px solid var(--linea);
  padding-block: clamp(72px, 10vw, 140px);
  padding-inline: max(var(--gutter), calc((100% - 1360px) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vw, 128px);
}
.edicion__cab {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.edicion__titulo {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 4.3rem);
  line-height: .95;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.edicion__lead { max-width: 52ch; font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.65; }

/* Cartel tipográfico */
.cartel {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "rotulo rotulo" "cabezas poster" "resto poster";
  column-gap: clamp(20px, 3vw, 36px);
  border-top: 1px solid var(--linea);
  padding-top: 16px;
}
.cartel__rotulo {
  grid-area: rotulo;
  font-family: var(--f-sub);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--hueso-70);
  margin-bottom: 18px;
}
.cartel__cabezas, .cartel__resto { list-style: none; margin: 0; padding: 0; }
.cartel__cabezas {
  grid-area: cabezas;
  display: flex; flex-direction: column; gap: .25em;
  font-family: var(--f-sub);
  font-size: clamp(1.05rem, 1.9vw, 1.55rem);
  line-height: 1.2;
  text-transform: uppercase;
}
.cartel__cabezas li:first-child { color: var(--coral); }
.cartel__resto {
  grid-area: resto;
  align-self: start;
  display: flex; flex-wrap: wrap; gap: .5em 1.3em;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--linea);
  font-family: var(--f-sub);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hueso-70);
}
.cartel__poster {
  grid-area: poster;
  align-self: start;
  width: clamp(120px, 13vw, 184px);
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none;
  color: var(--hueso-70);
}
.cartel__poster img {
  width: 100%; height: auto;
  border-radius: 3px;
  transform: rotate(2.5deg);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease-out);
}
.cartel__poster:hover img, .cartel__poster:focus-visible img { transform: rotate(0) scale(1.03); }
.cartel__poster:focus-visible { outline: none; }
.cartel__poster span {
  font-family: var(--f-sub);
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
}

/* Sub-secciones */
.sub { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 36px); scroll-margin-top: 16px; }
.sub__cab {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--linea);
}
.sub__titulo {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}
.sub__nota {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hueso-70);
}

/* Galería: mosaico de 6 columnas */
.galeria {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(104px, 12vw, 184px);
  gap: clamp(8px, 1vw, 14px);
}
.galeria__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  background: #3a120c;
}
.galeria__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.galeria__item::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(237, 230, 226, .08);
  pointer-events: none;
}
.galeria__item:hover img { transform: scale(1.045); }
.galeria__item:focus-visible { outline: 2px solid var(--menta); outline-offset: 3px; }
.g-fuegos    { grid-column: 1 / 5; grid-row: 1 / 3; }
.g-selfie    { grid-column: 5 / 7; grid-row: 1 / 4; }
.g-cabina    { grid-column: 1 / 3; grid-row: 3 / 5; }
.g-nubes     { grid-column: 3 / 5; grid-row: 3 / 5; }
.g-vertical  { grid-column: 5 / 7; grid-row: 4 / 7; }
.g-atardecer { grid-column: 1 / 5; grid-row: 5 / 7; }
.g-fuegos2   { grid-column: 1 / 7; grid-row: 7 / 9; }
.g-selfie img { object-position: 50% 55%; }
.g-fuegos2 img { object-position: 50% 40%; }
.g-atardecer img { object-position: 50% 62%; }

/* Encuesta */
.encuesta {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.encuesta__titulo {
  font-family: var(--f-titulo);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.4vw, 4.3rem);
  line-height: .95;
  text-transform: uppercase;
  margin-bottom: clamp(18px, 2.5vw, 28px);
}
.encuesta__lead { max-width: 40ch; font-size: clamp(1rem, 1.2vw, 1.08rem); line-height: 1.6; }

.encuesta__form {
  position: relative;
  display: flex; flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
  padding: clamp(20px, 3vw, 36px);
  background: var(--panel);
  border: 1px solid var(--linea);
  border-radius: 6px;
}
.campo { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.campo__titulo {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5em .8em;
  padding: 0;
  font-family: var(--f-sub);
  font-size: .72rem;
  letter-spacing: .14em;
  line-height: 1.5;
  text-transform: uppercase;
}
.campo__titulo small { font-family: var(--f-info); font-size: .9em; letter-spacing: .12em; color: var(--hueso-70); }
.campo__num {
  display: inline-grid; place-items: center;
  width: 2em; height: 2em;
  border: 1px solid var(--coral);
  border-radius: 50%;
  color: var(--coral);
  font-family: var(--f-sub);
  font-size: .72rem;
  letter-spacing: 0;
  flex: none;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chips label {
  font-family: var(--f-sub);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .95em 1.25em;
  border: 1px solid var(--linea);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}
.chips label:hover { border-color: var(--hueso); }
.chips input:checked + label { background: var(--coral); border-color: var(--coral); color: var(--pantano); }
.chips input:focus-visible + label { outline: 2px solid var(--menta); outline-offset: 2px; }
.chips input:disabled + label { opacity: .35; cursor: not-allowed; }
.campo__texto {
  font: inherit;
  font-size: 1.05rem;
  color: var(--hueso);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--linea);
  border-radius: 0;
  padding: .7em 0;
  outline: none;
  transition: border-color .2s ease;
}
.campo__texto::placeholder { color: rgba(237, 230, 226, .45); }
.campo__texto:focus { border-color: var(--coral); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.campo__otro { max-width: 360px; }
.campo__trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.campo--oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.encuesta__enviar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.encuesta__enviar .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.encuesta__estado { font-size: .92rem; color: var(--hueso-70); }
.encuesta__estado.is-ok { color: var(--menta); }
.encuesta__estado.is-error { color: var(--coral); }
.encuesta__form.is-enviado .campo { opacity: .45; pointer-events: none; }

/* Resultados públicos */
.resultados {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--linea);
  display: flex; flex-direction: column; gap: 14px;
}
.resultados__rotulo, .resultados__sub {
  font-family: var(--f-sub);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.resultados__rotulo span { font-family: var(--f-info); letter-spacing: .12em; color: var(--hueso-70); margin-left: .6em; }
.resultados__sub { margin-top: 10px; color: var(--hueso-70); }
.resultados__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.resultados__lista li {
  display: grid;
  grid-template-columns: 7.2rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 12px;
  font-size: .88rem;
}
.resultados__lista b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.voto__barra { height: 8px; border-radius: 99px; background: rgba(237, 230, 226, .1); overflow: hidden; }
.voto__barra span {
  display: block; height: 100%;
  width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--fucsia), var(--coral));
  transition: width 1.1s var(--ease-out);
}
.resultados__top {
  margin: 0; padding-left: 1.4em;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--f-sub);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.resultados__top li::marker { color: var(--coral); }
.resultados__top small { font-family: var(--f-info); letter-spacing: .06em; color: var(--hueso-70); text-transform: none; margin-left: .5em; }

/* Visor de fotos */
.visor {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0;
  background: transparent;
  color: var(--hueso);
}
.visor[open] { display: grid; place-items: center; }
.visor::backdrop { background: rgba(20, 4, 2, .94); }
.visor__fig {
  margin: 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: min(90vw, 1400px);
  padding-inline: 16px;
}
.visor__img { max-width: 100%; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 3px; }
.visor__pie { font-size: .9rem; color: var(--hueso-70); text-align: center; }
.visor__btn {
  position: fixed;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--linea);
  border-radius: 50%;
  background: rgba(43, 9, 4, .7);
  color: var(--hueso);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.visor__btn:hover, .visor__btn:focus-visible { border-color: var(--coral); color: var(--coral); outline: none; }
.visor__cerrar { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.visor__ant { left: 16px; top: 50%; transform: translateY(-50%); }
.visor__sig { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- 6. Pie ---------- */
.pie {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding-inline: var(--gutter);
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linea);
  font-size: .82rem;
  color: var(--hueso-70);
}
.pie img { height: 36px; width: auto; }
.pie p { flex: 1 1 280px; }
.pie a { color: var(--hueso); text-decoration: none; font-family: var(--f-sub); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.pie a:hover { color: var(--coral); }

/* ---------- 7. Animaciones ---------- */
@keyframes aparece { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sube { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fondo-entra { from { transform: scale(1.14); filter: saturate(1.12) brightness(.3) contrast(1.06); } }
@keyframes se-hunde { from { opacity: 0; transform: translateY(-22%); } to { opacity: 1; transform: none; } }
@keyframes linea-entra { from { transform: translateX(-50%) scaleX(0); } to { transform: translateX(-50%) scaleX(1); } }
@keyframes onda {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(.1); }
  8%   { opacity: .85; }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(3.4); }
}

/* Movimiento reducido: se quitan solo los efectos continuos */
@media (prefers-reduced-motion: reduce) {
  .emblema__onda, .boleto__onda { display: none; }
  .boleto__agua { animation: none; }
  .hero__fondo img { animation: none; }
}

/* ---------- 8. Responsive ---------- */
@media (max-width: 960px) {
  .entradas { grid-template-columns: minmax(0, 1fr); }
  .entradas__venta { justify-self: start; }
  .edicion__cab, .encuesta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .barra__fecha { display: none; }
}
@media (max-width: 760px) {
  .barra__link { display: none; }
}
@media (max-width: 700px) {
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; grid-auto-flow: dense; }
  .galeria__item { grid-area: auto; }
  .g-fuegos, .g-atardecer { grid-column: span 2; }
  .g-selfie, .g-vertical, .g-fuegos2 { grid-row: span 2; }
  .g-atardecer { order: 7; }
  .visor__ant, .visor__sig { top: auto; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .visor__ant { left: calc(50% - 60px); }
  .visor__sig { right: calc(50% - 60px); }
}
@media (max-width: 560px) {
  .barra { gap: 10px; }
  .barra__logo { gap: 8px; }
  .barra__nombre { height: 20px; }
  .barra__ig { width: 38px; height: 38px; }
  .hero__horas { display: none; }
  .hero__fondo img { object-position: 42% 60%; }
  .emblema { width: clamp(120px, 38vw, 170px); }
  .hero__edicion { flex-direction: column; gap: .5em; }
  .hero__edicion .punto { display: none; }
  .datos > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; }
  .campo__trio { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .boleto { --talon: 56px; --muesca: 12px; }
  .boleto__mini { width: 20px; }
  .boleto__vertical { font-size: .5rem; letter-spacing: .14em; }
  .cartel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rotulo" "cabezas" "resto" "poster"; }
  .cartel__poster { width: 52%; margin-top: 28px; }
  .resultados__lista li { grid-template-columns: 6rem minmax(0, 1fr) 2.6rem; }
}
