/* ===========================================================================
   Página pública del productor. Oscura y futurista, pintada con los dos
   colores de la marca de cada productor (--c1 y --c2, los pone productora.js).
   Toda la animación es decorativa: con "reducir movimiento" queda quieta.
   =========================================================================== */

@property --ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  --c1: #8b5cf6;
  --c2: #22d3ee;
  --bg: #05040a;
  --texto: #f5f3ff;
  --suave: rgba(245, 243, 255, .66);
  --linea: rgba(255, 255, 255, .12);
  --vidrio: rgba(14, 11, 26, .62);
  --grad: linear-gradient(110deg, var(--c1), var(--c2));
  --c1-glow: color-mix(in srgb, var(--c1) 55%, transparent);
  --c2-glow: color-mix(in srgb, var(--c2) 45%, transparent);
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --cuerpo: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px;
  --gutter: 16px;
  color-scheme: dark;
  accent-color: var(--c1);
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--cuerpo);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
::selection { background: var(--c1); color: #fff; }

/* ---------------------------------------------------------------- fondo -- */
#cielo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; }

.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  width: 60vmax; height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .35;
  will-change: transform;
}
.aurora span:nth-child(1) { background: var(--c1); top: -25vmax; left: -15vmax; animation: deriva-a 22s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { background: var(--c2); bottom: -30vmax; right: -20vmax; opacity: .25; animation: deriva-b 26s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { background: color-mix(in srgb, var(--c1) 50%, #ff2bd6); top: 30%; left: 40%; width: 35vmax; height: 35vmax; opacity: .16; animation: deriva-a 30s ease-in-out infinite alternate-reverse; }
@keyframes deriva-a { to { transform: translate(18vw, 22vh) scale(1.25); } }
@keyframes deriva-b { to { transform: translate(-22vw, -18vh) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .aurora span { animation: none; } }

/* Líneas de barrido muy suaves: textura de pantalla. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.foco {
  position: fixed; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c1-glow), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
  will-change: transform;
}
.foco.on { opacity: .45; }

/* Barra de progreso de lectura (sólo donde hay animaciones atadas al scroll). */
.progreso { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progreso {
      display: block;
      position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
      background: var(--grad);
      transform-origin: left;
      box-shadow: 0 0 12px var(--c1);
      animation: progreso linear both;
      animation-timeline: scroll(root);
    }
  }
}
@keyframes progreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------------------------------------- cargando -- */
.cargando { position: fixed; inset: 0; display: grid; place-items: center; z-index: 80; background: var(--bg); transition: opacity .6s, visibility .6s; }
.cargando.fuera { opacity: 0; visibility: hidden; }
.anillo { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--linea); border-top-color: var(--c1); border-right-color: var(--c2); animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(1turn); } }

/* -------------------------------------------------------------- botones -- */
.btn {
  --alto: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--alto);
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 0;
  font: 700 .95rem/1 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.btn-chico { --alto: 40px; padding: 0 1.1rem; font-size: .74rem; }
.btn-grande { --alto: 58px; padding: 0 2rem; font-size: .9rem; }
.btn-brillo {
  background: var(--grad);
  background-size: 200% 100%;
  box-shadow: 0 10px 34px -8px var(--c1-glow), inset 0 0 0 1px rgba(255, 255, 255, .25);
  animation: fluir 6s linear infinite;
}
.btn-brillo::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: barrido 3.4s ease-in-out infinite;
}
.btn-brillo:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 16px 44px -6px var(--c1-glow), 0 0 0 1px rgba(255, 255, 255, .35) inset; }
.btn-fantasma { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--linea); backdrop-filter: blur(8px); }
.btn-fantasma:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--c2), 0 0 24px -6px var(--c2-glow); }
.btn[aria-disabled='true'] { opacity: .5; pointer-events: none; animation: none; }
.btn[aria-disabled='true']::after { display: none; }
.btn:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; }
@keyframes fluir { to { background-position: 200% 0; } }
@keyframes barrido { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  .btn-brillo, .btn-brillo::after { animation: none; }
  .btn-brillo::after { display: none; }
}

