

/* Reglas generales y Mobile-First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

:root {
    --primary: #ff3700;
}

body {
    background: #000000;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    overflow-x: hidden;
    /* FIX: Permite el scroll vertical en móvil para ver todo el contenido */
    overflow-y: auto; 
}

/* ------------------ MODAL DE ACCIÓN (POP-UP) ------------------ */
.action-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    visibility: hidden; 
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.action-modal-container.active { 
    visibility: visible;
    opacity: 1;
}
.action-modal-content {
    background: #fff;
    color: #000;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    max-width: 90%;
    width: 650px;
    box-shadow: 0 5px 25px rgba(255, 55, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.action-modal-container.active .action-modal-content {
    transform: scale(1);
}
.action-modal-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}
.close-action-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}
.action-modal-content a.modal-link {
    display: block; 
    margin-top: 15px; 
    background: var(--primary); 
    color: white; 
    padding: 10px; 
    text-decoration: none; 
    border-radius: 5px; 
    text-align: center;
}
.action-modal-content audio {
    width: 100%; 
    margin-top: 15px;
}
.action-modal-content iframe {
    width: 100%; 
    height: 315px;
    margin-top: 15px;
}
/* Fin Estilos Modal de Acción */


/* ------------------ Encabezado (HEADER) ------------------ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.logo {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.toggle-btn {
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    display: block;
}

.nav {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.nav.active {
    display: flex;
    transform: translateY(0);
}

.nav li {
    list-style: none;
    margin: 10px 0;
}

.nav li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

.nav li:hover a {
    color: var(--primary);
}

.header-buttons {
    display: none;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background-color 0.3s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ------------------ Sección del Banner ------------------ */
.banner {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-position: center;
    overflow: hidden;
    transition: 0.5s;
    background-repeat: no-repeat;
    
    /* FIX: 'contain' para que la imagen se vea COMPLETA en móvil sin recorte */
    background-size: contain; 
    background-color: #000; 
}



.banner.contain {
    background-size: contain; 
    background-color: #000; 
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 10%, transparent);
    z-index: 1;
}

.content {
    position: relative;
    width: 100%;
    max-width: none;
    z-index: 2;
    visibility: hidden;
    transform: scale(0);
    transition: 0.5s;
    text-align: center; 
    margin-bottom: 20px;
}

.content.active {
    visibility: visible;
    transform: scale(1);
}

.movie-title {
    max-width: 200px;
}

.movie-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.movie-info span {
    padding-right: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    margin-right: 10px;
}



.movie-info span:last-child {
    border-right: none;
    margin-right: 0;
}

.banner .content p {
    font-size: 0.9em;
    line-height: 1.4em;
    color: #ffffff;
    margin: 10px auto 20px auto;
    max-width: 50%;
    
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 10px;
    
}

.play-button, .list-button, .audio-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.play-button {
    background: var(--primary); 
    color: #fff;
}
.play-button:hover {
    background: #e63000;
}

.audio-button {
    background: #17a2b8; 
    color: #ffffff;
}
.audio-button:hover {
    background: #138496;
}

.list-button {
    background: #28a745; 
    color: #ffffff;
}
.list-button:hover {
    background: #218838;
}

.play-button i, .list-button i, .audio-button i {
    margin-right: 5px;
}

