:root {
  --verde-oscuro: #1b3923;
  --verde-medio: #2d6a4f;
  --verde-claro: #74b49b;
  --verde-suave: #cce3d4;
  --texto-suave: #f5f5f5;
}

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

body.audioaventura-body {
  font-family: 'Georgia', serif;
  background-color: var(--verde-suave);
  color: var(--verde-oscuro);
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--verde-oscuro);
  color: var(--texto-suave);
  text-align: center;
  padding: 3rem 0 2rem;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.8rem;
  font-family: 'Caveat', cursive;
}

/* Botones tipo portal */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-portal.glow {
  background: linear-gradient(135deg, #4caf50, #81c784, #a5d6a7);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
  transition: all 0.3s ease;
}

.btn-portal.glow:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.9);
}

/* Intro banner */
.intro-image img {
  display: block;
  margin: 0 auto 2rem;
  max-width: 60%;
  border-radius: 20px;
  border: 4px solid var(--verde-medio);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

/* AudioAventura sección */
.audio-adventures {
  max-width: 900px;
  margin: 2rem auto;
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

.audio-adventures h2 {
  font-family: 'Caveat', cursive;
  font-size: 2.2rem;
  text-align: center;
  color: var(--verde-medio);
  margin-bottom: 1rem;
}

.aventura-descripcion {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  background-color: rgba(200, 255, 220, 0.2);
  padding: 1rem 1.5rem;
  border-radius: 12px;
}

/* Capítulos */
.chapters {
  list-style: none;
  margin-bottom: 2rem;
  padding-left: 0;
}

.chapters li {
  padding: 1rem;
  margin-bottom: 0.5rem;
  background-color: var(--verde-suave);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapters li a {
  background-color: var(--verde-medio);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.chapters li a:hover {
  background-color: var(--verde-oscuro);
}

.coming-soon {
  font-style: italic;
  color: #777;
}

/* Canciones */
.songs-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.song-item {
  flex: 1 1 40%;
  min-width: 300px;
}

/* Sección de insignias */
.badges-section {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.badges-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--verde-oscuro);
}

#badges-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.badge {
  width: 100px;
  text-align: center;
  opacity: 0.3;
  transition: opacity 0.3s, transform 0.3s;
}

.badge.unlocked {
  opacity: 1;
  transform: scale(1.1);
}

.badge img {
  width: 80px;
  height: 80px;
}

.badge p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--verde-oscuro);
}

/* Footer */
footer {
  background-color: var(--verde-oscuro);
  color: var(--texto-suave);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.footer-section h3 {
  margin-bottom: 0.8rem;
  color: var(--verde-claro);
  font-family: 'Caveat', cursive;
}

.footer-section a {
  color: var(--texto-suave);
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--verde-claro);
  text-decoration: underline;
}

.social-links a {
  display: block;
  margin-bottom: 0.3rem;
}

footer p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-buttons {
    flex-direction: column;
  }

  .songs-container {
    flex-direction: column;
    align-items: center;
  }

  .chapters li {
    flex-direction: column;
    text-align: center;
  }

  .chapters li a {
    margin-top: 0.5rem;
  }
}
