/* ============================================================
   maniatiko.dj — Hypnotic Neon Decay
   Identidad visual cerrada: magenta neón + glitch medio sobre negro.
   ============================================================ */
:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --bg-card: #0d0d0d;
  --text: #e8e8e8;
  --text-dim: rgba(232, 232, 232, 0.72);
  --text-faint: rgba(232, 232, 232, 0.42);

  --accent: #f20100;
  --accent-rgb: 242, 1, 0;
  --accent-glow: rgba(242, 1, 0, 0.5);

  --border: rgba(232, 232, 232, 0.08);
  --border-hover: rgba(232, 232, 232, 0.22);

  --font-logo: "Elms Sans", "Space Grotesk", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --nav-h: 64px;
  --container: 1200px;
  --radius: 0;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ============================================================
   Grain overlay
   ============================================================ */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transition: opacity 0.6s ease;
}

/* TV static — canvas con ruido animado a ~15fps */
.tv-static {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.06;
  mix-blend-mode: screen;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease;
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  transition:
    background 0.3s var(--ease-out),
    backdrop-filter 0.3s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2vw, 1.75rem);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ============================================================
   Hero — Ritual Engine
   Shader WebGL fullscreen + kick sintético opt-in (Tone.js).
   La bio se vuelve física: el visitante puede ENGAGE el bochka.
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 1.5rem 5rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

/* WebGL canvas con el shader (5 capas) */
.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* Veil — vignette para legibilidad del texto sobre el shader */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 50%,
      transparent 0%,
      rgba(0, 0, 0, 0.25) 55%,
      rgba(0, 0, 0, 0.78) 100%
    );
}

/* Ghosts — palabras Cyrillic flotando con opacidad muy baja, fade in/out lento */
.hero-ghosts {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-ghost {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 4.2vw, 3.5rem);
  letter-spacing: -0.01em;
  color: var(--accent);
  opacity: 0;
  text-transform: uppercase;
  white-space: nowrap;
  filter: blur(1.5px);
  animation: ghostFade 12s ease-in-out infinite;
}
@keyframes ghostFade {
  0%, 100% { opacity: 0;    transform: translateY(0)   scale(1);    filter: blur(2px);   }
  20%, 65% { opacity: 0.055; transform: translateY(-4px) scale(1.03); filter: blur(1.8px); }
}
@keyframes ghostFadeEngaged {
  0%, 100% { opacity: 0;   transform: translateY(0)    scale(1);    filter: blur(0.6px) drop-shadow(0 0 6px var(--accent)); }
  20%, 65% { opacity: 0.32; transform: translateY(-10px) scale(1.08); filter: blur(0.4px) drop-shadow(0 0 14px var(--accent)); }
}
body.ritual-engaged .hero-ghost {
  animation-name: ghostFadeEngaged;
  color: var(--accent);
}

/* BPM readout — esquina superior derecha */
.hero-bpm {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  top: clamp(5.5rem, 8vh, 7rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  z-index: 3;
  animation: bpmPulse 0.3529s ease-out infinite;
  text-shadow: 0 0 10px var(--accent-glow);
}
@keyframes bpmPulse {
  0%   { opacity: 1;    text-shadow: 0 0 12px var(--accent-glow); }
  100% { opacity: 0.55; text-shadow: none; }
}

/* Composition central */
.hero-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  width: 100%;
  max-width: 1100px;
}

.hero-title {
  font-family: var(--font-logo);
  font-weight: 200;
  font-size: clamp(2.6rem, 10vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.8),
    0 1px 4px rgba(0, 0, 0, 0.6);
}
@media (max-width: 480px) {
  .hero-title { letter-spacing: 0.12em; }
}
.hero-char {
  display: inline-block;
  will-change: transform, opacity;
  transition: text-shadow 0.4s, color 0.4s;
}
.hero-title:hover .hero-char {
  text-shadow:
    0 0 28px rgba(var(--accent-rgb), 0.55),
    0 0 12px rgba(var(--accent-rgb), 0.35);
}

