/* caratulas.css */

/* CARÁTULAS */

.covers {
  display: flex;

  justify-content: center;
  align-items: flex-start;

  gap: 35px;

  margin: 25px auto 45px;

  flex-wrap: wrap;
}

.cover {
  width: 210px;

  text-align: center;

  cursor: pointer;
}

.cover-back {
  width: 280px;

  text-align: center;

  cursor: pointer;
}

.cover-dvd {
  width: 310px;

  text-align: center;

  cursor: pointer;
}

.cover-image {
  position: relative;

  width: 210px;
  height: 210px;
}

.cover-image-back {
  position: relative;

  width: 280px;
  height: 210px;
}

.cover-image-dvd {
  position: relative;

  width: 310px;
  height: 210px;
}

.cover-image img,
.cover-image-back img,
.cover-image-dvd img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  border-radius: 4px;

  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.1);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.cover:hover .cover-image img,
.cover-back:hover .cover-image-back img,
.cover-dvd:hover .cover-image-dvd img {
  transform: translateY(-8px) scale(1.035);

  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(213, 167, 70, 0.2);
}

.cover span,
.cover-back span,
.cover-dvd span {
  display: block;

  margin-top: 12px;

  color: var(--muted);

  font-size: 0.8rem;

  text-transform: uppercase;

  letter-spacing: 1px;
}

/* MODAL CARÁTULAS */

.cover-modal {
  position: fixed;

  inset: 0;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, 0.94);

  z-index: 1000;
}

.cover-modal.active {
  display: flex;
}

.cover-modal img {
  max-width: 90vw;
  max-height: 90vh;

  object-fit: contain;

  border-radius: 4px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.modal-close {
  position: fixed;

  top: 20px;
  right: 25px;

  width: 45px;
  height: 45px;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);

  color: white;

  font-size: 28px;

  line-height: 45px;

  cursor: pointer;
}

/* GALERÍA DE IMÁGENES */

.images-gallery {
  display: flex;

  justify-content: center;

  align-items: flex-start;

  gap: 35px;

  margin: 35px auto 45px;

  flex-wrap: wrap;
}

/* TARJETA */

.gallery-image {
  width: 250px;

  text-align: center;

  cursor: pointer;
}

/* MARCO FIJO */

.gallery-image-container {
  position: relative;

  width: 200px;
  height: 250px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #000;

  overflow: hidden;

  border-radius: 4px;

  box-shadow:
    0 18px 35px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* IMAGEN */

.gallery-image-container img {
  width: 100%;
  /*height: 100%;*/

  display: block;

  object-fit: contain;

  object-position: center;

  transition: transform 0.4s ease;
}

.gallery-image[data-orientation="horizontal"] .gallery-image-container {
  width: 255px;
  height: 166px;
}

/* EFECTO HOVER */

.gallery-image:hover .gallery-image-container img {
  transform: scale(1.035);
}

/* TÍTULO */

.gallery-image span {
  display: block;

  margin-top: 12px;

  color: var(--muted);

  font-size: 0.8rem;

  text-transform: uppercase;

  letter-spacing: 1px;
}

/* =====================================================
   MÓVIL
   ===================================================== */

@media (max-width: 768px) {
  .gallery-image {
    width: 280px;
  }
}

/* =====================================================
   INFORMACIÓN DEL MODAL
   ===================================================== */

.modal-content {
  max-width: 90vw;
  max-height: 90vh;

  display: flex;
  flex-direction: column;

  align-items: center;
}

.modal-content img {
  max-width: 90vw;
  max-height: 78vh;

  object-fit: contain;

  border-radius: 4px;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

/* -----------------------------------------------------
   NOMBRE
   ----------------------------------------------------- */

.modal-name {
  margin-top: 18px;

  color: white;

  font-family: Arial, sans-serif;

  font-size: 1.05rem;

  font-weight: 600;

  letter-spacing: 1px;

  text-align: center;
  text-transform: uppercase;
}

/* -----------------------------------------------------
   FECHA + COPYRIGHT
   ----------------------------------------------------- */

.modal-details {
  display: flex;

  justify-content: center;

  gap: 20px;

  margin-top: 7px;

  color: rgba(255, 255, 255, 0.6);

  font-family: Arial, sans-serif;

  font-size: 0.75rem;

  letter-spacing: 0.5px;
  text-transform: uppercase;
}
/* ============================================================
   BOTONES DEL MODAL
   ============================================================ */

.modal-close,
.modal-download,
.modal-prev,
.modal-next {
  position: fixed;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.1);
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  z-index: 1002;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

/* CERRAR */

.modal-close {
  top: 20px;
  right: 25px;

  font-size: 28px;
  line-height: 1;
}

/* DESCARGAR */

.modal-download {
  top: 20px;
  right: 80px;

  font-size: 18px;
}

/* ANTERIOR */

.modal-prev {
  top: 50%;
  left: 25px;

  transform: translateY(-50%);

  font-size: 18px;
  line-height: 1;

  padding-right: 2px;
  padding-top: 3px;
}

/* SIGUIENTE */

.modal-next {
  top: 50%;
  right: 25px;

  transform: translateY(-50%);

  font-size: 18px;
  line-height: 1;

  padding-left: 4px;
  padding-top: 3px;
}

/* HOVER */

.modal-close:hover,
.modal-download:hover,
.modal-prev:hover,
.modal-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* PEQUEÑO MOVIMIENTO DE LAS FLECHAS */

.modal-prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.modal-next:hover {
  transform: translateY(-50%) translateX(3px);
}

/* OCULTAR NAVEGACIÓN */

.modal-prev.hidden,
.modal-next.hidden {
  display: none;
}

/* MÓVIL */

@media (max-width: 600px) {
  .modal-close,
  .modal-download,
  .modal-prev,
  .modal-next {
    width: 42px;
    height: 42px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .modal-download {
    top: 12px;
    right: 64px;
  }

  .modal-prev {
    left: 8px;
  }

  .modal-next {
    right: 8px;
  }
}

/* =====================================================
   ANIMACIÓN CAMBIO DE IMAGEN EN MODAL
   ===================================================== */

.cover-modal img.modal-slide-left {
  animation: modalSlideLeft 0.35s ease;
}

.cover-modal img.modal-slide-right {
  animation: modalSlideRight 0.35s ease;
}

@keyframes modalSlideLeft {
  from {
    opacity: 0;
    transform: translateX(80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modalSlideRight {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}