/* ------------------------------------------------------------------ nav -- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; gap: 1rem;
  height: 68px;
  padding: 0 var(--gutter);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.solida { background: var(--vidrio); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--linea); }
.nav-marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 1rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; min-width: 0; }
.nav-marca img { height: 34px; width: auto; max-width: 130px; object-fit: contain; }
.nav-marca span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: none; margin-left: auto; gap: 1.6rem; }
.nav-links a { text-decoration: none; font-size: .88rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--suave); position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .3s; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
#nav-cta { margin-left: auto; }
@media (min-width: 760px) {
  .nav-links { display: flex; }
  #nav-cta { margin-left: 0; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 96px var(--gutter) 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-portada {
  position: absolute; inset: -4%; z-index: -2;
  background-size: cover; background-position: center;
  opacity: .5;
  animation: acercar 24s ease-in-out infinite alternate;
}
.hero-portada::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0, rgba(5, 4, 10, .55) 55%, var(--bg) 100%),
    linear-gradient(180deg, rgba(5, 4, 10, .3), var(--bg));
}
@keyframes acercar { to { transform: scale(1.12) translateY(-1.5%); } }

/* Piso de grilla en perspectiva que avanza hacia la cámara. */
.hero-grilla {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: -1;
  background-image:
    linear-gradient(var(--c1-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--c1-glow) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(420px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: avanzar 2.6s linear infinite;
  opacity: .55;
}
@keyframes avanzar { to { background-position: 0 64px, 0 0; } }

.hero-contenido { max-width: 980px; width: 100%; display: grid; justify-items: center; gap: 1.4rem; }

.cuenta-vivo i { width: 8px; height: 8px; border-radius: 50%; background: var(--c2); box-shadow: 0 0 0 0 var(--c2); animation: latido 1.6s infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-logo { animation: aparecer 1s .35s both; }
.hero-logo img {
  width: min(78vw, 520px); max-height: 42vh; object-fit: contain;
  filter: drop-shadow(0 0 28px var(--c1-glow)) drop-shadow(0 0 60px var(--c2-glow));
  animation: flotar 6s ease-in-out infinite;
}
@keyframes flotar { 50% { transform: translateY(-12px); } }

/* La marca escrita, si el productor todavía no subió su logo. La chispa va
   afuera del texto con degradé: adentro, Chrome la pinta dos veces. */
.marca-caja { position: relative; display: inline-block; }
.marca {
  position: relative;
  display: inline-block;
  /* --largo (lo pone productora.js) es la palabra más larga del nombre: así
     ninguna palabra se parte, sea "Aura" o "Producciones". */
  font: 900 max(1.6rem, min(8.5rem, 13vw, calc(min(980px, 100vw - 2 * var(--gutter)) / (var(--largo, 6) * .98))))/.95 var(--display);
  text-transform: uppercase;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--c2) 40%, #fff));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px var(--c1-glow));
  overflow-wrap: break-word;
}
.marca::before, .marca::after {
  content: attr(data-texto);
  position: absolute; inset: 0;
  -webkit-background-clip: text; background-clip: text;
  pointer-events: none;
}
.marca::before { background-image: linear-gradient(var(--c1), var(--c1)); transform: translate(-3px, 0); clip-path: inset(0 0 100% 0); animation: glitch-a 5.5s infinite steps(1); mix-blend-mode: screen; }
.marca::after { background-image: linear-gradient(var(--c2), var(--c2)); transform: translate(3px, 0); clip-path: inset(100% 0 0 0); animation: glitch-b 5.5s infinite steps(1); mix-blend-mode: screen; }
@keyframes glitch-a {
  0%, 88%, 100% { clip-path: inset(0 0 100% 0); }
  90% { clip-path: inset(12% 0 60% 0); transform: translate(-6px, -2px); }
  93% { clip-path: inset(55% 0 20% 0); transform: translate(5px, 1px); }
  96% { clip-path: inset(30% 0 45% 0); transform: translate(-4px, 0); }
}
@keyframes glitch-b {
  0%, 89%, 100% { clip-path: inset(100% 0 0 0); }
  91% { clip-path: inset(65% 0 10% 0); transform: translate(6px, 2px); }
  94% { clip-path: inset(20% 0 62% 0); transform: translate(-5px, -1px); }
  97% { clip-path: inset(42% 0 35% 0); transform: translate(3px, 0); }
}
/* El logo con el mismo efecto: la imagen (invisible) sólo da el tamaño y se
   usa de máscara para el degradé y para las dos capas del glitch. */
.marca-logo { position: relative; display: inline-block; filter: drop-shadow(0 0 30px var(--c1-glow)) drop-shadow(0 0 60px var(--c2-glow)); }
.marca-logo img { display: block; width: min(80vw, 560px); height: auto; max-height: 30vh; object-fit: contain; opacity: 0; }
.marca-logo .capa, .marca-logo::before, .marca-logo::after {
  content: '';
  position: absolute; inset: 0;
  -webkit-mask: var(--logo) center / contain no-repeat;
  mask: var(--logo) center / contain no-repeat;
  pointer-events: none;
}
.marca-logo .capa { background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--c2) 40%, #fff)); }
.marca-logo::before { z-index: 1; background: var(--c1); transform: translate(-3px, 0); clip-path: inset(0 0 100% 0); animation: glitch-a 5.5s infinite steps(1); mix-blend-mode: screen; }
.marca-logo::after { z-index: 1; background: var(--c2); transform: translate(3px, 0); clip-path: inset(100% 0 0 0); animation: glitch-b 5.5s infinite steps(1); mix-blend-mode: screen; }
.marca-logo + .chispa { right: auto; left: 100%; bottom: auto; top: 50%; translate: -35% -40%; }

.chispa {
  position: absolute; right: -.2em; bottom: 30%; /* productora.js la pega al final de la última línea */
  translate: -15% -45%;
  font: 900 clamp(1.6rem, 6vw, 4rem)/1 var(--display);
  color: var(--c2);
  text-shadow: 0 0 24px var(--c2);
  animation: chispa 3s ease-in-out infinite;
}
@keyframes chispa { 50% { transform: rotate(90deg) scale(1.25); opacity: .7; } }

/* La ciudad, debajo de la frase. */
.ciudad {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: -.6rem 0 0;
  padding: .45rem 1.1rem .45rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--linea), 0 0 30px -10px var(--c1-glow);
  backdrop-filter: blur(8px);
  font: 700 clamp(.72rem, 2.4vw, .85rem)/1 var(--display);
  letter-spacing: .18em; text-transform: uppercase;
  color: #fff;
  animation: aparecer 1s .45s both;
}
.ciudad svg { width: 16px; height: 16px; color: var(--c2); flex: none; filter: drop-shadow(0 0 6px var(--c2)); }
@media (prefers-reduced-motion: reduce) { .ciudad { animation: none; } }

.tagline {
  margin: 0;
  font: 600 clamp(.85rem, 2.6vw, 1.1rem)/1.4 var(--display);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--suave);
  animation: aparecer 1s .5s both;
}
.tagline:empty { display: none; }