/* Role debajo del title — mono mínimo, tracking amplio */
.hero-role {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.1vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: -0.25rem;
  text-shadow:
    0 0 12px rgba(0, 0, 0, 0.6),
    0 1px 4px rgba(0, 0, 0, 0.5);
  transition:
    color 0.5s,
    letter-spacing 0.5s var(--ease-out),
    text-shadow 0.5s;
}
.hero-role:empty { display: none; }
.hero-role-char {
  display: inline-block;
  will-change: transform;
}
.hero-role-char--space {
  display: inline-block;
  width: 0.3em;
}
body.ritual-engaged .hero-role {
  color: var(--accent);
  letter-spacing: 0.58em;
  text-shadow:
    0 0 18px rgba(var(--accent-rgb), 0.7),
    0 0 6px rgba(var(--accent-rgb), 0.45);
}

/* Engage button — double-rule pulse, sin border ni bg.
   Dos líneas accent latiendo en contrapunto al BPM con el text en medio. */
.hero-engage {
  margin-top: 0.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 0.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  transition: color 0.4s, letter-spacing 0.5s var(--ease-out), text-shadow 0.4s;
  cursor: pointer;
}
.hero-engage:hover {
  color: var(--accent);
  letter-spacing: 0.5em;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.5);
}
.hero-engage-label {
  white-space: nowrap;
  display: inline-block;
}
.hero-engage-rule {
  display: block;
  width: clamp(48px, 7vw, 72px);
  height: 1px;
  background: var(--accent);
  transform-origin: center;
  animation: engageRule 0.3529s ease-out infinite;
  opacity: 0.45;
}
.hero-engage-rule--bottom {
  animation-delay: -0.176s; /* contraphase = medio beat */
}
@keyframes engageRule {
  0%   { transform: scaleX(1.45); opacity: 1; box-shadow: 0 0 12px var(--accent-glow); }
  100% { transform: scaleX(0.55); opacity: 0.25; box-shadow: none; }
}

.hero-engage.is-engaged {
  color: var(--accent);
  letter-spacing: 0.5em;
  text-shadow:
    0 0 22px var(--accent-glow),
    0 0 6px var(--accent);
}
.hero-engage.is-engaged .hero-engage-rule {
  width: clamp(80px, 12vw, 120px);
  opacity: 1;
}

@media (max-width: 720px) {
  .hero-engage { padding: 0.95rem 1.6rem; font-size: 0.72rem; }
  .hero-bpm    { right: 0.75rem; top: 5rem; font-size: 0.62rem; }
}

/* Cuando el ritual está engaged, todo el sitio se intensifica */
body.ritual-engaged .bochka-pulse { box-shadow: 0 0 22px var(--accent-glow); }
body.ritual-engaged .scanlines { opacity: 0.9; }
body.ritual-engaged .tv-static { opacity: 0.1; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1.3);
    opacity: 1;
  }
}

/* ============================================================
   Section base
   ============================================================ */
.section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2.25rem;
}

/* ============================================================
   Generic card grid (gigs / mixes / tracks / crews)
   ============================================================ */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition:
    border-color 0.25s,
    transform 0.25s var(--ease-out);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-2px);
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.card-body {
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* ============================================================
   Next ritual countdown — bloque live al próximo gig
   "T-MINUS" tensión real-time arriba de los rituals.
   ============================================================ */
.next-ritual {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.12);
}
.next-ritual-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.next-ritual-timer {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  flex: 1;
  min-width: 200px;
}
.next-ritual-target {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   Rituals (Upcoming Shows) — full-width blocks con fecha ancla
   ============================================================ */
.rituals {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.ritual {
  display: grid;
  grid-template-columns: 180px 60px 1fr auto;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.ritual:hover {
  background: rgba(var(--accent-rgb), 0.04);
}
.ritual--past {
  opacity: 0.5;
}
.ritual--past:hover {
  opacity: 0.7;
}

.ritual-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.9;
}
.ritual-day {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 7vw, 5rem);
  letter-spacing: -0.05em;
  color: var(--accent);
}
.ritual-month {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--text);
  margin-top: 0.5rem;
}
.ritual-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

