/* =========================================
   1. FUENTES OFICIALES (MMCOFFICE)
   ========================================= */
@font-face {
    font-family: 'MMCOFFICE';
    /* Ruta: entra a assets -> fonts -> tipografias -> archivo */
    src: url('../fonts/MMCOFFICE-Regular.woff2') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MMCOFFICE';
    src: url('../fonts/MMCOFFICE-Medium.woff2') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MMCOFFICE';
    src: url('../fonts/MMCOFFICE-Bold.woff2') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
    font-display: swap;
}

/* =========================================
   2. VARIABLES Y CONFIGURACIÓN BASE
   ========================================= */
:root {
    /* Colores Oficiales */
    --mitsubishi-black: #000000;
    --mitsubishi-red: #ED0000;
    --whatsapp-green: #25d366;
    --text-white: #ffffff;
    --text-gray: #ccc;
    
    /* Configuración Header */
    --header-height: 90px;
    
    /* Tipografía Global */
    --font-primary: 'MMCOFFICE', sans-serif !important; /* AHORA USAMOS TU FUENTE */
}
::placeholder {
    color: #6c757d; /* gris accesible */
    opacity: 1; /* importante para Firefox */
}

/* Compatibilidad */
::-webkit-input-placeholder {
    color: #6c757d;
}

:-ms-input-placeholder {
    color: #6c757d;
}
body {
    font-family: var(--font-primary);
    font-weight: 400; /* Texto Regular por defecto */
    background-color: #fff;
    color: #000;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

a { text-decoration: none; }

/* REGLAS DE TIPOGRAFÍA (Tu petición) */
h1, h2, .navbar-brand, .hero-title, .fw-bold {
    font-weight: 700 !important; /* TITULOS BOLD */
}

h3, h4, h5, .nav-link, .btn, .card-title, .agency-info, footer h5 {
    font-weight: 700 !important; /* SUBTITULOS/UI MEDIUM */
}

p, span, li, input, .form-control, label {
    font-weight: 400; /* TEXTO REGULAR */
}


@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1240px !important;
    }

    .container1900{
        max-width: 1900px !important;
    }
}

/* =========================================
   3. HEADER NEGRO (ESTILO EXACTO)
   ========================================= */
.header-wrapper {
    background-color: var(--mitsubishi-black);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar-mitsubishi {
    background-color: var(--mitsubishi-black);
    height: 100%;
    padding: 0;
}

/* Logo */
.navbar-brand {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
}
.navbar-brand img,
.navbar-brand .navbar-brand-img {
    height: 55px;
    width: auto;
}

/* Mobile: header 60px, logo más pequeño y distribuidor debajo */
@media (max-width: 1199px) {
    .header-wrapper {
        height: 60px !important;
    }
    body {
        padding-top: 60px !important;
    }
    .navbar-brand {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: calc(100% - 140px);
    }
    .navbar-brand img,
    .navbar-brand .navbar-brand-img {
        height: 35px !important;
        max-height: 35px !important;
        width: auto !important;
    }
    .navbar-brand-distributor {
        display: block !important;
        font-family: 'MMCOFFICE', sans-serif;
        color: #fff;
        font-size: 10px;
        font-weight: 400;
        margin-top: 2px;
        line-height: 1.2;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {
    .navbar-brand-distributor {
        display: none !important;
    }
}

/* Header mobile: contenedor derecho (iconos + hamburger) */
.header-mobile-right {
    padding-right: 12px;
}
.header-mobile-icons {
    gap: 18px;
    margin-right: 12px;
}
.header-phone-icon,
.header-search-icon {
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s;
}
.header-phone-icon:hover,
.header-search-icon:hover {
    color: var(--mitsubishi-red);
}

/* Icono X rojo cuando la búsqueda está abierta (móvil) */
body.search-open .header-search-icon {
    color: var(--mitsubishi-red) !important;
}
.header-phone-icon {
    text-decoration: none;
}

/* Botón hamburguesa redondo (mobile) */
.navbar-toggler-mobile.navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent !important;
    margin-left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.navbar-toggler-mobile:hover {
    border-color: rgba(255,255,255,0.8);
}
.navbar-toggler-mobile .navbar-toggler-icon {
    width: 20px;
    height: 18px;
    background-position: center;
    background-size: 100% 100%;
}
/* Icono X cuando el menú está abierto (mobile) */
@media (max-width: 1199px) {
    .navbar-toggler-mobile[aria-expanded="true"] .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' d='M6 6 L24 24 M24 6 L6 24'/%3e%3c/svg%3e");
    }
}

/* Información de Agencia */
.agency-info {
    display: flex;
    align-items: center;
    gap: 25px;
    color: var(--text-white);
    font-size: 0.95rem;
    margin-left: 20px;
    padding-right: 20px;
    border-right: 1px solid #333;
}

.agency-info span { 
    font-weight: 700; /* Nombre agencia Bold */
    font-size: 13px;
    cursor: pointer;
}
.agency-info span:hover {
    text-decoration: underline;
}

.agency-info a {
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500; /* Teléfono Medium */
    font-size: 13px;
    transition: color 0.3s;
}
.agency-info a:hover { color: var(--mitsubishi-red); }

    .agency-info a.agency-info-distributor:hover {
        color: var(--text-white) !important;
    }

/* Menú de Navegación */
.nav-link {
    color: var(--text-white) !important;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 15px !important;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--mitsubishi-red) !important;
}

/* =========================================
   ROTACIÓN FLECHA POR DEFECTO (BOOTSTRAP)
   ========================================= */

/* 1. Estado Normal: Le damos suavizado */
.dropdown-toggle::after {
    transition: transform 0.3s ease; /* Animación suave */
    vertical-align: middle; /* Tu ajuste de alineación */
    margin-left: 0.4em; /* Espacio entre texto y flecha */
}

/* 2. Estado Abierto: Giramos 180 grados */
/* Bootstrap agrega la clase .show al <a> cuando se abre */
.nav-link.dropdown-toggle.show::after {
    transform: rotate(175deg);
}

/* Menús dropdown en rojo cuando su submenú está desplegado */
#autosNuevosDropdown.show,
#comprarDropdown.show,
#propietariosDropdown.show,
#contactoDropdown.show {
    color: var(--mitsubishi-red) !important;
}

/* Botón Rojo de Búsqueda */
.search-container {
    background-color: var(--mitsubishi-red);
    width: 90px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 20px;
    transition: background-color 0.3s;
}

.search-container:hover { 
    background-color: #ffffff; 
}
.search-container:hover i { 
    color: #000000; 
}
.search-container i { 
    color: #fff; 
    font-size: 1.4rem; 
    transition: color 0.3s;
}


/* --- ESTILOS DEL BUSCADOR EXPANDIDO --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 0 0 20px;
    background-color: var(--mitsubishi-red);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.search-overlay.is-open {
    transform: translateX(0);
}

@media (max-width: 1199px) {
    .search-overlay {
        top: 60px;
        height: 60px;
        min-height: 60px;
    }
    .search-overlay-inner {
        padding-right: 0;
    }
}

.search-overlay.d-none {
    display: none !important;
}

.search-overlay:not(.d-none) {
    display: flex !important;
}

.search-overlay-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.search-overlay-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding-right: 87px;
}

.search-overlay-icon {
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El input transparente - sin línea debajo */
.search-overlay .search-input {
    flex: 1;
    background-color: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    color: #fff !important;
    font-size: 36px;
    font-weight: 700;
    box-shadow: none !important;
    height: 44px;
    min-width: 0;
}

.search-overlay .search-input:focus {
    outline: none;
}

/* Estilo del Placeholder (el texto "Busca tu texto aquí") */
.search-overlay .search-input::placeholder {
    color: rgba(255,255,255,0.95);
    font-size: 36px;
    font-weight: 700;
}

@media (max-width: 1199px) {
    .search-overlay .search-input,
    .search-overlay .search-input::placeholder {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .search-overlay .search-input,
    .search-overlay .search-input::placeholder {
        font-size: 13px;
    }
}

/* Botón Cancelar - pegado a la derecha, ancho del header, ~87px, casi cuadrado */
.search-overlay .cancel-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 87px;
    height: 100%;
    background-color: var(--mitsubishi-red);
    color: #fff;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.3s, color 0.3s;
    box-sizing: border-box;
}

.search-overlay .cancel-btn:hover {
    background-color: #fff;
    color: #000;
}

@media (max-width: 1199px) {
    .search-overlay .cancel-btn {
        display: none !important;
    }
}

/* Animación suave de aparición */
@keyframes searchFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================
   4. ELEMENTOS FLOTANTES
   ========================================= */
