@view-transition {
 navigation: auto;
}

::view-transition-group(*){
   animation-duration: 0.5s;
}

::view-transition-old(root) {
  animation: slide-out-to-left 0.5s ease forwards;
}

@keyframes slide-out-to-left {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-100%);
	}
}


/* Estilo personalizado para la barra de desplazamiento */
::-webkit-scrollbar {
    width: 8px; /* Ancho de la barra de desplazamiento */
    height: 8px; 
}

::-webkit-scrollbar-track {
    background: rgba(74, 74, 74, 0); /* Color de fondo de la pista de desplazamiento */
    border-radius: 10px; /* Esquinas redondeadas */
}

::-webkit-scrollbar-thumb {
    background: #555; /* Color del "pulgar" de la barra de desplazamiento */
    border-radius: 10px; /* Esquinas redondeadas */
}

::-webkit-scrollbar-thumb:hover {
    background: #ccc; /* Cambia el color del "pulgar" al pasar el mouse sobre él */
}

/* Cambio de color de fondo del body */
body {
	background-color: #282828; /* Color de fondo oscuro para el cuerpo */
	color: #fff; /* Color de texto blanco para el cuerpo */
	font-family: "Arial", sans-serif; /* Cambiar "Arial" por la fuente que desees utilizar */
	margin: 0px;
	padding: 0px;
}

body.popup-open {
  overflow: hidden;
}

header {
    /*background-color: rgba(0, 0, 0, 0.8);*/
    backdrop-filter: blur(5px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7));
    color: #fff;
    padding: 10px;
    text-align: center;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0; /* Agrega esto para evitar que el encabezado sea más ancho que la pantalla */
    right: 0; /* Establece el ancho igual al de la pantalla */
    z-index: 10;
    display: block;
    justify-content: space-between;
    align-items: center;
    min-height: 50px;
}


/* Estilo del logo */
.logo {
    flex: 1; /* Ocupa espacio flexible para centrar el logo */
    text-align: center; /* Alinea el texto al centro */
}

.logo img{
    width: 200px;
}
#search-icon-movil{
    display: none;
}

@media (max-width: 1025px) {
    .logo {
	display: none;
    }
    #search-icon-movil{
	display: flex;
	font-size: 20px;
    }
}

/* Estilo busqueda */

.search-container {
    display: flex;
    align-items: center;
    border-radius: 5px;
    border: 1px solid white;
    background-color: rgba(55, 55, 55,0.5);
    padding: 5px;
    width: 30%;
}

@media (max-width: 1025px) {
    .search-container {
        display: none;
    }
}


#search-icon, #clear-icon {
    width: 24px;
    height: 24px;
    fill: white;
    text-align: center;
    line-height: 24px;
}

#search-icon{
    font-size: 22px;
}


#search-input {
    flex: 1;
    margin: 0 10px;
    background-color: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 16px; /* Aumentar el tamaño de la fuente */
    height: 30px; /* Aumentar la altura de la caja */
    font-weight: bold; 
	
}

.container {
  flex-direction: column;
  margin-top: 70px;
  display: flex;
  justify-content: center; /* Alinea horizontalmente */
}


/* Estilo flat design para el encabezado */
.group-header {
    background-color: #333;  /* Color de fondo oscuro para los encabezados de grupo */
    border-radius: 5px;
    margin: 0px;
    color: #fff; /* Color de texto blanco */
    display: flex;
    align-items: center;
    max-width: 100%;
    justify-content: flex-start; /* Alinea los elementos a la izquierda */
    padding: 0px;
    min-width: calc(100% - 20px);
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
}

.group-header img {
	width: 24px !important;
	/*height: 24px;*/
	margin: 5px;
	/* margin-right: 10px;*/
}

.group-title {
  font-size: 20px;
  white-space: nowrap;        /* evita que el texto haga salto de línea */
  overflow: hidden;           /* oculta lo que sobrepasa el ancho */
  text-overflow: ellipsis;    /* agrega los tres puntos (…) al final */
  max-width: 100%;            /* asegura que no supere el contenedor padre */
  flex-shrink: 1;             /* si está dentro de un flex, permite que se encoja */
}


.group-left {
    display: flex;
    align-items: center;
    /*gap: 10px;*/
}

.group-menu-wrapper {
    margin-left: auto;
    margin-right: 10px;
}


.group-menu {
    cursor: pointer;
    font-size: 25px;
    background-color: rgba(10, 10,10, 0.2);
    width: 20px;
    height: 20px;
    padding: 10px;
    border-radius: 50%;
    display: flex;               /* 🔥 */
    align-items: center;         /* centra vertical */
    justify-content: center;     /* centra horizontal */
}



.group-menu:hover {
    color: #007bff;
}


.group-menu-wrapper {
    position: relative;
}

.group-dropdown {
    position: absolute;
    right: 0;
    top: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
    display: none;
    z-index: 9999;
    overflow: hidden;
    padding: 5px;
    
    background-color: rgba(38, 38, 38, 0.95);
    border-radius: 5px;
    border: 1px solid #333;
    min-width: 160px;
}

.group-dropdown .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 14px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    border-radius: 5px;
}

.group-dropdown .menu-item:hover {
    background-color: #555;
}

.group-dropdown i {
    width: 18px;
    text-align: center;
}

/* Para teléfonos (pantallas más pequeñas) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    grid-gap: 20px;
    padding: 15px;

}

@media (max-width: 1025px) {

    .group-title {
    	margin: 6px;
    }
    .group-menu {
        padding: 5px;
    }
    
    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); 
        grid-gap: 10px;
        padding: 10px;

    }
}


.grid-item {
	text-align: center;
	transition: transform 0.3s ease-in-out, border 0.3s ease-in-out; /* Agrega transición para el borde */
	position: relative; /* Establece el elemento padre como posición relativa */
	cursor: pointer;
}

.grid-item:hover, .card:hover{
	transform: scale(1.1);
	.img-play {opacity: 1;}
	.img-cover {border: 3px solid #fff;}
	.img-Info {opacity: 1;}
}

a {
	text-decoration: none; /* Elimina el subrayado */
	color: white; /* Establece el color del texto en blanco */
}

/*
.img-cover {
	max-width: 100%;
	height: auto;
	border: 3px solid transparent; 
	border-radius: 10px;
}
*/



.img-cover {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid transparent;

    /* Degradado vertical suave tipo shimmer */
    background: linear-gradient(
        180deg,
        #1a1a1a 0%,
        #2a2a2a 25%,
        #3a3a3a 50%,
        #2a2a2a 75%,
        #1a1a1a 100%
    );
    background-size: 100% 300%;
    animation: shimmer-vertical 6s infinite ease-in-out;
}

@keyframes shimmer-vertical {
    0% {
        background-position: 0% 100%;
    }
    50% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

.img-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 90px;
	height: 90px;
	transform: translate(-50%, -90%);
	opacity: 0;
	transition: opacity 0.3s;
	cursor: pointer;
}

.img-Info {
	opacity: 0;
	position: absolute;
	top: 10px;
	right: 10px;
	border-radius: 12px;
	width: 24px;
	height: 24px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); 
	transition: opacity 0.3s;
	transition: box-shadow 0.3s; 
}

.img-Info:hover {
	box-shadow: 0 0 20px rgba(0, 0, 255, 0.9); /* Sombra más grande al 100% */
}

.carousel h2, .grid-item h2 {
    margin: 0px;
    font-size: 15px;
    font-weight: normal;
    
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2; /* Número de líneas a mostrar */
    line-clamp: 2; /* Número de líneas a mostrar (para navegadores futuros) */
    color: #ddd;
}


}
	
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content-filtros {
  background-color: rgba(51, 51, 51, 0.8); /* Fondo con un 80% de opacidad para hacerlo transparente */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  max-width: 75%;
  max-height: 75vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px); /* Puedes ajustar el valor para controlar la cantidad de desenfoque */
}

.primer-div {
  flex: 1;
}

.segundo-div {
    /*height: 32px;*/
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column; /* Alineación vertical */
    align-items: center; /* Centra verticalmente */Centra verticalmente */
}

.tapa-pelicula {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */Centra verticalmente */
  overflow: hidden; /* Esto recortará el contenido que se desborde */
}

.tapa-pelicula img {
  height: 400px;
  border-radius: 5px;
}


.etiqueta {
  color: #8da0bc; /* Color para las etiquetas, por ejemplo, azul brillante */
  font-weight: bold; /* Puedes aplicar negrita si lo deseas */
  margin-right: 5px; /* Espacio entre la etiqueta y el contenido */
}

