/* ========================= */
/* VARIABLES */
/* ========================= */

:root{

    --rojo:#C8102E;
    --rojoHover:#990B24;

    --negro:#141414;
    --negroClaro:#232323;

    --madera:#5B3A29;
    --maderaOscura:#3D271A;

    --crema:#F2ECE4;

    --blanco:#FFFFFF;

    --gris:#7B7B7B;

    --sombra:0 15px 35px rgba(0,0,0,.25);

}

/* ========================= */
/* RESET */
/* ========================= */

*{

    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--negro);

    color:var(--blanco);

    overflow-x:hidden;

}

img{

    max-width:100%;

    display:block;

}

section{

    padding:100px 10%;

    background:var(--crema);

}

/* ========================= */
/* NAVBAR */
/* ========================= */

nav{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:85px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 70px;

    background:rgba(15,15,15,.65);
    backdrop-filter:blur(18px);

    border-bottom:2px solid rgba(200,16,46,.15);

    transition:.35s;

    z-index:999;

}


nav.scrolled{

    background:#111;
    box-shadow:0 10px 25px rgba(200,16,46,.18);

}


.logo{

    display:flex;
    align-items:center;

}


.logo img{

    height:60px;
    width:auto;

    transition:.3s;

}


.logo img:hover{

    transform:scale(1.08);

}



nav ul{

    display:flex;

    align-items:center;

    list-style:none;

    gap:40px;

}


nav ul li a{

    color:white;

    text-decoration:none;

    font-weight:500;

    position:relative;

    transition:.3s;

}



nav ul li a::after{

    content:"";

    position:absolute;

    bottom:-8px;

    left:0;

    width:0;

    height:2px;

    background:var(--rojo);

    transition:.35s;

}



nav ul li a:hover::after{

    width:100%;

}



nav ul li a:hover{

    color:#ff516f;

}



/* BOTÓN HAMBURGUESA */

.menu-toggle{

    display:none;

    background:none;

    border:none;

    font-size:35px;

    color:white;

    cursor:pointer;

}

/* ========================= */
/* HERO */
/* ========================= */

header{

    position:relative;

    width:100%;

    height:100vh;

    overflow:hidden;

    display:flex;

    justify-content:center;

    align-items:center;

}

#videoFondo{

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:100%;

    object-fit:cover;

    z-index:-2;

    filter:brightness(.75);

}

.overlay{

    position:absolute;

    inset:0;

    background:linear-gradient(
        rgba(20,20,20,.45),
        rgba(20,20,20,.70)
    );

    z-index:-1;

}

.hero{

    position:relative;

    text-align:center;

    width:min(900px,90%);

    color:white;

    animation:fadeUp 1.2s ease;

}

.hero h1{

    font-size:4.4rem;

    font-weight:700;

    margin-bottom:25px;

    text-shadow:0 0 20px rgba(0,0,0,.4);

}

.hero p{

    font-size:1.2rem;

    color:#f0f0f0;

    line-height:1.9;

    margin-bottom:45px;

}

/* ========================= */
/* BOTONES */
/* ========================= */

.btn{

    display:inline-block;

    padding:16px 38px;

    background:linear-gradient(135deg,var(--rojo),var(--rojoHover));

    color:white;

    text-decoration:none;

    border:none;

    border-radius:50px;

    font-weight:600;

    font-size:16px;

    cursor:pointer;

    transition:.35s;

    box-shadow:0 10px 25px rgba(200,16,46,.35);

}

.btn:hover{

    background:linear-gradient(135deg,var(--rojoHover),var(--rojo));

    transform:translateY(-4px);

    box-shadow:0 18px 35px rgba(200,16,46,.45);

}

/* ========================= */
/* SOBRE EL ASESOR */
/* ========================= */

#asesor{

    background:linear-gradient(180deg,#EFE6DA,#E5D5C2);

}

.contenedor{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:70px;

    flex-wrap:wrap;

}

.contenedor img{

    width:350px;

    height:450px;

    object-fit:cover;

    border-radius:25px;

    border:4px solid var(--madera);

    box-shadow:0 20px 45px rgba(0,0,0,.25);

}

.texto{

    flex:1;

    min-width:320px;

}

.texto h2{

    color:var(--madera);

    font-size:2.4rem;

    margin-bottom:20px;

}

.texto p{

    color:#555;

    line-height:1.9;

    font-size:1.05rem;

}

/* ========================= */
/* MODELOS */
/* ========================= */

#autos{

    background:#F5F1EB;

}

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

    gap:35px;

}

.card{

    background:white;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.12);

    transition:.35s;

    border-bottom:6px solid var(--madera);

}

.card:hover{

    transform:translateY(-12px);

    box-shadow:0 18px 45px rgba(200,16,46,.18);

}

.card img{

    width:100%;

    height:220px;

    object-fit:cover;

    transition:.4s;

}

.card:hover img{

    transform:scale(1.05);

}

