/* Music Curation Page Specific Styles */
.music-section {
  padding: 2rem 0;
  padding-top: 120px; 
}

/* Mobile-first approach */
.music-page {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Carousel */
.carousel-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.carousel-inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 0;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  border-radius: 0;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
}

/* Flechas del carrusel */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  padding: 1rem;
  transition: color 0.3s ease;
}

.carousel-btn:hover {
  color: var(--primary-color);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

/* Text Section */
.music-text {
  padding: 3rem;
  background-color: var(--bg-color);
  margin: 0 auto;
}

.music-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.music-text h1::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 0;
  transition: var(--transition-normal);
}

.music-text:hover h1::after {
  width: 100px;
}

.music-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 2rem;
}

.listen-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
  padding: 0.8rem 2rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  text-transform: uppercase;
}

.listen-button:hover {
  background-color: var(--primary-color);
}

/* =========================================
   LIGHTBOX (Sin contador)
   ========================================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.4s ease;
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.lightbox-image {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

/* OCULTAR CONTADOR FORZOSAMENTE */
.lightbox-counter {
  display: none !important;
}

/* CRUZ DE CIERRE (Estilo Gallery) */
.close-lightbox {
  position: absolute;
  top: 30px; right: 30px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 10001;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.close-lightbox span, 
.close-lightbox i { display: none; }

.close-lightbox {
  font-size: 0;
  color: transparent;
}

.close-lightbox::before,
.close-lightbox::after {
  content: '';
  display: block;
  width: 25px;
  height: 3px; 
  background-color: #fff;
  position: absolute;
  transition: all 0.3s ease-in-out;
}

.close-lightbox::before { transform: rotate(45deg); }
.close-lightbox::after { transform: rotate(-45deg); }

.close-lightbox:hover::before,
.close-lightbox:hover::after {
  background-color: var(--primary-color);
}

/* Botones de navegación del Lightbox */
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  padding: 1rem;
  transition: color 0.3s ease;
}

.prev-lightbox {
  left: 10px;
}

.next-lightbox {
  right: 10px;
}

.lightbox-btn:hover {
  color: var(--primary-color);
}

/* Desktop Styles */
@media (min-width: 993px) {
  .music-page {
    flex-direction: row-reverse;
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
  }
  
  .carousel-container {
    width: 55%;
    aspect-ratio: 1 / 1;
    max-height: calc(100vh - 200px);
  }
  
  .music-text {
    width: 45%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* Pantallas grandes (1440p+) */
@media (min-width: 1440px) {
  .music-page {
    max-width: 1600px;
  }

  .carousel-container {
    width: 55%;
  }

  .music-text {
    width: 45%;
    padding: 4rem;
  }

  .music-text h1 {
    font-size: 3rem;
  }

  .music-text p {
    font-size: 1.3rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .carousel-container {
    aspect-ratio: 1 / 1;
  }
  
  .music-text {
    padding: 2rem;
  }
  
  .music-text h1 {
    font-size: 1.8rem;
  }
  
  .music-text p {
    font-size: 1.1rem;
  }
}