﻿/*Para el modal del teléfono*/
/* Fondo oscuro */
.modal-overlay {
    display: none; /* ✅ oculto por defecto */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}


/* Tarjeta */
.modal-card {
    background: linear-gradient(180deg, #0b1a2b 0%, #050d16 100%);
    color: #fff;
    width: 90%;
    max-width: 420px;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

/* Cerrar */
.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: .8;
}

/* Header */
.modal-header {
    margin-bottom: 20px;
}

.modal-logo {
    max-width: 120px;
    margin-bottom: 6px;
}

.modal-header h4 {
    margin: 0;
    font-weight: 500;
    letter-spacing: .5px;
}

/* Body */
.modal-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    opacity: .8;
}

.modal-phone {
    display: block;
    background: #fff;
    color: #000;
    margin-top: 12px;
    padding: 14px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
}

/* Modal base */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 380px;
    max-width: 90%;
    border-radius: 10px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

/* Header */
.modal-header.whatsapp {
    background: #25D366;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-weight: bold;
}

/* Body */
.modal-body {
    padding: 20px;
}

    .modal-body input {
        width: 100%;
        padding: 10px;
        margin-bottom: 12px;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

.checkbox {
    display: flex;
    align-items: center;
    font-size: 13px;
    margin-bottom: 15px;
}

    .checkbox input {
        margin-right: 8px;
    }

/* Button */
.btn-whatsapp {
    width: 100%;
    background: #25D366;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 15px;
    cursor: pointer;
}

    .btn-whatsapp:hover {
        background: #1ebe5d;
    }

/* Close */
.modal-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* Hidden */
.hidden {
    display: none;
}

.error-msg {
    display: block;
    font-size: 12px;
    color: #d32f2f;
    margin-top: 4px;
}

.input-error {
    border: 1px solid #d32f2f !important;
}

.formsMotorleads {
    background: transparent;
}

/* TARJETA REAL */
.formCard {
    background: rgba(0, 0, 0, 0.92);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

    /* separar inputs del borde */
    .formCard .full {
        margin-bottom: 14px;
    }

.formsMotorleads .full {
    margin-bottom: 14px;
}

.formsMotorleads .boxFields {
    padding: 10px 0;
}

.formsMotorleads .defaultColumn {
    max-width: 362px; /* 👈 aquí está la magia */
    margin: 0 auto;
}


/* TÍTULO */
.titleForm {
    display: block;
    width: 100%;
    background: #e5e5e5;
    color: #000;
    text-align: center;
    padding: 12px 14px;
    border-radius: 8px; /* igual que inputs */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}



/* INPUTS */
.formsMotorleads input,
.formsMotorleads select,
.formsMotorleads textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    box-sizing: border-box;
}
/* TEXTAREA */
.formsMotorleads textarea {
    resize: none;
}

/* TELEFONO intl-tel-input */
.boxIti .iti {
    width: 100%;
}

.boxIti .iti__tel-input {
    width: 100%;
    padding-left: 85px !important;
}

/* CHECKBOX */
.privacyPolicy {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    margin: 10px 0 15px;
    font-family: 'Inter', sans-serif;
}

    .privacyPolicy input {
        width: auto;
    }

/* BOTÓN */
.custom-btn {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
}

    .custom-btn:hover {
        background: #e6e6e6;
    }

/* ERRORES */
.errorMsg {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: -8px;
    margin-bottom: 8px;
    display: block;
}

#btnSend {
    margin-top: 20px;
}

/* DOS COLUMNAS */
.row-2 {
    display: flex;
    gap: 10px;
}

    .row-2 > div {
        width: 100%;
    }

.form-container {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 380px;
    z-index: 50; /* 👈 IMPORTANTE */
}


.vehiculo-item {
    text-align: center;
    margin-bottom: 30px;
}

    .vehiculo-item img {
        max-width: 100%;
        height: auto;
    }

