/* =======================================================
   OSCAR'S OFFICIAL
   Hoja de estilos
   Parte 1
======================================================= */

/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:black;
    color:#333;
    line-height:1.6;

}


/* ===========================
   VARIABLES
=========================== */

:root{

    --rojo:#c40000;
    --rojoOscuro:#8e0000;

    --negro:#111111;

    --gris:#f5f5f5;
    --gris2:#dddddd;
    --gris3:#666666;

    --blanco:#ffffff;

    --sombra:0px 10px 25px rgba(0,0,0,.12);

    --radio:12px;

    --transicion:.35s;

}

/* ===========================
   HEADER
=========================== */

header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    height:110px;

    background:#000;

    display:flex;

    justify-content:flex-end;

    align-items:center;

    padding:0 5%;

    z-index:1000;

}


.logo-img{

    position:absolute;

    left:50%;

    top:50%;

    transform:translate(-50%,-50%);

    z-index:1001;

}

.logo-img img{

    width:clamp(140px,18vw,280px);

    height:auto;

    display:block;

}

nav{

    margin-left:auto;
    display:block;
}


/* ===========================
   LOGO
=========================== */

.logo h1{

    color:var(--rojo);

    font-size:36px;

    font-weight:800;

}

.logo p{

    color:white;

    font-size:14px;

    margin-top:3px;

}

/* ===========================
   MENÚ
=========================== */



.menu-toggle{

    display:none;

    position:absolute;

    right:40px;

    top:50%;

    transform:translateY(-10%);

    background:none;

    border:none;

    cursor:pointer;

    padding:0;

}

.menu-toggle img{

    width:35px;

    height:35px;

    object-fit:contain;

}

nav ul{

    display:flex;

    gap:clamp(10px,2vw,35px);

    list-style:none;

}

nav ul li a{

    color:white;

    text-decoration:none;

    font-size:clamp(14px,1.1vw,20px);

    font-weight:600;

}

@media(max-width:900px){

    nav{

        display:none;

    }
    .menu-toggle{

        display:block;

    }

}

@media (max-width:900px){

    nav{

        display:none;

        position:absolute;

        top:110px;

        right:20px;

        background:#000;

        padding:20px;

        border-radius:10px;

    }

    nav.activo{

        display:block;

    }

    nav ul{

        display:flex;

        flex-direction:column;

        gap:20px;

    }

}

nav a{

    text-decoration:none;

    color:white;

    font-weight:600;

    transition:var(--transicion);

}

nav a:hover{

    color:var(--rojo);

}

/* ===========================
   BANNER
=========================== */

.banner{

    margin-top:90px;

    height:88vh;

    background-image:
    linear-gradient(rgba(0,0,0,.55),
    rgba(0,0,0,.55)),
    url("../img/banner.jpg");

    background-size:cover;

    background-position:center;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    color:white;

}

.banner-contenido{

    width:80%;

}

.banner h2{

    font-size:65px;

    margin-bottom:25px;

    text-shadow:2px 2px 8px black;

}

.banner p{

    font-size:23px;

    margin-bottom:40px;

}

/* ===========================
   BOTÓN PRINCIPAL
=========================== */

.boton{

    display:inline-block;

    padding:16px 42px;

    background:var(--rojo);

    color:white;

    text-decoration:none;

    border-radius:40px;

    font-size:18px;

    font-weight:bold;

    transition:var(--transicion);

}

.boton:hover{

    background:var(--rojoOscuro);

    transform:translateY(-3px);

}

/* ===========================
   BUSCADOR
=========================== */

.buscador{

    background:white;

    width:90%;

    margin:60px auto;

    padding:40px;

    border-radius:var(--radio);

    box-shadow:var(--sombra);

}

.buscador h2{

    text-align:center;

    margin-bottom:30px;

    color:var(--rojo);

}

.contenedor-buscador{

    display:grid;

    grid-template-columns:

    repeat(auto-fit,minmax(200px,1fr));

    gap:20px;

}

.contenedor-buscador input,

.contenedor-buscador select{

    padding:15px;

    border:1px solid #ccc;

    border-radius:10px;

    font-size:16px;

}

.contenedor-buscador input:focus,

.contenedor-buscador select:focus{

    outline:none;

    border:1px solid var(--rojo);

}

