

/* Reglas generales y Mobile-First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    -primary: #16a2b8;
}

body {
    background: #000000;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* ------------------ 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: 70px;
    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;
}

.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; /* Opcional, pero recomendado */
    
}

.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;
    max-width: 90%;
}

.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;
}

.play-button {
    background: #ffffff;
    color: #000;
}

.play-button i, .list-button i, .audio-button i {
    margin-right: 5px;
}

.play-button:hover {
    background: rgba(255,255,255,0.8);
}

.list-button {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.5);
}

.list-button:hover {
    background: rgba(255,255,255,0.3);
}

.audio-button {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.5);
}

.audio-button:hover {
    background: rgba(255,255,255,0.3);
}

/* ------------------ Carrusel de ítems ------------------ */
.carousel-box {
    position: relative;
    z-index: 2;
    margin-top: 50px;
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 0 5% 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;
    width: 120px;
    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(1.1);
    opacity: 1;
    z-index: 5;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ------------------ 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;
    }
    
    .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-title {
        max-width: 250px;
    }

    .movie-info {
        font-size: 1.1em;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .buttons {
        gap: 20px;
    }
    
    .play-button, .list-button, .audio-button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    
    .play-button i, .list-button i, .audio-button i {
        margin-right: 10px;
    }
    
    .carousel-box {
        position: relative;
        bottom: auto;
        left: auto;
        width: 400px;
        padding: 0;
        margin-top: 150px;
        overflow-x: hidden;
    }

    .carousel-item {
        width: 150px;
        height: 220px;
        transform: scale(0.9);
    }
    
    .carousel-item.active {
        transform: scale(1.1) translateY(-20px);
    }
}

@media (min-width: 1024px) {
    header {
        padding: 30px 100px;
    }

    .banner {
        padding: 0 100px;
    }
    
    .content {
        max-width: 600px;
    }
    
    .movie-title {
        max-width: 350px;
    }
    
    .carousel-box {
        width: 600px;
        gap: 15px;
    }
}


/* 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;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    /* Ajusta la posición para que esté más cerca del carrusel */
    left: 5%; 
}

.next-btn {
    /* Ajusta la posición para que esté más cerca del carrusel */
    right: 5%;
}

@media (min-width: 768px) {
    .prev-btn {
        left: 50px;
    }
    .next-btn {
        right: 50px;
    }
}



/* 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;
}

.carousel-control:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 5%;
}

.next-btn {
    right: 5%;
}

/* Puntos de Navegación */
.carousel-indicators {
    /* La posición relativa es correcta para que aparezca en el flujo del documento */
    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);
}

/* Media Query para pantallas grandes */
@media (min-width: 768px) {
    .prev-btn {
        left: 50px;
    }
    .next-btn {
        right: 50px;
    }
}