.categoryStyle {
    cursor: pointer;
    margin-right: 10px;
}

    .categoryStyle.active {
        background: #000;
        color: #fff;
        padding: 4px 8px;
    }


/*Para la página de autos*/
/* CONTENEDOR DEL HERO */
.banner-hero {
    position: relative;
    height: 520px;
    width: 100%;
    /*z-index: 1;*/
    /* variable por defecto */
    --hero-bg: url("https://cadastro.motorleads.co/public/images/20250620031047-1920x520-11.png");
}

    /* IMAGEN FULL WIDTH FIJA */
    .banner-hero::before {
        content: "";
        position: absolute; /* 🔑 NO fixed */
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        height: 100%;
        background-image: var(--hero-bg); /*background-image: url("https://cadastro.motorleads.co/public/images/20250620031047-1920x520-11.png");*/
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        z-index: 0;
    }

/* FORMULARIO SOBRE LA IMAGEN */
.form-overlay {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 420px;
}

/* EVITA QUE LO DE ABAJO SE ENCIME */
.banner-hero + * {
    position: relative;
    z-index: 2;
}

/* MOBILE */
@media (max-width: 768px) {
    .form-overlay {
        position: static;
        transform: none;
        margin: 20px auto;
    }

    .banner-hero {
        height: auto;
        padding-bottom: 20px;
    }

        .banner-hero::before {
            position: relative;
            width: 100%;
            transform: none;
            left: 0;
            height: 300px;
        }
}

/*Para el cambio en los colores de los vehículos*/

#colors {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.btn-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ccc;
}

    .btn-color.active {
        border: 2px solid #000;
    }


/*Para la galería*/

#galeria-header {
    background: #000;
    /*padding: 40px 0;*/
    padding-left: 0;
    padding-right: 0;
}

    #galeria-header h3 {
        color: #fff;
        max-width: 1600px;
        /*margin: 0 auto;
        padding-left: 20px;*/
        font-size: 38px;
        font-family: 'Inter', sans-serif;
        margin-left: 0;
        padding-left: 0;
    }

#galeria-custom {
    background: linear-gradient(180deg, #05141F 0%, #0B1F2A 100%);
    padding: 40px 0 60px;
    overflow: visible; 
}

    #galeria-custom .swiper {
        max-width: 1600px;
        width: 1200px;
        height: auto;
    }


/*Versiones*/

.versions-section {
    background: #f2f2f2;
    padding: 80px 0px 100px;
}

    .versions-section h3 {
        font-size: 42px;
        font-weight: 700;
        color: #000;
        margin-bottom: 20px;
        font-family: 'Inter', sans-serif;
    }

.title-divider {
    width: 50px;
    height: 2px;
    background: #ccc;
    margin-bottom: 50px;
}

.versions-strip {
    width: 100%;
    display: flex;
    justify-content: center;
}


.versions-title {
    font-size: 46px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

#versions-selector {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 30px 0 40px;
    flex-wrap: wrap; /* 🔥 importante para responsive real */
}


.version-item {
    text-align: center;
    cursor: pointer;
    opacity: .4;
}

    .version-item.active {
        opacity: 1;
    }

    .version-item img {
        width: 100%;
        max-width: 220px;
    }

    .version-item h5 {
        margin: 6px 0 0;
        font-size: 15px;
        font-family: 'Inter', sans-serif;
    }

    .version-item .price {
        font-size: 20px;
        font-weight: 700;
    }

/*Elementos destacados*/
.filter {
    text-align: center;
    margin-bottom: 40px;
}

    .filter .title {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 1.5px;
        color: #000;
        font-family: 'Inter', sans-serif;
    }

        .filter .title::after {
            content: "";
            width: 120px;
            height: 1px;
            background: #ccc;
            display: block;
            margin: 10px auto 0;
            font-family: 'Inter', sans-serif;
        }

/*Caja de características*/

.features-wrapper {
    background: #fff;
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 50px 60px;
}