#btnBuscar{

    background:var(--rojo);

    color:white;

    border:none;

    border-radius:10px;

    cursor:pointer;

    font-size:18px;

    transition:var(--transicion);

}

#btnBuscar:hover{

    background:var(--rojoOscuro);

}

/* ===========================
   TÍTULOS
=========================== */

.titulo-seccion{

    text-align:center;

    font-size:42px;

    margin:70px 0 50px;

    color:white;

    position:relative;

}

.titulo-seccion::after{

    content:"";

    display:block;

    width:90px;

    height:5px;

    background:var(--rojo);

    margin:15px auto;

    border-radius:10px;

}
/* =======================================================
   CATÁLOGO DE VEHÍCULOS
======================================================= */

#catalogo{

    width:90%;
    margin:60px auto;

}

.contenedor-coches{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(360px,1fr));

    gap:35px;

}

/* =======================================================
   TARJETA DEL VEHÍCULO
======================================================= */

.tarjeta{

    position:relative;

    background:white;

    border-radius:15px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.12);

    transition:.35s;

}

.tarjeta:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 35px rgba(0,0,0,.18);

}

/* =======================================================
   ETIQUETAS
======================================================= */

.etiqueta{

    position:absolute;

    top:15px;

    left:15px;

    color:white;

    padding:8px 18px;

    border-radius:30px;

    font-size:13px;

    font-weight:bold;

    z-index:10;

}

.destacado{

    background:#d32f2f;

}

.nuevo{

    background:#2e7d32;

}

.oferta{

    background:#ff9800;

}

.premium{

    background:#212121;

}

/* =======================================================
   SLIDER
======================================================= */

.slider{

    position:relative;

    width:100%;

    height:250px;

    overflow:hidden;

    background:#ddd;

}

.slide{

    display:none;

    width:100%;

    height:250x;

    object-fit:cover;

}

.slide.activa{

    display:block;

}

/* =======================================================
   BOTONES DEL SLIDER
======================================================= */

.prev,
.next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:45px;

    height:45px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.55);

    color:white;

    cursor:pointer;

    font-size:20px;

    transition:.3s;

    z-index:20;

}

.prev:hover,
.next:hover{

    background:rgba(196,0,0,.9);

}

.prev{

    left:10px;

}

.next{

    right:10px;

}

/* =======================================================
   INFORMACIÓN
======================================================= */

.info{

    padding:25px;

}

.info h3{

    font-size:28px;

    margin-bottom:15px;

    color:#222;

}

.precio{

    color:#c40000;

    font-size:34px;

    margin-bottom:20px;

    font-weight:bold;

}

/* =======================================================
   TABLA
======================================================= */

.info table{

    width:100%;

    border-collapse:collapse;

    margin-bottom:20px;

}

.info table td{

    padding:10px;

    border-bottom:1px solid #ececec;

}

.info table tr:last-child td{

    border:none;

}

/* =======================================================
   DESCRIPCIÓN
======================================================= */

.info p{

    color:#666;

    margin-bottom:25px;

    text-align:justify;

}

/* =======================================================
   BOTONES
======================================================= */

.botones{

    display:flex;

    gap:15px;

}

.botones button{

    flex:1;

    border:none;

    cursor:pointer;

    padding:14px;

    border-radius:8px;

    color:white;

    font-size:16px;

    font-weight:bold;

    transition:.3s;

}

.infoBtn{

    background:#222;

}

.infoBtn:hover{

    background:#000;

}

.contactoBtn{

    background:#c40000;

}

.contactoBtn:hover{

    background:#8e0000;

}

/* =======================================================
   EFECTO HOVER EN LA IMAGEN
======================================================= */

.slider img{

    transition:.5s;

}

.tarjeta:hover .slider img{

    transform:scale(1.05);

}

/* =======================================================
   SCROLLBAR
======================================================= */

::-webkit-scrollbar{

    width:12px;

}

::-webkit-scrollbar-track{

    background:#efefef;

}

::-webkit-scrollbar-thumb{

    background:#c40000;

    border-radius:10px;

}

::-webkit-scrollbar-thumb:hover{

    background:#8e0000;

}

/* =======================================================
   ANIMACIÓN DE ENTRADA
======================================================= */

.tarjeta{

    animation:aparecer .8s ease;

}