.card h3{

    color:var(--madera);

    margin:22px 20px 12px;

    font-size:1.5rem;

}

.card p{

    color:#666;

    margin:0 20px;

    line-height:1.8;

    min-height:85px;

}

.card button{

    margin:25px 20px 20px;

    padding:15px;

    border:none;

    border-radius:50px;

    background:var(--rojo);

    color:white;

    cursor:pointer;

    font-weight:600;

    transition:.3s;

}

.card button:hover{

    background:var(--rojoHover);

    transform:translateY(-2px);

}

/* ========================= */
/* VENTAJAS */
/* ========================= */

#ventajas{

    background:linear-gradient(180deg,#4A2E1F,#2E1C13);

}

#ventajas .titulo{

    color:white;

}

#ventajas .card{

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(8px);

    border:1px solid rgba(255,255,255,.08);

    color:white;

    text-align:center;

    padding:35px;

}

#ventajas .card h3{

    color:#FFD9A3;

    margin-bottom:18px;

}

#ventajas .card p{

    color:#E8E8E8;

}

/* ========================= */
/* FOOTER */
/* ========================= */

footer{

    background:#111;

    color:white;

    text-align:center;

    padding:80px 10%;

    border-top:5px solid var(--rojo);

}

footer h2{

    font-size:2.3rem;

    margin-bottom:20px;

}

footer p{

    color:#CCC;

    margin:10px 0;

}

footer .btn{

    margin-top:30px;

}

/* ========================= */
/* BOTÓN WHATSAPP */
/* ========================= */

.whatsapp{

    position:fixed;

    right:25px;

    bottom:25px;

    width:68px;

    height:68px;

    border-radius:50%;

    background:#25D366;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:32px;

    text-decoration:none;

    box-shadow:0 12px 30px rgba(0,0,0,.25);

    transition:.3s;

    z-index:999;

}

.whatsapp:hover{

    transform:scale(1.12);

}

/* ========================= */
/* SCROLLBAR */
/* ========================= */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#DDD;

}

::-webkit-scrollbar-thumb{

    background:var(--rojo);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:var(--rojoHover);

}

#visitas{

    background:#181818;

    color:white;

    text-align:center;

    padding:70px 20px;

}

.contador{

    font-size:3.8rem;

    font-weight:700;

    color:#C8102E;

    margin-top:20px;

}

/* ========================= */
/* GALERÍA DE ENTREGAS */
/* ========================= */


#entregas{

    background:
    linear-gradient(
        180deg,
        #171717,
        #252525
    );

    padding:90px 5%;

    text-align:center;

}


#entregas .titulo{

    color:white;

    font-size:3rem;

    margin-bottom:15px;

}


.subtitulo{

    color:#ccc;

    margin-bottom:50px;

}



/* CONTENEDOR */

.galeria-videos{

    display:flex;

    gap:35px;

    overflow-x:auto;

    padding:30px;

    scroll-behavior:smooth;

    cursor:grab;

}


.galeria-videos::-webkit-scrollbar{

    height:8px;

}


.galeria-videos::-webkit-scrollbar-thumb{

    background:#C8102E;

    border-radius:20px;

}


/* TARJETAS */


.video-card{

    min-width:330px;

    background:#111;

    border-radius:25px;

    overflow:hidden;

    transition:.4s;

    box-shadow:
    0 20px 50px rgba(0,0,0,.5);

    opacity:.65;

}


.video-card:hover{

    transform:translateY(-15px) scale(1.03);

    opacity:1;

}



.video-card.activo{

    opacity:1;

    border:3px solid #C8102E;

}



/* VIDEO */


.video-card video{

    width:100%;

    height:450px;

    object-fit:cover;

    display:block;

}



/* TEXTO */


.info-video{

    padding:25px;

}


.info-video h3{

    color:white;

    font-size:1.4rem;

    margin-bottom:10px;

}


.info-video p{

    color:#bbb;

    font-size:.95rem;

}




@media(max-width:768px){


    .video-card{

        min-width:280px;

    }


    .video-card video{

        height:380px;

    }


}
/*============================*/
/* MENÚ HAMBURGUESA */
/*============================*/

.menu-toggle{

    display:none;

    font-size:35px;

    color:white;

    cursor:pointer;

    user-select:none;

}

/* CELULARES */

@media (max-width:768px){


    nav{

        height:75px;

        padding:10px 20px;

    }



    .logo img{

        height:45px;

    }



    .menu-toggle{

        display:block;

    }



    nav ul{

        position:absolute;

        top:75px;

        left:0;

        width:100%;


        background:rgba(20,20,20,.98);

        backdrop-filter:blur(15px);


        display:none;

        flex-direction:column;

        gap:25px;


        padding:30px 0;

    }



    nav ul.active{

        display:flex;

    }



    nav ul li{

        text-align:center;

    }



    nav ul li a{

        font-size:18px;

    }


}