.sticky-sidebar {
    position: fixed;
    right: 0;
    top: 35%;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Menú flotante - estructura como sitio original (sticky-social) */
.sidebar-icon-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-icon-item {
    margin: 0;
    padding: 0;
    text-align: right;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: stretch;
}

.sidebar-icon-item .sidebar-icon-label {
    display: flex;
    align-items: center;
    padding: 0 16px 0 25px;
    background-color: var(--mitsubishi-red);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.55px;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    height: 45px;
    line-height: 45px;
    margin-right: -3px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.sidebar-icon-item:hover .sidebar-icon-label {
    max-width: 200px;
    opacity: 1;
}

.sidebar-icon-item .sidebar-icon-label:hover {
    background-color: #000;
}

.sidebar-icon-item .sidebar-icon-space {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: var(--mitsubishi-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-icon-item:hover .sidebar-icon-space {
    background-color: #000;
}

.sidebar-icon {
    width: 45px;
    height: 45px;
    background-color: var(--mitsubishi-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: width 0.3s ease;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    text-decoration: none;
    flex-shrink: 0;
}

.sidebar-icon:hover { width: 45px; }

/* WhatsApp: pulsación como gota en agua — la onda se expande y se desvanece */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(84, 192, 80, 0.5);
    }
    100% {
        box-shadow: 0 0 0 26px rgba(84, 192, 80, 0);
    }
}
.sidebar-icon.whatsapp {
    width: 60px;
    height: 60px;
    background-color: #4EC248;
    border-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-left-radius: 50%;
    color: #fff;
    font-size: 1.65rem;
    animation: whatsapp-pulse 1.25s ease-in-out infinite;
}
    .sidebar-icon.whatsapp:hover {
        width: 60px;
        background-color: #45b33f;
        color: #fff;
    }

/* Contenedor botón WhatsApp + popup */
.sidebar-whatsapp-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    align-self: flex-end;
}

/* Panel desplegable opciones WhatsApp */
.whatsapp-popup {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: calc(100% + 10px);
    min-width: 160px;
    background: #000;
    color: #fff;
    border-radius: 4px;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s ease, opacity 0.2s ease;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.sidebar-whatsapp-wrap.is-open .whatsapp-popup {
    visibility: visible;
    opacity: 1;
}

.whatsapp-popup-options {
    list-style: none;
    margin: 0;
    padding: 0;
}
.whatsapp-popup-options li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #fff;
}
.whatsapp-popup-options li:last-child {
    border-bottom: none;
}
.whatsapp-option {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-size: 12px !important;
    transition: background-color 0.2s ease;
    text-align: center !important;
}
.whatsapp-option:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}
button.whatsapp-option {
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
}

.whatsapp-popup-close {
    position: absolute;
    top: 50%;
    right: -70px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #4EC248;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.5rem;
    transition: background-color 0.2s ease;
    z-index: 2;
}
.whatsapp-popup-close:hover {
    background-color: #45b33f;
    color: #fff;
}

/* Responsive: Mobile - Botón WhatsApp en la parte inferior */
@media (max-width: 768px) {
    .sticky-sidebar {
        top: auto;
        bottom: 85px;
        right: 16px;
    }
}

/* ========== Modal Contacto por WhatsApp (Ventas Nuevos) ========== */
/* Selectores con id para mayor especificidad y que no los pisen otros estilos */
#whatsapp-ventas-modal.whatsapp-modal,
.whatsapp-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 20px;
    padding-top: 140px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s ease, opacity 0.2s ease;
}
#whatsapp-ventas-modal.whatsapp-modal.is-open,
.whatsapp-modal.is-open {
    visibility: visible;
    opacity: 1;
}
#whatsapp-ventas-modal .whatsapp-modal__backdrop,
.whatsapp-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
}
#whatsapp-ventas-modal .whatsapp-modal__box,
.whatsapp-modal__box {
    position: relative;
    width: 100%;
    max-width: 363px;
    background: transparent;
    border-radius: 6px;
    box-shadow: 0 4px 24px 0 rgba(0,0,0,0.2);
    overflow: hidden;
}
#whatsapp-ventas-modal .whatsapp-modal__title,
.whatsapp-modal__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 12px;
    background: #085853;
    color: #fff;
    border-radius: 6px 6px 0 0;
}
#whatsapp-ventas-modal .whatsapp-modal__title-text,
.whatsapp-modal__title-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}
#whatsapp-ventas-modal .whatsapp-modal__close,
.whatsapp-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.25rem;
    transition: opacity 0.2s ease;
}
#whatsapp-ventas-modal .whatsapp-modal__close:hover,
.whatsapp-modal__close:hover {
    opacity: 0.85;
}
#whatsapp-ventas-modal .whatsapp-modal__body,
.whatsapp-modal__body {
    padding: 20px;
    background-color: #e8f4e8;
    background-position: center center;
    background-size: cover;
    background-repeat: repeat;
    min-height: 200px;
}
/* Campos del formulario - solo clases para que aplique (el id puede cambiar en ASP.NET) */
.whatsapp-modal .whatsapp-modal-form .form-input,
.whatsapp-modal .whatsapp-modal-form .whatsapp-modal-form__row {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.whatsapp-modal .whatsapp-modal-form input[type="text"],
.whatsapp-modal .whatsapp-modal-form input[type="email"],
.whatsapp-modal .whatsapp-modal-form input[type="tel"],
.whatsapp-modal .whatsapp-modal-form select {
    height: 46px !important;
    line-height: 46px !important;
    border-radius: 6px !important;
    background: #E7FFE7 !important;
    border: 1px solid #777575 !important;
    box-shadow: 0 2px 3px 0 rgba(0,0,0,0.2) !important;
    padding: 0 12px !important;
    width: 100% !important;
    margin-bottom: 16px !important;
    font-size: 13px !important;
    outline: none !important;
    color: #333 !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.whatsapp-modal .whatsapp-modal-form input::placeholder {
    color: #606060 !important;
    opacity: 1 !important;
}
.whatsapp-modal .whatsapp-modal-form .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    border: 0 !important;
}
.whatsapp-modal .whatsapp-modal-form .form-input .error-message,
.whatsapp-modal .whatsapp-modal-form .error-message {
    color: #FF0000 !important;
    font-size: 11px !important;
    line-height: 15px !important;
    padding-top: 2px !important;
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    display: block !important;
}
.whatsapp-modal .whatsapp-modal-form .form-input.has-error .error-message {
    display: block !important;
}
.whatsapp-modal .whatsapp-modal-form .formbtn-wrap {
    margin-top: 12px !important;
}
.whatsapp-modal .whatsapp-modal-form .primary-btn {
    width: 100% !important;
    height: 48px !important;
    border: none !important;
    border-radius: 6px !important;
    background: #ED0000 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
}
.whatsapp-modal .whatsapp-modal-form .primary-btn:hover {
    background: #000 !important;
    color: #fff !important;
}
/* Inputs del modal WhatsApp (clase .modal-input) */
.modal-input {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    padding: 0 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    background: #E7FFE7;
    border: 1px solid #777575;
    border-radius: 6px;
    box-shadow: 0 2px 3px 0 rgba(0,0,0,0.2);
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.modal-input::placeholder {
    color: #606060;
    opacity: 1;
}
.modal-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
    outline: none;
}
/* Mensaje de error inline en el modal WhatsApp */
.modal-error {
    display: block;
    color: #FF0000;
    font-size: 11px;
    line-height: 15px;
    padding-top: 2px;
    margin-bottom: 14px;
}
/* Fila de 2 columnas dentro del formulario WhatsApp */
.whatsapp-modal-form__row2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
/* Texto de aviso de privacidad (sin checkbox) */
.whatsapp-modal-form__privacy {
    font-size: 11px;
    line-height: 16px;
    color: #444;
    margin-bottom: 10px;
}
.whatsapp-modal-form__privacy a {
    color: #2563eb;
    text-decoration: underline;
}
/* Select con chevron personalizado */
select.modal-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23606060' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px !important;
}
select.modal-select option[value=""] { color: #606060; }
select.modal-select option { color: #333; }

.video-icon-floating {
    position: fixed;
    bottom: 142px; right: 20px;
    background-color: var(--mitsubishi-red);
    color: #fff;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; z-index: 1040;
}

/* Controles de video del hero - Funciones de vídeo */
.home-video_actions {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.home-video_trigger {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    color: #fff;
    background: var(--mitsubishi-red);
    border: none;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: width 0.35s ease-out, height 0.35s ease-out, border-radius 0.35s ease-out;
}

.home-video_trigger:hover {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    border-radius: 0;
}

.home-video_trigger .is-on {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.home-video_trigger .is-off {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-video_trigger .is-off i {
    font-size: 1.2rem;
}

.home-video_trigger:hover .is-off i {
    font-size: 1.5rem;
}

.home-video_trigger:hover .is-on {
    display: flex;
}

.home-video_trigger:hover .is-off {
    display: none;
}

.home-video_trigger-text {
    font-size: 10px;
    text-transform: capitalize;
    font-weight: 600;
    line-height: 1.2;
}

.home-video_actions-more {
    display: none;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
}

.home-video_actions.is-active .home-video_trigger {
    display: none;
}

.home-video_actions.is-active .home-video_actions-more {
    display: flex;
}

.home-video_btn {
    width: 80px;
    height: 80px;
    color: #fff;
    background: #5a646e;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 11px;
}

    .home-video_btn:hover {
        background: var(--mitsubishi-red) !important;
    }

.home-video_btn--close {
    background: var(--mitsubishi-red) !important;
}

.home-video_btn--close:hover {
    background: #c40000 !important;
}

.home-video_btn .uk-icon,
.home-video_btn i {
    font-size: 1.5rem;
}

.home-video_btn .is-off {
    display: none;
}

.home-video_btn .is-on {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-video_btn.active .is-off {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-video_btn.active .is-on {
    display: none;
}

/* Controles de video - Mobile: botones más pequeños, solo iconos */
@media (max-width: 768px) {
    .home-video_btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        gap: 0;
        padding: 0;
        font-size: 0;
    }
    .home-video_btn .uk-icon,
    .home-video_btn i {
        font-size: 1.2rem;
    }
    /* Ocultar texto, solo mostrar icono */
    .home-video_btn .is-on > span,
    .home-video_btn .is-off > span {
        display: none !important;
    }
    .home-video_btn .is-on,
    .home-video_btn .is-off {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    .home-video_trigger {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    .home-video_trigger .home-video_trigger-text {
        display: none !important;
    }
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    height: 90vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.video-bg {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 5%;
    padding-right: 5%;
    color: #fff;
    max-width: 1240px;
}

.hero-section:fullscreen .hero-content,
.hero-section:-webkit-full-screen .hero-content,
.hero-section:fullscreen .hero-overlay,
.hero-section:-webkit-full-screen .hero-overlay {
    display: none !important;
}

.hero-title {
    font-size: 84px;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    /* Hereda font-weight: 700 de la regla h1 */
}

.hero-text {
    font-size: 21px;
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    /* Hereda font-weight: 400 de la regla p */
}

.btn-ghost {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px 30px;
    margin-right: 15px;
    margin-bottom: 15px;
    border-radius: 0;
    transition: all 0.3s;
    letter-spacing: 1px;
    font-weight: 500; /* Medium para botones */
}

.btn-ghost:hover {
    background-color: #fff;
    color: #000;
}

/* =========================================
   6. CONTENIDO GENERAL
   ========================================= */
.section-title {
    text-transform: uppercase;
    color: var(--mitsubishi-black);
}

.card-auto {
    border: none;
    transition: transform 0.3s;
}
.card-auto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.auto-price {
    color: var(--mitsubishi-red);
    font-weight: 700; /* Precio Bold */
    font-size: 1.2rem;
}

.form-section { background-color: #f9f9f9; }
.form-floating > .form-control { border-radius: 0; }
.form-floating > .form-control:focus {
    border-color: var(--mitsubishi-red);
    box-shadow: none;
}

/* =========================================
   FOOTER MITSUBISHI (ESTILOS FINALES)
   ========================================= */
.mitsubishi-footer {
    background-color: #000000; /* Fondo Negro Puro */
    color: #ffffff;
    padding: 50px 0 30px 0;
    font-family: 'MMCOFFICE', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 69px;
}
@media (max-width: 767.98px) {
    .mitsubishi-footer {
        margin-bottom: 0px;
    }
}

/* --- FILA SUPERIOR FOOTER: BREADCRUMB + REDES --- */
.footer-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
}

/* --- BREADCRUMB FOOTER --- */
.footer-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 16px;
    color: #fff;
}

.footer-breadcrumb-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-breadcrumb-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-breadcrumb-sep {
    color: #fff;
    opacity: 0.6;
}

.footer-breadcrumb-current {
    color: #fff;
}

@media (max-width: 767.98px) {
    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* --- REDES SOCIALES (TOP) --- */
.footer-social {
    margin-bottom: 0;
    flex-shrink: 0;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
    color: var(--mitsubishi-red); /* Iconos Rojos */
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s;
}

.footer-social a:hover {
    color: #fff; /* Blanco al hover */
    transform: translateY(-3px);
}

.footer-social a img {
    width: 1.5rem;
    height: 1.5rem;
    transition: filter 0.3s;
}

.footer-social a:hover img {
    filter: brightness(0) invert(1); /* Blanco al hover */
}

/* --- COLUMNAS Y TEXTOS --- */
.footer-content {
    margin-bottom: 40px;
}

.footer-col {
    margin-bottom: 30px; /* Espacio en móvil */
}

.footer-title {
    color: #fff;
    font-weight: 700; /* Bold */
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: capitalize;
}

/* Lista de Horarios */
.footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #ccc; /* Gris claro */
}

.footer-hours li {
    display: flex;
    justify-content: space-between; /* Alinea día a izq y hora a der */
    margin-bottom: 8px;
    max-width: 350px; /* Evita que se estire demasiado */
    font-size: 0.85rem;
}

.footer-hours .day { font-weight: 500; color: #fff; }

/* Dirección */
.footer-address p {
    color: #ccc;
    margin-top: 5px;
    margin-bottom: 10px;
    line-height: 1.5;
    max-width: 350px;
}

.phone-link {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}
.phone-link:hover { color: var(--mitsubishi-red); }

/* Link Permitir notificaciones (footer) */
.footer-pwa-block {
    margin-top: 16px;
}
#ftpwanotification .notification-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    position: relative;
}
#ftpwanotification .notification-link:hover {
    color: var(--mitsubishi-red);
}
#ftpwanotification .mim-icon-notification {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}
#ftpwanotification .mim-icon-notification i {
    font-size: 1.15em;
    color: inherit;
}

/* Centro de contacto Mitsubishi Motors de México – tooltip con teléfono */
.footer-col-contacto .footer-centro-contacto-wrap {
    position: relative;
}
.footer-centro-contacto-trigger {
    display: inline-block;
    max-width: 245px;
    color: #fff;
    text-decoration: underline;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-centro-contacto-trigger:hover {
    color: var(--mitsubishi-red);
}
.footer-telephone-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    max-width: 202px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 10;
}
.footer-telephone-popup.uk-open {
    display: block;
}
.footer-telephone-popup ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-telephone-popup a {
    color: #000;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.footer-telephone-popup a:hover {
    color: var(--mitsubishi-red);
}

/* Modal Permitir Notificaciones */
.notification-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.notification-popup.newuser-active-it {
    display: flex;
}
.notification-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    cursor: pointer;
}
.notification-popup-inner {
    position: relative;
    background: #343434;
    border-radius: 8px;
    max-width: 1060px;
    width: 90%;
    padding: 45px 50px 40px;
    box-sizing: border-box;
    color: #fff;
}
.notification-popup-close {
    position: absolute;
    left: -10px;
    top: -14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #c3002f;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    z-index: 2;
    transition: all 0.3s;
}
.notification-popup-close:hover {
    background: #a00025;
}
.notification-inner {
    position: relative;
    padding: 0 0 15px;
    text-align: center;
}
.notification-inner .alert-msg h2 {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.3;
}
.notification-checkbox {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 28px;
    line-height: 1.5;
}
.allow-disallow-btn {
    text-align: center;
}
.btn-notification-allow {
    display: inline-block;
    padding: 14px 36px;
    background: #c3002f;
    border: 2px solid #c3002f;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s ease;
}
.btn-notification-allow:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

/* Listas de Enlaces (Contacto / Propietarios) */
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links-list a:hover {
    color: var(--mitsubishi-red); /* Rojo al hover */
    text-decoration: none;
}

/* --- BOTTOM (LEGALES) --- */
.footer-bottom {
    border-top: 1px solid #333; /* Línea separadora sutil */
    padding-top: 30px;
    font-size: 0.75rem;
}

.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legal-links a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.legal-links a:hover { color: #fff; }

.copyright-text {
    color: #666;
}

/* --- RESPONSIVE (MOBILE UX) --- */
@media (max-width: 768px) {
    .footer-social { margin-bottom: 0; }
    
    .legal-links { 
        justify-content: center; /* Centrar legales en móvil */
        margin-bottom: 15px;
    }
    
    .footer-hours li {
        max-width: 100%; /* Ancho completo en móvil */
    }
    
    .footer-col {
        border-bottom: 1px solid #222; /* Separador entre secciones en móvil */
        padding-bottom: 20px;
    }
    
    .footer-col:last-child { border-bottom: none; }
}

/* =========================================
   SECCIÓN DE FORMULARIO (INPUTS ESTILO SOLO BORDE INFERIOR)
   ========================================= */

.form-box-wrap {
    background-color: #fff;
    padding: 30px 0;
}

.form-title h3 {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    color: var(--mitsubishi-black);
    margin-bottom: 25px;
    font-size: 1.8rem;
}

/* --- INPUTS Y SELECTS --- */
.form-floating > .form-control,
.form-floating > .form-select {
    border: none;                 /* Quitamos todos los bordes */
    border-bottom: 1px solid #ccc; /* Solo dejamos la línea de abajo */
    border-radius: 0;             /* Sin esquinas redondas */
    background-color: transparent; 
    box-shadow: none;             /* Sin sombras raras */
    height: 55px;
    padding-left: 0;              /* Alineamos el texto a la izquierda */
    padding-right: 0;
    font-size: 0.95rem;
    color: var(--mitsubishi-black);
}

/* Ajuste de la etiqueta (Label) para que se alinee con la línea */
.form-floating > label {
    padding-left: 0; 
    color: #666;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- ESTADO FOCUS (AL DAR CLIC) --- */
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-bottom: 2px solid var(--mitsubishi-red); /* La línea se pone roja y un poco más gruesa */
    background-color: transparent;
    box-shadow: none; /* Aseguramos que no salga el brillo azul de Bootstrap */
    outline: none;
}

/* Cambiar color del Label al hacer focus */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-select:focus ~ label {
    color: var(--mitsubishi-red);
    opacity: 1;
}

/* =========================================
   COTIZA AHORA - LABELS FLOTANTES
   Al hacer click: label/placeholder visible
   Con valor: label sube, valor visible (imagen 3)
   ========================================= */
#cotizaAhoraForm .form-floating {
    position: relative;
    margin-bottom: 0;
}

#cotizaAhoraForm .form-floating > .form-control,
#cotizaAhoraForm .form-floating > .form-select {
    border: none;
    border-bottom: 1px solid #cfcfcf;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    height: 52px;
    padding: 1rem 0 0.25rem 0;
    font-size: 13px;
    color: #222;
}

#cotizaAhoraForm .form-floating > .form-control::placeholder {
    color: transparent;
}

#cotizaAhoraForm .form-floating > .form-control:focus::placeholder {
    color: #999;
}

#cotizaAhoraForm .form-floating > label {
    position: absolute;
    top: 1rem;
    left: 0;
    padding: 0;
    color: #9b9b9b;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    pointer-events: none;
    transition: all 0.25s ease;
}

/* Label flotando arriba: cuando hay valor o focus */
#cotizaAhoraForm .form-floating > .form-control:not(:placeholder-shown) ~ label,
#cotizaAhoraForm .form-floating > .form-control:focus ~ label,
#cotizaAhoraForm .form-floating > .form-select:focus ~ label,
#cotizaAhoraForm .form-floating > .form-select.has-value ~ label {
    top: -0.5rem;
    font-size: 12px;
    color: #b8b8b8;
}

