/* 1. EL MOLDE OCULTO: Vital para que no estorbe visualmente */

#molde-programa {
  display: none !important;
}

/* 2. CONTENEDOR DEL CARRUSEL: Asegura que tenga altura */

#contenedor-programacion {
  min-height: 450px;
  height: auto;
  border: 2px solid #ffc107;
  background: rgba(0,0,0,0.6);
  overflow: hidden;
  display: block;
}

@media (max-width: 768px) {
  #contenedor-programacion {
    min-height: 400px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

.dj-foto-responsive:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.7) !important;
}

/* 4. CÁPSULA DEL DJ */

.dj-badge {
  background: #dc3545;
  color: white;
  padding: 6px 25px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 5. TEXTO DE LA RESEÑA */

.prog-resena {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  color: #e0e0e0;
  line-height: 1.3;
  font-size: 1rem;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  padding: 0 5px;
  text-align: left;
}

@media (min-width: 992px) {
  .prog-resena {
    max-width: 650px;
    padding: 0;
    margin: 0 auto;
    text-align: left;
  }
}

/* 6. BADGES DE HORARIOS */

.badge-ecu {
  background-color: #0d6efd !important;
  font-size: 0.9rem;
  padding: 10px 15px !important;
}

.badge-loc {
  background-color: #0dcaf0 !important;
  color: #000 !important;
  font-size: 0.9rem;
  padding: 10px 15px !important;
}

/* --- ESTILO DE LA FOTO DEL DJ --- */

/* 1. Regla general (Para Celulares / Pantallas pequeñas) */

.dj-foto-responsive {
  width: 240px;
  height: 240px;
  border-radius: 5%;
  object-fit: cover;
  border: 4px solid #ffc107;
  margin-bottom: 15px;
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* 2. Regla para Computadoras (Pantallas mayores a 992px) */

@media (min-width: 992px) {
  .dj-foto-responsive {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 3px solid #ffc107;
    margin-bottom: 0px;
  }
}

.foto-dj {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* Asegura que el contenedor de texto ocupe el alto del padre para poder centrar verticalmente */

.prog-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
}

/* Ajuste opcional para que el texto no se pegue demasiado al borde derecho en pantallas muy anchas */

@media (min-width: 992px) {
  .contenedor-texto-interno {
    max-width: 800px;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

/* Mantenemos el ancho del carrusel para evitar el flash que corregimos antes */

@media (max-width: 991px) {
  .carousel-item-responsive {
    flex-direction: column;
    border: 2px solid #ffc107;
    border-radius: 10px;
  }
}

.programacion-titulo {
  color: #ffc107;
}

@media (max-width: 991px) {
  .foto-dj {
    width: 280px;
    border-bottom: 2px solid #ffc107;
    margin-bottom: 20px;
  }
}

.carousel-item {
  min-height: 450px;
  height: 100%;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-items: center;
}

/* Evita que el carrusel parpadee al cambiar de programa */

.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 0.8s;
  transition-property: opacity;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* --- EFECTO DE ZOOM PARA EL MODAL DE FOTOS --- */

/* 1. Estado inicial (Cuando el modal está oculto) */

#fotoModal .modal-dialog {
  transform: scale(0.7);
  transition: transform 0.3s ease-out;
}

/* 2. Estado activo (Cuando el modal se abre) */

#fotoModal.show .modal-dialog {
  transform: scale(1);
}

/* 3. Ajuste de desvanecimiento (Fade) */

/* Bootstrap ya usa la clase .fade, pero aseguramos que sea suave */

#fotoModal.fade {
  transition: opacity 0.3s linear;
}

/* 4. Efecto extra para la imagen dentro del modal */

#fotoFull {
  transition: filter 0.3s ease;
}

/* Si quieres que al abrirse el fondo de la página se vea borroso */

body.modal-open #programacion {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

body.modal-open #chat-video {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* --- FLECHAS FUERA DEL CONTENEDOR --- */

/* Permitir que las flechas se vean fuera del límite del carrusel */

#carouselRetro {
  overflow: visible;
  margin: 0 auto;
  max-width: 950px;
}

/* Estilo para las flechas externas */

.flecha-externa {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 193, 7, 0.2);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.flecha-externa:hover {
  background-color: rgba(255, 193, 7, 0.8);
  opacity: 1;
}

/* Posición específica: Izquierda */

.carousel-control-prev.flecha-externa {
  left: -60px;
}

/* Posición específica: Derecha */

.carousel-control-next.flecha-externa {
  right: -60px;
}

/* Ajuste para celulares: Si la pantalla es pequeña, las metemos un poco */

@media (max-width: 768px) {
  #carouselRetro {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .carousel-control-prev.flecha-externa {
    left: -15px;
  }
}

@media (max-width: 768px) {
  .carousel-control-next.flecha-externa {
    right: -15px;
  }
}

