/*=========================
RESET
=========================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#050505;
    color:white;
    overflow-x:hidden;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

.container{
    width:90%;
    max-width:1300px;
    margin:auto;
}

/*=========================
VARIABLES
=========================*/

:root{
    --red:#d61d1d;
    --dark:#050505;
    --dark2:#0b0b0b;
    --gray:#a5a5a5;
    --white:#ffffff;
}

/*=========================
HEADER
=========================*/

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:999;
    background:rgba(0,0,0,.8);
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,.05);
}

.nav-container{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:90px;
}

.logo img{
    height:60px;
}

.nav-links{
    display:flex;
    gap:35px;
}

.nav-links a{
    color:white;
    font-size:.95rem;
    transition:.3s;
}

.nav-links a:hover{
    color:var(--red);
}

.menu-btn{
    display:none;
    color:white;
    font-size:1.7rem;
    cursor:pointer;
}

/*=========================
HERO
=========================*/

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;
    background:
    radial-gradient(circle at right,
    rgba(214,29,29,.2),
    transparent 40%),
    #050505;
    overflow:hidden;
}

.hero-content{
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    gap:50px;
}

.hero-tag{
    color:var(--red);
    letter-spacing:2px;
    font-size:.9rem;
}

.hero h1{
    font-size:4.2rem;
    line-height:1.1;
    margin:15px 0;
}

.hero h1 span{
    display:block;
}

.hero h3{
    color:var(--red);
    font-size:2rem;
    font-weight:400;
    margin-bottom:20px;
}

.hero p{
    max-width:500px;
    color:#cfcfcf;
    line-height:1.8;
    margin-bottom:30px;
}

/*=========================
BOTONES
=========================*/

.hero-buttons{
    display:flex;
    gap:15px;
    margin-bottom:35px;
}

.btn{
    padding:15px 30px;
    border-radius:8px;
    transition:.3s;
}

.btn-primary{
    background:linear-gradient(
    135deg,
    #d61d1d,
    #ff3434);
    color:white;
    box-shadow:
    0 10px 25px rgba(214,29,29,.3);
}

.btn-primary:hover{
    transform:
    translateY(-5px);
    box-shadow:
    0 15px 35px rgba(214,29,29,.5);
}

.btn-outline{
    border:1px solid #444;
    color:white;
}

/*=========================
FEATURES
=========================*/

.hero-features{
    display:flex;
    gap:30px;
}

.feature{
    display:flex;
    align-items:center;
    gap:10px;
}

.feature i{
    color:var(--red);
}

/*=========================
AUTO PRINCIPAL
=========================*/

.hero-image img{
    animation:float 4s ease-in-out infinite;
}

@keyframes float{
    0%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-15px);
    }
    100%{
        transform:translateY(0);
    }
}

/*=========================
REDES SOCIALES
=========================*/

.social-sidebar{
    position:absolute;
    left:20px;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    flex-direction:column;
    gap:15px;
}

.social-sidebar a{
    width:45px;
    height:45px;
    border:1px solid #333;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
}

/*=========================
NOSOTROS
=========================*/

.about{
    padding:120px 0;
    background:#090909;
}

.about-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
}

.about h2{
    font-size:3rem;
    margin:15px 0;
}

.section-tag{
    color:var(--red);
}