.features-box {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /*  4 columnas */
    gap: 25px 40px;
}

/*Item con check verde*/
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #333;
    font-family: 'Inter', sans-serif;
}

    .feature-item .check {
        width: 20px;
        height: 20px;
        background: #4CAF50;
        color: #fff;
        border-radius: 50%;
        font-size: 12px;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        margin-top: 2px;
    }

@media (max-width: 1024px) {
    .features-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    #versions-selector {
        flex-wrap: nowrap; /* 🔥 que NO bajen */
        overflow-x: auto; /* scroll horizontal */
        justify-content: flex-start;
        gap: 20px;
        padding: 0 20px;
        -webkit-overflow-scrolling: touch;
    }

    .version-item {
        flex: 0 0 auto; /* tamaño fijo */
        min-width: 160px; /* ancho controlado */
    }
}

@media (max-width: 768px) {

    .versions-section {
        padding: 60px 0 80px; /* quitamos los 40px laterales */
    }

    .features-wrapper {
        margin: 40px 0 0; /* quitamos centrado rígido */
        padding: 40px 20px; /* menos padding lateral */
        max-width: 100%;
    }
}




/* CTA NEGRA */
.cta-section {
    width: 100%;
    background: #000;
    padding: 80px 20px;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-item {
    text-align: center;
    color: #fff;
    text-decoration: none;
    width: 171px;
    height: 127px;
    font-family: 'Inter', sans-serif;
}

    .cta-item span {
        display: block;
        margin-top: 18px;
        font-size: 16px;
        font-weight: 500;
        text-decoration: underline;
        color: #fff;
    }

/* Iconos */
.cta-icon {
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

    .cta-icon img {
        width: 36px;
        height: 36px;
    }


@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        gap: 50px;
    }
}



/*Teléfono en formulario*/
#fCotiza {
    display: none;
}

#fGeneral {
    display: none;
}




.categoria-header {
    width: 100%;
    background-color: #000;
    padding: 18px 0;
    text-align: center;
}

    .categoria-header h2 {
        color: #fff;
        margin: 0;
        font-size: 32px;
        font-weight: 600;
        letter-spacing: 1px;
        font-family: 'Inter', sans-serif;
    }





.input-error {
    border: 2px solid #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.5);
}

    .input-error::placeholder {
        color: #e74c3c;
    }


.privacyPolicy.input-error {
    border: 2px solid #d00000;
    background-color: #ffeaea;
    border-radius: 6px;
    padding: 6px;
}

    .privacyPolicy.input-error label {
        color: #d00000;
        font-weight: 600;
    }



/*estilo de aviso de privacidad en modal whatsapp*/

.privacidad-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .privacidad-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

.wa-privacidad {
    margin-top: 10px;
}



.footer-center a {
    color: #fff !important;
}



.spinner {
    width: 40px;
    height: 40px;
    margin: 10px auto;
    border: 4px solid #ccc;
    border-top: 4px solid #0a58ca;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}







/* ===== KILL HORIZONTAL SCROLL ===== */
/*html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    padding-top: 40px;  altura real de tu header 
}*/

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Compensación del header fijo */
body {
    padding-top: 80px; /* desktop */
}

@media (max-width: 768px) {
    body {
        padding-top: 70px; /* altura real del header mobile */
    }
}


/* ===== FILTRO DE SEGURIDAD: SOLO LOGO Y MENÚ ===== */
@media (max-width: 768px) {
    /* 1. Header: Bloqueo de desbordes */
    #9f38963d {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        background-color: #000000 !important;
        height: 70px !important;
        padding: 0 15px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    /* 2. Logo: Estándar */
    #2871cfd5 {
        order: 1 !important;
        flex: 0 0 auto !important;
        display: block !important;
    }

        #2871cfd5 img {
            max-width: 70px !important;
            height: auto !important;
        }

    /* 3. Menú: Recuperando su lugar */
    #group_o0k {
        order: 2 !important;
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        height: 100% !important;
    }

    /* 4. ELIMINACIÓN POR JERARQUÍA (La clave definitiva) */
    /* Ocultamos TODO lo que sea hijo directo del header y NO sea el logo ni el menú */
    #9f38963d > *:not(#2871cfd5):not(#group_o0k) {
        display: none !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }

    /* Refuerzo para los botones específicos por si están anidados */
    #group_vjv, #btnTelefono, #btnWhatsapp, [id*="group_vjv"], .header-buttons {
        display: none !important;
        visibility: hidden !important;
    }
}


