:root{
    --rojo:#db0000;
    --negro:#000000;
    --blanco:#ffffff;
    --gris:#b3b3b3;
}

body {
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), #141414),
                url("IMAGENES/banner2.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    font-family: sans-serif;
    margin-left: 80px;
}

html {
    scroll-snap-type: y proximity;
}

section {
    scroll-snap-align: start;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 70px;
    height: 100vh;
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    z-index: 100;
}

.logo {
    color: red;
    font-size: 3rem;
}

.menu {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu a {
    color: var(--gris);
    font-size: 1.8rem;
    text-decoration: none;
    transition: 0.3s;
}

.menu a:hover {
    color: white;
    transform: scale(1.2);
}

.menu a.active {
    color: white;
    border-left: 3px solid red;
    padding-left: 10px;
}

.hero {
    position: relative;
    height: 100vh;
    background-image: url(../Bridgerton/IMAGENES/banner.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.9) 30%, transparent);
}

.hero-contenido {
    position: relative;
    z-index: 2;
    padding: 60px;
    max-width: 600px;
}

.netflix {
    color: red;
    font-size: 1rem;
    margin-bottom: 10px;
}

.titulo-serie {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.botones {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.btn-play {
    background: white;
    color: black;
    padding: 10px 20px;
    border: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

.btn-play:hover {
    background: #e6e6e6;
}

.btn-icono {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px;
    color: white;
    border-radius: 50%;
    cursor: pointer;
}

.btn-icono:hover {
    background: rgba(255,255,255,0.4);
}

.info span {
    margin-right: 10px;
    font-size: 0.9rem;
}

.hd {
    border: 1px solid white;
    padding: 2px 5px;
}

.clasificacion {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.promo {
    font-weight: bold;
    margin: 15px 0;
}

.extra {
    font-size: 0.9rem;
    color: #ccc;
}

.fila {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.fila + .fila {
    margin-top: 80px;
}

.fila:not(:last-child)::after {
    content: "";
    display: block;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-top: 40px;
}

.fila h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 25px;
}

.contenedor-carrusel {
    position: relative;
    display: flex;
    align-items: center;
}

.carrusel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
}

.carrusel::-webkit-scrollbar {
    display: none;
}

.item {
    min-width: 260px;
    cursor: pointer;
}

.item img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.item p {
    text-align: center;
    margin-top: 5px;
}

.flecha {
    position: absolute;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 12px;
    cursor: pointer;
}

.izquierda { left: 0; }
.derecha { right: 0; }

.formulario {
    background-color: #181818;
    width: min(60rem, 100%);
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}

.campos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.campo {
    display: flex;
    flex-direction: column;
}

.campo input,
.campo textarea {
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #333;
    color: white;
    transition: 0.3s;
}

.campo:nth-child(3),
.campo:nth-child(4) {
    grid-column: 1 / 3;
}

.boton {
    background-color: red;
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
}

.w-100 {
    width: 100%;
}

@media (max-width: 768px) {
    .campos {
        grid-template-columns: 1fr;
    }
}

.footer {
    text-align: center;
    padding: 20px;
}