@keyframes aparecer{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* =======================================================
   SOMBRAS Y DETALLES
======================================================= */

.tarjeta::after{

    content:"";

    position:absolute;

    bottom:0;

    left:0;

    width:100%;

    height:5px;

    background:linear-gradient(to right,#c40000,#ff4d4d);

}
/* =======================================================
   REDES SOCIALES
======================================================= */

.redes-sociales{

    background:black;

    color:white;

    text-align:center;

    padding:70px 20px;

    margin-top:80px;

}

.redes-sociales h2{

    font-size:38px;

    margin-bottom:20px;

}

.redes-sociales p{

    color:#cccccc;

    font-size:18px;

    margin-bottom:35px;

}

.iconos-redes{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

}

.iconos-redes a{

    width:60px;

    height:60px;

    border-radius:50%;

    background:white;

    color:#111;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    font-size:24px;

    transition:.35s;

}

.iconos-redes a:hover{

    background:#c40000;

    color:white;

    transform:translateY(-8px);

}

/* =======================================================
   FOOTER
======================================================= */

footer{

    background:black;

    color:white;

    text-align:center;

    padding:0px 0px;

}

.footer-contenido{

    max-width:900px;

    margin:auto;

}

.footer-contenido h2{

    font-size:34px;

    color:#ffffff;

    margin-bottom:0px;

}

.footer-contenido p{

    margin:0px 0;

    color:#d5d5d5;

    font-size:16px;

}

footer hr{

    border:none;

    height:1px;

    background:black;

    margin:0px auto;

    width:80%;

}

/* =======================================================
   BOTÓN VOLVER ARRIBA
======================================================= */

.volver-arriba{

    position:fixed;

    right:30px;

    bottom:30px;

    width:55px;

    height:55px;

    background:#c40000;

    color:white;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    font-size:22px;

    box-shadow:0 8px 20px rgba(0,0,0,.25);

    transition:.35s;

    z-index:999;

}

.volver-arriba:hover{

    background:#8e0000;

    transform:scale(1.1);

}

/* =======================================================
   EFECTOS GENERALES
======================================================= */

button{

    transition:.3s;

}

button:hover{

    transform:translateY(-2px);

}

img{

    max-width:100%;

    display:block;

}

section{

    animation:fadeIn .8s ease;

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/* =======================================================
   RESPONSIVE
======================================================= */

@media(max-width:1200px){

    .contenedor-coches{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:992px){

    header{

        flex-direction:column;

        gap:15px;

        padding:20px;

    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }

    .banner h2{

        font-size:48px;

    }

    .banner p{

        font-size:20px;

    }

}

@media(max-width:768px){

    .contenedor-coches{

        grid-template-columns:1fr;

    }

    .banner{

        height:70vh;

    }

    .banner h2{

        font-size:36px;

    }

    .banner p{

        font-size:18px;

    }

    .botones{

        flex-direction:column;

    }

    .contenedor-buscador{

        grid-template-columns:1fr;

    }

    .logo h1{

        font-size:30px;

    }

    .titulo-seccion{

        font-size:34px;

    }

}

@media(max-width:480px){

    header{

        padding:15px;

    }

    .banner{

        height:60vh;

    }

    .banner h2{

        font-size:30px;

    }

    .banner p{

        font-size:16px;

    }

    .precio{

        font-size:28px;

    }

    .info h3{

        font-size:24px;

    }

    .slider{

        height:220px;

    }

    .slide{

        height:220px;

    }

    .iconos-redes a{

        width:50px;

        height:50px;

        font-size:20px;

    }

}

/* =======================================================
   MODO OSCURO (PREPARADO)
======================================================= */

body.dark{

    background:black;

    color:white;

}

body.dark header{

    background:black;

}

body.dark .tarjeta{

    background:black;

    color:white;

}

body.dark .info p{

    color:#cccccc;

}

body.dark table td{

    border-color:black;

}

body.dark .buscador{

    background:black;

}

body.dark input,
body.dark select{

    background:black;

    color:white;

    border:1px solid black;

}

body.dark footer{

    background:black;

}

.icono-wallapop{

     display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:20px;

}

.icono-wallapop:hover{

    transform:scale(1.15);

}

/* =======================================================
   FIN DEL ARCHIVO
======================================================= */