#sAño a:hover, #sDireccion a:hover, #sReparto a:hover, #sGenero a:hover {
  text-decoration: underline;
  /* Puedes personalizar otros estilos aquí, como color, tamaño de fuente, etc. */
}

.botones {
  display: flex;
  flex-wrap: wrap; /* Permite que los elementos se envuelvan en nuevas líneas si no hay suficiente espacio horizontal */
}

.boton {
  box-sizing: border-box; /* Evita que el padding afecte el ancho total del botón */
  flex: 1 0 calc(25% - 10px); /* Ancho del 25%, menos el margen entre los botones */
  margin: 5px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  height: 32px; /* Altura fija de 32px */
  color: #333;
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
}

.boton img {
  margin-right: 5px; /* Ajusta el margen según sea necesario */
  width: 16px;
  height: 12px;
}

.boton i {
  margin-right: 5px; /* Ajusta el margen según sea necesario */
}

.boton:hover {
  background-color: #007bff; /* Cambia el color de fondo al pasar el mouse */
  color: #fff; /* Cambia el color del texto al pasar el mouse */
}

/* Estilo para botones seleccionados */
.boton-seleccionado {
  background-color: #007bff; /* Color de fondo seleccionado */
  color: #fff; /* Color del texto seleccionado */
}


.cerrar-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  font-size: 36px;
  color: #888;
  z-index: 1;
}

.cerrar-modal:hover {
  color: #fff;
}



/* Estilo para la información de la película y el video */
.pelicula-info {
  display: flex;
  flex-wrap: wrap; 
  grid-gap: 20px;
  max-height: 10%;
  overflow: hidden; 
  margin: 20px;
  margin-top: 0px;   /* probar */
}

.informacion {
  flex: 2; /* Toma dos tercios del ancho disponible */
  color: #fff;
}

.informacion h2 {
  color: #3498DB;
  margin: 0;
}

.video-trailer{
  justify-content: center;
  align-items: center;	
}

.mi-iframe {
  width: 650px; 
  height: 365px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}


.pagination {
    float: left;
    width: 100%;
    font-size: 14px;
}

.pagination a,.pagination span {
    padding: 10.5px 20px;
    border: 1px solid;
    margin: 5px 5px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    float: left;
}



.current {
    background: #000;
    color: #666;
}

/* CARRUCEL */


.wrapper {
  /*background: #f00;*/
  width: calc(100% - 50px);
  position: relative;

}

@media (max-width: 1025px) {
  .wrapper {
    width: calc(100% - 10px);
    overflow: hidden;
  }
}

.wrapper i {
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background: rgba(0,0,0,0.4); /*#fff;*/
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-50%);
  transition: transform 0.1s linear;
  color:#fff;  /* #3498DB;*/
}



.wrapper i:hover {
  background: rgba(0,0,0,0.6);
}
.wrapper i:active{
  transform: translateY(-50%) scale(0.85);
}
.wrapper i:first-child{
  left: -22px;
  z-index: 1;
}
.wrapper i:last-child{
  right: -22px;
  z-index: 1;
}
.carousel{
  display: grid;
  grid-auto-flow: column;
  /* grid-auto-columns: calc((100% / 3) - 12px); */
  grid-auto-columns: repeat(auto-fill, minmax(150px, 1fr)); 
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding:15px;
}

@media (max-width: 1025px) {
  .carousel{
    gap: 10px;
    padding: 10px;
  }
}



.carousel::-webkit-scrollbar {
  display: none;
}
.carousel.no-transition {
  scroll-behavior: auto;
}
/*
.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel.dragging .card #a .img-cover .img-play .img-info {
  cursor: grab;
  user-select: none;
}

.img-cover,
.img-play,
.img-Info {
    user-drag: none;
    user-select: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

a {
    user-drag: none;
    user-select: none;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.card img.img-cover {
  user-drag: none;
  user-select: none;
}
*/

.card {
	scroll-snap-align: start;
	list-style: none; 
	cursor: pointer;
	flex-direction: column; 
	text-align: center;
	transition: transform 0.3s ease-in-out, border 0.3s ease-in-out; /* Agrega transición para el borde */
	position: relative; /* Establece el elemento padre como posición relativa */
	width:150px;
}

@media (max-width: 1025px) {
    .card {
    	width:120px;
    }
}

.container-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    overflow: hidden; /* evita que muestre todo estirado */
}


/*
.container-movie-info {
  flex-direction: column;
  display: flex;
  justify-content: center;
  align-items: center; 
}
*/

.Info-content{
   padding: 20px;
   max-width: 1100px;
}
/*
@media (max-width: 1025px) {
    .container-movie-info {
        display: block;
    }
    .Info-content{
    padding: 10px;
    }
}

*/


        .iframe-comentarios {
            /*position: absolute;*/
            /* top: 200%; */
            width: 100%;
            height: auto;
            /* padding: 20px; Ajusta el espacio según sea necesario */
            /*background-color: #f0f0f0; */
        }

/*
.combo-servidores {
  background-color: #333; 
  border-radius: 5px;
  border: 1px solid #444;
  padding: 10px;
  margin: 5px;
  cursor: pointer;
}
*/

.combo-servidores {
  display: inline-flex;          
  align-items: center;
  gap: 6px;
  margin: 5px;
  padding: 6px 10px;
  border-radius: 6px;            
  cursor: pointer;               
  transition: background 0.3s ease, color 0.3s ease;
  border: 1px solid #888;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
 
  
}


.combo-servidores img{
  width: 16px;
  margin-right: 5px;
}

.combo-servidores:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.list-combo {
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 10;
    border-radius: 5px; 
    border: 1px solid #444;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    font-family: "Arial";
    background-color: rgba(33, 33, 33, 0.7);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 10px;
    display: none;

    max-height: 250px; /* máximo alto */
    overflow-y: auto;  /* scroll vertical si excede el max-height */
}


.server-item{
  padding: 10px;
  cursor: pointer;
  border-radius: 5px; 
}

.server-item img{
  width: 14px;
  margin-right: 10px;
}

.server-item:hover {
  background-color: #555; 
}

.Image {
    z-index: -1;
}

.Image img {
    -o-object-position: 50% 50% !important;
    object-position: 50% 50% !important;
}
.Image img {
    opacity: .5;
}

.Image, .Image img {
    bottom: 0;
    height: 100%;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 50% 15%;
    object-position: 50% 15%;
    position: absolute;
    top: 0;
    width: 100%;
}

.gradient {
    background: linear-gradient(to bottom, transparent, #282828);
    bottom: 0;
    height: 100%;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 50% 15%;
    object-position: 50% 15%;
    position: absolute;
    top: 0;
    width: 100%;
}

/*---------DESCARGA---------------*/

.row-download{

    display: flex;
    justify-content: space-evenly;
    
    padding: 5px 0;
    transition: all .1s;
    border-bottom: 1px solid #444; /* Color y estilo de la línea */
    cursor: pointer;
    
}

.row-header-download{
    background-color: rgba(100, 100, 100, 0.4);
    display: flex;
    justify-content: space-evenly;
    border-radius: 5px;
    padding: 5px 0;
   /* border: 1px solid #444; */
    margin: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Sombra del div */
}

.row-header-download span:nth-child(3),
.row-download span:nth-child(3) {
  display: inline-flex;
  align-items: center;   /* centra vertical */
  justify-content: center; /* centra horizontal */
  height: 40px;      
}


.row-download:hover{
    background-color: #000; 
    /*text-decoration: underline;*/
   
}
.row-header-download span,
.row-download span{
    min-width: 150px;
    padding: 2px 6px;
    align-items: center;
    display: flex;
}

.row-header-download img,
.row-download img {
  width: 16px;
  Height: 16px;
  margin: auto 5px;
}

.row-download.activo {
  background: rgba(52, 152, 219, 0.15); /* azul muy suave de fondo */
  border: 2px solid #3498DB;           /* borde azul */
  border-radius: 6px;
}

.box-download{
   border-radius: 5px;
   border: 1px solid rgba(200, 200, 200, 0.1);
   background-color: #333; 
   height: 300px; /* Altura máxima del contenedor */
   max-height: 300px; /* Altura máxima del contenedor */
   overflow-y: auto; /* Mostrar barra de desplazamiento vertical si es necesario */
   min-width: 300px;
}

.popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* Color semitransparente */
  z-index: 9999;
  display: none;
}