/* ------------------------------------------------------ cuenta regresiva -- */
/* El próximo evento: afiche al costado (arriba en el celular), nombre,
   datos, cuenta regresiva y los botones, en una placa de vidrio con el
   borde de luz que gira. */
.prox {
  position: relative;
  display: grid; gap: clamp(1.1rem, 3vw, 2rem); align-items: center;
  width: min(100%, 940px);
  padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -40px var(--c1-glow);
  isolation: isolate;
  text-align: left;
  animation: aparecer 1s .6s both;
}
.prox::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--ang), var(--c1), var(--c2), transparent 35%, transparent 65%, var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: girar-borde 6s linear infinite;
}
@media (min-width: 760px) { .prox:has(.prox-afiche:not([hidden])) { grid-template-columns: minmax(0, 300px) 1fr; } }
.prox-afiche {
  display: block; justify-self: center;
  width: min(100%, 300px);
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 24px 60px -20px var(--c1-glow), 0 0 50px -10px var(--c2-glow);
  transform: rotate(-2deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.prox-afiche:hover { transform: rotate(0) scale(1.03); }
.prox-afiche img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) { .prox-afiche { width: min(78%, 300px); } }
.prox-info { display: grid; gap: .9rem; min-width: 0; }
@media (max-width: 759px) { .prox-info { justify-items: center; text-align: center; } }
.prox-nombre {
  font: 900 clamp(1.9rem, 6vw, 3.4rem)/1 var(--display);
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 35%, color-mix(in srgb, var(--c2) 55%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px var(--c1-glow));
  overflow-wrap: break-word;
}
.prox-datos { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .9rem; color: var(--suave); }
@media (max-width: 759px) { .prox-datos { justify-content: center; } }
/* El ícono va dentro de la línea de texto: si el dato ocupa dos renglones
   (artistas largos), queda pegado a la primera palabra y no colgando al costado. */
.prox-datos span, .final-datos span { display: inline-block; text-wrap: balance; }
.prox-datos svg, .final-datos svg { display: inline-block; width: 16px; height: 16px; margin-right: .4rem; vertical-align: -.2em; color: var(--c2); }
.prox .hero-botones { justify-content: flex-start; }
@media (max-width: 759px) { .prox .hero-botones { justify-content: center; width: 100%; } }
.cuenta-cajas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.4rem, 2vw, .9rem); width: min(100%, 520px); }
.caja {
  position: relative;
  display: grid; justify-items: center; gap: .15rem;
  padding: clamp(.7rem, 2.5vw, 1.1rem) .3rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px var(--linea), 0 20px 40px -20px var(--c1-glow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.caja::before { content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: var(--grad); box-shadow: 0 0 12px var(--c2); }
.caja b {
  font: 800 clamp(1.7rem, 8vw, 3.2rem)/1 var(--display);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c2) 55%, #fff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caja b.tic { animation: tic .45s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes tic { from { transform: translateY(-40%) rotateX(70deg); opacity: 0; } }
.caja span { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--suave); }
.cuenta-vivo { display: inline-flex; align-items: center; gap: .6rem; font: 800 clamp(1.1rem, 4vw, 1.6rem)/1 var(--display); text-transform: uppercase; color: #fff; text-shadow: 0 0 22px var(--c2); }

.hero-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; animation: aparecer 1s .8s both; }
@media (max-width: 520px) { .hero-botones .btn { width: 100%; } }

.bajar { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--linea); }
.bajar span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--c2); animation: rueda 1.8s ease-in-out infinite; }
@keyframes rueda { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } }

@keyframes aparecer { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } }

@media (prefers-reduced-motion: reduce) {
  .hero-portada, .hero-grilla, .hero-logo img, .marca::before, .marca::after, .chispa, .bajar span,
  .cuenta-vivo i, .marca-logo::before, .marca-logo::after { animation: none; }
  .hero-logo, .tagline, .prox, .prox::before, .hero-botones { animation: none; }
  .prox-afiche { transform: none; }
  .caja b.tic { animation: none; }
}

/* --------------------------------------------------------------- cintas -- */
.cintas { position: relative; height: 150px; margin: -40px 0 0; overflow: hidden; }
.cinta { position: absolute; left: -5%; right: -5%; top: 50%; padding: .8rem 0; overflow: hidden; }
.cinta-a { background: var(--grad); transform: translateY(-50%) rotate(-3deg); box-shadow: 0 0 40px var(--c1-glow); z-index: 1; }
.cinta-b { background: #0d0a18; transform: translateY(-50%) rotate(2.5deg); box-shadow: inset 0 0 0 1px var(--linea); }
.cinta-pista { display: flex; width: max-content; animation: correr 28s linear infinite; }
.cinta-b .cinta-pista { animation-direction: reverse; animation-duration: 34s; }
.cinta-pista span { font: 800 1.05rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; padding-right: 2.4rem; }
.cinta-b .cinta-pista span { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .55); }
.cinta-pista span::after { content: '✦'; padding-left: 2.4rem; }
@keyframes correr { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cinta-pista { animation: none; } }

/* ------------------------------------------------------------ secciones -- */
.seccion { padding: clamp(3.5rem, 9vw, 7rem) var(--gutter) 0; max-width: 1240px; margin: 0 auto; }
.titulo-seccion { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.sobre { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--c2); margin-bottom: .6rem; }
.titulo-seccion h2, .final-titulo { font-size: clamp(2rem, 7vw, 4.2rem); font-weight: 900; text-transform: uppercase; }
.titulo-seccion h2 em, .final-titulo em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Entrada al aparecer en pantalla: atada al scroll donde el navegador lo
   permite; donde no, el contenido simplemente está (es sólo decoración). */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .revelar {
      animation: revelar linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 70%;
    }
    @keyframes revelar { from { opacity: 0; transform: translateY(50px) scale(.96); filter: blur(6px); } }
  }
}

