body {
	background: #080808;
	color: #fff;
	font-family: Segoe UI, sans-serif
}
.hero {
    min-height:100vh;
    height:auto;
	background: url('https://amestur-educatur.com/12CIATS/descargas/fondo.jpg') center/cover;
	display: flex;
	align-items: center;
	position: relative
}
.overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, rgba(0, 0, 0, .92), rgba(0, 0, 0, .4))
}
.hero h1 {
	font-size: 5rem;
	font-weight: 900;
	max-width: 900px
}
.glass-nav {
	background: rgba(0, 0, 0, .35);
	backdrop-filter: blur(15px)
}
#countdown {
	font-size: 2rem;
	color: #e50914;
	font-weight: bold
}
.premium-card {
	background: rgba(255, 255, 255, .05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, .1);
	transition: .4s
}
.premium-card:hover {
	transform: scale(1.05) translateY(-10px);
	box-shadow: 0 20px 40px rgba(229, 9, 20, .45)
}
.premium-card img {
	height: 260px;
	object-fit: cover
}
.timeline .item {
	padding: 15px;
	margin: 10px 0;
	background: #161616;
	border-left: 4px solid #e50914
}
.speaker {
	padding: 60px;
	text-align: center;
	background: #161616;
	border-radius: 12px
}
footer {
	background: #111
}
/* ===== HERO RESPONSIVE ===== */

.hero h1{
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 1.1;
    word-wrap: break-word;
}

.hero{
    min-height: 100vh;
    height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero .container{
    z-index: 2;
}

@media (max-width: 992px){

    .hero h1{
        font-size: 3rem;
    }

}

@media (max-width: 768px){

    .hero{
        text-align: center;
        padding-top: 120px;
    }

    .hero h1{
        font-size: 2.2rem;
        max-width: 100%;
    }

    .hero p{
        font-size: 1rem;
    }

    #countdown{
        font-size: 1.3rem;
    }

    .hero .btn{
        width: 100%;
        margin-bottom: 10px;
    }

}

@media (max-width: 576px){

    .hero h1{
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero p{
        font-size: .9rem;
    }

    #countdown{
        font-size: 1.1rem;
    }
/* =========================================
   NAVBAR PREMIUM
========================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

.glass-nav {
    z-index: 1050;
}

.glass-nav .nav-link {
    color: rgba(255,255,255,.92) !important;
    font-weight: 500;
    transition: all .25s ease;
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link:focus {
    color: #e50914 !important;
}

/* Dropdown */

.glass-nav .dropdown-menu {
    margin-top: 10px;
    min-width: 260px;

    background: rgba(12,12,12,.97);

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.55);

    backdrop-filter: blur(18px);
}

.glass-nav .dropdown-item {
    color: rgba(255,255,255,.9);

    padding: 12px 16px;

    white-space: normal;

    transition:
        background .25s ease,
        color .25s ease,
        padding-left .25s ease;
}

.glass-nav .dropdown-item:hover,
.glass-nav .dropdown-item:focus {
    color: #fff;

    background: rgba(229,9,20,.20);

    padding-left: 21px;
}

.glass-nav .dropdown-divider {
    border-color: rgba(255,255,255,.12);
}

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

@media (max-width: 991.98px) {

    .glass-nav .navbar-collapse {
        margin-top: 12px;
        padding: 12px;

        background: rgba(8,8,8,.98);

        border: 1px solid rgba(255,255,255,.10);
        border-radius: 14px;

        box-shadow:
            0 20px 50px rgba(0,0,0,.55);
    }

    .glass-nav .nav-link {
        padding: 11px 14px !important;
        border-radius: 8px;
    }

    .glass-nav .nav-link:hover {
        background: rgba(255,255,255,.05);
    }

    .glass-nav .dropdown-menu {
        margin-top: 0;

        min-width: 100%;

        border: none;

        box-shadow: none;

        background: rgba(255,255,255,.035);
    }

    .glass-nav .dropdown-item {
        font-size: .94rem;
        padding: 10px 14px;
    }
}

/* =========================================
   MÓVILES PEQUEÑOS
========================================= */