/*</style >*/






/*Nueva versión*/

/* ===== HEADER BASE ===== */

.main-header {
    /*background: #000;
    position: relative;
    z-index: 999;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* 👈 ESTA FALTABA */
}


.logo img {
    height: 63px;
}

/* NAV DESKTOP */
.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* BOTONES */
.contact-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    width: 18px;
    height: 18px;
}

.phone {
    background: #fff;
    color: #000;
}

.whatsapp {
    background: #25D366;
    color: #fff;
}

/* HAMBURGUESA */
.menu-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}
.icon {
    display: none;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .header-container {
        position: relative;
        padding: 3px 20px;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: black;
        display: none;
        flex-direction: column;
    }

        .nav ul {
            flex-direction: column;
            padding: 20px;
            gap: 20px;
        }

        .nav.active {
            display: flex;
        }

    .contact-buttons {
        gap: 8px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        order: 4;
        flex: unset;
    }

    .logo {
        order: 2;
        flex: unset;
        text-align: center;
    }

    .menu-toggle {
        order: 1;
    }

    .contact-buttons {
        order: 3;
    }
    .header-container {
        justify-content: space-between;
    }


    .btn-text {
        display: none;
    }

    .icon {
        display: block;
    }

    .btn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

}


/* ===== ORDEN DESKTOP ===== */

.menu-toggle {
    order: 1;
}

.nav {
    flex: 1;
}

.logo {
    flex: 1;
    text-align: center;
}

.contact-buttons {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}


/*Slider*/
.hero-section {
    position: relative;
    width: 100%;
}

.mySwiper img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
}

.mySwiper {
    width: 100%;
    height: auto;
}


.swiper,
.swiper-wrapper,
.swiper-slide {
    width: 100%;
}

.swiper-slide {
    display: flex;
}

.swiper {
    overflow: hidden;
}


.swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/*Formulario flotante*/
.form-container {
    position: absolute;
    top: 15%;
    right: 5%;
    width: 380px;
}

/*Mobile → el formulario baja*/
@media (max-width: 768px) {

    .mySwiper .swiper-slide {
        height: 55vh;
    }

        .mySwiper .swiper-slide img {
            height: 100%;
            object-fit: cover;
            object-position: center top;
        }

    .form-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        border-radius: 0;
    }
}


/* ===== INPUTS ===== */

.formCard input,
.formCard select,
.formCard textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 14px;
    background: #f2f2f2;
    font-family: 'Inter', sans-serif;
}

.formCard textarea {
    resize: none;
}

/* ===== SELECT ===== */

.formCard select {
    cursor: pointer;
}

/* ===== CHECKBOX ===== */

.privacyPolicy {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 15px;
}

    .privacyPolicy input {
        width: auto;
    }

/* ===== BOTÓN ===== */

.custom-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: #fff;
    color: #000;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}

    .custom-btn:hover {
        background: #ffffff;
    }

/* ===== TELEFONO (intl) ===== */

