/* ================== RESET ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #141414;
    color: #fff;
}

/* ================== HEADER ================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #1c1c1c;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #00b5e2;
}

/* ================== MENÚ ================== */
nav {
    position: relative;
}

nav .menu {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .menu li a {
    display: block;
    padding: 10px 18px;
    border-radius: 6px;
    background-color: #00b5e2;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, background 0.3s;
}

nav .menu li a:hover {
    background-color: #00b5e2;
    transform: scale(1.05);
}

nav .menu li a.active {
    background-color: #00b5e2;
}

/* ================== HAMBURGUESA ================== */
.menu-icon {
    display: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s;
}

.menu-icon:hover {
    transform: scale(1.2);
}

#menu-toggle {
    display: none;
}

/* ================== BOTÓN CERRAR ================== */
.close-menu {
    display: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    padding: 10px 25px;
}

/* ================== OVERLAY ================== */
nav .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ================== CARRUSEL ================== */
.carousel {
    padding: 20px;
    overflow: hidden;
}

.carousel h2 {
    margin-bottom: 10px;
}

.carousel-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-item img {
    width: 180px;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.carousel-item img:hover {
    transform: scale(1.1);
}

/* ================== GRID DE PELÍCULAS ================== */
.movies-grid {
    padding: 20px;
}

.movies-grid h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.movies-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.movie-box {
    text-align: center;
}

.movie-box img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 5px;
}

.movie-box p {
    margin-top: 5px;
    font-size: 14px;
    color: #ccc;
}

/* ================== PAGINACIÓN ================== */
.pagination {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a, 
.pagination button, 
.pagination span {
    background-color: #00b5e2;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
    text-align: center;
}

.pagination a:hover, 
.pagination button:hover, 
.pagination span:hover {
    background-color: #00b5e2;
    transform: scale(1.05);
}

/* Página activa */
.pagination .active {
    background-color: #00b5e2;
    pointer-events: none;
    transform: scale(1.05);
}

/* ================== FOOTER ================== */
footer {
    text-align: center;
    padding: 20px;
    background-color: #1c1c1c;
    color: #ccc;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {

    nav .menu {
        position: fixed;
        top: 0;
        right: -250px;
        height: 100%;
        width: 250px;
        flex-direction: column;
        background-color: #1c1c1c;
        padding-top: 60px;
        gap: 15px;
        transition: right 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 999;
    }

    nav .menu li a {
        padding: 15px 25px;
        font-size: 16px;
        border-radius: 0;
    }

    .close-menu {
        display: block;
    }

    #menu-toggle:checked + .menu-icon + .overlay {
        display: block;
        opacity: 1;
    }

    #menu-toggle:checked + .menu-icon + .overlay + .menu {
        right: 0;
    }

    .menu-icon {
        display: block;
    }

    .carousel-item img {
        width: 120px;
        height: 180px;
    }

    .movies-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .movie-box img {
        height: 150px;
    }

    .movie-box p {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* CONTENEDORES */

.account-box, .support-box, .plans-box {
    background: #111;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 8px;
    width: 95%;
    max-width: 600px;
    margin: auto;
}

.account-box input,
.account-box textarea,
.support-box textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 15px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #e50914;
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #b2070f;
}

/* CHAT */
.chat-container {
    width: 95%;
    max-width: 700px;
    height: 450px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    margin: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.message-user, .message-admin {
    max-width: 70%;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.message-user {
    background: #e50914;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.message-admin {
    background: #222;
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.chat-input {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}
.chat-input textarea {
    flex-grow: 1;
    height: 60px;
    resize: none;
    background: #222;
    border: 1px solid #333;
    color: white;
    padding: 10px;
    border-radius: 6px;
}