.popup-download {
    background-color: rgba(200, 200, 200, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    padding: 20px;
    position: fixed; /* Cambiado a fixed para centrarlo en la pantalla */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    border: 1px solid #444;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 760px) {
      .popup-download {
        font-size: 12px;  
      }

    .row-header-download span,
    .row-download span{
        min-width: 70px;
        padding: 2px 3px;
        
    }
    
    .row-header-download span:nth-child(1),
    .row-download span:nth-child(1) {
      min-width: 90px; /* o lo que quieras */
    }

    .row-header-download span:nth-child(2),
    .row-download span:nth-child(2) {
      min-width: 50px; /* o lo que quieras */
    }
    
    .popup-download {
        padding: 10px;
    }

}


.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px; /* Ancho de la cruz */
  height: 30px; /* Altura de la cruz */
  cursor: pointer; /* Cambia el cursor al pasar sobre la cruz */
}

.close::before,
.close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  height: 2px; /* Grosor de las líneas */
  background-color: white; /* Color de las líneas */
  transform-origin: center;

}

.close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.fecha{
  font-family: "Arial", sans-serif; /* Cambiar "Arial" por la fuente que desees utilizar */
  border-radius: 10px;
  background-color: rgb(0, 9, 66); 
  position: absolute;
  color: rgb(255, 255, 255);
  top: 10px;
  right: 5px;
  font-size: 10px;
  font-weight: bold;
  padding: 4px;
}


.seriesTag{
  font-family: "Arial", sans-serif; /* Cambiar "Arial" por la fuente que desees utilizar */
  border-radius: 10px;
  background-color: #EAB500; 
  position: absolute;
  color: #000;
  top: 10px;
  left: 10px;
  font-size: 10px;
  font-weight: bold;
  padding: 4px;
}

.seriesTag.centered {
  left: 50%; /* Centrado horizontal */
  transform: translateX(-50%); /* Ajuste para que el div se centre completamente */
}

.calidad {
  font-family: "Arial", sans-serif; /* Cambiar "Arial" por la fuente que desees utilizar */
  border-radius: 10px;
  background-color: #EAB500; 
  position: absolute;
  color: #000;
  top: 10px;
  right: 5px;
  font-size: 9px;
  font-weight: bold;
  padding: 3px;
}

.calidad-fhd {
  font-family: "Arial", sans-serif; /* Cambiar "Arial" por la fuente que desees utilizar */
  border-radius: 10px;
  background-color: #333; 
  color: #ddd;
  font-size: 12px;
  font-weight: bold;
  padding: 4px;
  margin: 5px;
}

.calidad3D {
  font-family: "Arial", sans-serif; /* Cambiar "Arial" por la fuente que desees utilizar */
  border-radius: 10px;
  background-color: #fff; 
  position: absolute;
  color: #00f;
  top: 10px;
  right: 5px;
  font-size: 9px;
  font-weight: bold;
  padding: 3px;
}

.inTop {
  font-family: "Arial", sans-serif;
  background-color: #ff0000;
  position: absolute;
  color: #fff;
  top: 3px;
  left: 3px;
  height: 20px; /* Aumenté un poco para centrar mejor */
  width: 35px;
  font-size: 9px;
  font-weight: bold;
  padding: 0; /* Evitamos que el padding desajuste el centrado */
  border-radius: 7px 0 7px 0; /* Solo redondea la esquina superior izquierda */
  display: flex; /* Para centrar el texto */
  align-items: center; /* Centrado vertical */
  justify-content: center; /* Centrado horizontal */
}



.carousel-actores {
    display: flex;
    overflow-x: auto; /* Mostrar scroll horizontal */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Propiedad para mejorar el scroll en dispositivos iOS */
    width: 100%; /* Ocupar todo el ancho disponible */
}
.carousel-container{
   display: flex;
}

.carousel-actores-item {
    margin-right: 10px;
    width:100px;
}


.carousel-actores-item img {
    width: 100px; /* La imagen no será más ancha que su contenedor */
    height: auto; /* Altura automática para mantener la proporción */
}

.movilMenuContainer{
    width: 100%;
    overflow: hidden;
    margin: 0px;
    display: none;
}

@media (max-width: 760px) {

  .movilMenuContainer{
    display: block;
  }
  #MnuCategorias{
    display: none;
  }

/*  .container {
    margin-top: 110px;
  }*/
}

  .slider {
    display: flex;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 10px;
    /*background-color: #000;*/
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow-x: auto; /* Fallback para navegadores no compatibles con scroll-snap-type */
    -ms-overflow-style: none; /* Oculta la barra de desplazamiento en Internet Explorer */
    scrollbar-width: none; /* Oculta la barra de desplazamiento en Firefox */
  }

  .slider::-webkit-scrollbar {
    display: none; /* Oculta la barra de desplazamiento en WebKit (Chrome, Safari, etc.) */
  }

  .itemGenero {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: normal; /* Fuente normal */
    color: #ffffff; /* Color de fuente blanco */
    border-radius: 50px; /* Borde super redondeado */
    text-align: center;
    white-space: nowrap;
    border: 1px solid transparent; /* Borde transparente inicial */
    transition: all 0.3s ease; /* Transición suave para el efecto de hover */
    border-color: #777; /* Borde blanco al hacer hover */
    padding: 5px;
  }

  .itemGenero:hover {
    /*background-color: #000000; */
  }

  .itemGenero a {
    text-decoration: none; /* Quita el subrayado del enlace */
    color: inherit; /* Hereda el color de fuente del elemento .item */
    display: block; /* Hace que el enlace ocupe todo el espacio del .item */
    height: 100%; /* Ajusta la altura para que el enlace cubra todo el .item */
    width: 100%; /* Ajusta el ancho para que el enlace cubra todo el .item */
    padding: 0; /* Quita cualquier padding */
    border-radius: inherit; /* Hereda el borde redondeado del .item */
    background-color: transparent; /* Fondo transparente */
    text-align: center; /* Centra el texto dentro del enlace */
  }

 .topHeader {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cartelera {
    position: relative;
    width: 100%;
    top: -20px;
    height: 90vh;
    overflow: hidden;
    /*margin-bottom: 20px;*/
}

.cartelera .cartelera-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.cartelera .cartelera-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 3s ease, transform 3s ease;
}

.cartelera .cartelera-item.active {
    opacity: 1;
    /*transform: translateY(80px);*/
}

.cartelera .cartelera-item .cartelera-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*object-position: top;  Inicia mostrando la parte superior de la imagen */
    transition: object-position 6s ease; /* Transición suave para el movimiento */
}

.cartelera .cartelera-item.active .cartelera-bg {
    object-position: top; /* Mueve la posición de la imagen para mostrar la parte inferior */
}

@media (max-width: 760px) {
    .cartelera .cartelera-item .cartelera-bg {
        object-position: 40%;  
    }

    .cartelera .cartelera-item.active .cartelera-bg {
        object-position: 60%; 
    }
}

.cartelera-item.active {
    z-index: 1; /* Ajusta el z-index para el elemento activo */
}

.cartelera-item:not(.active) {
    z-index: 0; /* Asegura que los elementos no activos estén detrás */
}


.cartelera .cartelera-caption {
    position: absolute;
    bottom: 20px;
    left: 45px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    max-width: 30%; 
    max-height: 90%;
}

@media (max-width: 760px) {
  .cartelera .cartelera-caption {
    max-width: 80%; 
    max-height: 80%;
    left: 10px;
  }
}

.cartelera .cartelera-caption h1, .cartelera .cartelera-caption p, button {
    margin: 7px;
}

.cartelera .cartelera-caption button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.cartelera-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    height: 70px; 
    width: auto;
    z-index: 20;
    pointer-events: none;
}

@media (max-width: 760px) {
    .cartelera-logo {
        height: 55px;
        top: 40px;
        left: 20px;
        max-width: 70%;
    }
}


.puntuacion {
    display: inline-block;
    font-size: 14px; /* Tamaño de las estrellas */
    margin:5px;
    padding: 0px;
    color: yellow;
}

.puntuacion .fa {
    color: yellow; /* Color de las estrellas llenas */
}

@keyframes pulseAndColor {
    0% {
        transform: scale(1);
        color: #ffc520; /* Color inicial: blanco */
    }
    50% {
        transform: scale(1.1);
        color: #ffa500; /* Color intermedio: naranja */
    }
    100% {
        transform: scale(1);
        color: #ffc520; /* Regresa al color inicial: blanco */
    }
}

.bookmark-icon {
    cursor: pointer; 
    margin: 0;
    padding: 0;
    margin-right: 10px; 
    font-size: 1.2em; 
    animation: pulseAndColor 2s infinite; /* Aplica la animación combinada */
}