#cotizaAhoraForm .form-floating > .form-control:focus ~ label,
#cotizaAhoraForm .form-floating > .form-select:focus ~ label,
#cotizaAhoraForm .form-floating > .form-select.has-value ~ label {
    color: var(--mitsubishi-red);
}

#cotizaAhoraForm .form-floating > .form-control:focus,
#cotizaAhoraForm .form-floating > .form-select:focus {
    border-bottom: 2px solid var(--mitsubishi-red);
    outline: none;
}

/* Selects: ocultar "Seleccione..." hasta hacer click; mostrar valor cuando está seleccionado */
#cotizaAhoraForm .form-floating > .form-select {
    padding-right: 2rem;
}

/* Sin focus y sin valor: texto "Seleccione..." invisible para no encimar con el label */
#cotizaAhoraForm .form-floating > .form-select:not(:focus):not(.has-value) {
    color: transparent;
}

#cotizaAhoraForm .form-floating > .form-select:focus,
#cotizaAhoraForm .form-floating > .form-select.has-value {
    color: #222;
}

#cotizaAhoraForm .form-floating .invalid-feedback {
    display: none;
}

#cotizaAhoraForm .form-floating .form-control.is-invalid ~ .invalid-feedback,
#cotizaAhoraForm .form-floating .form-select.is-invalid ~ .invalid-feedback {
    display: block;
}

