/* directo.css */

.logo {
  margin-bottom: 1rem;
}
.page-title {
  font-size: clamp(26px, 2.7vw, 52px);
  font-weight: bold;
  margin-bottom: 2rem;

  background-color: #ffffff;
  text-align: center;
}

.titulo-grupo {
  color: #263065;
}

.titulo-directo {
  color: #e83c3d;
  margin-left: 0.3em;
}
.header-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.anuncio-image {
  display: block;
  max-width: 100%;
  height: auto;
}

.header-image {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: auto;
  z-index: 2;

  animation: pulso-header-image 2.5s ease-in-out infinite;
}
.presale-image {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: 50%;
  max-width: 30rem;
  height: auto;
  z-index: 3;
}
.cortometraje-image {
  position: absolute;
  bottom: 2rem;
  right: 9rem;
  width: 50%;
  max-width: 200px;
  height: auto;
  z-index: 3;

  animation: pulso-cortometraje 2.5s ease-in-out infinite;
}

@keyframes pulso-header-image {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.25);
  }
}

@keyframes pulso-cortometraje {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  25% {
    transform: scale(1.04) rotate(-2deg);
  }

  50% {
    transform: scale(1.06) rotate(2deg);
  }

  75% {
    transform: scale(1.04) rotate(-2deg);
  }
}

.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-size: clamp(26px, 2.7vw, 52px);
  font-weight: bold;
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  animation-name: marquee-derecha-izquierda;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ============================================================
   PREVENTA
   ============================================================ */

.preventa-marquee {
  background-color: #efe6d6;
  color: #e83c3d;
}

.preventa-marquee .marquee-content {
  animation-duration: 12s;
}

.preventa-marquee span:first-child {
  color: #e83c3d;
}

.preventa-marquee .fecha-preventa {
  color: #000000;
}

/* ============================================================
   VENTA GENERAL
   ============================================================ */

.venta-marquee {
  background-color: #263686;
}

.venta-marquee .marquee-content {
  animation-duration: 8s;
}

.venta-marquee span:first-child {
  color: #ffffff;
}

.venta-marquee span:last-child {
  color: #e43b3e;
}

/* ============================================================
   ANIMACIÓN
   ============================================================ */

@keyframes marquee-derecha-izquierda {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}

.confetti {
  position: absolute;
  top: -20px;

  width: 8px;
  height: 14px;

  background-color: #ffffff;

  opacity: 0;

  animation-name: caer-confeti;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes caer-confeti {
  0% {
    opacity: 0;
    transform: translate3d(0, -20px, 0) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--movimiento-x), 110vh, 0)
      rotate(var(--rotacion));
  }
}

/* =====================================================
   PESTAÑAS DIRECTO 2026
===================================================== */

.tabs-directo {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 30px auto 25px;
}

.tab-directo {
  border: none;
  background: #263065;
  color: #efe6d6;
  padding: 10px 22px;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-directo:hover {
  background: #e43b3e;
}

.tab-directo.active {
  background: #e43b3e;
}

.tab-directo i {
  margin-right: 5px;
}

/* =====================================================
   CONTENIDO PESTAÑAS
===================================================== */

.tab-content-directo {
  display: none;
}

.tab-content-directo.active {
  display: block;
}

/* =====================================================
   GALERÍA PUBLICACIONES
===================================================== */

.publicacion-galeria {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 35px;
  margin: 35px auto 45px;
  flex-wrap: wrap;
}

/* TARJETA */

.publicacion-galeria .gallery-image {
  width: 280px;
  text-align: center;
  cursor: pointer;
}

/* MARCO */

.publicacion-galeria .gallery-image-container {
  position: relative;
  width: 280px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  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 */

.publicacion-galeria .gallery-image-container img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

/* HOVER */

.publicacion-galeria .gallery-image:hover .gallery-image-container img {
  transform: scale(1.035);
}

/* TÍTULO */

.publicacion-galeria .gallery-image span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================================================
   MODAL GALERÍA
===================================================== */

.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;
  width: 35rem;
  max-width: 90vw;
  margin: 0 auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  background-color: #fff;
}

/* CONTENIDO */

.cover-modal .modal-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: none;
}

/* NOMBRE */

.cover-modal .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 */

.cover-modal .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
===================================================== */

.cover-modal .modal-close,
.cover-modal .modal-download,
.cover-modal .modal-prev,
.cover-modal .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 */

.cover-modal .modal-close {
  top: 20px;
  right: 25px;
  font-size: 28px;
  line-height: 1;
}

/* DESCARGAR */

.cover-modal .modal-download {
  top: 20px;
  right: 80px;
  font-size: 18px;
}

/* ANTERIOR */

.cover-modal .modal-prev {
  top: 50%;
  left: 25px;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
}

/* SIGUIENTE */

.cover-modal .modal-next {
  top: 50%;
  right: 25px;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
}

/* HOVER */

.cover-modal .modal-close:hover,
.cover-modal .modal-download:hover,
.cover-modal .modal-prev:hover,
.cover-modal .modal-next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* MOVIMIENTO FLECHAS */

.cover-modal .modal-prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.cover-modal .modal-next:hover {
  transform: translateY(-50%) translateX(3px);
}

/* OCULTAR NAVEGACIÓN */

.cover-modal .modal-prev.hidden,
.cover-modal .modal-next.hidden {
  display: none;
}

/* =====================================================
   ANIMACIÓN CAMBIO DE IMAGEN
===================================================== */

.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);
  }
}

/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 768px) {
  .publicacion-galeria {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .publicacion-galeria .gallery-image {
    width: 280px;
  }

  .tabs-directo {
    margin-top: 20px;
  }
}

@media (max-width: 600px) {
  .cover-modal {
    padding: 15px;
  }

  .cover-modal .modal-close,
  .cover-modal .modal-download,
  .cover-modal .modal-prev,
  .cover-modal .modal-next {
    width: 42px;
    height: 42px;
  }

  .cover-modal .modal-close {
    top: 12px;
    right: 12px;
  }

  .cover-modal .modal-download {
    top: 12px;
    right: 64px;
  }

  .cover-modal .modal-prev {
    left: 8px;
  }

  .cover-modal .modal-next {
    right: 8px;
  }
}

.video-grid {
  display: flex;
}