@media (max-width: 576px) {

    .glass-nav .navbar-brand {
        font-size: 1rem;
    }

    .glass-nav .navbar-toggler {
        padding: 5px 8px;
    }

    .glass-nav .dropdown-menu {
        width: 100%;
    }

    .glass-nav .dropdown-item {
        font-size: .9rem;
    }
}
}
/* =========================================
   TARJETAS HERMOSAS Y MODERNAS (GLASS)
========================================= */

.glass-card {
  background: rgba(22, 22, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.7), 
              0 0 25px rgba(229, 9, 20, 0.25);
}

/* Imagen y Wrapper */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.glass-card:hover .card-img {
  transform: scale(1.1);
}

/* Badges flotantes sobre la imagen */
.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Overlay e Ícono de Play */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.glass-card:hover .card-overlay {
  opacity: 1;
}

.btn-play {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #e50914;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.8);
  transform: scale(0.7);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover .btn-play {
  transform: scale(1);
}

.btn-play:hover {
  background: #ff121d;
  transform: scale(1.1) !important;
}

/* Contenido de la tarjeta */
.card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.match-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: #46d369;
}

.quality-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 1px 6px;
  border-radius: 3px;
}

.card-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-description {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.83rem;
  line-height: 1.4;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pie de tarjeta */
.card-footer-info {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}

/* Animación de parpadeo para eventos EN VIVO */
.pulse-badge {
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(25, 135, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

.hover-white:hover {
  color: #fff !important;
}

/* =========================================
   VENTANA MODAL ESTILO NETFLIX / GLASS
========================================= */

/* Fondo oscurecido con Blur */
.modal-backdrop.show {
  opacity: 0.85;
  backdrop-filter: blur(8px);
}

/* Contenedor principal de la Modal */
.glass-modal {
  background: rgba(18, 18, 18, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 
              0 0 40px rgba(229, 9, 20, 0.15) !important;
  backdrop-filter: blur(20px);
}

/* Botón de cierre */
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  opacity: 1;
  background-color: #e50914;
  transform: rotate(90deg);
}

/* Banner de Cabecera de la Modal */
.modal-hero-wrapper {
  position: relative;
  height: 380px;
  width: 100%;
  overflow: hidden;
}

.modal-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top, 
    rgba(18, 18, 18, 1) 0%, 
    rgba(18, 18, 18, 0.4) 50%, 
    rgba(0, 0, 0, 0.7) 100%
  );
}

.modal-hero-content {
  position: absolute;
  bottom: 25px;
  left: 30px;
  right: 30px;
  z-index: 2;
}

.modal-title-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #ff0000;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

/* Botones circulares con icono */
.modal-icon-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.25s ease;
}

.modal-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #fff;
  transform: scale(1.1);
}

/* Descripción de la modal */
.modal-description {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

/* Lista de Episodios */
.episode-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}

.episode-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(6px);
}

.episode-img {
  width: 120px;
  height: 68px;
  object-fit: cover;
  flex-shrink: 0;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Desactiva desbordamientos en la modal fija */
#ubicacionModal .modal-content {
  overflow: hidden !important;
}

#ubicacionModal .modal-body {
  overflow: hidden !important;
}

/* Integración de color y filtro oscuro en Google Maps */
.map-container iframe {
  filter: grayscale(20%) contrast(1.1) invert(90%) hue-rotate(180deg);
  border-radius: 12px;
}

.icon-square {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =========================================
   ESTILOS MODAL HERO + CARTEL ABAJO
========================================= */

/* Control del Banner Hero Superior Reducido */
.modal-hero-sm {
  height: 200px !important;
}

/* Contenedor e Imagen del Cartel ubicado ABAJO */
.poster-bottom-wrapper {
  max-width: 100%;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.poster-bottom-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
/* =========================================
   ESTILOS MODAL PROGRAMA DE ACTIVIDADES
========================================= */

/* Desactiva scroll en la modal */
#programaModal .modal-content,
#programaModal .modal-body {
  overflow: hidden !important;
}

/* Ajustes para el cronograma */
.program-schedule-wrapper {
  backdrop-filter: blur(5px);
}

.program-schedule-wrapper .row {
  transition: background-color 0.2s ease;
}

.program-schedule-wrapper .row:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Reducción de la imagen inferior para encajar exacto */
#programaModal .poster-bottom-wrapper {
  max-width: 100%;
  max-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

#programaModal .poster-bottom-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.poster-bottom-wrapper:hover .poster-bottom-img {
  transform: scale(1.03);
}