/* --- CHECKS Y BOTONES --- */
.privacy-check .form-check-input {
    border-radius: 0;
    border: 1px solid #999;
    cursor: pointer;
}

.privacy-check .form-check-input:checked {
    background-color: var(--mitsubishi-red);
    border-color: var(--mitsubishi-red);
}

.privacy-check label {
    font-size: 0.8rem;
    color: #666;
}

.privacy-check a {
    /*color: var(--mitsubishi-red);*/
    color: #000;
    text-decoration: underline;
}

.btn-form-submit {
    background-color: var(--mitsubishi-red);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    padding: 12px 40px;
    transition: background 0.3s;
}

.btn-form-submit:hover {
    background-color: #000;
    color: #fff;
}

/* --- FICHA DE AGENCIA (ESTILOS) --- */
.agency-info-section {
    background-color: #fff;
    padding: 20px 0 40px 0;
}

/* Título (Ahora H2, pero visualmente grande) */
.agency-title {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700; /* Bold */
    color: var(--mitsubishi-black);
    font-size: 64px; /* Mantiene el tamaño grande */
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: left; /* Alineado a la izquierda */
}

.agency-title-2 {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700; /* Bold */
    color: var(--mitsubishi-black);
    font-size: 36px; /* Mantiene el tamaño grande */
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: left; /* Alineado a la izquierda */
}


/* Dirección (Ahora H3, estilo descriptivo) */
.agency-address {
    font-family: 'MMCOFFICE', sans-serif;
        margin-top: 20px;
    font-size: 28px;
    line-height: 33px;
}

/* Ajuste Responsive */
@media (max-width: 768px) {
    .agency-title { font-size: 2rem; }
    .agency-address { font-size: 1rem; }
    /* Cotiza Ahora: tamaño y padding para mobile */
    .form-section .form-box-wrap {
        padding: 0 !important;
    }
    .form-section .form-title .agency-title-2 {
        font-size: 21px !important;
        line-height: 24px !important;
    }
    /* Conoce nuestra Gama: tamaño para mobile */
    .gama-section .agency-title-2 {
        font-size: 21px !important;
        line-height: 24px !important;
    }
}

/* =========================================
   SECCIÓN: SLIDER GAMA (FIXED)
   ========================================= */
.gama-section {
    background-color: #f6f6f6;
    padding: 50px 0 80px 0;
    position: relative;
}

.gama-title {
    text-align: center;
    color: var(--mitsubishi-black);
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.slider-wrapper {
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    /* Derecha: 110px = 60px offset flecha + 45px float-menu + 5px gap
       Izquierda: 50px solo para la flecha */
    padding: 0 110px 0 50px;
}

/* --- CONTENEDOR (Ajustamos el gap) --- */
.slider-container {
    display: flex;
    overflow-x: auto;
    gap: 24px; /* Definimos un espacio fijo entre tarjetas */
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.slider-container::-webkit-scrollbar { display: none; }


/* --- TARJETA (LÓGICA RESPONSIVA) --- */
.car-card {
    background: #fff;
    flex: 0 0 auto;
    scroll-snap-align: start;
    border: none;
    transition: box-shadow 0.3s ease;

    /* 1. VISTA MÓVIL (Por defecto) */
    /* Mostramos 1 tarjeta y un "cachito" de la siguiente para invitar a deslizar */
    min-width: 280px; 
    max-width: 280px;
}

/* 2. VISTA ESCRITORIO (Aquí forzamos las 3 columnas) */
@media (min-width: 992px) {
    .car-card {
        /* FÓRMULA: (100% del ancho - 48px de huecos) / 3 tarjetas */
        /* 48px sale de multiplicar el gap (24px) x 2 huecos entre 3 items */
        min-width: calc((100% - 48px) / 3);
        max-width: calc((100% - 48px) / 3);
    }
}

/* Hover effect */
.car-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    z-index: 2;
}

/* Resto de estilos internos de la card igual... */

.car-img-wrap {
    height: 160px;
    padding: 20px;
    display: flex; align-items: center; justify-content: center;
}
.car-img-wrap img {
    max-width: 100%; height: auto; object-fit: contain;
}

.car-content {
    padding: 0 25px 30px 25px;
}

.car-name {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin-bottom: 5px;
}

.car-price-wrap {
    margin-bottom: 20px;
}
.car-price {
    font-family: 'MMCOFFICE', sans-serif;
    color: #000;
    font-weight: 700;
    font-size: 16px;
}
.car-price span {
    font-weight: 400; font-size: 0.9rem; margin-right: 5px;
}
.car-year {
    font-size: 0.9rem; color: #666; font-weight: 400;
}

/* --- LINKS HORIZONTALES (SEGUIDOS) --- */
.car-links-inline {
    display: flex;
    flex-wrap: wrap; /* Clave: permite que bajen si no caben, pero van seguidos */
    gap: 15px;      /* Espacio entre botones */
    align-items: center;
}

.car-links-inline a {
    font-family: 'MMCOFFICE', sans-serif;
    font-size: 14px; /* Letra pequeña como el original */
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

/* Flecha automática con CSS */
.car-links-inline a::after {
    content: "\F285"; /* Icono Chevron Right de Bootstrap Icons */
    font-family: "bootstrap-icons";
    font-size: 0.7rem;
    color: var(--mitsubishi-red); /* Flecha roja */
    margin-left: 2px;
}

.car-links-inline a:hover {
    color: var(--mitsubishi-red);
}

/* El link "Cotízalo" a veces se destaca, opcional */
.car-links-inline a.highlight {
    /* color: var(--mitsubishi-red); si quisieras que este fuera rojo siempre */
}

/* --- FLECHAS DE NAVEGACIÓN (ROJAS) --- */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px; height: 45px;
    background-color: var(--mitsubishi-red); /* ROJO */
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background 0.3s;
}

.slider-arrow:hover {
    background-color: #cc0000; /* Rojo más oscuro al hover */
}

.arrow-left { left: 0; }
/* Desplazada 60px del borde derecho para dejar espacio al float-menu (45px) */
.arrow-right { right: 60px; }

/* Responsive: Ocultar flechas en móvil */
@media (max-width: 992px) {
    .slider-wrapper { padding: 16px; }
    .slider-arrow { display: none; }
    .slider-container { padding: 20px 5%; gap: 15px; }
}

/* Mobile: 1 tarjeta completa por vez */
@media (max-width: 767px) {
    .slider-wrapper { padding: 0; }
    .slider-container {
        padding: 20px 16px;
        gap: 12px;
        scroll-padding-left: 16px;
    }
    .car-card {
        min-width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
    .car-img-wrap { height: 200px; }
}


/* =========================================
   SECCIÓN: ADQUIERE UN SEMINUEVO (referencia imagen 1)
   ========================================= */
.seminuevos-acquire-section {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 800;
    min-height: 350px;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
    margin-bottom: 0;
    background-color: #fff;
}

.seminuevos-acquire-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}

.seminuevos-acquire-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.seminuevos-acquire-content {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: -60px;
}

.seminuevos-acquire-container {
    max-width: 100%;
    padding-left: 8%;
    padding-right: 60px;
}

.seminuevos-acquire-inner {
    max-width: 505px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: #000;
    color: #fff;
    padding: clamp(30px, 5vw, 70px) clamp(24px, 4vw, 60px);
}

.seminuevos-acquire-inner h2 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: clamp(1.5rem, 3vw, 42px);
    margin-bottom: 20px;
    text-transform: capitalize;
}

.seminuevos-acquire-desc {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 16px);
    line-height: 1.5;
    margin-bottom: 35px;
    padding: 0;
}

.seminuevos-acquire-btn .btn-ghost-white:hover {
    background-color: #fff;
    color: #000;
}

/* Responsive Seminuevos - Tablet y Desktop intermedio */
@media (max-width: 1200px) {
    .seminuevos-acquire-container {
        padding-left: 5%;
        padding-right: 40px;
    }
    .seminuevos-acquire-inner {
        max-width: 420px;
    }
}

