:root {
    --primary-color: #e50914; /* Rojo de Netflix */
    --background-color: #141414; /* Negro de Netflix */
    --text-color: #e5e5e5;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* --------------------
   ESTILOS GENERALES Y RESET
   -------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* --------------------
   HEADER (Encabezado)
   -------------------- */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    transition: background-color 0.3s ease;
}

.header.scrolled {
    background-color: var(--background-color);
}

.header-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 20px 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-list a {
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: #fff;
    font-weight: bold;
}

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --------------------
   SECCIÓN PRINCIPAL (HERO)
   -------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%), url('imagenes/Diseno-sin-titulo-255.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 4%;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.hero-buttons button {
    padding: 12px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button {
    background-color: #fff;
    color: var(--background-color);
}

.play-button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.info-button {
    background-color: rgba(109, 109, 110, 0.7);
    color: #fff;
    margin-left: 15px;
}

.info-button:hover {
    background-color: rgba(109, 109, 110, 0.5);
}

/* --------------------
   FILAS DE CONTENIDO (CARRUSEL)
   -------------------- */
main {
    padding-bottom: 50px;
}

.content-row-section {
    position: relative;
    padding: 0 4%;
    margin-bottom: 30px;
}

.row-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.content-row {
    position: relative;
    display: flex;
    align-items: center;
}

.movie-gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 10px;
    overflow-x: hidden; /* Oculta el scroll nativo */
    scroll-behavior: smooth;
    width: 100%;
}

/* Oculta la barra de scroll para una apariencia más limpia */
.movie-gallery::-webkit-scrollbar {
    display: none;
}
.movie-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Estilos de las flechas de scroll */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.scroll-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.scroll-arrow.left {
    left: 4%;
}

.scroll-arrow.right {
    right: 4%;
}

.movie-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.movie-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* --------------------
   MEDIA QUERIES (DISEÑO RESPONSIVE)
   -------------------- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.95);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 99;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hamburger-menu {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .content-row-section {
        padding: 0;
    }

    .content-row {
        justify-content: flex-start;
    }

    .movie-gallery {
        overflow-x: scroll; /* Permite el scroll nativo en móvil */
        grid-auto-columns: 150px;
        padding-left: 4%;
    }
    
    .scroll-arrow {
        display: none; /* Oculta las flechas en pantallas pequeñas */
    }
}