/* ------------------ Carrusel de ítems (Mobile) ------------------ */
.carousel-box {
    position: relative;
    z-index: 2;
    margin-top: 50px;
    display: flex;
    gap: 10px;
    width: 100%;
    /* Padding aumentado para que el zoom no corte los bordes */
    padding: 0 10% 20px; 
    overflow-x: scroll;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.carousel-box::-webkit-scrollbar {
    height: 5px;
}

.carousel-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.carousel-item {
    flex-shrink: 0;
    /* Mostrar 2 ítems a la vez en móvil */
    width: calc(50% - 5px); 
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: 0.3s ease-in-out;
    opacity: 1;
    transform: scale(0.9);
}

.carousel-item.active {
    transform: scale(0.5);
    opacity: 1;
    z-index: 5;
    /* Borde naranja completo a la foto activa */
    border: 3px solid var(--primary);
    box-shadow: 0 0 15px var(--primary);
    

}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* ------------------ BOTÓN FLOTANTE DE WHATSAPP ------------------ */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px; 
    right: 40px; 
    background-color: #25d366; 
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    font-family: 'Font Awesome 6 Brands'; 
    box-shadow: 2px 2px 3px #999;
    z-index: 99999; 
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none; 
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

.whatsapp-float .tooltip {
    visibility: hidden;
    width: 140px;
    background-color: #075e54;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    
    /* Posiciona 40px por encima del botón */
    top: -40px; 
    /* Centra el texto */
    left: 50%;
    transform: translateX(-50%);
    
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap; 

    /* Primera letra en mayúscula */
    text-transform: capitalize; 
}

.whatsapp-float:hover .tooltip {
    visibility: visible;
    opacity: 1;
}


/* ------------------ MEDIA QUERIES (Para pantallas grandes) ------------------ */

@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 30px 50px;
    }

    .logo {
        font-size: 2rem;
    }

    .toggle-btn {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        width: auto;
        flex-direction: row;
        background: transparent;
        padding: 0;
        transform: translateY(0);
    }
    
    .nav li {
        margin: 0 10px;
    }

    .header-buttons {
        display: block;
    }
    
    .banner {
        padding: 0 50px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        /* La imagen de fondo en escritorio se ve mejor con cover si hay texto a la izquierda */
        background-size: contain; 
    }
    
    .banner::before {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 20%, transparent 60%);
    }

    .content {
        max-width: 500px;
        margin-bottom: 0;
        text-align: left;
        
    }
    
    .movie-info {
        font-size: 1.1em;
        flex-wrap: nowrap;
        justify-content: flex-start;
        text-align: left;
    }
    
    
    
    /* --- AJUSTES DEL CARRUSEL (2 ÍTEMS + MOVIMIENTO) --- */
    .carousel-box {
        position: relative; 
        bottom: auto;
        left: auto;
        
        /* FIX: Ancho ajustado para que solo 2 ítems sean visibles y grandes */
        width: 480px; 
        
        /* FIX: Mueve el carrusel a la derecha (separación de 50px de su posición original) */
        margin-left: 50px; 
        
        margin-top: 150px;
        padding: 0; 
        
        overflow-x: hidden; 
    }

    .carousel-item {
        flex-shrink: 0;
        /* FIX: Ancho para que solo 2 ítems sean visibles (50% menos la mitad del gap) */
        width: calc(50% - 5px); 
        
        height: 250px;
        transform: scale(0.9);
    }
    
    .carousel-item.active {
        /* Se aplica un ligero desplazamiento vertical para el efecto de elevación */
        transform: scale(0.8) translateY(-20px);
        border: 3px solid var(--primary);
        box-shadow: 0 0 15px var(--primary);
    }
    
    .whatsapp-float .tooltip {
        /* Asegura que el tooltip se vea en escritorio */
        display: block; 
    }
}

@media (min-width: 1024px) {
    header {
        padding: 30px 100px;
    }

    .banner {
        padding: 0 100px;
    }
    
    .content {
        max-width: 600px;
    }
    
    .movie-title {
        max-width: 350px;
    }
    
    .carousel-box {
        /* Se amplía el carrusel en pantallas muy grandes */
        width: 400px; 
        gap: 15px;
        margin-left: 50px;
    }
    
    .carousel-item {
        /* Ajuste basado en 15px de gap para seguir mostrando 2 */
        width: calc(50% - 7.5px); 
    }
}


/* Flechas de Navegación */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 10px;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s;
    border-radius: 50%; 
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 5%;
}

.next-btn {
    right: 5%;
}

@media (min-width: 768px) {
    
    
    
    .prev-btn {
        /* Ajustado para que las flechas estén más cerca del carrusel movido */
        left: 50px; 
    }
    .next-btn {
        /* Ajustado para que las flechas estén más cerca del carrusel movido */
        right: 50px; 
    }
}

@media (min-width: 768px) {
    /* ... (resto de header, banner, etc.) ... */

    .banner {
        padding: 0 50px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        background-size: cover; 
    }
    
    .content {
        /* FIX: ESTO ES LO CLAVE: Limita el ancho para que el texto NO invada el carrusel */
        max-width: 450px; 
        margin-bottom: 0;
        /* Alinea el texto a la izquierda en escritorio */
        text-align: left; 
    }
    
    .banner .content p {
    font-size: 0.9em;
    line-height: 1.4em;
    color: #ffffff;
    margin: 10px 0 20px 0 ;
    max-width: 70%;
    margin-left:40px;
    
}
        .buttons {
        justify-content: flex-start; 
        /* FIX: Agregamos un margen a la izquierda de 15px */
        margin-left: 15px; 
    }
    
    .movie-info {
        font-size: 1.1em;
        flex-wrap: nowrap;
        /* Asegura que la info (año, duración) esté a la izquierda */
        justify-content: flex-start;
        margin-left:20px;
        
    }
    
 

    /* --- AJUSTES DEL CARRUSEL (1 ÍTEM + MOVIMIENTO) --- */
    .carousel-box {
        position: relative; 
        bottom: auto;
        left: auto;
        
        /* Ancho ajustado para mostrar solo 1 ítem a la vez (por ejemplo, 250px) */
        width: 250px; 
        
        /* Mantiene el movimiento hacia la derecha */
        margin-left: 50px; 
        
        margin-top: 150px;
        padding: 0; 
        
        overflow-x: hidden; 
        margin-right:70px;
    }

    .carousel-item {
        flex-shrink: 0;
        /* FIX: Cambiado a 100% para mostrar solo 1 imagen a la vez */
        width: 100%; 
        
        height: 300px; 
        transform: scale(0.9);
    }
    
    .carousel-item.active {
        transform: scale(0.9); 
        box-shadow: 0 0 15px var(--primary);
        border: 3px solid var(--primary);
        

    }
    
    /* ... (resto del media query) ... */
}

/* Puntos de Navegación */
.carousel-indicators {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


    

.carousel-indicators .dot.active {
    background-color: #fff;
    transform: scale(1.2);
}