.flex-container {
    display: flex;           /* Aplica flexbox para alinear en la misma fila */
    align-items: center;      /* Alinea verticalmente en el centro */
    margin: 0;
    padding: 0;
}


    /* Estilo para el contenedor que cubre toda la pantalla */
    #pantalla-inicio {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: black; /* Fondo negro */
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    #pantalla-inicio video {
        width: 400px; /*400*/
        height: 400px;  /*400*/
        background-color: black; 
    }
   

    /* Ocultar el contenedor cuando desaparece */
    .oculto {
        animation: fadeOut 1.5s forwards;
    }

    @keyframes fadeOut {
        from {
            opacity: 1;
        }
        to {
            opacity: 0;
            visibility: hidden;
        }
    }


    /* Estilo general para el cargador */
    #loader {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 200px;
      height: 200px;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      border-radius: 50%; /* Opcional: forma circular */
    }
    
    /* Partículas */
    .particle {
      position: absolute;
      width: 15px;
      height: 15px;
      background-color: #3498DB; /* Color ajustado */
      border-radius: 50%;
      opacity: 0.8;
      animation: float 2.5s infinite ease-in-out;
    }
    
    /* Diferentes animaciones para cada partícula */
    .particle:nth-child(1) { animation-delay: 0s; }
    .particle:nth-child(2) { animation-delay: 0.5s; }
    .particle:nth-child(3) { animation-delay: 1s; }
    .particle:nth-child(4) { animation-delay: 1.5s; }
    .particle:nth-child(5) { animation-delay: 2s; }
    
    /* Animación de flotación */
    @keyframes float {
      0% {
        transform: translate(0, 0) scale(1);
      }
      25% {
        transform: translate(30px, -40px) scale(0.9);
      }
      50% {
        transform: translate(-30px, 30px) scale(1.2);
      }
      75% {
        transform: translate(40px, 20px) scale(1);
      }
      100% {
        transform: translate(0, 0) scale(1);
      }
    }

    
    nav {
        font-size: 15px;
    }
    
    
    ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
    ul > li {
        display: inline-block; /* Cambiar a bloque en línea para un diseño horizontal */
        position: relative;
    }
    
    nav > ul {
        display: flex; /* Flexbox para que los elementos principales se alineen horizontalmente */
        text-align: left;
    }
    
    nav img {
        width: 16px;
        margin: 5px;
    }
    

    li > a {
        display: block;
        padding: 10px 15px;
        margin:2px;
        text-decoration: none;
        color: #fff;
        border-radius:5px;
        /*background-color: #333;*/
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        
    }
    
    @media (max-width: 760px) {
        li > a {
            padding: 15px 10px;  
        }    
    }

    @media (max-width: 400px) {
        li > a {
            padding: 15px 5px;  
            /*font-size: 13px;*/
        }    
    }
    
    li > a:hover {
        background-color: #444;
    }
    ul ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(38, 38, 38, 0.95);
        border-radius:5px;
        border: 1px solid #333;
        min-width: 250px;
    }
    ul ul ul {
        left: 100%;
        top: 0;
    }
    ul ul li {
        display: block;
    }
    ul ul li a {
        padding: 10px;
        color: #fff;
        display: flex;
        align-items: center; /* Centra verticalmente */
    }
    
   @media (max-width: 760px) {
        ul ul li a {
            padding: 15px;
        } 
    } 
    
    ul ul li a:hover {
        background-color: #555;
    }
    li:hover > ul {
        display: block;
    }

    .submenu {
        display: flex; /* Usamos flexbox en el contenedor del li */
    }
    
    .submenu a {
        display: flex; /* Aplicamos flexbox al enlace */
        width: 100%; /* Asegura que el enlace ocupe todo el ancho */
        justify-content: space-between; /* Coloca el texto a la izquierda y el icono a la derecha */
        align-items: center; /* Centra verticalmente el contenido */
        text-decoration: none; /* Elimina el subrayado */
        border-radius:5px;
        margin:2px;
    }
    
    .submenu i {
        margin-left: 10px; /* Espacio entre el texto y el icono */
    }

	.genre-grid {
		display: none; /* Oculta el grid por defecto */
		grid-template-columns: repeat(3, 1fr);
		gap: 5px;
		min-width: 400px;
	}

	li:hover > .genre-grid {
		display: grid; /* Muestra el grid solo cuando se interactúa con su padre */
	}
	.genre-grid li {
		margin: 0;
	}
    
#floating-icon, #chatbot-floating-icon {
    position: fixed;
    bottom: 56px;
    right: 20px;
    z-index: 10000;
}

#floating-icon  img, #chatbot-floating-icon img {
    width: 32px;  
    height: 32px; 
    opacity: 0.8;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3); 
    border-radius: 50%;
    overflow: hidden; 
    transition: width 0.3s ease, height 0.3s ease; /* Transición suave */
}

/*
#floating-icon img:hover {
    width: 50px; 
    height: 50px;
}    
*/

/* Estilos para el tooltip */
#tooltip {
    position: absolute; /* Posiciona el texto relativo al icono */
    bottom: 50%;  /* Centra verticalmente respecto al icono */
    /*left: -320px;*/
    right:50px;
    transform: translateY(50%); /* Ajusta la posición vertical para que quede centrado */
    background-color: #000; /* Fondo oscuro */
    color: white;  /* Texto blanco */
    padding: 10px; /* Espaciado alrededor del texto */
    border-radius: 4px; /* Bordes redondeados */
    display: none; /* Lo oculta inicialmente */
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    z-index: 1001; /* Asegura que el tooltip esté por encima del icono */

}

/* Agregar el triángulo (vértice) */
#tooltip::after {
    content: '';
    position: absolute;
    top: 50%; /* Centra verticalmente */
    right: -10px; /* Coloca el triángulo fuera del tooltip a la derecha */
    transform: translateY(-50%); /* Ajusta para centrarlo */
    border-left: 10px solid #000; /* Triángulo apuntando hacia la izquierda */
    border-top: 5px solid transparent; /* Lados transparentes */
    border-bottom: 5px solid transparent; /* Lados transparentes */
}

/* Mostrar el tooltip al pasar el mouse */
#floating-icon:hover #tooltip {
    display: block; /* Muestra el tooltip al pasar el mouse */
}

#chatbot-floating-icon:hover #tooltip {
    display: block; /* Muestra el tooltip al pasar el mouse */
}

.Footer {
    justify-content: center; /* Centra horizontalmente */
    padding: 10px;
    font-weight: normal;
    font-size: 14px;
    opacity: 0;
    transition: opacity 1s ease;
    text-align: center; /* Centra el texto dentro del contenedor */
    color: #bbb;
}

.Footer.visible {
    opacity: 1; /* Totalmente visible */
}
/*REPORTAR*/
      /* Fondo semitransparente */
        #overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        /* Contenedor del formulario */
        #popupForm {
            background-color: rgba(100, 100, 100, 0.4);
            backdrop-filter: blur(5px);
            border-radius: 5px;
            padding: 20px;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10000;
            border: 1px solid #444;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* Encabezado */
        #popupForm h2 {
            margin-top: 0;
            color: #3498DB;
        }

        /* Opciones del formulario */
        .form-group {
            margin-bottom: 15px;
            padding-bottom: 10px;
        }

        .form-group label {
            display: flex;
            align-items: center;
            cursor: pointer;
            font-size: 16px;
        }

        .form-group input[type="radio"] {
            width: 20px;
            height: 20px;
            margin-right: 10px;
            cursor: pointer;
        }

        .form-group .detalle {
            font-size: 14px;
            color: #b0b0b0;
            margin-top: 5px;
            padding-left: 30px; /* Alineado con el radio button */
        }

        .form-group + .form-group {
            border-top: 1px solid #333;
            padding-top: 10px;
        }

        /* Botones */
        .form-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 20px;
        }

        .form-actions button {
            padding: 10px 20px;
            font-size: 16px;
            border-radius: 5px;
            border: none;
            cursor: pointer;
            color: #ffffff;
        }

        #btnEnviar {
            background-color: #007bff;
        }

        #btnEnviar:hover {
            background-color: #0056b3;
        }

        #btnCancelar {
            background-color: #222;
        }

        #btnCancelar:hover {
            background-color: #333;
        }
        
        #cartel-favoritos {
            display: none; /* Oculto por defecto */
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: #222;
            border: 2px solid #ffcc00;
            padding: 20px;
            width: 70%;
            max-width: 400px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
            border-radius: 10px;
            text-align: center;
            z-index: 9999;
            opacity: 0; /* Inicialmente transparente */
            transition: opacity 0.5s ease-in-out; /* Transición suave */
        }

        /* Imagen del logo */
        #cartel-favoritos img {
            width: 100px;
            height: 100px;
            object-fit: contain;
            display: block;
            margin: 0 auto 10px;
        }

        /* Botón de aceptar */
        #cartel-favoritos button {
            background: #ffcc00;
            color: black;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            font-size: 16px;
            border-radius: 5px;
            margin-top: 15px;
        }

        #cartel-favoritos button:hover {
            background: #e6b800;
        }






