* {
    box-sizing: border-box;
}

body{
    background: linear-gradient(135deg, #041f1e, #000000);
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    color: white;
    overflow-x: hidden;
}

/* HEADER */
header{
    background: rgba(205, 139, 83, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-radius: 20px;
    margin: 20px;
    padding: 10px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.3);
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; 
}

/* BRAND */
.brand{
    display: flex;
    align-items: center;
}

.texto{
    height: 69px;
    
    border-top-right-radius: 13px;
    
    border-bottom-right-radius: 13px;
}
.logo{
    height: 69px;
    
    border-top-left-radius: 13px;
    
    border-bottom-left-radius: 13px;
}

/* MENU */
.menu{
    display: flex;
    gap: 30px;
    flex-wrap: wrap; 
    justify-content: center;
}

.menu li{
    list-style: none;
}

.menu a{
    text-decoration: none;
    color: white;
    position: relative;
}

.menu a::after{
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: gold;
    transition: 0.3s;
}

.menu a:hover::after{
    width: 100%;
}

/* DERECHA */
.right{
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.busqueda{
    display: flex;
    align-items: center;
    background: white;
    padding: 5px 10px;
    border-radius: 10px;
}

.busqueda input{
    border: none;
    outline: none;
}

/* CARDS */
.autos-section{
    padding: 60px 20px;
}

.titulo-seccion{
    text-align: center;
    font-size: 40px;
    color: gold;
}

.cards-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-auto{
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,215,0,0.2);
    transition: 0.4s;

}


.card-auto:hover{
    transform: translateY(-10px) scale(1.03);
}

.card-auto img{
    width: 100%;
    height: 80%%;
    object-fit: cover;
    border-radius: 15px;
}

.card-auto h3{
    color: gold;
}

/* SLIDER */
.slider-box{
    width: 40%;
    max-width: 1024px;
    margin: 50px auto;
    overflow: hidden;
}

.slider-box ul{
    display: flex;
    padding: 0;
    width: 400%;
    animation: slide 20s infinite;
}

.slider-box li{
    list-style: none;
    width: 100%;
}

.slider-box img{
    width: 100%;
}

/* ANIMACIÓN DE LIAM */
@keyframes slide{
    0% {margin-left: 0;}
    20% {margin-left: 0;}
    25% {margin-left: -100%;}
    45% {margin-left: -100%;}
    50% {margin-left: -200%;}
    70% {margin-left: -200%;}
    75% {margin-left: -300%;}
    95% {margin-left: -300%;}
    100% {margin-left: 0;}
}

/* FOOTER */
.footer{
    background: rgba(205, 139, 83, 0.25);
    backdrop-filter: blur(15px);

    margin: 20px;
    padding: 15px;
    text-align: center;
    border-radius: 20px;

    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================= */
/* RESPONSIVE: POR MAXI */
/* ========================= */

/* TABLET */
@media (max-width: 1024px){

    .titulo-seccion{
        font-size: 32px;
    }

    .logo, .texto{
        height: 60px;
    }
}

/* CELULAR */
@media (max-width: 768px){

    nav{
        flex-direction: column;
        align-items: center;
        position: relative; 
    }

    .right{
        position: absolute;
        top: 10px;
        right: 15px;
        flex-direction: row; 
    }

    .menu{
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
}

/* CELULAR CHICO */
@media (max-width: 480px){

    .logo, .texto{
        height: 50px;
    }

    .busqueda input{
        width: 100px;
    }

    .titulo-seccion{
        font-size: 22px;
    }

    .card-auto img{
        width: 100%;
        height: 100%;
    }
}

.right{
    display: flex;
    align-items: center;
    gap: 15px;
    position: static; 
}

.icono-user{
    width: 35px;
    height: 35px;
    color: white;
    display: block;
    z-index: 10; 
}