* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #090911;
    color: white;
    font-family: "Avenir Next", Arial, sans-serif;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 5%;
    background: rgba(9, 9, 17, 0.92);
    backdrop-filter: blur(15px);
    gap: 20px;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    letter-spacing: -1.5px;
    white-space: nowrap;
}

.logo span {
    color: #a78bfa;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #cccccc;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: white;
}

#buscador {
    background: #20202d;
    border: 1px solid #353545;
    border-radius: 25px;
    padding: 12px 20px;
    color: white;
    outline: none;
    width: 240px;
}

#buscador:focus {
    border-color: #a78bfa;
}

.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 5%;
    background:
        radial-gradient(
            ellipse at top,
            #352064,
            transparent 75%
        ),
        linear-gradient(
            to bottom,
            #151025,
            #090911
        );
}

.hero h1 {
    font-size: clamp(42px, 7vw, 85px);
    letter-spacing: -3px;
    margin: 15px 0;
}

.hero p {
    color: #c5bfd5;
    font-size: 18px;
    letter-spacing: 2px;
}

.boton {
    display: inline-block;
    background: white;
    color: #090911;
    text-decoration: none;
    font-weight: bold;
    padding: 15px 32px;
    border-radius: 8px;
    margin-top: 30px;
    transition: 0.3s;
}

.boton:hover {
    background: #a78bfa;
    transform: scale(1.04);
}

main {
    padding: 35px 5%;
}

h2 {
    font-size: 26px;
    margin-bottom: 25px;
}

.catalogo {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(160px, 1fr));
    gap: 22px;
}

.pelicula {
    background: #181824;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
}

.pelicula:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #9274ef55;
}

.pelicula img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.pelicula h3 {
    padding: 15px;
    font-size: 16px;
}

footer {
    text-align: center;
    color: #777;
    padding: 50px 20px;
    font-size: 14px;
}

@media (max-width: 650px) {
    header {
        flex-wrap: wrap;
    }

    nav {
        gap: 20px;
    }

    #buscador {
        width: 100%;
    }

    .catalogo {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .hero {
        min-height: 50vh;
    }
}