.tapa-pelicula a {
  position: absolute;
  top: calc(50% + 160px); /* Centro de la imagen + 150px */
  left: 50%;
  transform: translate(-50%, -50%); /* Centra correctamente */
  background: rgba(255, 0, 0, 1);
  color: white;
  text-align: center;
  padding: 10px 15px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 5px;
  width: auto;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.5); /* Borde blanco semitransparente */
}



/*--------------------------------------------------*/

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }
        .modal-content {
            background: #1e1e1e;
            width: 90%;
            max-width: 750px;
            padding: 20px;
            border-radius: 10px;
            max-height: 90vh;
            overflow-y: auto;
        }
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 10px;
            margin: 10px 0;
        }

        .close {
            float: right;
            cursor: pointer;
        }


        .item {
            background: #333;
            padding: 10px;
            text-align: center;
            border-radius: 8px;
            cursor: pointer;
            flex-wrap: nowrap; /* Evita los saltos de línea */
            white-space: nowrap;
            display: flex; /* Activa flexbox */
            align-items: center; /* Centra verticalmente */
            justify-content: center; /* Centra horizontalmente */
        }
        
        .item:hover {
            background: #555; /* Cambia el color de fondo en hover */
        }

        .item a {
            color: #fff;
            text-decoration: none;
            display: block;
        }
        .item img {
            width: 40px;
            /*height: 40px;*/
            display: block;
            margin: 0 auto 5px;
        }

        .pais .item {
            display: flex;
            align-items: center;
            margin: 10px 0;
            justify-content: left; /* Alinea a la izquierda */
            overflow: hidden; /* Evita que los elementos hijos se salgan del contenedor */
        }
        
        .pais .item img {
            width: 24px; /* Tamaño de la bandera */
            height: auto;
            margin: 0px;
            margin-right: 5px; /* Espacio entre la bandera y el texto */
        }
        
        .pais .item a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: inherit;
            overflow: hidden; /* Oculta el texto que sobrepasa */
            white-space: nowrap; /* Mantiene el texto en una sola línea */
            text-overflow: ellipsis; /* Agrega los "..." al final si el texto es muy largo */
            max-width: 100%; /* Se adapta al contenedor */
        }

        .img-database {
            height: 22px;
            border-radius: 5px;
            margin-left: 8px;
            margin-right: 4px;
        }
        
        .div-database {
            display: flex;
            align-items: center;  /* Centra verticalmente */
            justify-content: left;  /* Centra horizontalmente */
        }
    .div-database a {
            display: flex;
            align-items: center;  /* Centra verticalmente */
            justify-content: left;  /* Centra horizontalmente */
    }
    
    
    /*--------------------------------------------------*/
    
.search-container-wrapper {
  background-color: rgb(49, 50, 52);
  border: 1px solid rgb(82, 83, 85);
  border-radius: 8px;
  padding: 10px;
  width: 80%;
  max-width: 800px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
}

/* Contenedor del formulario (renombrado) */
.search-container2 {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  box-sizing: border-box;
}

/* Campo de búsqueda */
#busqueda {
  width: 100%; /* Simplificado - box-sizing ya maneja el padding */
  padding: 10px;
  font-size: 16px;
  background-color: rgb(49, 50, 52);
  border: none;
  resize: none;
  min-height: 40px;
  color: white;
  outline: none;
  box-sizing: border-box;
  margin: 0; /* Reset de márgenes por defecto */
}


#busqueda::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.controls-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#tipo {
  padding: 10px 20px;
  border-radius: 50px; /* 50% para forma oval perfecta */
  border: 1px solid rgb(82, 82, 82);
  background-color: rgb(49, 50, 52);
  color: white;
  font-size: 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  outline: none;
}

.round-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgb(127, 127, 127);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.round-button:hover {
  background-color: rgb(100, 100, 100);
}

.round-button svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

/* Estilos adicionales para mejor visualización del select */
#tipo {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  padding-right: 40px;
}

.meta-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.meta-spinner {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #0095ff 0%,
    #00d4ff 25%,
    #00f2ff 50%,
    #00ffc2 75%,
    #00ff88 100%
  );
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 0);
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading {
    display: none;
    text-align: center;
    margin: 30px 0;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 4px solid #ddd;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    color: #cf6679;
    padding: 15px;
    background-color: rgba(207, 102, 121, 0.1);
    border-radius: 4px;
    margin: 20px;
}

.empty {
    text-align: center;
    padding: 40px;
    color: #777;
}    


.noDisponibleTag{
  font-family: "Arial", sans-serif; /* Cambiar "Arial" por la fuente que desees utilizar */
  border-radius: 10px;
  background-color: #FF0000; 
  position: absolute;
  color: #FFF;
  top: 65%;
  font-size: 10px;
  font-weight: bold;
  padding: 4px;
  left: 50%; /* Centrado horizontal */
  transform: translateX(-50%); /* Ajuste para que el div se centre completamente */
  white-space: nowrap;
}

 /* Base del botón - Fondo oscuro intenso */
.ai-btn-strong {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #111; /* Negro puro para máximo contraste */
    color: white;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    border: none;
    z-index: 1;
}

/* Borde NEÓN con degradado intenso */
.ai-btn-strong::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
                  #00f0ff 0%,  /* Cian brillante */
                  #ff00f0 50%, /* Magia neón */
                  #00ff9d 100%); /* Verde eléctrico */
    border-radius: 10px;
    z-index: -1;
    opacity: 0.8;
    animation: borderGlow 3s infinite alternate;
}

