/* --- OTP placa (home Tailwind + catálogo Bootstrap) --- */
.b2b-plate-otp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.b2b-plate-cell {
    box-sizing: border-box;
    width: 2.5rem;
    height: 3rem;
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #23324b;
    font-family: inherit;
    padding: 0;
    line-height: 3rem;
}

.b2b-plate-cell::placeholder {
    color: #9ca3af;
    font-weight: 600;
    opacity: 1;
}

.b2b-plate-cell:focus {
    outline: none;
    border-color: #23324b;
    box-shadow: 0 0 0 3px rgba(35, 50, 75, 0.12);
}

.b2b-plate-dash {
    font-weight: 700;
    font-size: 1.25rem;
    color: #23324b;
    padding: 0 4px;
    user-select: none;
}

.b2b-plate-otp--header .b2b-plate-cell {
    width: 2rem;
    height: 2.5rem;
    font-size: 1rem;
    line-height: 2.5rem;
}

/* --- Ficha vehículo encontrado (modal) --- */
.b2b-plate-result {
    margin: 0;
    padding: 0;
}

.b2b-plate-result__list {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fafafa;
}

.b2b-plate-result__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.b2b-plate-result__row:last-child {
    border-bottom: none;
}

.b2b-plate-result__label {
    flex: 0 0 auto;
    min-width: 6.5rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #314158;
}

.b2b-plate-result__label::after {
    content: ':';
}

.b2b-plate-result__value {
    flex: 1 1 12rem;
    margin: 0;
    font-size: 0.9rem;
    color: #526071;
    word-break: break-word;
}

.b2b-plate-result__value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8rem;
}

.b2b-plate-result__actions {
    text-align: center;
    padding-top: 0.25rem;
}

.b2b-plate-cta {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.35;
    text-align: center;
    color: #ffffff !important;
    background-color: #eb0a28;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    -webkit-appearance: none;
    appearance: none;
}

.b2b-plate-cta:hover,
.b2b-plate-cta:focus {
    background-color: #c80922;
    color: #ffffff !important;
    outline: none;
}

.b2b-plate-cta:disabled {
    background-color: #d1d5db;
    color: #6b7280 !important;
    cursor: not-allowed;
}

/* --- Formulario completar datos --- */
.b2b-plate-complete-form {
    text-align: left;
}

.b2b-plate-complete-form__intro {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: #526071;
    line-height: 1.45;
}

.b2b-plate-complete-form__field {
    margin-bottom: 1rem;
}

.b2b-plate-complete-form__field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #314158;
}

.b2b-plate-complete-form__field select,
.b2b-plate-complete-form__field .form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #23324b;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    appearance: auto;
    -webkit-appearance: menulist;
}

.b2b-plate-complete-form__field select:disabled {
    color: #6b7280;
    background-color: #f9fafb;
    cursor: not-allowed;
}

.b2b-plate-complete-form__actions {
    margin-top: 1.25rem;
    text-align: center;
}

/* --- SweetAlert2 --- */
.b2b-plate-swal {
    z-index: 10050 !important;
    border-radius: 16px !important;
    padding: 1.25rem 1.5rem 1.5rem !important;
}

.b2b-plate-swal .swal2-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #23324b !important;
    padding: 0 0 0.75rem !important;
    text-align: left !important;
}

.b2b-plate-swal__body {
    text-align: left;
    color: #333;
    font-size: 0.95rem;
    padding: 0 !important;
    margin: 0 !important;
}

.b2b-plate-swal .swal2-close {
    color: #9ca3af;
}

/* Sidebar listado: vehículo de la cookie busqueda */
.b2b-sidebar-vehicle {
    margin-bottom: 1.25rem;
}

.b2b-sidebar-vehicle .modtitle {
    font-size: 1.05rem;
    line-height: 1.3;
    padding: 0.65rem 0.75rem;
}

.b2b-sidebar-vehicle__body {
    text-align: center;
    padding: 0.75rem 0.85rem 1rem;
}

.b2b-sidebar-vehicle__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 110px;
    margin: 0 auto 0.85rem;
    object-fit: contain;
}

.b2b-sidebar-vehicle__title {
    margin: 0 0 0.4rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
}

.b2b-sidebar-vehicle__meta {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    color: #444;
    line-height: 1.4;
}

@media (max-width: 767px) {
    .b2b-sidebar-vehicle {
        max-width: 100%;
        overflow: hidden;
    }

    .b2b-sidebar-vehicle .modtitle {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
    }

    .b2b-sidebar-vehicle__body {
        padding: 1rem 1rem 1.1rem;
    }

    .b2b-sidebar-vehicle__logo {
        max-height: 96px;
        height: auto;
        margin-bottom: 1rem;
    }

    .b2b-sidebar-vehicle__title {
        font-size: 1.2rem;
        word-break: break-word;
    }

    .b2b-sidebar-vehicle__meta {
        font-size: 1.05rem;
    }

    .b2b-sidebar-vehicle__clear {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .b2b-sidebar-vehicle .modtitle {
        font-size: 1.08rem;
    }

    .b2b-sidebar-vehicle__title {
        font-size: 1.15rem;
    }

    .b2b-sidebar-vehicle__meta {
        font-size: 0.98rem;
    }
}

.b2b-sidebar-vehicle__meta span + span::before {
    content: ' · ';
}

.b2b-sidebar-vehicle__clear {
    font-size: 0.95rem;
    color: #eb0a28;
    text-decoration: none;
}

.b2b-sidebar-vehicle__clear:hover {
    color: #c00820;
    text-decoration: underline;
}

/* --- Botón flotante WhatsApp (global) --- */
.b2b-wa-fab {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 52px;
    height: 52px;
    padding: 7px;
    border-radius: 50%;
    background-color: #00c052;
    box-shadow: 0 2px 8px rgba(29, 41, 61, 0.2);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.b2b-wa-fab:hover,
.b2b-wa-fab:focus {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(29, 41, 61, 0.28);
    text-decoration: none;
}

.b2b-wa-fab:focus {
    outline: 2px solid #00c052;
    outline-offset: 3px;
}

.b2b-wa-fab__icon {
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .b2b-wa-fab {
        right: 20px;
        bottom: 20px;
        width: 60px;
        height: 60px;
        padding: 8px;
    }
}

/* Evitar solaparse con "volver arriba" (abajo izquierda) en páginas con footer brands */
@media (max-width: 767px) {
    .b2b-wa-fab {
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        right: max(12px, env(safe-area-inset-right, 0px));
    }
}