.ritual-chapter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.ritual-venue {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.ritual-city {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ritual-lineup {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-top: 0.6rem;
}

.ritual-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.ritual-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.ritual--past .ritual-status {
  border-color: var(--border);
  color: var(--text-faint);
}
.ritual-tickets {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s;
}
.ritual-tickets:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .ritual {
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
  }
  .ritual-chapter {
    display: none;
  }
  .ritual-action {
    grid-column: 1 / -1;
    align-items: flex-start;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
  }
  .ritual-day {
    font-size: 3rem;
  }
}

/* ============================================================
   Archive table — gigs pasados como tabla densa
   ============================================================ */
.archive {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.archive-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.archive-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.archive-table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: left;
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.archive-table tbody tr {
  transition: background 0.2s;
}
.archive-table tbody tr:hover {
  background: rgba(var(--accent-rgb), 0.04);
}
.archive-table tbody td {
  padding: 1.1rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  vertical-align: top;
}
.archive-table tbody tr:hover .archive-venue {
  color: var(--accent);
}
.archive-date {
  white-space: nowrap;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}
.archive-venue {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  text-transform: uppercase;
  transition: color 0.25s;
}
.archive-city {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .archive-table thead {
    display: none;
  }
  .archive-table tbody td {
    display: block;
    padding: 0.4rem 0;
    border-bottom: none;
  }
  .archive-table tbody tr {
    display: block;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================================
   Setlist (Tracks) — numbered full-width rows
   ============================================================ */
.setlist {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}
.setlist-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.setlist-row:hover {
  background: rgba(var(--accent-rgb), 0.04);
}
.setlist-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text-faint);
  display: inline-block;
  transition:
    color 0.35s,
    text-shadow 0.4s,
    transform 0.4s var(--ease-out);
}
.setlist-row:hover .setlist-num {
  color: var(--accent);
  text-shadow:
    0 0 28px rgba(var(--accent-rgb), 0.55),
    0 0 12px rgba(var(--accent-rgb), 0.32);
  transform: scale(1.04);
}
.setlist-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}
.setlist-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.setlist-desc {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  line-height: 1.5;
}
.setlist-action {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.25s;
}
.setlist-action:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .setlist-row {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem 0;
  }
  .setlist-num {
    font-size: 2.25rem;
  }
  .setlist-play {
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
  }
  .setlist-action {
    grid-column: 1 / -1;
    padding-left: 120px;
    margin-top: -0.5rem;
  }
}

/* ============================================================
   Tracks PRO — cada row tiene su wave inline (canvas propio).
   La wave es la "firma sonora" del track: freq/amp/speed/offset
   derivados por hash del título. Hover sobre el row ilumina la wave.
   ============================================================ */
.setlist-wave {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 0.65rem;
  opacity: 0.55;
  transition: opacity 0.35s;
}
.setlist-row:hover .setlist-wave,
.setlist-row.is-active .setlist-wave {
  opacity: 1;
}
.setlist-row.is-active .setlist-num {
  color: var(--accent);
  text-shadow:
    0 0 28px rgba(var(--accent-rgb), 0.55),
    0 0 12px rgba(var(--accent-rgb), 0.32);
  transform: scale(1.04);
}
.setlist-row.is-active {
  background: rgba(var(--accent-rgb), 0.04);
}

/* ============================================================
   Memories — editorial alternating rows
   Cada memoria: visual (foto o placeholder) + venue + city + anecdote.
   Alterna izq/der para crear ritmo editorial.
   ============================================================ */
.memories {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.memory {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.memory--right {
  direction: rtl;
}
.memory--right > * {
  direction: ltr;
}

.memory-visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-card);
}
.memory-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55) contrast(1.25);
  animation: memoryDecay 14s ease-in-out infinite;
  transition:
    filter 0.5s,
    transform 0.6s var(--ease-out);
}
.memory:hover .memory-image {
  filter: grayscale(0.7) brightness(0.7) contrast(1.15);
  transform: scale(1.02);
  animation-play-state: paused;
}
/* Distorsión muy sutil en loop: la memoria pulsa entre nítida y borrosa */
@keyframes memoryDecay {
  0%,
  100% {
    filter: grayscale(1) brightness(0.55) contrast(1.25);
  }
  35% {
    filter: grayscale(1) brightness(0.48) contrast(1.4) blur(0.6px);
  }
  65% {
    filter: grayscale(1) brightness(0.62) contrast(1.15);
  }
}
.memory-image--empty {
  background:
    radial-gradient(
      circle at 30% 40%,
      rgba(var(--accent-rgb), 0.08),
      transparent 60%
    ),
    linear-gradient(135deg, #0a0a0a, #1a0303);
}
.memory-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
}
.memory-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--accent);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.memory-chapter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  color: var(--text);
  opacity: 0.7;
}