/* Efecto hover - Brillo aumentado */
.ai-btn-strong:hover {
    background: #000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

/* Animación del borde neón */
@keyframes borderGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Icono con brillo blanco puro */
.ai-btn-strong img {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    filter: drop-shadow(0 0 2px #fff);
    transition: all 0.3s ease;
}

/* Efecto hover del icono */
.ai-btn-strong:hover img {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px #fff) brightness(1.2);
}

/* Mejor contraste para texto */
.ai-btn-strong span {
    text-shadow: 0 0 3px rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}

        

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* mantiene 16:9 pero con height fijo */
    border-radius: 10px;
    background: rgba(0,0,0,0.5);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/*
.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; 
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
*/

.contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 15px;
    overflow: visible !important;
    
}

@media (max-width: 760px) {
    .video-container iframe {
        border-radius: 0px;
        
    }   
    .video-container {
        background-color: #000;
        border-radius: 0px;
    }
    
    .contenedor {
        background: rgba(17, 17, 17, 0.8);
    }
}    

 /* ==== ESTILO DEL ELEMENTO ==== */
.itemServer {
  display: inline-flex;          
  align-items: center;
  gap: 6px;
  margin: 5px;
  padding: 6px 10px;
  border-radius: 6px;            
  cursor: pointer;               
  transition: background 0.3s ease, color 0.3s ease;
  border: 1px solid #888;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  
}

@media (max-width: 760px) {
    .itemServer {
        font-size: 15px;
        margin: 3px;
    }
}

@media (max-width: 365px) {
    .itemServer {
        font-size: 13px;
        margin: 2px;
    }
}

.itemServer:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

  .itemServer img {
    height: 15px;      
    width: auto;       
    display: block;
    transition: filter 0.3s ease;
  }

.itemServer[disabled] {
    color: #aaa;              
    pointer-events: none;     
}

.itemServer[disabled] img {
    filter: grayscale(100%);  
    opacity: 0.6;             
}


    .botonera {
      
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: nowrap;       /* evita que los botones bajen de línea */
      overflow-x: auto;        /* scroll horizontal */
      -webkit-overflow-scrolling: touch; /* scroll suave en móvil */
      width: 100%;             /* ocupa todo el ancho disponible */
      
      /* ocultar scroll */
      scrollbar-width: none;   /* Firefox */
      justify-content: center;
    }
    
    .botonera::-webkit-scrollbar {
      display: none;           /* Chrome, Edge, Safari */
    }
    

    .btnItem {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 10px 12px;
      font-size: 14px;
      color: #fff;
      /*background: #222;*/
      /*border: 1px solid #888;*/
      border-radius: 9999px;
      cursor: pointer;
      flex-shrink: 0;               /* evita que se encojan */
      transition: background 0.3s;
    }
    
    .btnItem i {
      font-size: 14px;
    }
    
    .btnItem:hover {
      background: #444;
    }
    
    .badge-etiqueta {
        display: inline-block;
        background: #eee;
        color: #333;
        padding: 4px 8px;
        margin: 2px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 0.9em;
        font-weight: bold;
    }
    
    .badge-etiqueta:hover {
        background: #ccc;
    }
    
    .contenedor-descargar {
      justify-content: center; /* centra horizontal */
      align-items: center;     /* centra vertical (si das alto fijo) */
      text-align: center;   /* centra horizontal */
      margin: 5px 0;       /* separa arriba y abajo */
    }
    
.btn-descargar {
  display: inline-flex;
  align-items: center;       /* centra vertical */
  justify-content: center;   /* centra horizontal */
  gap: 6px;                  /* espacio entre icono y texto */
  padding: 8px 14px;
  border: none;
  border-radius: 9999px;
  background: #444;          /* gris oscuro elegante */
  color: #eee;               /* texto claro */
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  width: 80%;
  max-width: 150px;
  border: 1px solid #3498DB;
}

.btn-descargar:hover {
  background: #555;          /* un tono más claro al pasar el mouse */
}
    
    .btn-descargar:active {
      transform: scale(0.95);
    }
    
    .btn-descargar i {
     /* font-size: 16px;*/
    }
    
    .btn-ver {
      display: inline-flex;
      align-items: center;       /* centra vertical */
      justify-content: center;   /* centra horizontal */
      gap: 6px;                  /* espacio entre icono y texto */
      padding: 4px 15px;
      border: none;
      border-radius: 9999px;
      background: #28a745;       /* verde tipo "descargar" */
      color: #fff;
      font-size: 15px;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s, transform 0.1s;
      min-width: 70px;

    }
    
    @media (max-width: 760px) {
        .btn-ver {
             font-size: 12px;
             padding: 4px 10px;
             font-weight: normal;
        }
    }
    

    .titleInfo {
        margin: 0px;
    }
    @media (max-width: 760px) {
        .titleInfo {
            margin: 10px;
        }
    }
    .titleInfo h1 {
        font-size: 26px;
        margin: 0;
    }
    
    .titleInfo .titulo-original {
        font-size: 12px;
        color: #aaa;
        margin-top: 2px;
        margin-bottom: 20px;
    }

    .sinopsis {
        font-size: 14px;
        color: #ccc;
        margin: 5px 0;
        line-height: 1.4;
    }
    
.info-linea {
  display: flex;
  align-items: center;
  gap: 15px;
  /*margin: 10px 0;*/
  margin-top: 4px;
  justify-content: flex-start;
  flex-wrap: wrap;   /* ✅ permite que los elementos pasen abajo */
  /*width: 100%;*/
}

    .info-linea::-webkit-scrollbar {
        display: none;
    }
    
    .info-linea a,
    .info-linea span {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
        color: inherit;
    }
    
    .info-linea img{
        height: 20px;
        border-radius: 5px;
        margin-right: 5px;
    }

    .info-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 15px;
    }
    .info-item i {
        font-size: 18px;
        color: white;
        font-weight: bold;
    }
    
    .carousel-actores {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    /* Ocultar scroll en móvil */
    @media (max-width: 760px) {
        .carousel-actores {
            scrollbar-width: none; /* Firefox */
        }
        .carousel-actores::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Edge */
        }
    }
    
    
    
    .carousel-container{
       display: flex;
    }
    
    .carousel-actores-item {
        margin-right: 10px;
        width:120px;
    }
    
    .carousel-actores-item img {
        width: 120px;
        height: auto;
    }
    
    .carousel-actores-item p {
        font-size: 0.9em;
        margin: 2px 0;
        color: #ccc;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
    
    .carousel-actores-item p strong {
        color: #fff;
        font-size: 1em;
    }
    
    .titulo-boton {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #fff;
    }
    
    .btn-compartir {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: none;
      background: #fff;
      color: #333;
      cursor: pointer;
      transition: background 0.3s;
      margin: 0px;
      font-size: 16px;
    }
    
    .btn-compartir:hover {
      background: rgba(200, 200, 200, 0.8);;
    }

/* Columnas internas */
.columna-principal,
.columna-secundaria {
  min-width: 0;   /* 🔑 evita que los hijos flex/grid se desborden */
  overflow: hidden; /* opcional, corta el contenido excedente */
  box-sizing: border-box;
}

/* Escritorio / pantallas grandes */
@media (min-width: 761px) {
  .container-movie-info {
    display: grid;
    gap: 20px;
    grid-template-columns: 2fr 1fr;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    align-items: start;
  }

  .columna-principal,
  .columna-secundaria {
    min-width: 0;  /* 👈 súper importante */

    overflow: visible;
  }
}

@media (max-width: 760px) {
  .container-movie-info {
    grid-template-columns: 1fr; /* solo una columna */
    padding:0px;
    overflow: hidden;
  }

  .columna-secundaria {
    display: none; /* ocultar si no la querés en móvil */
  }
}





.contenedor, .botonera, .info-linea {
    max-width: 100vw;
    padding: 0 2px;
    overflow-x: auto;
    white-space: nowrap;                /* mantiene los elementos en una línea */
    -webkit-overflow-scrolling: touch;  /* scroll suave en móviles */

    /* Ocultar barra de scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.contenedor::-webkit-scrollbar,
.botonera::-webkit-scrollbar,
.info-linea::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}


.comandos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 5px;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    background: #7B0000;   /* color original */
    color: #ddd;        /* color original */
    margin-top: 10px;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    /*border: 2px solid #4fa3d1;*/
}

.comandos:hover {
    background: #8B1010;   /* un gris un poco más oscuro */
    color: #fff;        /* texto más fuerte */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* efecto sutil */
   /*border: 2px solid #5fb3e1;*/
}
    
/* Por defecto oculto el de móvil */
.mobile-only {
  display: none !important;
}

/* Y muestro el de escritorio */
.desktop-only {
  display: flex;
}

/* Cuando la pantalla es de 768px o menos (ej: móviles) */
@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }
  .desktop-only {
    display: none;
  }
  
  .btn-descargar {
    max-width: 250px;
  }
}

/*
.container-carousel{
    max-width: calc(100vw - 20px);
}
*/

/*---------------------------------------------------------*/
.top-movies {
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}


.top-movies img{
    width: 24px;
}

.top-movies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.movie-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 16px;
    border-radius: 10px;

    /* Fondo sutil */
    background: rgba(0, 0, 0, 0.15); /* negro muy suave y translúcido */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);

    /* Borde sutil para separar */
    border: 1px solid rgba(255, 255, 255, 0.05);

    /* Transición suave */
    transition: background 0.3s ease;
}

.movie-item:hover {
    background: rgba(0, 0, 0, 0.5); /* apenas más oscuro al pasar el mouse */
}

/*--------------------------------*/
/* Reset contador */
.top-movies-list {
  counter-reset: ranking;
}

/* Cada item aumenta el contador */
.top-movies-list .movie-item {
  position: relative;
  counter-increment: ranking;
}


.top-movies-list .movie-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 0, 0, 0.4); /* rojo con 70% de opacidad */
  clip-path: polygon(100% 0, 100% 100%, 0 0); /* forma de triángulo */
  border-top-right-radius: 8px; /* redondeo de la esquina */
  z-index: 1;
  border-top: 2px solid rgba(255, 0, 0, 0.1);   /* borde arriba */
  border-right: 2px solid rgba(255, 0, 0, 0.1); /* borde a la derecha */
  
}

/* Número encima del triángulo */
.top-movies-list .movie-item::after {
  content: counter(ranking);
  position: absolute;
  top: 4px;      /* ajusta según quieras centrar */
  right: 8px;    /* ajusta según quieras centrar */
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  z-index: 2;     /* encima del triángulo */
}


/*-----------------------------*/



.movie-img img {
    width: 120px;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.movie-info h3 {
    margin: 0 0 5px;
    font-size: 18px;
    /*color: #000;*/
}

.movie-info p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 8;   /* máximo 8 líneas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contenedorImgTexto {
  display: flex;
  align-items: flex-start;  /* o center según quieras */
  gap: 20px;
  margin-top: 10px;
}

.columna.imagen {
  flex: 0 0 auto;   /* no crece, no se reduce, ancho automático */
  width: 140px;     /* fija el ancho al de la imagen */
  
}

.columna.imagen img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

.columna.texto {
  flex: 1;          /* ocupa todo el espacio restante */
}