@media (max-width: 992px) {
    .seminuevos-acquire-container {
        padding-left: 4%;
        padding-right: 24px;
    }
    .seminuevos-acquire-inner {
        max-width: 380px;
        padding: 50px 30px;
    }
    .seminuevos-acquire-inner h2 {
        font-size: 1.75rem;
    }
    .seminuevos-acquire-desc {
        font-size: 0.95rem;
    }
    .seminuevos-acquire-btn .btn-ghost-white {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* Responsive Seminuevos - Mobile */
@media (max-width: 768px) {
    .seminuevos-acquire-section {
        min-height: 360px;
        height: 360px;
        display: block;
    }
    .seminuevos-acquire-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .seminuevos-acquire-bg img {
        width: 100%;
        height: 100%;
        min-height: 360px;
        object-fit: cover;
        object-position: center bottom;
    }
    .seminuevos-acquire-content {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin-top: -60px;
        padding: 0;
    }
    .seminuevos-acquire-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .seminuevos-acquire-inner {
        margin: 0;
        max-width: 100%;
        width: 100%;
        padding: 24px 1rem;
        background: #000;
    }
    .seminuevos-acquire-inner h2 {
        font-size: 20px;
    }
    .seminuevos-acquire-desc {
        font-size: 16px;
    }
    .seminuevos-acquire-btn .btn-ghost-white {
        width: auto;
        display: inline-block;
        text-align: center;
        box-sizing: border-box;
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Separador entre secciones (fondo blanco) */
.section-divider--white {
    background-color: #fff !important;
    height: 100px;
    width: 100%;
}

.section-divider-145--white {
    background-color: #fff !important;
    height: 145px;
    width: 100%;
}

/* Responsive section dividers */
@media (max-width: 992px) {
    .section-divider--white {
        height: 75px;
    }
    .section-divider-145--white {
        height: 125px;
    }
}

@media (max-width: 768px) {
    .section-divider--white {
        height: 50px;
    }
    .section-divider-145--white {
        height: 100px;
    }
}

/* =========================================
   SECCIÓN: MANTENIMIENTO (CENTRADO)
   ========================================= */
.maintenance-section {
    position: relative;
    width: 100%;
    height: 500px; /* Altura del banner */
    display: flex;
    align-items: center;     /* Centrado Vertical */
    justify-content: center; /* Centrado Horizontal */
    overflow: hidden;
}

/* Imagen de Fondo */
.maintenance-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.maintenance-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay-dark {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); /* Un poco más oscuro para contraste */
    z-index: 2;
}

/* Contenido */
.maintenance-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Bloque interno centrado */
.maintenance-inner {
    max-width: 480px;
    margin: 0 auto; /* Centrado del bloque */
    text-align: center; /* Centrado del texto */
    color: #fff;
}

.maintenance-inner h2 {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 42px; /* Título grande */
    margin-bottom: 20px;
    text-transform: capitalize;
}

.maintenance-desc {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 35px;
    padding: 0 10px; /* Margen lateral en móviles */
}

.guarantee-content{
    max-width:505px
}
/* Botón Transparente (Ghost) */
.btn-ghost-white {
    display: inline-block; /* Importante para que respete el text-align center */
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
    padding: 14px 35px;
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-ghost-white:hover {
    background-color: #fff;
    color: #000;
}

/* Responsive - Mobile: imagen arriba, texto debajo sobre fondo negro */
@media (max-width: 768px) {
    .maintenance-section {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        height: auto;
        min-height: auto;
    }
    .maintenance-bg {
        position: relative;
        width: 100%;
        flex-shrink: 0;
        overflow: hidden;
    }
    .maintenance-section .maintenance-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .maintenance-section .maintenance-bg .overlay-dark {
        display: none;
    }
    .maintenance-content {
        background-color: #000;
        padding: 24px 1rem;
    }
    .maintenance-inner {
        text-align: left !important;
        margin: 0;
        max-width: 100%;
    }
    .maintenance-inner h2 {
        font-size: 1.5rem;
    }
    .maintenance-desc {
        font-size: 1rem;
        padding: 0;
    }
    .maintenance-section .maintenance-btn-wrap .btn-ghost-white {
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }
}


/* =========================================
   SECCIÓN: GARANTÍA
   ========================================= */
.guarantee-section {
    background-color: #fff;
    padding: 80px 0; /* Espaciado amplio arriba y abajo */
}

/* Imagen */
.guarantee-img-wrap img {
    display: block;
    /* Asegura que la imagen no se desborde */
    max-width: 100%; 
    height: auto;
}

/* Título */
.guarantee-title {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 36px; /* Título Grande */
    color: var(--mitsubishi-black);
    margin-bottom: 20px;
}

/* Descripción */
.guarantee-desc {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #666; /* Gris lectura */
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Botón Borde Negro (Estilo 'primary-btn-transparent-bg' en fondo blanco) */
.btn-outline-black {
    display: inline-block;
    border: 2px solid #000; /* Borde Negro */
    color: #000;
    background: transparent;
    padding: 12px 35px;
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-black:hover {
    background-color: #000; /* Fondo negro al pasar mouse */
    color: #fff; /* Texto blanco */
}

/* Ajustes Responsive */
@media (max-width: 991px) {
    .guarantee-section { padding: 50px 0; }
    .guarantee-title { font-size: 28px; }
    /* Centramos el contenido en móvil si quieres, o déjalo a la izq */
    /* .guarantee-content { text-align: center; } */ 
}

/* =========================================
   SECCIÓN: PREGUNTAS FRECUENTES (FAQ)
   ========================================= */
.faq-section {
    background-color: #f6f6f6; /* Fondo Gris solicitado */
    padding: 60px 0 80px 0;
}

.faq-title-wrap h3 {
    text-align: center;
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--mitsubishi-black);
    margin-bottom: 40px;
}

/* Contenedor del Acordeón */
.custom-faq {
    max-width: 1030px; /* Ancho específico del diseño original */
    margin: 0 auto;
}

/* Items del Acordeón */
.custom-faq .accordion-item {
    background-color: transparent; /* Transparente para ver el gris de fondo */
    border: none;
    border-bottom: 1px solid #ddd; /* Línea divisoria gris claro */
    border-radius: 0;
}

.custom-faq .accordion-item:last-child {
    border-bottom: none; /* Quitamos la línea del último */
}

/* Botón (La Pregunta) */
.custom-faq .accordion-button {
    background-color: transparent;
    color: var(--mitsubishi-black);
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 500; /* Negrita */
    font-size: 18px;
    padding: 20px 0; /* Espaciado vertical sin padding lateral excesivo */
    box-shadow: none; /* Quita el brillo azul de Bootstrap */
}

/* Estado Activo (Pregunta Abierta) */
.custom-faq .accordion-button:not(.collapsed) {
    color: var(--mitsubishi-red); /* Título Rojo */
    background-color: transparent; /* Fondo sigue transparente */
    box-shadow: none; /* Sin borde azul */
}

/* 2. La Flecha se pone Roja */
.custom-faq .accordion-button:not(.collapsed)::after {
    /* Rotamos la flecha */
    transform: rotate(-180deg);
    
    /* TRUCO: Este filtro convierte el icono negro en Rojo Mitsubishi exacto */
    filter: invert(14%) sepia(94%) saturate(7460%) hue-rotate(0deg) brightness(98%) contrast(113%);
}

/* El Cuerpo (La Respuesta) */
.custom-faq .accordion-body {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 400;
    color: #666; /* Gris texto */
    padding: 0 0 25px 0; /* Padding abajo */
    font-size: 16px;
    line-height: 1.6;
}

/* Enlaces dentro de la respuesta */
.custom-faq .accordion-body a {
    color: var(--mitsubishi-red);
    text-decoration: underline;
}

/* --- PERSONALIZACIÓN DE LA FLECHA --- */
/* Bootstrap usa un SVG codificado. Vamos a rotarlo y cambiarle el color con filtro */

.custom-faq .accordion-button::after {
    /* Filtro para volver la flecha NEGRA (por defecto es gris o azul en bootstrap) */
    filter: grayscale(100%) brightness(0%); 
    transition: transform 0.3s ease;
    width: 1.2rem;
    height: 1.2rem;
    background-size: 1.2rem;
}

/* Cuando está abierto, la flecha rota */
.custom-faq .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg);
}

/* =========================================
   TABS DE PREGUNTAS FRECUENTES
   ========================================= */
.faq-tabs {
    border-bottom: 2px solid #ddd;
    margin-bottom: 40px;
    justify-content: center;
}

.faq-tabs .nav-item {
    margin: 0 15px;
}

.faq-tabs .nav-link {
    color: #666;
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    background-color: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-tabs .nav-link:hover {
    color: #333;
    border-bottom-color: #ddd;
}

.faq-tabs .nav-link.active {
    color: var(--mitsubishi-black);
    background-color: transparent;
    border-bottom: 3px solid var(--mitsubishi-red);
}

.faq-tabs .nav-link:focus {
    outline: none;
    box-shadow: none;
}

/* Responsive para tabs */
@media (max-width: 768px) {
    .faq-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .faq-tabs .nav-item {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #ddd;
    }
    
    .faq-tabs .nav-link {
        text-align: left;
        padding: 15px 20px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .faq-tabs .nav-link.active {
        border-left: 3px solid var(--mitsubishi-red);
        border-bottom: none;
    }
}

/* =========================================
   BOTTOM NAV BAR (Sticky Footer)
   ========================================= */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--mitsubishi-red);
    z-index: 1050;
    height: 70px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    
    /* Ocultar inicialmente con bottom (evita transform que recorta el dropdown) */
    bottom: -70px;
    transition: bottom 0.4s ease-in-out;
}

.bottom-nav-bar.is-visible {
    bottom: 0;
}

/* Contenedor Flex con Scroll Horizontal para Móvil */
.bottom-nav-scroll {
    display: flex;
    align-items: center;
    justify-content: center; /* Centrado en pantallas grandes */
    height: 100%;
    
    /* UX Móvil: Scroll Horizontal si no cabe */
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    
    /* Ocultar barra de scroll visualmente pero mantener funcionalidad */
    scrollbar-width: none; 
}
/* Cuando el dropdown de modelos está abierto, permitir que se muestre fuera del contenedor */
.bottom-nav-scroll:has(.dropdown-menu.show) {
    overflow: visible !important;
}
/* Elevar el stacking context de la barra cuando el dropdown está abierto,
   para que quede encima del float-menu (z=1060) y la barra no lo recorte */
.bottom-nav-bar:has(.dropdown-menu.show) {
    overflow: visible !important;
    z-index: 1080 !important;
}
.bottom-nav-scroll::-webkit-scrollbar { display: none; }

/* Wrapper de cada item */
.nav-item-wrap {
    flex: 0 0 auto; /* No encoger */
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1); /* Separador sutil */
}
.nav-item-wrap.dropup {
    position: relative; /* Contexto para que el dropdown se ancle al botón */
}

.nav-item-wrap:last-child { border-right: none; }

/* El Enlace en sí */
.nav-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    height: 100%;
    padding: 16px 20px !important;
    
    /* SUAVIZADO: */
    /* Esto hace que el cambio de color tarde 0.4 segundos */
    transition: background-color 0.4s ease, color 0.4s ease; 
}


/* --- HOVER NEGRO EN BOTONES INFERIORES --- */
.nav-item-link:hover, 
.nav-item-link:focus,
.nav-item-wrap.dropup .dropdown-toggle.show {
    background-color: #000; /* Fondo Negro Sólido */
    color: #fff;            /* Texto Blanco */
    cursor: pointer;
}

/* Iconos */
.nav-item-link i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    line-height: 1;
}