.memory-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.memory-venue {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}
.memory-city {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.memory-anecdote {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dim);
  font-style: italic;
  border-left: 1px solid var(--accent);
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  /* Ghost text: ecos desplazados con baja opacidad = memoria que persiste */
  text-shadow:
    2px 2px 0 rgba(232, 232, 232, 0.06),
    4px 4px 0 rgba(232, 232, 232, 0.03);
}

@media (max-width: 720px) {
  .memory {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .memory--right {
    direction: ltr;
  }
}

/* Section text (manifiesto / bio) */
.section-text {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.section-text p {
  margin: 0;
}

/* ============================================================
   Chapters (Manifesto) — numbered ritual structure
   ============================================================ */
.chapters {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding-left: 2.5rem;
  border-left: 1px solid var(--border);
}
.chapter {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 4rem;
  position: relative;
}
.chapter:last-child {
  margin-bottom: 0;
}
.chapter--right {
  margin-left: clamp(0px, 12vw, 140px);
}
/* Tension gauge: barra vertical creciendo en grosor + glow por capítulo */
.chapter::before {
  content: "";
  position: absolute;
  left: calc(-2.5rem - 1px);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.4;
  box-shadow: 0 0 6px rgba(var(--accent-rgb), 0.3);
  transition:
    opacity 0.4s,
    box-shadow 0.4s;
}
.chapter:nth-of-type(2)::before {
  width: 3px;
  opacity: 0.65;
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.45);
  left: calc(-2.5rem - 1.5px);
}
.chapter:nth-of-type(3)::before,
.chapter:last-of-type::before {
  width: 4px;
  opacity: 1;
  box-shadow:
    0 0 16px var(--accent-glow),
    0 0 4px var(--accent);
  left: calc(-2.5rem - 2px);
}
.chapter-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  line-height: 1;
}
.chapter-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dim);
}
@media (max-width: 720px) {
  .chapters {
    padding-left: 1.5rem;
  }
  .chapter {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
  }
  .chapter--right {
    margin-left: 0;
  }
  .chapter::before {
    left: calc(-1.5rem - 4px);
  }
}

/* ============================================================
   Artist Dossier — key/value editorial table
   ============================================================ */
.dossier {
  max-width: 920px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.dossier-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}
.dossier-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}
.dossier-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.dossier-row:last-child {
  border-bottom: none;
}
.dossier-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0;
}
.dossier-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .dossier-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* ============================================================
   Reverb (Voices) — quotes con text-shadow eco
   Stack de sombras desplazadas con opacidad descendente
   = testimonios reverberando visualmente.
   ============================================================ */
.reverb {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.reverb-card {
  padding: 1.85rem 1.65rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.reverb-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.15);
}
.reverb-quote {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
  margin: 0;
  text-shadow:
    1px 0 0 rgba(var(--accent-rgb), 0.18),
    3px 0 0 rgba(var(--accent-rgb), 0.1),
    6px 0 0 rgba(var(--accent-rgb), 0.05),
    10px 0 0 rgba(var(--accent-rgb), 0.025);
  transition: text-shadow 0.4s;
}
.reverb-card:hover .reverb-quote {
  text-shadow:
    2px 0 0 rgba(var(--accent-rgb), 0.32),
    5px 0 0 rgba(var(--accent-rgb), 0.18),
    10px 0 0 rgba(var(--accent-rgb), 0.1),
    16px 0 0 rgba(var(--accent-rgb), 0.05);
}
.reverb-source {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   Press Kit — 3 cards de assets descargables
   ============================================================ */
.presskit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1024px) {
  .presskit {
    grid-template-columns: repeat(2, 1fr);
  }
}
.presskit-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    transform 0.25s var(--ease-out);
}
.presskit-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.18);
  transform: translateY(-2px);
}
.presskit-kind {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.presskit-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.presskit-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-dim);
  flex: 1;
}
.presskit-cta {
  align-self: flex-start;
  margin-top: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border-hover);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  transition:
    color 0.25s,
    border-color 0.25s,
    background 0.25s;
}
.presskit-cta:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}
@media (max-width: 720px) {
  .presskit {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--text);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img,
.lightbox-content iframe {
  max-width: 90vw;
  max-height: 90vh;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-epitaph {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-epitaph:empty {
  display: none;
}

.footer-booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  border: 1px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.12);
  margin: 1rem 0 0.5rem;
}
.footer-booking:empty {
  display: none;
}
.footer-booking-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-booking-email {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s,
    color 0.25s;
}
.footer-booking-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}
.footer-credit a {
  border-bottom: 1px solid var(--border);
}