/* -------------------------------------------------------------- eventos -- */
.eventos { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.ev {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--r);
  background: #0c0a16;
  text-decoration: none;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
  isolation: isolate;
  box-shadow: 0 30px 60px -30px #000;
}
/* Borde de luz que gira alrededor de la tarjeta. */
.ev::before {
  content: '';
  position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang), var(--c1), var(--c2), transparent 40%, transparent 60%, var(--c1));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .45;
  animation: girar-borde 6s linear infinite;
  transition: opacity .4s;
}
/* Brillo que sigue al puntero sobre la tarjeta. */
.ev::after {
  content: '';
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 255, 255, .12), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.ev:hover { box-shadow: 0 40px 80px -30px var(--c1-glow); transition: transform .12s linear, box-shadow .4s; }
.ev:hover::before { opacity: 1; }
.ev:hover::after { opacity: 1; }
@keyframes girar-borde { to { --ang: 1turn; } }

.ev-img { position: relative; aspect-ratio: 1; border-radius: var(--r) var(--r) 0 0; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.ev:hover .ev-img img { transform: scale(1.07); }
.ev-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #0c0a16); }
.ev-sinimg { width: 100%; height: 100%; display: grid; place-items: center; font: 900 2.2rem/1 var(--display); text-transform: uppercase; text-align: center; padding: 1rem; }

.ev-fecha {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  display: grid; justify-items: center;
  min-width: 62px; padding: .5rem .55rem .45rem;
  border-radius: 14px;
  background: rgba(5, 4, 10, .7);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  line-height: 1;
}
.ev-fecha small { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c2); }
.ev-fecha b { font: 900 1.6rem/1.05 var(--display); }
.ev-estado {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  padding: .38rem .7rem; border-radius: 999px;
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(5, 4, 10, .7); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.ev-estado.venta { color: #fff; background: color-mix(in srgb, var(--c1) 70%, transparent); }
.ev-estado.ultimas { color: #1a0b00; background: #ffd166; animation: titilar 1.6s ease-in-out infinite; }
.ev-estado.agotado { color: #ff8b9a; }
@keyframes titilar { 50% { box-shadow: 0 0 22px #ffd166; } }

.ev-cuerpo { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.25rem 1.3rem; flex: 1; }
.ev-cuerpo h3 { font-size: 1.3rem; font-weight: 800; text-transform: uppercase; }
.ev-linea { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--suave); }
.ev-linea svg { width: 16px; height: 16px; flex: none; color: var(--c2); }
.ev-pie { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .6rem; }
.ev-precio small { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--suave); }
.ev-precio b { font: 800 1.35rem/1.1 var(--display); }

/* El primero, en grande: es el que viene. */
@media (min-width: 900px) {
  .ev.destacado { grid-column: 1 / -1; flex-direction: row; }
  .ev.destacado .ev-img { width: 46%; flex: none; border-radius: var(--r) 0 0 var(--r); }
  .ev.destacado .ev-img::after { background: linear-gradient(90deg, transparent 60%, #0c0a16); }
  .ev.destacado .ev-cuerpo { padding: 2.4rem 2.6rem; gap: .9rem; justify-content: center; }
  .ev.destacado h3 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 900; }
  .ev.destacado .ev-desc { display: block; }
  .ev.destacado .ev-pie { margin-top: 1rem; }
}
.ev-desc { display: none; color: var(--suave); margin: 0; }
.ev-etiqueta { font-size: .72rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--c2); }

@media (prefers-reduced-motion: reduce) {
  .ev { transform: none; }
  .ev::before, .ev-estado.ultimas { animation: none; }
}

.vacio {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  border-radius: var(--r);
  text-align: center;
  background: rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px var(--linea);
}
.vacio h3 { font-size: clamp(1.3rem, 4vw, 2rem); text-transform: uppercase; margin-bottom: .5rem; }
.vacio p { color: var(--suave); margin: 0; }

/* -------------------------------------------------------------- pasados -- */
.pasados { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
/* Afiches verticales (3:4, como en Instagram): apagados hasta pasar el mouse;
   en el celular, que no tiene mouse, se ven con color. */
.pasado { flex: 0 0 min(62vw, 240px); scroll-snap-align: start; text-decoration: none; }
.pasado .ev-img { aspect-ratio: 3 / 4; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--linea); }
.pasado .ev-img::after { display: none; }
.pasado img { filter: grayscale(.85) brightness(.75); transition: filter .5s, transform .6s; }
.pasado:hover img { filter: none; transform: scale(1.05); }
@media (hover: none) { .pasado img { filter: none; } }
.pasado .ev-fecha { min-width: 54px; padding: .4rem .45rem .35rem; }
.pasado .ev-fecha b { font-size: 1.3rem; }
.pasado b { display: block; margin-top: .7rem; font: 700 .9rem/1.2 var(--display); text-transform: uppercase; }
.pasado > span { display: block; margin-top: .2rem; font-size: .8rem; color: var(--suave); }

/* ----------------------------------------------------------------- info -- */
.info { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .info { grid-template-columns: 1.1fr 1fr; } }
.panel {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: var(--r);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: inset 0 0 0 1px var(--linea);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.panel::before { content: ''; position: absolute; top: -40%; right: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--c1); filter: blur(90px); opacity: .25; pointer-events: none; }
.panel h3 { font-size: clamp(1.5rem, 4vw, 2.2rem); text-transform: uppercase; margin-bottom: .8rem; }
.sobre-texto { color: var(--suave); white-space: pre-line; margin: 0 0 1.4rem; }
.sobre-texto:empty { display: none; }
.datos { display: grid; gap: .7rem; }
.dato { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: 16px; background: rgba(5, 4, 10, .45); box-shadow: inset 0 0 0 1px var(--linea); }
.dato i { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--grad); box-shadow: 0 0 22px -4px var(--c1-glow); }
.dato i svg { width: 20px; height: 20px; }
.dato small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.dato b { font-weight: 700; }

.panel-mapa { padding: 0; display: flex; flex-direction: column; }
.mapa { position: relative; flex: 1; min-height: 300px; }
.mapa iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  /* Mapa en modo noche, teñido con la marca. */
  filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.9) contrast(.95);
}
.mapa::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(12, 10, 22, .9)); mix-blend-mode: normal; }
.mapa-pie { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; flex-wrap: wrap; }
.mapa-pie b { display: block; font-family: var(--display); text-transform: uppercase; }
.mapa-pie span { font-size: .9rem; color: var(--suave); }