/* Texto */
.nav-item-link span {
    font-family: 'MMCOFFICE', sans-serif;
    font-size: 0.75rem; /* Texto pequeño */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- MENÚ "NUESTROS MODELOS" (bottom-nav dropup) - Solo este control --- */
/* data-bs-display="static" desactiva Popper; posicionamos con CSS para anclar al botón */
.bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    right: auto !important;
}
.bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    z-index: 1060;
    overflow-y: visible;
    max-height: none;
}

.bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 10px 20px;
    text-transform: uppercase;
}

/* Desktop: sin bordes, texto centrado, font-weight 700 */
@media (min-width: 993px) {
    .bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu .dropdown-item {
        border: none;
        text-align: center;
        font-weight: 700;
    }
}

.bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu .dropdown-item:hover {
    background-color: #f8f8f8;
    color: var(--mitsubishi-red);
}

.bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu .dropdown-item.dropdown-item-seminuevos-active {
    color: var(--mitsubishi-red) !important;
    font-weight: 700;
}

/* Quitamos la flechita default solo en el toggle de Nuestros Modelos */
.bottom-nav-bar .nav-item-wrap.dropup .nav-item-link.dropdown-toggle::after {
    display: none;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 992px) {
    /* Móvil: menú flotante siempre fijo, no depende del scroll */
    .bottom-nav-bar {
        bottom: 0 !important;
    }
    
    .bottom-nav-scroll {
        justify-content: flex-start; /* En móvil alineamos al inicio para scrollear */
    }
    
    .nav-item-link {
        padding: 0 15px; /* Reducimos un poco el padding en móvil */
        min-width: 64px;
    }
    
    .nav-item-link span {
        font-size: 0.65rem; /* Ajuste fino de texto */
    }
    
    /* Dropdown móvil: se extiende al ancho de la pantalla, similar a desktop pero expandido */
    .bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        bottom: 70px !important;
        top: auto !important;
        transform: none !important;
        margin-bottom: 0 !important;
        border-radius: 0;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
    }
    
    .bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu .dropdown-item {
        text-align: center;
        padding: 20px 24px;
        font-weight: 700;
        border: none;
        font-size: 1rem;
    }
    
    .bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu li {
        margin-bottom: 8px;
    }
    .bottom-nav-bar .nav-item-wrap.dropup .dropdown-menu li:last-child {
        margin-bottom: 0;
    }
    
    /* Importante: Ajustar el body para que el contenido no quede tapado por la barra */
    body {
        padding-bottom: 70px;
    }
}


/* =========================================
   MEGA MENU (AUTOS NUEVOS)
   ========================================= */

/* Permitimos que el dropdown sea ancho */
.has-megamenu {
    position: static;
}

/* Cuando el megamenu está abierto, elevar el header por encima del
   float-menu (z=1040) y el bottom-bar (z=1050) */
.header-wrapper:has(.megamenu.show) {
    z-index: 1070 !important;
}