/* GSAP reveal hooks */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
}

/* ============================================================
   Marquee — divider tipográfico entre secciones.
   2+ lanes scrolleando en direcciones opuestas, infinito.
   ============================================================ */
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.marquee-lane {
  display: flex;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}
.marquee-lane + .marquee-lane {
  margin-top: 0.5rem;
}
/* Mantra: velocidades lentas para feel hipnótico (no festival marquee) */
.marquee-lane--left .marquee-track {
  animation: marqueeLeft 90s linear infinite;
}
.marquee-lane--right .marquee-track {
  animation: marqueeRight 110s linear infinite;
}
.marquee-lane--left {
  color: var(--text-dim);
  opacity: 0.75;
}
.marquee-lane--right {
  color: var(--accent);
  opacity: 0.45;
}
.marquee-track {
  display: flex;
  gap: 2rem;
  will-change: transform;
}
.marquee-track > span {
  padding-right: 2rem;
}

@keyframes marqueeLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@keyframes marqueeRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* ============================================================
   Bochka Pulse — heartbeat global a 140 BPM
   Línea de 2px bajo el nav que late en accent permanente.
   "Constant propulsion" de la bio convertida en pulso visual.
   ============================================================ */
.bochka-pulse {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  z-index: 99;
  background: var(--accent);
  animation: bochkaPulse 0.3529s ease-out infinite;
  transform-origin: center;
}
@keyframes bochkaPulse {
  0% {
    opacity: 1;
    box-shadow:
      0 0 14px var(--accent-glow),
      0 0 4px var(--accent);
    transform: scaleY(2);
  }
  100% {
    opacity: 0.12;
    box-shadow: none;
    transform: scaleY(1);
  }
}

/* ============================================================
   Scanlines + glitch en hover de títulos
   ============================================================ */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(232, 232, 232, 0.04) 2px,
    rgba(232, 232, 232, 0.04) 3px
  );
  mix-blend-mode: overlay;
  opacity: 0.7;
  transition: opacity 0.6s ease;
}

.hero-title,
.section-title {
  position: relative;
  cursor: default;
}
/* hero-title queda sin glitch: las strokes finas de Elms Sans se romperían
   con chromatic aberration. Solo aplica a section titles (Space Grotesk pesado). */
.section-title:hover {
  animation: glitchHover 0.45s steps(2) infinite;
}

