body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background: linear-gradient(to bottom, #f0f8ff, #e6ffe6);
  color: #333;
}

/* Header */
header {
  text-align: center;
  padding: 20px;
  background: #006400;
  color: white;
  position: relative;
}

/* Contenedor del logo */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

/* Imagen del logo */
.logo {
  width: 320px;   /* ancho fijo inicial */
  height: auto;
}

/* Ajustes responsivos */
@media (max-width: 1024px) {
  .logo {
    width: 180px; /* tablets */
  }
}

@media (max-width: 768px) {
  .logo {
    width: 140px; /* móviles */
  }
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Overlay */
#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 5;
}

/* Menú lateral */
nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 100%;
  background: #228B22;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  z-index: 10;
}

nav ul {
  list-style: none;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Responsivo */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
}

/* Estado activo */
nav.show {
  transform: translateX(0);
}

#overlay.show {
  display: block;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactamente 3 columnas */
  gap: 20px;
  padding: 40px;
}

/* Ajuste responsivo: en pantallas más pequeñas se reduce a 2 o 1 columna */
@media (max-width: 1024px) {
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-container {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card i {
  font-size: 40px;
  color: #006400;
  margin-bottom: 10px;
}

.card h3 {
  margin: 10px 0;
  color: #228B22;
}

.card p {
  font-size: 14px;
  color: #555;
}

.card button {
  background: #006400;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 15px;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.3s;
}

.card button:hover {
  background: #228B22;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Estilo básico de la lista */
#playlistUI {
  list-style: none;
  padding: 10px;
  margin-top: 10px;
  background: #7af592;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#playlistUI li {
  padding: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

#playlistUI li:hover {
  background: #e6ffe6;
}

/* Clase para ocultar */
.hidden {
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #006400;
  color: white;
}