/* ---------------------------------------------------------------- redes -- */
.redes { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.red {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--linea);
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s, box-shadow .3s;
}
.red::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s; }
.red:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px var(--c1-glow); }
.red:hover::before { opacity: .9; }
.red i { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.red svg { width: 24px; height: 24px; }
.red b { display: block; font: 700 .95rem/1.2 var(--display); text-transform: uppercase; }
.red span { font-size: .82rem; color: var(--suave); }
.red:hover span { color: #fff; }

/* ---------------------------------------------------------------- final -- */
.final {
  margin: clamp(4rem, 10vw, 8rem) var(--gutter) 0;
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter);
  border-radius: 32px;
  text-align: center;
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 50% 0, var(--c1-glow), transparent 70%), #0b0916;
  box-shadow: inset 0 0 0 1px var(--linea);
}
@media (min-width: 1304px) { .final { max-width: 1240px; margin-inline: auto; } }
.final::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--linea) 1px, transparent 1px), linear-gradient(90deg, var(--linea) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.final-titulo { margin-bottom: 1.8rem; }

/* Con el próximo evento: el afiche desenfocado de fondo, el texto a la
   izquierda y el afiche a la derecha, inclinado al revés que el de arriba. */
.final-fondo {
  position: absolute; inset: -40px; z-index: -2;
  background-size: cover; background-position: center;
  filter: blur(40px) saturate(1.5) brightness(.45);
  opacity: 0;
}
.final.con-afiche .final-fondo { opacity: 1; }
.final.con-afiche::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(5, 4, 10, .92) 25%, rgba(5, 4, 10, .55) 70%, rgba(5, 4, 10, .3));
}
.final-texto { display: grid; justify-items: center; gap: 1.1rem; }
.final-texto .final-titulo { margin-bottom: 0; }
.final-datos { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem; font-size: .92rem; color: var(--suave); }

