:root {
  --azul-fondo: #0051FF;
  --azul-seccion: #1DA1FF;
  --amarillo: #FFD700;
  --rojo: #FF0000;
  --blanco: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
 
}

html, body {
  width: 100%;
  background: var(--azul-fondo);
    
}

/* ============================
   CONTENEDOR PRINCIPAL
============================ */
.contenedor-principal {
   display: grid;
  grid-template-columns: 65% 35%;
  min-height: 100vh;
  gap: 0;
  
  height: calc(100vh - 100px);
  overflow-y: auto;

  /* ðŸ‘‡ Este es el espacio extra para el reproductor fijo */
  padding-bottom: 100px;
  box-sizing: border-box;
  
}

.cabecera {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* izquierda | centro | derecha */
  align-items: center; /* centra verticalmente */
  gap: 15px;
}


.cabecera h3{
  text-align: right;
}







/* ============================
   COLUMNA IZQUIERDA
============================ */
.columna-izquierda {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(10px, 2vw, 20px);
  background-color: var(--azul-fondo);
  color: var(--blanco);
  gap: 10px;
}

.columna-izquierda h1 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: bold;
}
.yellow { color: var(--amarillo); }
.white { color: var(--blanco); }
.red { color: var(--rojo); }

.lista-canciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
  background: var(--azul-seccion);
  padding: 8px;
  border-radius: 12px;
}

.song-item {
  background: var(--azul-fondo);
  color: var(--blanco);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.song-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
}

.song-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vote-icon {
  background: var(--rojo);
  color: var(--blanco);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.song-item:hover .vote-icon {
  background: #ff4b4b;
}

.vote-info {
  font-size: 0.9rem;
  opacity: 0.8;
}

.vote-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.vote-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rojo) 0%, orange 50%, yellow 100%);
  width: 0%;
  transition: width 0.4s ease;
}

.vote-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.vote-fill {
  height: 100%;
  width: 0%;
  position: relative;
  transition: width 0.4s ease, background 0.4s ease;
}

/* Efecto de brillo suave */
.glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  animation: shine 1.5s infinite;
}

/* Brillo más rápido e intenso para líder */
.leader::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: shine 0.8s infinite;
}

@keyframes shine {
  0% { left: -50%; }
  100% { left: 100%; }
}



/* ============================
   COLUMNA DERECHA
============================ */
.columna-derecha {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: clamp(10px, 2vw, 20px);
  background: var(--azul-seccion);
  color: var(--blanco);
  text-align: center;

}

.columna-derecha img.logo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  ali
}

.boton {
  background: var(--rojo);
  color: var(--blanco);
  padding: 10px 15px;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  margin-top: 5px;
}

.equipo {
  width: 100%;
  border-radius: 12px;
}

/* Player de audio */
.reproductor {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reproductor {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: yellow;
  max-height: 100px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 5px 10px;
  box-sizing: border-box;
}

.reproductor audio {
  flex: 1;
}

/* ============================
   RESPONSIVE
============================ */
@media (max-width: 900px) {
  .contenedor-principal {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .lista-canciones {
    grid-template-columns: 1fr;
  }

.reproductor {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: yellow;
  max-height: 100px;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  padding: 5px 10px;
  box-sizing: border-box;
}

  .columna-derecha {
    margin-top: 70px;
  }
}