/* --- Vista móvil --- */
@media (max-width: 768px) {
  .columna.imagen {
    display: none;   /* Oculta la imagen en móvil */
  }
  .contenedorImgTexto {
    flex-direction: column;  /* Texto ocupa todo el ancho */
  }
}

/* Estilo para el contenedor de la animación de carga */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh; /* Ocupa el 100% de la altura del contenedor padre */
    width: 100%;  /* Ocupa el 100% del ancho del contenedor padre */
}

.loading-spinner {
    border: 8px solid #f3f3f3; /* Color del fondo */
    border-top: 8px solid #3498db; /* Color de la parte animada */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseAndColor {
    0% {
        transform: scale(1);
        color: #ffc520; /* Color inicial: blanco */
    }
    50% {
        transform: scale(1.1);
        color: #ffa500; /* Color intermedio: naranja */
    }
    100% {
        transform: scale(1);
        color: #ffc520; /* Regresa al color inicial: blanco */
    }
}

/* Para teléfonos (pantallas más pequeñas) */
.grid-container-episodios {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    grid-gap: 20px;
    padding: 15px;
}

@media (max-width: 1025px) {
    .grid-container-episodios {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
        grid-gap: 10px;
        padding: 10px;
    }
}

.grid-item-episodios {
    text-align: left;
    position: relative;
    cursor: pointer;
}

.texto-tira-episodios {
    position: absolute;
    top: 0px;
    left: 5px;
    right: 0;
    z-index: 2;
    color: #fff;
    font-size: 16px;
    line-height: 1em; 
    font-weight: bold;
    text-align: left;
    padding: 10px 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1em * 2 - 10px); 
}


.img-cover-episodios {
    transition:  transform 0.2s ease-in-out, border 0.2s ease-in-out; /* transición aplicada aquí */
    
}

.grid-item-episodios:hover .img-cover-episodios {
    border: 3px solid #fff;
    transform: scale(1.05);
}





.grid-item {
	text-align: center;
	transition: transform 0.3s ease-in-out, border 0.3s ease-in-out; /* Agrega transición para el borde */
	position: relative; /* Establece el elemento padre como posición relativa */
	cursor: pointer;
}

.grid-item:hover, .card:hover{
	transform: scale(1.1);
	.img-play {opacity: 1;}
	.img-cover {border: 3px solid #fff;}
	.img-Info {opacity: 1;}
}

a {
	text-decoration: none; /* Elimina el subrayado */
	color: white; /* Establece el color del texto en blanco */
}


.img-cover-episodios {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid transparent;

    /* Degradado vertical suave tipo shimmer */
    background: linear-gradient(
        180deg,
        #1a1a1a 0%,
        #2a2a2a 25%,
        #3a3a3a 50%,
        #2a2a2a 75%,
        #1a1a1a 100%
    );
    background-size: 100% 300%;
    animation: shimmer-vertical 6s infinite ease-in-out;
}

.grid-item-episodios h2,
.grid-item-episodios span,
.grid-item-episodios h3 {
    margin: 2px;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 500px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1; /* Número de líneas a mostrar */
    line-clamp: 1; /* Número de líneas a mostrar (para navegadores futuros) */
    color: #ddd;
}

.grid-item-episodios h3 {
    font-size: 12px;
    font-weight: 500px;
}

.grid-item-episodios span {
    font-size: 12px;
    font-weight: normal;
    color: #ccc;
}

.hover-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transform: translate(3px, 3px);
}

.grid-item:hover .hover-info {
    opacity: 1;
}

.hover-info .left,
.hover-info .right {
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Animación fade-in desde abajo */
.episodio-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px;
    margin-bottom: 15px;
    min-height: 120px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    border: 1px solid rgba(200, 200, 200, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* 👇 inicial invisible y desplazada hacia abajo */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Clase que aplicaremos cuando queramos que aparezca */
.episodio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Capa de la imagen */
.episodio-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit; /* usa el mismo background-image */
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    z-index: 0;
}

/* Capa oscura para bajar brillo fijo */
.episodio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* 👈 baja el brillo siempre */
    z-index: 1;
}

/* Contenido encima */
.episodio-item > * {
    position: relative;
    z-index: 2;
}

/* Hover con blur + zoom */
.episodio-item:hover::before {
    filter: blur(4px) brightness(0.8);
    transform: scale(1.05);
}

.episodio-texto {
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,1);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.episodio-texto .list-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.episodio-texto .episodio-meta {
    font-size: 14px;
}

.episodio-texto .episodio-info {
    font-weight: 400;
}

.episodio-texto .list-sinopsis {
    margin: 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/*
.episodio-texto .list-sinopsis {
    font-size: 16px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
*/
.episodio-actual {
    border: 3px solid #8B1010;
}


.icono-visto {
    font-size: 18px;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
    cursor: pointer;
    margin-right: 6px; /* separa del texto */
}

.icono-visto {
  color: #fff;
}

.visto .icono-visto {
  color: #3498db; /* Cambia a azul si fue visto */
}


/* Popup activo (tu estilo original) */
#popupTemporadas.popup-activo {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-contenido {
    background: rgba(30, 30, 30, 0.5); /* gris oscuro semitransparente */
    border-radius: 10px;
    /*
    backdrop-filter: blur(12px);       
    -webkit-backdrop-filter: blur(12px); 
    */
    /* Tamaños */
    max-height: calc(100vh - 120px);      
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;       /* el scroll lo maneja .popup-inner */
    padding: 10px;
}





/* Header fijo (la X permanece visible y no se mueve) */
.popup-header {
    flex: 0 0 auto;         /* no crece ni se comprime */
    height: 48px;           /* alto del header */
    align-items: center;
    justify-content: flex-end; /* la X a la derecha */
    padding: 8px 12px;
    box-sizing: border-box;
    display: none;
}

@media (max-width: 768px) {
  .popup-contenido {
    max-height: 90vh;
    background: rgba(30, 30, 30, 0.9);
  }
  .popup-header {
    display: flex; 
  }
}


/* Botón cerrar: dentro del header, queda fijo */
.cerrar-popup {
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    color: #fff;
    user-select: none;
}

/* Contenedor interno que SI hace scroll (con márgenes superior e inferior) */
.popup-inner {
    flex: 1 1 auto;         /* ocupa el resto del alto */
    overflow-y: auto;
    padding: 12px 16px 18px; /* margen interior: top / sides / bottom */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Ejemplo de separación extra entre la X y el contenido si querés más espacio */
.popup-header + .popup-inner {
    margin-top: 0; /* ya no hace falta poner margin-top grande */
}

/* Combo + contador en la misma fila */
.combo-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* separa combo a la izquierda y contador a la derecha */
  gap: 10px; /* espacio entre ambos */
  margin-bottom: 10px;
  padding: 0 10px;
}

/* Texto del contador */
.episodios-count {
  font-size: 16px;
  color: #ccc;
  white-space: nowrap;
}


/*--onesignal--*/
#disqus_thread{
    margin: 20px;
}
.onesignal-bell-launcher-button{
    width: 32px !important;
    height: 32px !important; 
    bottom: 140px; !important; 
}  
.onesignal-bell-launcher,
    iframe.onesignal-bell-launcher {
    bottom: 140px !important;
    right: 20px !important;
    width: 32px !important;
    height: 32px !important;
    z-index: 999 !important;
}

#onesignal-bell-container.onesignal-reset
 {
    z-index: 999  !important;;
}



/*
@media (max-width: 768px) {
    .onesignal-bell-launcher,
    iframe.onesignal-bell-launcher {
      bottom: 145px !important; /* más alto en móvil */
    
    }
}
*/

.titulo-ayuda {
    white-space: nowrap;
    overflow: hidden;          /* opcional, evita desbordes */
    text-overflow: ellipsis;   /* opcional, muestra "..." si el texto es muy largo */
    display: inline-block;     /* asegura que nowrap funcione correctamente */
    vertical-align: middle;    /* alinea con el ícono si hay uno */
    margin: 5px;
    margin-right: 10px;
    font-size: 15px;
}

.ayuda-item {
    justify-content: flex-start !important; /* alinea a la izquierda */
    gap: 10px; /* espacio entre imagen y texto */
    padding-left: 10px; /* opcional: margen izquierdo */
}
 