@keyframes glitchHover {
  0% {
    transform: translate(0, 0);
    text-shadow:
      -2px 0 var(--accent),
      2px 0 #00d9ff;
  }
  25% {
    transform: translate(-1px, 1px);
    text-shadow:
      2px 0 var(--accent),
      -2px 0 #00d9ff;
  }
  50% {
    transform: translate(1px, -1px);
    text-shadow:
      -1px 0 var(--accent),
      1px 0 #00d9ff;
  }
  75% {
    transform: translate(-1px, -1px);
    text-shadow:
      1px 0 var(--accent),
      -1px 0 #00d9ff;
  }
  100% {
    transform: translate(0, 0);
    text-shadow:
      -2px 0 var(--accent),
      2px 0 #00d9ff;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(80vw, 320px);
    height: calc(100vh - var(--nav-h));
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
}

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

/* ============================================================
   Hypnotic global pass — la bio permea toda la web
   Char-split en section titles + dividers entre secciones + kick-flash
   audio-reactive + body amplification cuando ritual engaged.
   ============================================================ */
.hypnotic-char {
  display: inline-block;
  will-change: transform, opacity;
}
.hypnotic-char--space {
  display: inline-block;
  width: 0.3em;
}

.hypnotic-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hypnotic-divider svg {
  width: clamp(80px, 11vw, 120px);
  height: auto;
  overflow: visible;
}
.hypnotic-divider circle {
  fill: var(--accent);
  transform-origin: center;
  transform-box: fill-box;
  animation: dividerPulse 0.3529s ease-out infinite;
}
.hypnotic-divider circle:nth-child(2) { animation-delay: -0.117s; }
.hypnotic-divider circle:nth-child(3) { animation-delay: -0.234s; }
@keyframes dividerPulse {
  0%   { transform: scale(1.4); opacity: 1;   filter: drop-shadow(0 0 8px var(--accent)); }
  100% { transform: scale(0.6); opacity: 0.25; filter: none; }
}

.kick-flash {
  animation: kickFlash 0.32s ease-out;
}
@keyframes kickFlash {
  0%   {
    text-shadow:
      0 0 24px rgba(var(--accent-rgb), 0.75),
      0 0 8px rgba(var(--accent-rgb), 0.5);
    filter: brightness(1.28);
  }
  100% {
    text-shadow: none;
    filter: brightness(1);
  }
}

/* --ritual-depth (0..1) escala con scroll cuando engaged. Cada efecto crece. */
:root { --ritual-depth: 0; }

body.ritual-engaged .bochka-pulse {
  box-shadow:
    0 0 calc(28px + var(--ritual-depth) * 22px) var(--accent-glow),
    0 0 calc(10px + var(--ritual-depth) * 8px)  var(--accent);
}
body.ritual-engaged .scanlines { opacity: 1; }
body.ritual-engaged .grain-overlay {
  opacity: calc(0.055 + var(--ritual-depth) * 0.04);
}
body.ritual-engaged .tv-static {
  opacity: calc(0.1 + var(--ritual-depth) * 0.08);
}
body.ritual-engaged .marquee-lane--right {
  opacity: calc(0.85 + var(--ritual-depth) * 0.15);
}
body.ritual-engaged .hypnotic-divider {
  opacity: calc(0.9 + var(--ritual-depth) * 0.1);
}
body.ritual-engaged .ritual-day,
body.ritual-engaged .epk-stat-num,
body.ritual-engaged .setlist-num {
  text-shadow: 0 0 calc(16px + var(--ritual-depth) * 16px) var(--accent-glow);
}
body.ritual-engaged .booking-card-cta {
  box-shadow:
    0 0 calc(44px + var(--ritual-depth) * 28px) rgba(var(--accent-rgb), 0.32),
    0 0 calc(18px + var(--ritual-depth) * 14px) rgba(var(--accent-rgb), 0.18);
}
/* Overlay accent global que crece con la profundidad — sensación de "envolverse" */
body.ritual-engaged::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9996;
  background: radial-gradient(
    ellipse 100% 80% at 50% 50%,
    transparent 30%,
    rgba(var(--accent-rgb), calc(0.04 + var(--ritual-depth) * 0.07)) 100%
  );
  mix-blend-mode: screen;
}

/* ============================================================
   Boot loader — splash 1.2s, una vez por sesión.
   Counter 150 → 170 BPM mientras carga.
   ============================================================ */
