/* =========================================================
   VEHÍCULO - HEADER
========================================================= */

.vehicle-header {
    /*position: relative;
	translate: 80px 15px;*/
    display: flex;
    align-items: center;
    border-radius: 5px;
    border: 1px solid #4082E9;
    padding: 5px 0px;
    margin: 35px 5px 0px 40px;
    background-color: transparent;
}

.vehicle-header :is(.btn, .button, button, [type=submit], [type=button]) {
    background-color: transparent;
}


/* =========================================================
   BOTÓN PRINCIPAL
========================================================= */

.vehicle-trigger {


    padding: 0px 8px !important;

    border: 0 !important;

    background: transparent !important;

    cursor: pointer !important;

    transition:
        background-color .2s ease,
        box-shadow .2s ease;

}


/* Hover */

.vehicle-header:hover {

    background-color: #104baa !important;
}

.vehicle-trigger:hover {
    background-color: transparent !important;
}


/* =========================================================
   ICONO
========================================================= */

.vehicle-icon {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    font-size: 18px;

    color: white;

}


/* =========================================================
   INFORMACIÓN DEL VEHÍCULO
========================================================= */

.vehicle-info {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    min-width: 0;

    padding-right: 18px;

}


/* Vehículo */

.vehicle-current {

    display: block;

    color: white;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;
}


/* Texto secundario cuando no hay vehículo */

.vehicle-current-detail {

    display: block;

    margin-top: 2px;

    color: #64748B;

    font-size: 11px;

    line-height: 1.3;

    white-space: nowrap;
}


/* =========================================================
   CAMBIAR VEHÍCULO
========================================================= */

.vehicle-change {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-left: 2px;

    padding-left: 2px;

    color: white;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    white-space: nowrap;
}


.vehicle-change i {

    font-size: 11px;

}


/* =========================================================
   ESTADO: VEHÍCULO SELECCIONADO
========================================================= */

.vehicle-header.has-vehicle .vehicle-current-detail {

    display: none;

}


.vehicle-header.has-vehicle .vehicle-current {

    font-size: 14px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .vehicle-trigger {

        min-height: 48px;

        padding: 5px 10px;

        gap: 6px;

    }


    .vehicle-icon {

        width: 28px;
        height: 28px;

        font-size: 16px;

    }


    .vehicle-current {

        font-size: 12px;

    }


    .vehicle-current-detail {

        display: none;

    }


    .vehicle-change {

        font-size: 0;

    }


    .vehicle-change i {

        font-size: 13px;

    }

}


/* =========================================================
   VEHICLE MODAL
========================================================= */

.vehicle-modal {

    position: fixed;

    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

}


/* MODAL ABIERTO */

.vehicle-modal.is-open {

    display: flex;

}


/* =========================================================
   BACKDROP NEGRO
========================================================= */

.vehicle-modal__backdrop {

    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .72);

    backdrop-filter: blur(2px);

}


/* =========================================================
   VENTANA
========================================================= */

.vehicle-modal__dialog {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 850px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    padding: 32px;

    background: #ffffff;

    border-radius: 10px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .35);

    animation:
        vehicleModalIn .22s ease-out;

}


/* =========================================================
   ANIMACIÓN
========================================================= */

@keyframes vehicleModalIn {

    from {

        opacity: 0;

        transform:
            translateY(15px) scale(.98);

    }

    to {

        opacity: 1;

        transform:
            translateY(0) scale(1);

    }

}


/* =========================================================
   BOTÓN CERRAR
========================================================= */

.vehicle-modal__close {

    position: absolute !important;

    top: 15px !important;

    right: 15px !important;

    width: 34px;

    height: 34px;

    display: flex !important;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #f1f2f5;

    color: #475569;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease;

}



.vehicle-modal__close:hover {

    background: #0E0A42;

    color: #ffffff;

}


/* =========================================================
   HEADER
========================================================= */

.vehicle-modal__header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 28px;

    padding-right: 35px;

}


.vehicle-modal__icon {

    width: 48px;

    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: #0E0A42;

    color: #ffffff;

    font-size: 20px;

}


.vehicle-modal__header h3 {

    margin: 0 0 4px;

    color: #0E0A42;

    font-size: 22px;

    font-weight: 700;

    line-height: 1.3;

}


.vehicle-modal__header p {

    margin: 0;

    color: #64748B;

    font-size: 14px;

    line-height: 1.5;

}


/* =========================================================
   CAMPOS
========================================================= */