.boxIti .iti {
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.boxIti input {
    padding-left: 85px !important;
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .formCard {
        padding: 20px;
        border-radius: 0;
    }
}

@media (max-width: 992px) {

    .form-container {
        position: static; /* 👈 vuelve al flujo normal */
        width: 100%;
        margin-top: 20px;
        z-index: auto;
    }

    .hero-section {
        /*padding: 0 15px;*/
    }
}

@media (max-width: 768px) {

    .swiper,
    .swiper-wrapper,
    .swiper-slide {
        height: auto !important;
    }

    .swiper-slide {
        display: block;
    }

        .swiper-slide img {
            width: 100%;
            height: auto;
            object-fit: contain;
        }
}


.form-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .form-wrapper {
        padding: 0 15px;
    }
}

/*sección autos de la página principal*/
.vehicles-section {
    padding: 80px 0;
    background: #fff;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
    color: #111;
}

.filter-label {
    margin-right: 15px;
    font-weight: 500;
}

    .filter-btn:hover,
    .filter-btn.active {
        border-color: #000;
    }

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /*justify-content: center;*/
    gap: 30px 20px;
}

@media (max-width: 992px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .filters {
        flex-wrap: wrap;
        gap: 12px;
    }
}

.vehicle-card {
    text-align: center;
    margin-bottom: 25px
}

    .vehicle-card .card {
        background: transparent;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .vehicle-card .card:hover {
        transform: translateY(-6px);
    }

    .vehicle-card .img {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 190px; /* controla el espacio vertical */
    }

    .vehicle-card img {
        width: 100%;
        /*max-width: 100%; /* 👈 aquí está la clave */
        height: auto;
        transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    }

        .vehicle-card:hover img {
            transform: scale(1.05);
        }

    .vehicle-card .title {
        font-family: 'Inter', sans-serif;
        font-size: 18px;
        font-weight: 600;
        margin-top: 15px;
        margin-bottom: 6px;
        color: #111;
    }

.btnCars {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
        text-decoration: none;
    opacity: 0.9;
    color: #000;
    /*            
        color: #000;
        transition: 0.3s;*/
}

    .btnCars:hover {
        opacity: 0.6;
    }

.plus-icon {
    display: flex;
    align-items: center;
}


/*Filtrar por categorias*/
.filters {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    font-family: 'Inter', sans-serif;
}

.filter-btn {
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;

    /*position: relative;
    padding-bottom: 6px;
    transition: 0.3s;*/
}

    /*.filter-btn::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0%;
        height: 2px;
        background: #000;
        transition: 0.3s;
    }*/

    .filter-btn.active {
        background: #5a5a5a; /* gris oscuro elegante */
        color: #fff;
    }

    .filter-btn.active::after {
        width: 100%;
    }
.catalog-wrapper {
    max-width: 1200px; /* prueba entre 1100 y 1300 */
    margin: 0 auto;
    padding: 0 20px;
}

.filters,
.filter-btn,
.filter-label {
    font-family: 'Inter', sans-serif;
    /*font-family: "KiaSignature", "Helvetica Neue", Arial, sans-serif;*/
}
.filter-label {
    font-size: 14px;
    color: #555;
}



/* ======================
   BLOQUE MAPA / UNIDADES
====================== */

.boxMapa {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* 🔥 clave */
    gap: 0 !important; /* 🔥 mata el gap heredado */
    width: 100%;
}

.mapaUnidades {
    flex: 0 0 50%;
    max-width: 50%;
}

.listaUnidades {
    flex: 0 0 50%;
    max-width: 50%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

    .mapaUnidades img {
        width: 100%;
        height: auto;
        display: block;
    }


.item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.icone {
    width: 22px; /* 🔥 aquí controlas tamaño */
    height: 22px;
    flex-shrink: 0;
}

    .icone svg {
        width: 100%;
        height: 100%;
    }

.infos .title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.infos a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
    word-break: break-word;
    font-family: 'Inter', sans-serif;
}

/* ======================
   FOOTER NEGRO
====================== */

.footer-kia {
    background: #000;
    padding: 30px 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    height: 30px;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

    .footer-link:hover {
        text-decoration: underline;
    }

@media (max-width: 992px) {

    .boxMapa {
        flex-direction: column !important;
    }

    .mapaUnidades,
    .listaUnidades {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    .listaUnidades {
        display: flex;
        flex-direction: column !important;
        gap: 25px;
        padding: 30px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .mapaUnidades {
        order: 2; /* imagen abajo */
    }

    .listaUnidades {
        order: 1; /* dirección y teléfono arriba */
    }
}

/* Contenedor principal */
.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu {
    display: flex; /* solo el menú principal */
    align-items: center;
}
.menu > li {
        position: relative;
}
    .menu > li > a {
        position: relative;
        display: block;
        padding: 12px 18px;
        font-weight: 600;
        color: #fff;
        font-size: 16px;
        font-family: 'Inter', sans-serif;
    }

.menu > li > a::before {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 8px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

    .menu > li:hover > a::before {
        width: calc(100% - 36px);
    }
.menu a {
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    color: #fff;
}

/* Submenu oculto */
.submenu {
    display: none !important; /* 🔥 oculto por defecto */
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

/* Mostrar al hover en desktop */
.has-submenu:hover .submenu {
    display: block !important;
}



.submenu li a {
    padding: 10px 20px;
    font-size: 14px;
    color: #000;
}
.submenu li a:hover {
    background: #f2f2f2;
}

@media (max-width: 992px) {

    .submenu {
        position: static;
        box-shadow: none;
        display: none;
    }

    #navMenu.active .submenu {
        display: block !important;
    }
}
.menu-toggle-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

    /* Flecha */
    .menu-toggle-link::after {
        /*content: " ▾";
        font-size: 12px;
        transition: transform 0.3s ease;*/
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: rotate(45deg);
        margin-left: 8px;
        transition: transform 0.3s ease;
        font-family: 'Inter', sans-serif;
    }

/* Rotación cuando esté abierto */
.has-submenu:hover .menu-toggle-link::after {
    /*transform: rotate(180deg);*/
    transform: rotate(225deg);
}
/*#navMenu.active .menu-toggle-link::after {
    transform: rotate(180deg);
}*/


@media (max-width: 768px) {

    .menu-toggle-link::after {
        display: none;
    }

    .menu-toggle-link span {
        display: none !important;
    }
}







/*Página autos*/
/* ===============================
   HERO MODELO BASE
================================= */

.hero-modelo {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* ===============================
   IMAGEN HERO (background dinámico)
================================= */

.hero-media {
    position: relative;
    width: 100%;
    min-height: 300px;

    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    /* Overlay opcional elegante */
    .hero-media::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to right, rgba(0,0,0,.45), rgba(0,0,0,.1));
        z-index: 1; /* 🔥 */
    }

/* ===============================
   FORMULARIO
================================= */

.hero-form {
    width: 100%;
    padding: 20px;
    position: relative; /* 🔥 */
    z-index: 5; /* 🔥 */
}

    /* Card del formulario */
    .hero-form .formCard {
        background: #000000;
        padding: 25px;
        border-radius: 12px;
        box-shadow: 0 15px 40px rgba(0,0,0,.15);
    }

/* ===============================
   INFO DEBAJO
================================= */

.hero-info {
    padding: 30px 20px;
    /*background: #fff;
    position: static !important;*/
}

    .hero-info h1 {
        font-size: 42px;
        margin-bottom: 15px;
        font-weight: 500;
    }

.detalle {
    font-size: 16px;
    line-height: 1.6;
}

/* ===============================
   DESKTOP 768px+
================================= */

@media (min-width: 768px) {

    .hero-modelo {
        position: relative;
    }

    .hero-media {
        /*min-height: 520px;*/
        height: auto;
        aspect-ratio: 1905 / 520; /* 🔥 mantiene proporción real */
        background-size: contain;
        background-position: center;
        background-color: #000;
    }

    .hero-form {
        position: absolute;
        top: 20px;
        right: 5%;
        transform: translateY(-50%);
        width: 380px;
        padding: 0;
        z-index: 5;
        transform: none; /* 🔥 importante quitar esto */
    }
}




/* ===============================
   WRAPPER CENTRADO
================================= */

.modelo-detalle-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===============================
   LAYOUT
================================= */

.modelo-detalle {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ===============================
   TEXTO
================================= */

.titulo-modelo {
    font-size: 38px;
    font-weight: 500;
    margin-bottom: 25px; /* antes era muy grande */
    color: #111;
    font-family: 'Inter', sans-serif;
}


.detalle-texto {
    font-family: 'Arial', sans-serif;
    color: #111;
}

    .detalle-texto h2 {
        font-size: 20px;
        font-weight: 400;
        margin-bottom: 3px;
    }

    .detalle-texto p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 14px;
        color: #555;
    }

/* ===============================
   IMAGEN
================================= */

.detalle-media {
    text-align: center;
}

#imgPrincipal img {
    max-width: 520px; /* 🔥 control tamaño */
    width: 100%;
    height: auto;
}

/* ===============================
   COLORES
================================= */

#colors {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 25px;
}

.btn-color {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: transform .2s ease;
}

    .btn-color:hover {
        transform: scale(1.1);
    }

/* ===============================
   DESKTOP
================================= */

@media (min-width: 992px) {

    .modelo-detalle {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }

    .detalle-texto {
        flex: 1;
    }

    .detalle-media {
        flex: 1;
        text-align: right;
    }

    #imgPrincipal img {
        max-width: 600px; /* 🔥 más grande en desktop */
    }
}





/*Sección galeria ---- modal*/

/* =========================
   MODAL BASE
========================= */

#galleryModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

    #galleryModal.active {
        display: flex;
    }

/* =========================
   CONTENIDO
========================= */

.gallery-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
}