.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.boot-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.boot-loader-brand {
  font-family: var(--font-logo);
  font-weight: 200;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow:
    0 0 28px rgba(var(--accent-rgb), 0.35),
    0 0 12px rgba(var(--accent-rgb), 0.22);
}
.boot-loader-meter {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
}
.boot-loader-num {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px var(--accent-glow);
}
.boot-loader-unit {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.boot-loader-bar {
  width: clamp(180px, 30vw, 280px);
  height: 2px;
  background: rgba(232, 232, 232, 0.08);
  overflow: hidden;
}
.boot-loader-fill {
  width: 0%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.boot-loader-stamp {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.5rem;
}

/* ============================================================
   Custom cursor — dot + ring pulsando a 170 BPM
   Activo solo en pointer:fine (desktop, mouse).
   ============================================================ */
.cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  html,
  body {
    cursor: none;
  }
  a,
  button,
  [data-track-index],
  .setlist-row,
  .ritual,
  .archive-table tbody tr,
  .crew-link,
  .roster-link,
  .memory,
  .presskit-card,
  .reverb-card,
  .featured-chip,
  .mini-player-toggle,
  .mini-player-close,
  .mini-player-bar,
  .booking-form button {
    cursor: none;
  }
  /* Inputs mantienen el I-beam — el caret es la única forma de saber dónde escribís */
  .booking-input,
  .booking-textarea {
    cursor: text !important;
  }
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100001;
    mix-blend-mode: difference;
  }
  .cursor-dot {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
  }
  .cursor-ring {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.7;
    animation: cursorPulse 0.3529s ease-out infinite;
  }
  .cursor.is-hover .cursor-ring {
    animation: cursorPulseFast 0.18s ease-out infinite;
    border-color: var(--accent);
    box-shadow: 0 0 18px var(--accent-glow);
  }
  .cursor.is-hover .cursor-dot {
    background: var(--text);
  }
}
@keyframes cursorPulse {
  0% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.35;
  }
}
@keyframes cursorPulseFast {
  0% {
    transform: scale(1.6);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

/* ============================================================
   Setlist — play button por row + estado playing
   ============================================================ */
.setlist-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border-hover);
  color: var(--text);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    box-shadow 0.25s,
    transform 0.2s;
  vertical-align: middle;
  flex-shrink: 0;
}
.setlist-play:hover {
  transform: scale(1.05);
}
.setlist-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}
/* Triángulo óptico: el lado izquierdo carga visualmente más, se corre 1px a la derecha */
.setlist-play .setlist-play--play {
  transform: translateX(1px);
}
.setlist-play .setlist-play--pause {
  display: none;
}
.setlist-row.is-playing .setlist-play {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.25);
}
.setlist-row.is-playing .setlist-play--play {
  display: none;
}
.setlist-row.is-playing .setlist-play--pause {
  display: inline-block;
}
.setlist-row.is-playing {
  background: rgba(var(--accent-rgb), 0.05);
}
.setlist-row.is-playing .setlist-num {
  color: var(--accent);
  text-shadow:
    0 0 36px rgba(var(--accent-rgb), 0.65),
    0 0 14px rgba(var(--accent-rgb), 0.4);
  animation: numHypnotic 1.45s ease-in-out infinite;
}
.setlist-row.is-playing .setlist-wave {
  opacity: 1;
}
@keyframes numHypnotic {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.055);
    opacity: 0.92;
  }
}
.setlist-num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

/* ============================================================
   Sticky mini-player — aparece cuando hay track activo
   ============================================================ */
.mini-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: grid;
  grid-template-columns: 56px minmax(160px, 1.5fr) minmax(0, 2fr) 48px;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--accent);
  box-shadow:
    0 -8px 32px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(var(--accent-rgb), 0.12);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.mini-player.is-open {
  transform: translateY(0);
  pointer-events: auto;
}
.mini-player iframe {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.mini-player-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    box-shadow 0.25s;
}
.mini-player-toggle:hover {
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 0 16px var(--accent-glow);
}
.mp-icon {
  width: 14px;
  height: 14px;
}
.mp-icon--pause {
  display: none;
}
.mini-player.is-playing .mp-icon--play {
  display: none;
}
.mini-player.is-playing .mp-icon--pause {
  display: block;
}

