/* ==========================================================
   1. FUENTES  (carpeta /fonts)
   ========================================================== */
@font-face {
  font-family: 'PotiFont';
  src: url('../fonts/poti.ttf') format('truetype');
}

@font-face {
  font-family: 'FraksCustom';
  src: url('../fonts/FRAKS___.ttf') format('truetype');
}

@font-face {
  font-family: 'HelveticaNowExtraBold';
  src: url('../fonts/HelveticaNowDisplay-ExtraBold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* ==========================================================
   2. VARIABLES Y BASE
   ========================================================== */
:root {
  --pure-black: #000000;
  --dark-purple: #1a052e;
  --deep-purple: #0d0217;
  --accent-purple: #5c1699;
  --light-purple: #9d4edd;
  --white: #ffffff;
  --gray: #888888;
  --font-display: 'HelveticaNowExtraBold', sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--pure-black);
  color: var(--white);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ==========================================================
   3. NAVBAR
   ========================================================== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(92, 22, 153, 0.3);
  backdrop-filter: blur(5px);
}

.logo-container a {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--light-purple);
}

/* ==========================================================
   4. HERO (video de fondo)
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
  min-height: 85vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--pure-black);
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

/* Capa oscura para que el texto se lea sobre el video */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
}

/* Todo el contenido del hero queda por encima del video */
.hero > *:not(.hero-video):not(.hero-overlay) {
  position: relative;
  z-index: 3;
}

.date-badge {
  margin-bottom: 2rem;
  padding: 0.5rem 1.5rem;
  background: rgba(92, 22, 153, 0.2);
  border: 1px solid var(--accent-purple);
  border-radius: 20px;
  color: #e0d0f5;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.logo-title-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.5rem 0;
}

.hero-logo-img {
  width: 85%;
  max-width: 550px;
  height: auto;
  object-fit: contain;
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* ==========================================================
   5. CONTADOR REGRESIVO
   ========================================================== */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.time-box {
  min-width: 80px;
  padding: 1.5rem;
  background: var(--deep-purple);
  border: 1px solid rgba(92, 22, 153, 0.4);
  border-radius: 10px;
  text-align: center;
}

.time-box .number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--white);
}

.time-box .label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ==========================================================
   6. SECCIONES GENERALES
   ========================================================== */
.section-container {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.section-title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.section-title span {
  color: var(--light-purple);
}

/* ==========================================================
   7. LINEUP
   ========================================================== */
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.band-card {
  overflow: hidden;
  background: var(--deep-purple);
  border: 1px solid rgba(92, 22, 153, 0.2);
  border-radius: 15px;
  transition: transform 0.3s, border-color 0.3s;
}

.band-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-purple);
}

.band-img {
  width: 100%;
  height: 250px;
  background-color: var(--dark-purple);
  background-size: cover;
  background-position: center;
}

.band-info {
  padding: 1.5rem;
}

.band-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  color: var(--white);
}

.band-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--light-purple);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================
   8. ARCHIVO MOGWAI (galería + video)
   ========================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-item {
  height: 200px;
  background-color: var(--dark-purple);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(92, 22, 153, 0.2);
  border-radius: 10px;
  transition: opacity 0.3s;
}

.gallery-item:hover {
  opacity: 0.7;
}

.video-container {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border: 2px solid var(--accent-purple);
  border-radius: 15px;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ==========================================================
   9. FOOTER
   ========================================================== */
.festival-footer {
  padding: 4rem 4rem 8rem;
  background: #020005;
  border-top: 1px solid rgba(92, 22, 153, 0.3);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col li a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col li a:hover {
  color: var(--white);
}

.sponsors-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.sponsors-container img {
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.visitor-count {
  margin-top: 4rem;
  text-align: center;
  font-size: 0.85rem;
  color: #444444;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.visitor-count strong {
  color: var(--light-purple);
  font-size: 1.1rem;
}

/* ==========================================================
   10. REPRODUCTOR DE MÚSICA
   ========================================================== */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-spin-slow { animation: spin-slow 8s linear infinite; }
.paused            { animation-play-state: paused; }

.music-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(92, 22, 153, 0.5);
  box-shadow: 0 -10px 30px rgba(48, 0, 90, 0.3);
  backdrop-filter: blur(10px);
}

/* Izquierda: portada + título */
.player-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 30%;
  min-width: 200px;
}

.player-art-container {
  position: relative;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border: 2px solid var(--light-purple);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(90, 0, 163, 0.8);
}

.player-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-art-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--pure-black);
  border: 1px solid #444;
  border-radius: 50%;
}

.player-text h5 {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 1px;
  color: var(--white);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.player-text p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--light-purple);
}

/* Centro: controles + barra de progreso */
.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40%;
  max-width: 500px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5px;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.2s;
}

.control-btn:hover {
  color: var(--white);
}

.play-btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  color: var(--pure-black);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.play-btn-circle:hover {
  transform: scale(1.05);
}

.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--gray);
}

.progress-bar-container {
  flex-grow: 1;
  height: 6px;
  overflow: hidden;
  background: #222;
  border-radius: 3px;
  cursor: pointer;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--light-purple);
}

/* Derecha: volumen */
.player-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 30%;
  color: var(--gray);
}

.volume-bar {
  width: 80px;
  height: 6px;
  background: #222;
  border-radius: 3px;
  cursor: pointer;
}

.volume-fill {
  width: 66%;
  height: 100%;
  background: var(--gray);
  border-radius: 3px;
  transition: background 0.3s;
}

.volume-bar:hover .volume-fill {
  background: var(--light-purple);
}

/* ==========================================================
   11. RESPONSIVE (móvil)
   ========================================================== */
@media (max-width: 768px) {
  nav                 { flex-direction: column; gap: 1rem; padding: 1rem; }
  .gallery-grid       { grid-template-columns: repeat(2, 1fr); }
  .countdown-container { flex-wrap: wrap; }

  .hero-subtitle {
    padding: 0 1rem;
    font-size: 0.95rem;
    text-align: center;
    white-space: normal;
  }

  .footer-columns     { grid-template-columns: 1fr; text-align: center; }
  .festival-footer    { padding: 3rem 2rem 12rem; }
  .sponsors-container { justify-content: center; }

  .music-player       { flex-direction: column; gap: 1.5rem; padding-bottom: 1.5rem; }
  .player-left        { width: 100%; justify-content: center; }
  .player-center      { width: 100%; }
  .player-right       { display: none; }
}

/* ---------- FILTRO CRT ---------- */
.crt {
  position: fixed;
  inset: 0;
  z-index: 9999;          /* por encima de todo, incluido el reproductor */
  pointer-events: none;   /* no estorba los clics */
  background:
    /* líneas de escaneo */
    repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0.15) 3px,
      rgba(0, 0, 0, 0.15) 4px
    ),
    /* bordes oscuros tipo pantalla curva */
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.45) 100%);
}

/* parpadeo leve */
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(157, 78, 221, 0.04);
  animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .crt::after { animation: none; }
}
