* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: center; /* centrado total */
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  padding-bottom: 5px;
}

/* LINKS */
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

/* ✨ NUEVO HOVER (línea que aparece desde el centro) */
.nav-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

/* HOME */
.home-container {
  display: none;
  margin-top: 0;
}

.home-container.active {
  display: block;
}

/* SECCIONES */
.section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 2rem;
}

/* BACKGROUNDS */
.sec1 {
  background: url('musical-one.png') center/cover no-repeat;
}

.sec2 {
  background: url('musical-two.png') center/cover no-repeat;
}

.sec3 {
  background: url('musical-three.png') center/cover no-repeat;
}

/* CONTENT BOX */
.content-box {
  background: rgba(0, 0, 0, 0.45);
  padding: 2.5rem;
  border-radius: 12px;

  max-width: 800px; /* 👈 clave: limita el ancho */
  margin: 0 auto;   /* 👈 centra el bloque */

  backdrop-filter: blur(6px); /* ✨ efecto moderno opcional */
}
.content-box h2 {
    font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.content-box p {
  font-size: 1.05rem;
  line-height: 1.8; /* 👈 mejora lectura */
  text-align: justify; /* 👈 opcional elegante */
  color: #f1f1f1;
}
/* GALERIA */
.gallery {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 100px 2rem 2rem;
}

.gallery.active {
  display: grid;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
}

/* RESPONSIVE TABLET */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 📱 MOBILE */
@media (max-width: 768px) {

  nav {
    justify-content: center;
    padding: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 1.2rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
.sec1 {
    background-image: url('musical-one-mobile.png');
    background-position: center top;
  }
  .sec2 {
    background-image: url('musical-two-mobile.png');
    background-position: center top;
  }
  .sec3 {
    background-image: url('musical-three-mobile.png');
    background-position: center top;
  }
    .content-box {
    padding: 1.5rem;
    max-width: 90%;
  }

  .content-box h2 {
    font-size: 1.5rem;
  }

  .content-box p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* 📱 MOBILE PEQUEÑO */
@media (max-width: 480px) {

  .nav-links {
    gap: 0.8rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .section {
    padding: 1rem;
  }
}

/* 📱 GALERIA MOBILE */
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}