.mini-player-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mini-player-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.mini-player-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-player-scrub {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.mini-player-bar {
  flex: 1;
  height: 3px;
  background: rgba(232, 232, 232, 0.1);
  cursor: pointer;
  position: relative;
  min-width: 80px;
}
.mini-player-progress {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.15s linear;
}
.mini-player-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mini-player-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.mini-player-close:hover {
  color: var(--accent);
  border-color: var(--accent);
}

body.has-miniplayer .footer {
  padding-bottom: 6rem;
}

@media (max-width: 720px) {
  .mini-player {
    grid-template-columns: 44px 1fr 36px;
    grid-template-rows: auto auto;
    gap: 0.6rem 0.85rem;
    padding: 0.65rem 0.85rem;
  }
  .mini-player-meta {
    min-width: 0;
  }
  .mini-player-title {
    font-size: 0.8rem;
  }
  .mini-player-scrub {
    grid-column: 1 / -1;
    order: 3;
  }
  .mini-player-close {
    width: 32px;
    height: 32px;
  }
}

/* ============================================================
   Featured-by — chips de venues/crews que lo han hosteado
   ============================================================ */
.featured {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 0.85rem;
  justify-content: center;
  padding: 1rem 0;
}
.featured-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  transition:
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s,
    transform 0.2s;
  display: inline-block;
}
.featured-chip:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.18);
  transform: translateY(-1px);
}

/* ============================================================
   EPK stats — banner mono dentro de Live
   ============================================================ */
.epk-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 2.25rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.epk-stat {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.epk-stat:last-child {
  border-right: none;
}
.epk-stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.epk-stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
}
@media (max-width: 720px) {
  .epk-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .epk-stat:nth-child(2) {
    border-right: none;
  }
  .epk-stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

/* ============================================================
   Booking form — structured CTA
   ============================================================ */
.booking {
  max-width: 720px;
  margin: 0 auto;
}
.booking-intro {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
  text-align: center;
}
.booking-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.booking-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.booking-field--full {
  grid-column: 1 / -1;
}
.booking-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.booking-label::after {
  content: "";
  margin-left: 0.35rem;
  color: var(--accent);
}
.booking-field--required .booking-label::after {
  content: "†";
}
.booking-input,
.booking-textarea {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 0.85rem 0.9rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.25s,
    background 0.2s;
  width: 100%;
}
.booking-input:focus,
.booking-textarea:focus {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.16);
}
.booking-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
}
.booking-input[type="date"] {
  color-scheme: dark;
}
.booking-submit {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 1.05rem 1.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  transition:
    background 0.25s,
    color 0.25s,
    box-shadow 0.3s;
}
.booking-submit:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 28px var(--accent-glow);
}
.booking-status {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.5rem;
  min-height: 1.2em;
}
.booking-status.is-ok {
  color: var(--accent);
}
@media (max-width: 720px) {
  .booking-form {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Booking Card — sin form, sin backend. Email + brief template + alt
   ============================================================ */
.booking-card {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.booking-card-intro {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
}
.booking-card-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 1.85rem;
  border: 1px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.04);
  box-shadow: 0 0 32px rgba(var(--accent-rgb), 0.14);
  transition:
    background 0.25s,
    box-shadow 0.3s,
    transform 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.booking-card-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--accent-rgb), 0.12),
    transparent
  );
  transition: left 0.7s var(--ease-out);
}
.booking-card-cta:hover {
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 44px rgba(var(--accent-rgb), 0.28);
  transform: translateY(-2px);
}
.booking-card-cta:hover::before {
  left: 100%;
}
.booking-card-cta-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  grid-column: 1;
  grid-row: 1;
}
.booking-card-cta-email {
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 2.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  grid-column: 1;
  grid-row: 2;
  margin-top: 0.5rem;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.booking-card-cta-arrow {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  grid-column: 2;
  grid-row: 1 / span 2;
  transition: transform 0.25s var(--ease-out);
}
.booking-card-cta:hover .booking-card-cta-arrow {
  transform: translateX(6px);
}

.booking-card-brief {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}
.booking-card-brief-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.booking-card-brief-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
  margin: 0;
  padding: 0;
}
.booking-card-brief-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.booking-card-brief-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  flex-shrink: 0;
}

.booking-card-alt {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.booking-card-alt-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.booking-card-alt-link {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s,
    border-color 0.25s;
}
.booking-card-alt-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 720px) {
  .booking-card-brief-list {
    grid-template-columns: 1fr;
  }
  .booking-card-cta {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.35rem;
  }
  .booking-card-cta-arrow {
    grid-column: 1;
    grid-row: 3;
    margin-top: 0.5rem;
  }
}