/* La cuenta en una sola línea, como un marcador. */
.final-marcador {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: .15rem .45rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  background: rgba(5, 4, 10, .55);
  box-shadow: inset 0 0 0 1px var(--linea), 0 0 40px -12px var(--c1-glow);
  font-family: var(--display);
}
.final-marcador b { font-size: clamp(1.4rem, 5vw, 2.1rem); font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 0 18px var(--c2-glow); display: inline-block; }
.final-marcador b.tic { animation: tic .45s cubic-bezier(.2, .9, .3, 1.3); }
.final-marcador small { font-size: .7rem; font-weight: 600; color: var(--c2); margin-left: .1rem; text-transform: uppercase; }
.final-marcador i { font-style: normal; font-weight: 800; color: var(--c1); opacity: .8; }
.final-falta { width: 100%; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--suave); }

.final-afiche {
  display: block; justify-self: center;
  width: min(72%, 300px);
  aspect-ratio: 1;
  border-radius: 22px; overflow: hidden;
  transform: rotate(3deg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 30px 70px -25px #000, 0 0 60px -10px var(--c1-glow);
  animation: flotar-afiche 6s ease-in-out infinite;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes flotar-afiche { 50% { translate: 0 -12px; } }
.final-afiche:hover { transform: rotate(0) scale(1.04); }
.final-afiche img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 859px) {
  .final.con-afiche { display: grid; gap: 2rem; }
  .final.con-afiche .final-afiche { order: -1; }
}
@media (min-width: 860px) {
  .final.con-afiche {
    display: grid; grid-template-columns: 1fr minmax(0, 340px); align-items: center; gap: 3rem;
    padding-inline: clamp(2.5rem, 5vw, 4.5rem);
    text-align: left;
  }
  .final.con-afiche .final-texto { justify-items: start; }
  .final.con-afiche .final-datos { justify-content: flex-start; }
  .final.con-afiche .final-marcador { justify-content: flex-start; }
  .final.con-afiche .final-afiche { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .final-afiche { animation: none; transform: none; }
  .final-marcador b.tic { animation: none; }
}

/* ------------------------------------------------------------------ pie -- */
.pie {
  display: grid; justify-items: center; gap: 1rem;
  padding: 3.5rem var(--gutter) calc(2.5rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.pie-copy { font-size: .82rem; color: var(--suave); }
.powered {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .6rem 1.1rem .6rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--linea);
  transition: box-shadow .3s, transform .3s;
}
.powered:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 122, 26, .6), 0 0 30px -8px rgba(255, 106, 26, .6); }
.powered > span:first-child { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--suave); }
.iqr { display: inline-flex; align-items: center; gap: .45rem; font: 800 .9rem/1 'Unbounded', sans-serif; letter-spacing: .02em; }
.iqr b { background: linear-gradient(135deg, #ff5207, #ff7f1d 52%, #ffa93f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.iqr-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #ff5207, #ff7f1d 52%, #ffa93f); }
.iqr-mark svg { width: 17px; height: 17px; }

/* ------------------------------------------------------- barra del celu -- */
.barra-movil {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .6rem .6rem .6rem 1rem;
  border-radius: 20px;
  background: var(--vidrio);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--linea), 0 20px 40px -10px #000;
  transform: translateY(160%);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.barra-movil.on { transform: none; }
.barra-movil div { min-width: 0; }
.barra-movil b { display: block; font: 800 .82rem/1.2 var(--display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-movil span { font-size: .75rem; color: var(--suave); }
@media (min-width: 760px) { .barra-movil { display: none; } }
@media (max-width: 759px) { body.con-barra .pie { padding-bottom: 6.5rem; } }

/* --------------------------------------------------------- no existe ---- */
.no-existe { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: var(--gutter); }
.no-existe p { color: var(--suave); margin: 0 0 .6rem; }