.vehicle-fields {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

}


.vehicle-field label {

    display: block;

    margin-bottom: 7px;

    color: #0E0A42;

    font-size: 13px;

    font-weight: 600;

}


.vehicle-field select,
.vehicle-field input {

    width: 100%;

    height: 44px;

    padding: 0 12px;

    box-sizing: border-box;

    border: 1px solid #d9dce3;

    border-radius: 5px;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;

}


.vehicle-field select:focus,
.vehicle-field input:focus {

    outline: none;

    border-color: #0055B8;

    box-shadow:
        0 0 0 2px rgba(0, 85, 184, .08);

}


/* =========================================================
   VIN
========================================================= */

.vehicle-vin {

    margin-top: 20px;

}


.vehicle-vin label span {

    color: #94A3B8;

    font-weight: 400;

}


/* =========================================================
   ACCIONES
========================================================= */

.vehicle-actions {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;

}


.vehicle-cancel,
.vehicle-submit {

    height: 44px;

    padding: 0 24px;

    border-radius: 5px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

}


/* CANCELAR */

.vehicle-cancel {

    border: 1px solid #e2e4e8;

    background: #f5f6f8;

    color: #475569;

}


.vehicle-cancel:hover {

    background: #e9ebef;

}


/* CONTINUAR */

.vehicle-submit {

    border: 0 !important;

    background: #0055B8 !important;

    color: #ffffff !important;

}


.vehicle-submit:hover:not(:disabled) {

    background: #00489c;

}


/* DESHABILITADO */

.vehicle-submit:disabled {

    background: #c8cad1;

    color: #ffffff;

    cursor: not-allowed;

}


/* =========================================================
   BLOQUEAR SCROLL DEL SITIO
========================================================= */

body.vehicle-modal-open {

    overflow: hidden;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .vehicle-modal {

        padding: 15px;

    }


    .vehicle-modal__dialog {

        padding: 25px 20px;

        max-height:
            calc(100vh - 30px);

    }


    .vehicle-fields {

        grid-template-columns:
            1fr 1fr;

    }

}


@media (max-width: 550px) {

    .vehicle-modal__header {

        align-items: flex-start;

    }


    .vehicle-modal__icon {

        width: 40px;

        height: 40px;

        font-size: 17px;

    }


    .vehicle-modal__header h3 {

        font-size: 19px;

    }


    .vehicle-modal__header p {

        font-size: 13px;

    }


    .vehicle-fields {

        grid-template-columns:
            1fr;

    }


    .vehicle-actions {

        flex-direction:
            column-reverse;

        align-items: stretch;

    }


    .vehicle-cancel,
    .vehicle-submit {

        width: 100%;

    }

}




/* VEHICLE HOMA BENNER */

.vehicle-home-banner {
    width: 100%;
    padding: 28px 0;
}

.vehicle-home-banner__inner {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        auto minmax(220px, 1fr) minmax(300px, 1.5fr) auto;

    align-items: center;

    gap: 30px;

    padding: 24px 30px;

    border-radius: 12px;

    background: #EFF4F9;
}

.vehicle-home-banner__icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #0E0A42;
    color: #fff;

    font-size: 24px;
}

.vehicle-home-banner__vehicle {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vehicle-home-banner__vehicle-current {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #1c1c1c;
}

.vehicle-home-banner__label {
    display: block;
    margin-bottom: 4px;

    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;

    color: #777;
}

.vehicle-home-banner__change {
    display: inline-block;
    width: fit-content;

    margin-top: 4px;

    font-size: 14px;
    font-weight: 500;

    text-decoration: underline;

    cursor: pointer;
}

.vehicle-home-banner__message {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.vehicle-home-banner__message strong {
    font-size: 16px;
}

.vehicle-home-banner__message span {
    font-size: 14px;
    color: #666;
}

.vehicle-home-banner__button {
    border: 0 !important;
    border-radius: 6px !important;

    padding: 13px 22px !important;

    background: #0E0A42 !important;
    color: #fff !important;

    font-weight: 600 !important;

    cursor: pointer !important;
}

@media (max-width: 768px) {

    .vehicle-home-banner__inner {
        grid-template-columns: auto 1fr;
        gap: 18px;
    }

    .vehicle-home-banner__message {
        grid-column: 1 / -1;
    }

    .vehicle-home-banner__action {
        grid-column: 1 / -1;
    }

    .vehicle-home-banner__button {
        width: 100%;
    }

}