.megamenu {
    width: 100%; /* Ocupa todo el ancho del container padre o pantalla */
    left: 0;
    right: 0;
    margin-top: 0; /* Pegado al header */
    border-radius: 0;
    border: none;
    border-top: 1px solid #eee;
    padding: 54px;
    background-color: #fff;
    
    /* --- SCROLL INTERNO MAGICO --- */
    /* Descontamos la altura del header para no salirnos del viewport */
    max-height: calc(100vh - var(--header-height, 90px));
    overflow-y: auto; /* Scroll vertical si excede la altura */
    
    /* Sombra para que flote bonito sobre el contenido */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Estilo del Scrollbar interno para que se vea elegante */
.megamenu::-webkit-scrollbar {
    width: 8px;
}
.megamenu::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.megamenu::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.megamenu::-webkit-scrollbar-thumb:hover {
    background: #999; 
}

/* --- AJUSTE DE TARJETAS DENTRO DEL MENU --- */
/* Reseteamos los estilos del slider horizontal para que funcione en Grid */
.megamenu-card {
    background: #fff;
    border: none;
    transition: box-shadow 0.3s ease;
    height: 100%;
    min-width: 0 !important;
    max-width: 100% !important;
}

.megamenu-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.megamenu-card .car-img-wrap {
    height: 160px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.megamenu-card .car-img-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.megamenu-card .car-content {
    padding: 0 25px 30px 25px;
}

.megamenu-card .car-name {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin-bottom: 5px;
}

.megamenu-card .car-price-wrap {
    margin-bottom: 20px;
}

.megamenu-card .car-price {
    font-family: 'MMCOFFICE', sans-serif;
    color: #000;
    font-weight: 700;
    font-size: 16px;
}

.megamenu-card .car-price span {
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 5px;
}

.megamenu-card .car-year {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

.megamenu-card .car-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.megamenu-card .car-links-inline a {
    font-family: 'MMCOFFICE', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

.megamenu-card .car-links-inline a::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 0.7rem;
    color: var(--mitsubishi-red);
    margin-left: 2px;
}

.megamenu-card .car-links-inline a:hover {
    color: var(--mitsubishi-red);
}

/* Mantener compatibilidad con la clase antigua por si acaso */
.megamenu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.megamenu-links a {
    font-family: 'MMCOFFICE', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}

.megamenu-links a::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 0.7rem;
    color: var(--mitsubishi-red);
    margin-left: 2px;
}

.megamenu-links a.highlight {
    color: var(--mitsubishi-red);
}

.megamenu-links a:hover {
    color: var(--mitsubishi-red);
}

/* =========================================
   MENU MOVIL (FONDO BLANCO + SCROLL + ANIMACIÓN)
   ========================================= */
@media (max-width: 1199px) {
    
    /* 1. Contenedor Principal */
    .navbar-collapse {
        background-color: #ffffff;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        
        /* Altura y Scroll */
        height: calc(100vh - 60px) !important; 
        overflow-y: auto; 
        padding-bottom: 100px;
        
        border-top: 1px solid #e5e5e5;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);

        /* ESTADO INICIAL (Antes de abrir) */
        opacity: 0; 
        transform: translateY(-20px); /* Empieza un poco arriba */
        transition: none; /* Desactivamos transición default de Bootstrap para usar la nuestra */
    }

    /* --- ANIMACIÓN DE ENTRADA --- */
    /* Cuando Bootstrap agrega la clase .show, ejecutamos esto: */
    .navbar-collapse.show {
        animation: menuSlideIn 0.4s ease-out forwards;
    }

    /* Definimos el movimiento */
    @keyframes menuSlideIn {
        0% {
            opacity: 0;
            transform: translateY(-20px); /* Empieza oculto y arriba */
        }
        100% {
            opacity: 1;
            transform: translateY(0); /* Termina visible y en su lugar */
        }
    }

    /* 2. Enlaces Principales (sobrescrito por bloque MENU MOVIL COMPLETO) */
    .navbar-nav .nav-link {
        color: #000000 !important;
        font-family: 'MMCOFFICE', sans-serif;
        padding: 10px 25px !important;
        height: auto !important;
        min-height: auto !important;
    }

    .navbar-nav .nav-link:hover, .navbar-nav .nav-link.show {
        color: var(--mitsubishi-red) !important;
        background-color: #f9f9f9;
    }

    /* 3. Dropdowns y Reset de Mega Menu */
    .dropdown-menu {
        background-color: #f8f8f8 !important;
        border: none;
        padding: 0;
        margin: 0;
    }

    .megamenu, .simple-dropdown {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* 4. Items internos */
    .dropdown-item, .megamenu-links a {
        color: #333 !important;
        padding: 0px 0px !important;
        border-bottom: 1px solid #eee;
        display: block;
    }
    
    /* 5. Tarjetas (Cards) en lista */
    .megamenu .row { margin: 0; }
    .megamenu .col-6 { width: 100%; padding: 0; }

    .megamenu-card {
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid #eee !important;
        padding: 15px 30px !important;
        display: flex;
        align-items: center;
    }

    .megamenu-card .car-img-wrap {
        width: 70px;
        margin-right: 20px;
    }
    
    .megamenu-card .car-content { text-align: left; flex: 1; }
    .car-name { color: #000; font-weight: 700; }
    .car-price-wrap, .megamenu-links, .car-links-inline { display: none; }
    
    /* Excepción: en el modal Autos Nuevos, mostrar precio y botones; botones en grid 2x2 */
    .autos-nuevos-modal .car-price-wrap { display: block !important; }
    .autos-nuevos-modal .megamenu-links,
    .autos-nuevos-modal .car-links-inline,
    .autos-nuevos-modal .home_car_btn {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 12px !important;
    }
    .autos-nuevos-modal .megamenu-links a,
    .autos-nuevos-modal .car-links-inline a,
    .autos-nuevos-modal .home_car_btn a { display: block !important; }
    
    /*.megamenu-card::after {
        content: "›";
        color: #999;
        font-size: 1.5rem;
        margin-left: 10px;
    }*/
}

/* =========================================
   MENU MOVIL COMPLETO (ESTILO APP MITSUBISHI)
   ========================================= */
@media (max-width: 1199px) {

    /* --- 1. CONFIGURACIÓN DEL MENÚ DESPLEGABLE PRINCIPAL --- */
    .navbar-collapse {
        /* Fondo diagonal: blanco arriba-izq, gris claro abajo-der */
        background: linear-gradient(120deg, #fff 0%, #fff 50%, #f2f2f2 35%);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        overflow-y: auto;
        padding-bottom: 80px;
        border-top: 1px solid #ddd;
    }

    /* Animación de entrada suave */
    .navbar-collapse.show {
        animation: menuSlideIn 0.3s ease-out forwards;
    }
    @keyframes menuSlideIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* --- 2. ENLACES PRINCIPALES (MENU LISTA) --- */
    .navbar-nav .nav-item {
        margin: 0;
        padding: 0;
    }
    .navbar-nav .nav-link {
        color: #000 !important;
        font-family: 'MMCOFFICE', sans-serif;
        font-weight: 400;
        text-transform: none;
        padding: 10px 25px !important;
        height: auto !important;
        min-height: auto !important;
        background-color: transparent;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .navbar-nav .nav-link-inicio-active {
        color: var(--mitsubishi-red) !important;
    }
    
    /* Chevron tipo V alineado a la derecha (usa Bootstrap Icons) */
    .navbar-nav .dropdown-toggle::after {
        display: none;
    }
    .navbar-nav .dropdown-toggle {
        position: relative;
        padding-right: 35px;
    }
    .navbar-nav .dropdown-toggle::before {
        content: "\f282";
        font-family: "bootstrap-icons";
        position: absolute;
        right: 20px;
        font-size: 0.75rem;
        color: #000;
        transition: transform 0.2s;
    }
    .navbar-nav .dropdown-toggle[aria-expanded="true"]::before {
        transform: rotate(180deg);
    }

    /* --- 3. MEGA MENU (AUTOS NUEVOS) --- */
    .megamenu {
        position: static !important;
        background-color: transparent !important; /* Transparente para respetar el gris del fondo */
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* HEADER "ATRÁS" (< Autos Nuevos) */
    .mobile-menu-header {
        background-color: #fff;
        padding: 15px 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 20px;
    }
    .mobile-menu-header button {
        background: none;
        border: none;
        font-family: 'MMCOFFICE', sans-serif;
        font-weight: 700;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        padding: 0;
        color: #000;
    }
    .mobile-menu-header i { margin-right: 10px; font-weight: bold; }

    /* LAYOUT: UNA SOLA COLUMNA */
    .megamenu .row { margin: 0; }
    
    .megamenu .col-12 {
        width: 100%; /* Ocupa todo el ancho */
        padding: 0 15px;
        margin-bottom: 15px; /* Separación entre autos */
    }

    /* --- 4. DISEÑO DE TARJETA (CARD) --- */
    .megamenu-card {
        background-color: #fff !important; /* Tarjeta Blanca */
        padding: 25px 20px !important;
        display: block !important;
        text-align: left;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Sombra suave */
    }

    /* IMAGEN GRANDE */
    .megamenu-card .car-img-wrap {
        width: 100%;
        height: 160px;
        padding: 20px;
        margin-bottom: 15px;
        text-align: center;
        margin-right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .megamenu-card img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* TEXTOS DE LA TARJETA */
    .megamenu-card .car-content { 
        display: block; 
        text-align: left;
        padding: 0 25px 30px 25px;
    }
    
    .megamenu-card .car-name {
        font-family: 'MMCOFFICE', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #000;
        margin-bottom: 5px;
    }

    /* PRECIO Y AÑO (Restaurados en Móvil) */
    .megamenu-card .car-price-wrap {
        display: block !important;
        margin-bottom: 20px;
    }

    .megamenu-card .car-price {
        font-family: 'MMCOFFICE', sans-serif;
        color: #000;
        font-weight: 700;
        font-size: 16px;
        margin-bottom: 0;
    }

    .megamenu-card .car-price span {
        font-weight: 400;
        font-size: 0.9rem;
        margin-right: 5px;
    }

    .megamenu-card .car-year {
        font-size: 0.9rem;
        color: #666;
        font-weight: 400;
    }

    /* BOTONES DE ACCIÓN (LINKS) */
    .megamenu-links,
    .car-links-inline {
        display: flex !important;
        flex-wrap: wrap;
        gap: 15px;
    }

    .megamenu-links a,
    .car-links-inline a {
        font-family: 'MMCOFFICE', sans-serif;
        font-size: 14px;
        font-weight: 700;
        color: #000 !important;
        text-decoration: none;
        text-transform: uppercase;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        transition: color 0.2s;
    }
    
    .megamenu-links a::after,
    .car-links-inline a::after {
        content: "\F285";
        font-family: "bootstrap-icons";
        font-size: 0.7rem;
        color: var(--mitsubishi-red);
        margin-left: 2px;
    }

    .megamenu-links a:hover,
    .car-links-inline a:hover {
        color: var(--mitsubishi-red) !important;
    }

    /* En móvil, los links se muestran en grid 2x2 como en el modal */
    @media (max-width: 768px) {
        .megamenu-card .car-links-inline {
            display: grid !important;
            grid-template-columns: 1fr 1fr !important;
            gap: 8px 12px !important;
        }
        .megamenu-card .car-links-inline a {
            display: block !important;
        }
    }

    /* --- 5. SUBMENU FULL-PANEL (Comprar, Propietarios, Contacto) --- */
    /* Ocultar main menu cuando un simple-dropdown está abierto */
    .navbar-collapse:has(.simple-dropdown.show) .navbar-nav .nav-item > .nav-link {
        visibility: hidden;
        position: absolute;
        left: -9999px;
    }
    .navbar-collapse:has(.simple-dropdown.show) .navbar-nav .nav-item .dropdown-menu:not(.show) {
        display: none !important;
    }
    /* Submenu como panel completo con transición */
    .navbar-collapse .simple-dropdown {
        list-style: none;
        background: linear-gradient(120deg, #fff 0%, #fff 50%, #f2f2f2 35%) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        position: fixed !important;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        height: auto !important;
        min-height: calc(100vh - 60px) !important;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: none !important;
        display: none;
        transform: translateX(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    .navbar-collapse .simple-dropdown.show {
        display: block !important;
        transform: translateX(0);
        animation: submenuSlideIn 0.3s ease forwards;
    }
    @keyframes submenuSlideIn {
        from {
            transform: translateX(100%);
            opacity: 0.8;
        }
        to {
            transform: translateX(0);
            opacity: 1;
        }
    }
    .navbar-collapse .simple-dropdown.show.hiding {
        animation: submenuSlideOut 0.25s ease forwards;
    }
    @keyframes submenuSlideOut {
        from {
            transform: translateX(0);
            opacity: 1;
        }
        to {
            transform: translateX(100%);
            opacity: 0.8;
        }
    }
    /* Header "atrás" del submenú */
    .mobile-submenu-header {
        list-style: none;
        margin: 0;
        padding: 0;
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    .mobile-submenu-header button {
        width: 100%;
        background: none;
        border: none;
        font-family: 'MMCOFFICE', sans-serif;
        font-weight: 700;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        padding: 15px 20px;
        color: #000;
        text-align: left;
        cursor: pointer;
    }
    .mobile-submenu-header button i {
        margin-right: 10px;
        font-weight: bold;
    }
    .simple-dropdown .dropdown-item {
        padding: 10px 25px !important;
        border-bottom: none;
        color: #333 !important;
        font-weight: 500;
    }
}
/* =========================================
   DROPDOWN SIMPLE (COMPRAR)
   ========================================= */

.simple-dropdown {
    border: none;
    border-radius: 0;
    padding: 15px 0;
    margin-top: 10px; /* Un poco de separación del nav */
    background-color: #fff;
    min-width: 260px; /* Ancho mínimo para que se lea bien */
}

.simple-dropdown .dropdown-item {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700; /* Bold como en la imagen */
    font-size: 0.9rem;
    padding: 10px 25px; /* Espaciado cómodo */
    color: #000;
    transition: all 0.2s;
}

.simple-dropdown .dropdown-item:hover {
    background-color: #f5f5f5; /* Gris muy tenue al hover */
    color: var(--mitsubishi-red); /* Texto rojo al hover */
}

/* El item rojo específico (Fichas técnicas) */
.simple-dropdown .dropdown-item.item-red {
    color: var(--mitsubishi-red);
}

/* --- FLECHITA (TRIÁNGULO) ARRIBA --- */
/* Solo en Desktop (lg) para arriba */
@media (min-width: 992px) {
    .simple-dropdown {
        /* Esto permite que la flecha se posicione relativa a la caja */
        overflow: visible; 
    }

    .simple-dropdown::before {
        content: "";
        position: absolute;
        top: -8px; /* Lo subimos para que salga de la caja */
        left: 20px; /* Posición horizontal */
        width: 0; 
        height: 0; 
        /* Dibuja el triángulo blanco */
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #fff; 
        /* Sombra suave para que coincida con la caja (opcional) */
        filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.05));
    }
}

/* --- AJUSTE MOBILE --- */
@media (max-width: 991px) {
    .simple-dropdown {
        box-shadow: none !important; /* Sin sombra en móvil */
        border-left: 1px solid #eee; /* Línea guía */
        margin-left: 20px;
        margin-top: 0;
        padding: 5px 0;
    }
    .simple-dropdown .dropdown-item {
        padding-left: 15px;
    }
}

/* =========================================
   ANIMACIÓN DE DROPDOWNS (ESCRITORIO)
   ========================================= */

@media (min-width: 992px) {
    
    /* Cuando el menú recibe la clase .show (al abrirse) */
    .dropdown-menu.show {
        animation: slideUpFade 0.4s ease forwards; /* Duración 0.4s suave */
        transform-origin: top center; /* La animación nace desde arriba */
    }

    /* Definición de la animación */
    @keyframes slideUpFade {
        0% {
            opacity: 0;
            transform: translateY(20px); /* Empieza 20px más abajo */
        }
        100% {
            opacity: 1;
            transform: translateY(0); /* Termina en su lugar original */
        }
    }
    
    /* --- AJUSTE ESPECIAL PARA EL MEGA MENU (AUTOS NUEVOS) --- */
    /* Como el Mega Menu es Fixed, usamos una animación ligeramente distinta 
       para que parezca una "persiana" bajando */
    .megamenu.show {
        animation: curtainDown 0.5s ease forwards;
    }

    @keyframes curtainDown {
        0% {
            opacity: 0;
            clip-path: inset(0 0 100% 0); /* Recortado totalmente desde abajo */
        }
        100% {
            opacity: 1;
            clip-path: inset(0 0 0 0); /* Se muestra completo */
        }
    }
}


/* =====================================
   HEADER – ACTIVO EN CITA DE SERVICIO
   ===================================== */

body.page-cita-servicio .nav-propietarios {
    color: var(--mitsubishi-red) !important;
}

body.page-cita-servicio .nav-cita-servicio {
    color: var(--mitsubishi-red) !important;
}

body.page-cita-servicio
.dropdown-menu
a.dropdown-item[href*="cita-de-servicio"] {
    color: var(--mitsubishi-red) !important;
    font-weight: 700;
    background-color: rgba(230, 0, 18, 0.06);
}

/* =====================================
   HEADER – ACTIVO CITA DE SERVICIO
   ===================================== */

body.page-cita-servicio
.navbar-nav
.nav-item
.nav-link[href="/cita-de-servicio"] {
    color: var(--mitsubishi-red) !important;
}

/* =====================================
   FLOAT MENU – ACTIVO CITA DE SERVICIO
   ===================================== */

body.page-cita-servicio
.float-menu
a[href*="/cita-de-servicio"] {
    background-color: #000 !important;
}

    /* Texto */
    body.page-cita-servicio
    .float-menu
    a[href*="/cita-de-servicio"] span {
        color: #fff !important;
    }

    /* Icono */
    body.page-cita-servicio
    .float-menu
    a[href*="/cita-de-servicio"] i {
        color: #fff !important;
    }

/* =====================================
   MODAL AUTOS NUEVOS (Conoce nuestros Modelos)
   ===================================== */
.autos-nuevos-modal-overlay {
    position: fixed !important;
    top: var(--header-height, 90px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 99999 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.autos-nuevos-modal-overlay--hidden {
    display: none !important;
}
.autos-nuevos-modal {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    background: #fff !important;
    box-shadow: none !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}
.autos-nuevos-modal__close {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
    width: 56px !important;
    height: 56px !important;
    background: #ED0000 !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.5rem !important;
}
.autos-nuevos-modal__close:hover {
    background: #c20000 !important;
}
.autos-nuevos-modal__body {
    padding: 70px 54px 54px !important;
    overflow-y: auto !important;
    flex: 1 !important;
    min-height: 0 !important;
    background: #f6f6f6;
}

/* Tarjetas del modal = mismos estilos que "Conoce nuestra gama" */
.autos-nuevos-modal .autos-nuevos-modal-card {
    background: #fff;
    border: none;
    transition: box-shadow 0.3s ease;
    height: 100%;
}
.autos-nuevos-modal .autos-nuevos-modal-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-img-wrap {
    height: 160px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-img-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-content {
    padding: 0 25px 30px 25px;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-name {
    font-family: 'MMCOFFICE', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #000;
    margin-bottom: 5px;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-price-wrap {
    margin-bottom: 20px;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-price {
    font-family: 'MMCOFFICE', sans-serif;
    color: #000;
    font-weight: 700;
    font-size: 16px;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-price span {
    font-weight: 400;
    font-size: 0.9rem;
    margin-right: 5px;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-year {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-links-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-links-inline a {
    font-family: 'MMCOFFICE', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-links-inline a::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    font-size: 0.7rem;
    color: var(--mitsubishi-red);
    margin-left: 2px;
}
.autos-nuevos-modal .autos-nuevos-modal-card .car-links-inline a:hover {
    color: var(--mitsubishi-red);
}

/* Header es 60px desde 1199px hacia abajo; alinear modal con ese cambio */
@media (max-width: 1199px) {
    .autos-nuevos-modal-overlay {
        top: 60px !important;
    }
}

@media (max-width: 768px) {
    .autos-nuevos-modal__body {
        padding: 60px 1rem 2rem !important;
    }
    .autos-nuevos-modal__close {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.25rem !important;
    }
    /* Botones en dos filas de dos (CONÓCELO/COTÍZALO | ACCESORIOS/PRUEBA DE MANEJO) */
    .autos-nuevos-modal .autos-nuevos-modal-card .car-links-inline {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 12px !important;
    }
    .autos-nuevos-modal .autos-nuevos-modal-card .car-links-inline a {
        display: block !important;
    }
}

/* =====================================
   FULLSCREEN: fix video visibility inside hero-media-wrap
   (video-bg tiene z-index:-1 que queda detrás del fondo negro del fullscreen)
   ===================================== */
.hero-media-wrap:fullscreen .video-bg,
.hero-media-wrap:-webkit-full-screen .video-bg {
    z-index: 1 !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    transform: none !important;
    min-width: unset !important; min-height: unset !important;
    object-fit: cover !important;
}
.hero-media-wrap:fullscreen .home-video_actions,
.hero-media-wrap:-webkit-full-screen .home-video_actions {
    z-index: 999999 !important;
}
.hero-media-wrap:fullscreen .hero-overlay,
.hero-media-wrap:-webkit-full-screen .hero-overlay {
    z-index: 2 !important;
}

/* =====================================
   PÁGINA INICIO (DEFAULT) - Hero y responsive
   ===================================== */
.hero-section--home .hero-media-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero home: video arriba + cuadro negro abajo (mobile) */
@media (max-width: 768px) {
    .hero-section--home {
        flex-direction: column !important;
        align-items: stretch !important;
        height: auto !important;
        min-height: auto !important;
    }
    .hero-section--home .hero-media-wrap {
        position: relative !important;
        flex: 0 0 auto !important;
        height: 32vh !important;
        min-height: 180px !important;
        overflow: hidden !important;
    }
    .hero-section--home .hero-media-wrap .video-bg {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    .hero-section--home .hero-media-wrap .hero-overlay {
        display: none !important;
    }
    .hero-section--home .hero-content {
        position: relative !important;
        background: #000 !important;
        text-align: center !important;
        padding: 24px 20px 28px !important;
        order: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        max-width: 100% !important;
    }
    .hero-section--home .hero-title {
        font-size: 1.75rem !important;
        margin-bottom: 10px !important;
    }
    .hero-section--home .hero-text {
        font-size: 0.95rem !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        max-width: 100% !important;
    }
    .hero-section--home .hero-content .d-flex.mt-4 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .hero-section--home .hero-content .btn-ghost {
        font-size: 12px !important;
        width: 100% !important;
        flex: 1 1 100% !important;
        text-align: center !important;
    }
}

/* Responsive general Inicio */
html {
    overflow-x: hidden !important;
    max-width: 100% !important;
}
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}
.hero-section--home {
    min-height: 50vh !important;
}
.hero-section--home .hero-title {
    font-size: clamp(2rem, 8vw, 84px) !important;
}
.hero-section--home .hero-text {
    font-size: clamp(0.95rem, 2.5vw, 20px) !important;
}
.hero-section--home .hero-content {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
.btn-ghost {
    font-size: 15px !important;
    padding: 10px 20px !important;
}
/* Form-section, agency-info-section y guarantee-section usan el container por defecto en desktop (max-width 1240px) */
.gama-section .container-fluid,
.faq-section .container {
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}
/* Solo en mobile: padding reducido y botón garantía extendido */
@media (max-width: 768px) {
    .form-section .container,
    .agency-info-section .container,
    .guarantee-section .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .guarantee-section .guarantee-btn-wrap .btn-outline-black {
        width: 100%;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }
}
.slider-wrapper {
    overflow-x: hidden !important;
}
.slider-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}
img {
    max-width: 100% !important;
    height: auto !important;
}