/* =========================================
   ESTILOS GRILLA DE PONENTES (MANTENIENDO FORMA ORIGINAL)
========================================= */

/* Contenedor o marco con fondo de cristal oscuro */
.speaker-frame-card {
  position: relative;
  width: 100%;
  height: 220px; /* Altura fija uniforme para el contenedor */
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

/* Imagen en su proporción nativa sin estirar ni recortar */
.speaker-original-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* Mantiene la relación de aspecto exacta */
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: grayscale(15%) brightness(0.95);
}

/* Capa de brillo o sombra */
.speaker-square-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* --- EFECTOS HOVER (NEÓN Y ZOOM SUAVE) --- */
.speaker-frame-card:hover {
  transform: translateY(-5px);
  border-color: #e50914;
  box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4), 0 0 15px rgba(229, 9, 20, 0.5);
  background: rgba(0, 0, 0, 0.6);
}

.speaker-frame-card:hover .speaker-original-img {
  transform: scale(1.06);
  filter: grayscale(0%) brightness(1.05);
}

.speaker-frame-card:hover .speaker-square-overlay {
  opacity: 0.2;
}
/* =========================================
   ADAPTACIÓN MÓVIL (1 COLUMNA)
========================================= */

/* Regla para celulares (pantallas menores a 576px) */
@media (max-width: 575.98px) {
  #ponentesModal .modal-content {
    max-height: 90vh;
    overflow-y: auto !important; /* Permite scroll si la pantalla es muy corta */
  }

  #ponentesModal .modal-body {
    overflow: visible !important;
  }

  /* Ajuste de altura para celulares */
  .speaker-frame-card {
    height: 260px; /* Le da más presencia a la imagen en vista móvil */
  }
}
/* =========================================
   ESTILOS REPRODUCTOR VIDEO VERTICAL (9:16)
========================================= */

/* Relación de aspecto vertical 9:16 para Bootstrap */
.ratio-9x16 {
  --bs-aspect-ratio: 177.77%; /* (16 / 9) * 100 */
}

/* Limitación de ancho centrado para que no se desborde */
.video-vertical-wrapper {
  max-width: 280px; /* Ancho ideal en escritorio/tablet */
  background-color: #000;
}

.video-vertical-wrapper video {
  outline: none;
  background-color: #000;
}

/* Adaptación para pantallas pequeñas */
@media (max-width: 575.98px) {
  .video-vertical-wrapper {
    max-width: 240px; /* Ajuste más compacto para celulares */
  }
}

/* =========================================
   ESTILOS MODAL LÍNEAS DE TRANSPORTE
========================================= */

/* Desactiva scroll en pantallas grandes */
#transporteModal .modal-content,
#transporteModal .modal-body {
  overflow: hidden !important;
}

/* Tarjetas informativas de transporte */
.transport-card {
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transport-card:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(229, 9, 20, 0.5) !important;
}

/* Tarjeta de descarga de PDF */
.transport-download-card {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.transport-download-card:hover {
  transform: translateY(-2px);
  background-color: rgba(229, 9, 20, 0.25) !important;
}

/* Adaptación para dispositivos móviles */
@media (max-width: 575.98px) {
  #transporteModal .modal-content {
    max-height: 90vh;
    overflow-y: auto !important; /* Permite scroll vertical en celulares */
  }

  #transporteModal .modal-body {
    overflow: visible !important;
  }
}
/* =========================================
   ESTILOS BOTÓN FLOTANTE "ACERCA DE"
========================================= */
.btn-flotante-acerca {
  width: 55px;
  height: 55px;
  z-index: 1080; /* Asegura que quede por encima del contenido y navbar */
  background-color: #e50914 !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn-flotante-acerca:hover {
  transform: scale(1.1);
  background-color: #ff0f1a !important;
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.8) !important;
}

/* Modal solo imagen responsiva */
#acercaDeModal .modal-content {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

#acercaDeModal .img-fluid {
  max-height: 80vh; /* Evita que la imagen sobrepase la pantalla verticalmente */
}
/* Indicador interactivo para la imagen de WhatsApp */
.img-whatsapp-link {
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.img-whatsapp-link:hover img {
  transform: scale(1.01);
  filter: brightness(1.05);
}