.about-right{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.about-card{
    background:#111;
    padding:30px;
    border:1px solid #1f1f1f;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

.about-card:hover{
    transform:
    translateY(-10px);
    border-color:var(--red);
    box-shadow:
    0 15px 35px rgba(214,29,29,.15);
}

.about-card i{
    font-size:2rem;
    color:var(--red);
    margin-bottom:15px;
}

/*=========================
WHATSAPP FLOTANTE
=========================*/

.whatsapp{
    position:fixed;
    right:25px;
    bottom:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:2rem;
    z-index:999;
}

/*=========================
RESPONSIVE
=========================*/

@media(max-width:992px){
    .hero-content,
    .about-grid{
        grid-template-columns:1fr;
    }

    .hero{
        padding-top:120px;
    }

    .hero h1{
        font-size:3rem;
    }

    .social-sidebar{
        display:none;
    }

}

.benefits-grid{
    grid-template-columns:repeat(2,1fr);
}

.timeline{
    grid-template-columns:1fr;
}

.timeline::before{
    display:none;
}

@media(max-width:768px){
    .menu-btn{
        display:block;
    }

    .navbar{
        position:fixed;
        top:90px;
        left:-100%;
        width:100%;
        background:#080808;
        transition:.4s;
    }

    .navbar.active{
        left:0;
    }

    .nav-links{
        flex-direction:column;
        padding:30px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .hero-features{
        flex-direction:column;
    }

    .about-right{
        grid-template-columns:1fr;
    }

}

/*=========================
INVENTARIO
=========================*/

.inventory{

    padding:120px 0;

    background:#050505;
}

.cars-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:30px;

    margin-top:60px;
}

/* CARD */

.car-card{

    background:#111;

    border-radius:20px;

    overflow:hidden;

    border:1px solid #222;

    transition:.4s ease;

    box-shadow:
    0 10px 25px rgba(0,0,0,.3);
}

.car-card:hover{

    transform:translateY(-10px);

    border-color:var(--red);

    box-shadow:
    0 20px 40px rgba(214,29,29,.25);
}

/* IMAGEN */

.car-image{

    position:relative;

    overflow:hidden;

    height:250px;
}

.car-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.6s ease;
}

.car-card:hover .car-image img{

    transform:scale(1.1);
}

/* OVERLAY */

.car-overlay{

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:
    linear-gradient(
        rgba(0,0,0,.2),
        rgba(0,0,0,.95)
    );

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:20px;

    opacity:0;

    transition:.4s ease;
}

.car-card:hover .car-overlay{

    opacity:1;
}

/* TEXTO OVERLAY */

.car-overlay h3{

    font-size:1.8rem;

    margin-bottom:10px;

    color:white;
}

.car-overlay span{

    color:var(--red);

    font-weight:700;

    margin-bottom:15px;
}

.car-overlay p{

    color:#fff;

    margin-bottom:15px;
}

.car-overlay .car-price{

    color:white;

    font-size:1.6rem;

    font-weight:700;
}

/* INFO */

.car-info{

    padding:25px;
}

.car-info h3{

    font-size:1.3rem;

    margin-bottom:15px;

    color:white;
}

.car-info p{

    color:#cfcfcf;

    line-height:1.8;
}

/* RESPONSIVE */

@media(max-width:992px){

    .cars-grid{

        grid-template-columns:
        repeat(2,1fr);
    }

}

@media(max-width:768px){

    .cars-grid{

        grid-template-columns:1fr;
    }

    .car-image{

        height:220px;
    }

}

/* BENEFITS */

.benefits{
    padding:120px 0;
    background:#080808;
}

.benefits-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

.benefit-card{
    background:#111;
    padding:40px 25px;
    text-align:center;
    border:1px solid #1d1d1d;
    transition:.4s;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

.benefit-card:hover{
    transform:translateY(-10px);
    border-color:var(--red);
    box-shadow:0 15px 35px rgba(214,29,29,.15);
}

.benefit-card i{
    font-size:2.5rem;
    color:var(--red);
    margin-bottom:20px;
}

.benefit-card h3{
    margin-bottom:15px;
}

/*=========================
PROCESO DE COMPRA
=========================*/

.process{
    padding:120px 0;
    background:#050505;
}

.timeline{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
    position:relative;
}

.timeline::before{
    content:"";
    position:absolute;
    top:40px;
    left:10%;
    width:80%;
    height:3px;
    background:var(--red);
}

.step{
    text-align:center;
    position:relative;
    z-index:2;
}

.step-number{
    width:80px;
    height:80px;
    margin:auto;
    border-radius:50%;
    background:var(--red);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.5rem;
    font-weight:bold;
    margin-bottom:20px;
}

/*=========================
TESTIMONIOS
=========================*/

.testimonials{
    padding:120px 0;
    background:#090909;
}

.testimonials-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:25px;
}

.testimonial-card{
    background:#111;
    padding:30px;
    border-radius:15px;
    border:1px solid #1d1d1d;
    transition:.4s;
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

.testimonial-card:hover{
    transform:translateY(-10px);
    border-color:var(--red);
    box-shadow:0 15px 35px rgba(214,29,29,.15);
}

.stars{
    font-size:1.2rem;
    margin-bottom:20px;
}

.client{
    display:flex;
    align-items:center;
    gap:15px;
    margin-top:25px;
}

.client img{
    width:60px;
    height:60px;
    border-radius:50%;
    object-fit:cover;
}

.gallery{
    padding:120px 0;
    background:#050505;
}

.social-links{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-bottom:50px;
}

.social-links a{
    width:60px;
    height:60px;
    border-radius:50%;
    background:#111;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.3rem;
    transition:.4s;
}

.social-links a:hover{
    background:var(--red);
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
}

.gallery-grid img{
    width:100%;
    height:280px;
    object-fit:cover;
    border-radius:12px;
    transition:.4s;
}

.gallery-grid img:hover{
    transform:scale(1.05);
}

/* UBICACION */

.location{
    padding:120px 0;
    background:#090909;
}

.location-grid{

    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    align-items:center;
}

.location-info h2{
    font-size:3rem;
    margin:15px 0;
}

.location-info ul{
    margin-top:25px;
}

.location-info li{
    margin-bottom:15px;
}

.map iframe{
    width:100%;
    height:450px;
    border:none;
    border-radius:15px;
}

/* FOOTER */

.footer{
    background:#050505;
    padding:60px 0 30px;
    border-top:1px solid #1d1d1d;
}

.footer-content{
    text-align:center;
}

.footer-content img{
    height:80px;
    margin:auto;
    margin-bottom:20px;
}

.footer-social{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:25px;
}

.footer-social a{
    color:white;
    font-size:1.2rem;
}

.copyright{
    text-align:center;
    margin-top:40px;
    color:#888;
}

@media(max-width:992px){
    .testimonials-grid,
    .gallery-grid,
    .location-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:768px){
    .hero h1{
        font-size:2.5rem;
    }
    .about h2,
    .location-info h2,
    .section-title{
        font-size:2rem;
    }
}

.light{
    position:absolute;
    border-radius:50%;
    filter:blur(120px);
    z-index:0;
}

.light-1{
    width:350px;
    height:350px;
    background:rgba(214,29,29,.25);
    top:-100px;
    right:-100px;
}

.light-2{

    width:300px;
    height:300px;
    background:rgba(214,29,29,.15);
    bottom:-100px;
    left:-100px;
}

.reveal{
    opacity:0;
    transform:
    translateY(80px);
    transition:
    all .8s ease;
}

.reveal.active{
    opacity:1;
    transform:
    translateY(0);
}

section{
    position:relative;
}

section::after{
    content:"";
    position:absolute;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:150px;
    height:1px;
    background:
    linear-gradient(
    90deg,
    transparent,
    rgba(214,29,29,.5),
    transparent);
}

.section-tag{
    display:block;
    width:fit-content;
    margin:0 auto 20px;
}

.section-title{
    text-align:center;
}

@media(max-width:768px){
    .car-overlay{
        opacity:1;
        background:
        linear-gradient(
            rgba(0,0,0,.1),
            rgba(0,0,0,.85)
        );
    }

}