.btnCopiar{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:#28a745;
  color:#fff;
  font-weight:600;
  padding:10px 18px;
  margin-top: 20px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  transition:transform .08s ease, background .18s ease;
  box-shadow: 0 6px 18px rgba(40,167,69,0.18);
  font-size:15px;
}
.btnCopiar:active{ transform: translateY(1px) scale(.998); }
.btnCopiar:hover{ background:#218838; }




#notificacion {
  display: flex;
  align-items: center;   /* 👈 centra icono y texto verticalmente */
  gap: 10px;             /* separación entre icono y texto */
  position: fixed;
  top: 90px;
  right: -420px;
  max-width: 360px;
  background: #1f1f1f;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  box-shadow: 0 10px 25px rgba(0,0,0,.45);
  z-index: 9999;
  cursor: pointer;
  transition: right .45s ease, opacity .45s ease;
  opacity: 0;
}

/* animación entrada / salida */
#notificacion.show {
  right: 20px;
  opacity: 1;
}

#notificacion.hide {
  right: -420px;
  opacity: 0;
}

/* link completo */
#notificacion a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

/* ICONO (Lottie) */
#notificacion .notif-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* evita padding interno raro del lottie */
#notificacion lottie-player {
  width: 42px;
  height: 42px;
  transform: scale(2);
}

/* TEXTO */
#notificacion .notif-text {
  line-height: 1.25;
  font-size: 14.5px;
  font-weight: 500;
}

/* hover */
#notificacion a:hover {
  opacity: .9;
}

/* 📱 MOBILE */
@media (max-width: 600px) {
  #notificacion {
    top: 70px;
    max-width: calc(100% - 30px);
    padding: 10px 12px;
    border-radius: 8px;
  }

  #notificacion .notif-icon {
    width: 34px;
    height: 34px;
  }

  #notificacion lottie-player {
    width: 34px;
    height: 34px;
  }

  #notificacion .notif-text {
    font-size: 13.5px;
    font-weight: 400;
  }
}


/* contenedor base */
.tooltip {
    position: relative;
}

/* globo */
.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px); /* arriba del botón */
    left: 50%;
    transform: translateX(-50%);
    background: rgb(144, 41, 41);
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 99999;
}

/* vértice del globo */
.tooltip::after {
    content: "";
    position: absolute;
    bottom: calc(100% + 9px); /* justo debajo del globo */
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgb(144, 41, 41); /* punta hacia ABAJO */
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 99998;
}

/* mostrar tooltip */
.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
}

/* pequeña animación */
.tooltip:hover::before {
    transform: translateX(-50%) translateY(-3px);
}

@media (max-width: 760px) {
    .tooltip::before,
    .tooltip::after {
        display: none !important;
    }
}

/*--------CHATBOT--------*/

        /* Contenedor principal */
        #chat-container {
            display: none;
            position: fixed;
            bottom: 50px;
            right: 60px;
            width: 320px;
            z-index: 9999999;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
            border-radius: 10px;
        /* --- NUEVA TRANSICIÓN --- */
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px); /* Empieza 20px más abajo */
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto elástico suave */
        }
        
        /* Clase que aplicaremos con JS para mostrarlo */
        #chat-container.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0); /* Sube a su posición original */
        }
        
        /* Encabezado - Volvemos al Gris #333 original */
        #chat-header {
            background: #333;
            color: white;
            padding: 8px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 10px 10px 0 0;
            cursor: pointer;
        }

        #close-chat {
            font-size: 24px;
            font-weight: bold;
            line-height: 1;
            cursor: pointer;
            transition: transform 0.2s;
        }
        #close-chat:hover { transform: scale(1.2); }

        /* Caja de mensajes */
        #bot-box {
            height: 300px;
            background: #121212;
            color: #eeeeee;
            border-left: 1px solid #333;
            border-right: 1px solid #333;
            overflow-y: auto;
            padding: 15px;
            font-size: 14px;
            border-radius: 0;
        }

        /* Scrollbar original */
        #bot-box::-webkit-scrollbar { width: 8px; }
        #bot-box::-webkit-scrollbar-track { background: #1a1a1a; }
        #bot-box::-webkit-scrollbar-thumb { background: #444; border-radius: 10px; }
        #bot-box::-webkit-scrollbar-thumb:hover { background: #e50914; }

        /* Área de entrada */
        .bot-input-area {
            display: flex;
            border: 1px solid #333;
            border-radius: 0 0 10px 10px;
            overflow: hidden;
        }

        #bot-input {
            flex: 1;
            padding: 12px;
            border: none;
            background: #222;
            color: white;
            outline: none;
        }

        #chat-btn {
            padding: 10px 15px;
            background: #e50914;
            color: white;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            margin: 0;
        }

        /* Burbujas - Azul original para usuario, Gris para bot */
        .user-msg { text-align: right; margin: 10px 0; }
        .user-msg span {
            background: #005a70; /* Tu azul original */
            padding: 8px 12px;
            border-radius: 15px 15px 0 15px;
            display: inline-block;
        }

        .bot-msg-text {
            background: #333; /* Tu gris original */
            padding: 10px;
            border-radius: 15px 15px 15px 0;
            margin-bottom: 10px;
        }

        /* Links originales */
        #bot-box a {
            color: #4da3ff;
            text-decoration: none;
            font-weight: 500;
            border-bottom: 1px solid rgba(77, 163, 255, 0.4);
        }

        /* Botón minimizado */
       .chat-minimized {
            display: flex;
            position: fixed;
            bottom: 100px !important;

        }
        

        
        @media (max-width: 480px) {
            #chat-container {
                width: 90%;
                right: 5%;
                bottom: 10px;
            }
        }
    
    
    

.plataforma-item {
  flex: 0 0 auto;
  width: 210px;
  height: 120px;
  text-decoration: none;
  margin: 5px;
  border: 3px solid transparent;
  border-radius: 13px;
  transition: border-color 0.3s ease;
}

.plataforma-card {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}

/* FRONT */
.plataforma-front {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity .3s ease;
}

.plataforma-front img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

.plataforma-front span {
  margin-top: 8px;
  font-size: 12px;
  font-weight: bold;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
}

/* VIDEO */
.plataforma-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .3s ease;
}

/* HOVER */
.plataforma-card:hover .plataforma-front {
  opacity: 0;
}

.plataforma-card:hover .plataforma-video {
  opacity: 1;
}

.plataforma-item:hover {
  border-color: #fff;
}

@media (max-width: 767px) {
  .tops-container {
      display: none;
  }
}

/* carrusel favoritos */

/* Contenedor principal */
.carrusel-favoritos-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 30px; 
    /*background-color: #141414;*/
    overflow: visible;
}

/* El carrusel en sí */
.carrusel-favoritos-main {
    display: flex;
    gap: 8px; /* Espacio fino entre tarjetas */
    overflow: hidden; /* Ocultamos el scroll para manejarlo por JS */
    scroll-behavior: smooth;
    padding: 15px 0;
    width: 100%;
}

.carrusel-favoritos-main::-webkit-scrollbar {
    display: none;
}

/* Ocultar barra en IE, Edge y Firefox */
.carrusel-favoritos-main {
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}

a.fav-item {
    text-decoration: none; /* Quita subrayados */
    display: block;        /* Asegura que mantenga las dimensiones */
    color: inherit;        /* Evita cambios de color en el logo o textos */
}

/* Si usaste flex en el item para centrar el logo, asegúrate de mantenerlo */
.fav-item {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 0 0 auto;
    width: calc(100% / 6); /* 6 series por pantalla en desktop */
    aspect-ratio: 1 / 2; /* Proporción fina y alargada */
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    background: #222; /* Fondo de carga */
}

/* Efecto Netflix al pasar el mouse */
.fav-item:hover {
    transform: scale(1.05);
    z-index: 50;
    /*box-shadow: 0 10px 20px rgba(0,0,0,0.6);*/
}

.fav-img-tapa {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para ajustarse al aspecto fino */
    display: block;
}

/* Contenedor del Logo sobre la imagen */
.fav-logo-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 5px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, transparent 100%);
    display: flex;
    justify-content: center;
}

.fav-img-logo {
    max-width: 85%;
    max-height: 45px;
    object-fit: contain;
}

/* Botones de navegación */
.fav-nav-btn {
    position: absolute;
    z-index: 100;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10 y Edge */
    user-select: none;         /* Estándar (Chrome, Firefox, etc.) */
    
    /* También es recomendable evitar el resaltado azul en móviles al tocar */
    -webkit-tap-highlight-color: transparent;
}



#fav-left { left: 2px; }
#fav-right { right: 2px; }

@media (max-width: 768px) {
    .fav-nav-btn { display: none; } /* Ocultar botones */
    .carrusel-favoritos-main {
        overflow-x: auto; /* Permitir scroll táctil */
        padding: 15px;
    }
    .fav-item { width: 140px; } /* Ancho fijo en móvil */
    .carrusel-favoritos-wrapper { padding: 0; }
}