/* =========================================================
   DISCOGRAFIA.CSS — ESTILOS EXCLUSIVOS DE LA PÁGINA DE DISCOS
   ========================================================= */

/* ==== SECCIÓN PRINCIPAL ==== */
.discografia-section {
  /*background-color: #0c0c0c;*/
  color: #fff;
  padding: 4rem 2rem;
  /*border-top: 2px solid #1a1a1a;*/
  /*border-bottom: 2px solid #1a1a1a;*/
  text-align: center;
}

.discografia-section h1 {
  font-family: var(--font-heading, 'Oswald', sans-serif);
  font-size: 2.4rem;
  text-transform: uppercase;
  color: var(--color-guitar-highlight, #d1a470);
  letter-spacing: 1px;
  margin-bottom: 3rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* ==== GRID DE DISCOS ==== */
.disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
}

/* ==== TARJETAS DE DISCO ==== */
.disc-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 260px;
}

.disc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.disc-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.disc-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

/* ==== INFO DEL DISCO ==== */
.disc-info {
  padding: 1rem;
  text-align: center;
}

.disc-info h3 {
  font-size: 1.1rem;
  color: var(--color-guitar-wood, #b38a5a);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.disc-info span {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.6rem;
}

/* ==== BOTÓN DETALLES ==== */
.btn-disc {
  display: inline-block;
  background: var(--color-guitar-wood, #b38a5a);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn-disc:hover {
  background: var(--color-guitar-highlight, #d1a470);
  transform: scale(1.05);
}

/* ==== POPUP / MODAL DEL DISCO ==== */
#disc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 9999;
}

#disc-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ---- Contenedor interno ---- */
.disc-modal-content {
  background: #111;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s ease;
}

#disc-modal.active .disc-modal-content {
  transform: scale(1);
}

/* ---- Botón de cierre ---- */
.disc-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  font-weight: 400;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.disc-modal-close:hover {
  color: var(--color-guitar-highlight, #d1a470);
  transform: rotate(90deg);
}

/* ---- Imagen / Portada ---- */
.disc-cover {
  flex: 0 0 40%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
}

.disc-cover img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.disc-cover-inner {
  width: 100%;
}

.disc-meta-modal {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #ddd;
  line-height: 1.5;
}

.disc-meta-modal p {
  margin: 0.25rem 0;
}

.disc-meta-modal strong {
  color: #fff;
}

/* ---- Información ---- */
.disc-details {
  flex: 1;
  padding: 2rem;
  color: #fff;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b38a5a #1a1a1a;
}

.disc-details::-webkit-scrollbar {
  width: 8px;
}
.disc-details::-webkit-scrollbar-thumb {
  background: #b38a5a;
  border-radius: 10px;
}
.disc-details::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.disc-details h2 {
  color: var(--color-guitar-highlight, #d1a470);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.disc-details p {
  color: #ddd;
  line-height: 1.6em;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ---- Lista de canciones ---- */
.tracklist {
  margin-top: 1rem;
  padding-left: 1rem;
  list-style: none;
  color: #ccc;
  font-size: 0.95rem;
}

.tracklist li {
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.4rem;
}

.tracklist li::before {
  content: "♪";
  position: absolute;
  left: 0;
  color: var(--color-guitar-highlight, #d1a470);
}

.track-item {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.track-item:last-child {
  border-bottom: none;
}

.track-title {
  display: block;
  font-weight: 700;
  color: #fff;
}

.track-duration {
  display: inline-block;
  color: #bdbdbd;
  font-size: 0.9rem;
}

.track-item audio {
  width: 100%;
  max-width: 100%;
  outline: none;
  border-radius: 6px;
}

.track-spotify {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  width: fit-content;
  color: var(--color-guitar-highlight, #d1a470);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.track-spotify svg {
  color: #1DB954;
  flex-shrink: 0;
}

.track-spotify:hover {
  color: #fff;
}

/* ---- Reproductor simple ---- */
.player {
  margin-top: 1.5rem;
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.player audio {
  width: 100%;
  outline: none;
  border-radius: 6px;
}

/* ==== RESPONSIVO ==== */
@media (max-width: 900px) {
  .disc-modal-content {
    flex-direction: column;
    max-height: 90vh;
  }

  .disc-cover {
    flex: 0 0 auto;
    max-height: 42vh;
    padding: 1rem;
  }

  .disc-cover img {
    max-height: 38vh;
    width: auto;
    max-width: 100%;
  }

  .disc-details {
    padding: 1.4rem;
  }
}

/* ==== REJILLA DE DISCOS ==== */
.discografia-section {
  padding: 60px;
  max-width: 1600px;
  margin: 0 auto;
}

.disc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 discos por fila */
  gap: 30px; /* separación entre tarjetas */
  justify-items: center;
}

.disc-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  width: 100%;
  max-width: 280px; /* 🔹 Limita el tamaño para que 5 entren en fila */
}

.disc-card img {
  width: 100%;
  height: auto;
  display: block;
}

.disc-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.6);
}

/* ---- Información del disco ---- */
.disc-info {
  padding: 14px;
}

.disc-info h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.disc-info span {
  color: #bbb;
  font-size: 0.9rem;
}

.btn-disc {
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--color-guitar-wood, #b38a5a);
  border: none;
  color: #111;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-disc:hover {
  background: #d1a470;
}

/* ==== RESPONSIVO ==== */
@media (max-width: 1400px) {
  .disc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .disc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .disc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .disc-grid {
    grid-template-columns: 1fr;
  }
}


/* ==== Información adicional del disco ==== */
.disc-extra-info {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.disc-extra-info p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.3rem 0;
}

.disc-extra-info strong {
  color: var(--color-guitar-highlight, #d1a470);
  font-weight: 600;
  margin-right: 6px;
}

