* {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #15abe3;
    transition: all 0.2s ease;
}

span {
    color: #15abe3;
    transition: all 0.2s ease;
}

span:hover {
    text-shadow: 0px 3px 7px rgba(0, 187, 253, 0.30);
}

a:hover {
    color: #2857a7;
}

/* ============ BOTÓN HOME FLOTANTE ============ */
#home-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    z-index: 9999;
}

#home-btn>a {
    display: block;
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

#home-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#home-btn>a:hover {
    transform: translateY(-6px);
}

/* ============ BANNER RESPONSIVO - SIN ESPACIOS ============ */
#banner {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
    line-height: 0;
    /* Elimina espacios extra */
}

#banner img {
    width: 100%;
    height: auto;
    display: block;
    /* Elimina espacios debajo de la imagen */
    object-fit: cover;
}

/* ============ TEXTO PRINCIPAL ============ */
#main-text {
    margin: 0;
    text-align: center;
    padding: 5vh 5vw;
    transition: all 0.3s ease;
}

#main-text:hover {
    background-color: #15abe3;
}

#main-text:hover>h1,
#main-text:hover>p {
    color: #ffffff;
}

#main-text:hover span {
    color: #ffffff;
}

#main-text:hover a {
    color: #ffffff;
}

#main-text>h1,
#main-text>p {
    color: #0a0a0a;
}

#main-text h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

#main-text p {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

/* ============ CARRUSEL RESPONSIVO ============ */
#carrusel {
    display: flex;
    width: 100%;
    height: auto;
    background-color: #15abe3;
    padding: 20px 0;
    justify-content: center;
    align-items: center;
    overflow-x: auto;
}

#carrusel-wrapper {
    display: flex;
    gap: 20px;
    padding: 10px 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
}

/* Ocultar scrollbar pero mantener funcionalidad */
#carrusel-wrapper::-webkit-scrollbar {
    height: 6px;
}

#carrusel-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

#carrusel-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.car {
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 320px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.car:hover {
    transform: translateY(-5px);
}

.car img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.car h4 {
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    margin: 10px 0 5px 0;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
}

.car p {
    text-align: center;
    color: #ffcc00;
    font-size: 0.85rem;
    margin: 5px 0;
    font-weight: bold;
}

.modelos-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.modelos-wrapper h3 {
    background-color: #068bbb;
    border: 1px solid white;
    border-radius: 20px;
    padding: 4px 10px;
    margin: 0;
    font-size: 0.75rem;
    font-weight: normal;
    color: white;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: default;
}

.modelos-wrapper h3:hover {
    background-color: #ffcc00;
    color: #0a0a0a;
    border-color: #ffcc00;
}

/* Scroll personalizado para modelos-wrapper */
.modelos-wrapper::-webkit-scrollbar {
    width: 4px;
}

.modelos-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.modelos-wrapper::-webkit-scrollbar-thumb {
    background: #068bbb;
    border-radius: 10px;
}

/* ============ RESPONSIVE - TABLETS (768px - 1024px) ============ */
@media (max-width: 1024px) and (min-width: 769px) {
    #carrusel-wrapper {
        display: flex;
        gap: 10px;
    }
    
    .car {
        min-width: 260px;
        max-width: 300px;
    }
    
    .car img {
        height: 400px;
    }
}

/* ============ RESPONSIVE - MÓVILES (max 768px) ============ */
@media (max-width: 768px) {
    /* Banner responsivo sin espacios */
    #banner {
        width: 100%;
        height: auto;
    }
    
    #banner img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Texto principal */
    #main-text {
        padding: 4vh 4vw;
    }
    
    /* Carrusel horizontal en móviles */
    #carrusel-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        padding: 10px 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    
    .car {
        min-width: 400px;
        max-width: 420px;
    }
    
    .car img {
        height: 250px;
    }
    
    .car h4 {
        font-size: 0.9rem;
    }
    
    .car p {
        font-size: 0.8rem;
    }
    
    /* Botón home más pequeño */
    #home-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }
    
    .modelos-wrapper {
        max-height: 200px;
    }
    
    .modelos-wrapper h3 {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* ============ RESPONSIVE - MÓVILES PEQUEÑOS (max 480px) ============ */
@media (max-width: 480px) {
    #main-text {
        padding: 3vh 3vw;
    }
    
    #carrusel-wrapper {
        gap: 12px;
        padding: 8px 12px;
    }
    
    .car {
        min-width: 240px;
        max-width: 260px;
    }
    
    .car img {
        height: 160px;
    }
    
    .car h4 {
        font-size: 0.85rem;
    }
    
    #home-btn {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }
    
    .modelos-wrapper {
        max-height: 180px;
    }
}

/* ============ RESPONSIVE - PANTALLAS GRANDES (min 1400px) ============ */
@media (min-width: 1400px) {
    #banner {
        max-height: 40vh;
    }
    
    #banner img {
        object-fit: cover;
    }
    
    .car {
        min-width: 320px;
        max-width: 350px;
    }
    
    .car img {
        height: 240px;
    }
}