/* =========================
   SWIPER MODAL
========================= */

.swiperModal {
    width: 100%;
}

    .swiperModal img {
        width: 100%;
        height: auto;
        display: block;
    }

/* =========================
   FLECHAS (DESKTOP)
========================= */

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 32px;
    }

/* Las movemos completamente fuera */
.swiper-button-prev {
    left: -70px;
}

.swiper-button-next {
    right: -70px;
}

/* =========================
   BOTÓN CERRAR
========================= */

.gallery-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

/* GALERÍA PRINCIPAL */
.swiperGallery .swiper-slide {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

    .swiperGallery .swiper-slide img {
        width: 100%;
        display: block;
        height: 180px; /* 🔥 ajusta este valor */
        object-fit: cover;
    }

/* Scrollbar base */
.swiperGallery .swiper-scrollbar {
    background: rgba(255,255,255,0.2);
    height: 4px;
}

/* Parte draggable */
.swiperGallery .swiper-scrollbar-drag {
    background: #fff;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {

    .gallery-content {
        width: 95%;
        max-width: 95%;
    }

    /* Ocultar flechas en mobile */
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }

    /* X visible y más cómoda */
    .gallery-close {
        top: -35px;
        font-size: 26px;
    }

    .swiperGallery {
        padding: 0;
    }

        .swiperGallery .swiper-wrapper {
            gap: 0 !important;
        }
}

/* Flechas carrusel mobile */
.versions-strip {
    position: relative;
}

.versions-arrow {
    display: none;
}

@media (max-width: 768px) {

    .versions-arrow {
        display: flex;
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #ffffff;
        border: 1px solid #ddd;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        z-index: 5;
    }

        .versions-arrow.left {
            left: 5px;
        }

        .versions-arrow.right {
            right: 5px;
        }
}


.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    z-index: 9999;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .whatsapp-float:hover {
        transform: scale(1.08);
        box-shadow: 0 10px 25px rgba(0,0,0,.35);
    }


@media (min-width: 769px) {
    .whatsapp-icon {
        display: none;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .btn-text {
        display: none;
    }

    .whatsapp-icon {
        display: block;
    }

    .btn.whatsapp {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
    }
}


.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
