.camera-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .35);
    z-index: 5;
    text-align: center;
}

.camera-loader.show {
    display: flex;
}

.camera-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.camera-loader .spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(255, 255, 255, .35);
    border-top-color: #000;
    border-radius: 50%;
    animation: cameraSpin 1s linear infinite;
}

.camera-loader .label {
    color: #000;
    margin-top: 12px;
    font-size: .95rem;
}

@keyframes cameraSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Esconde el checkbox, pero sigue funcionando */
.custom-checkbox {
    padding-left: 0px !important;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Diseño del checkbox personalizado */
.custom-checkbox .custom-control-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    /* Espacio para el checkbox */
}

/* Cuadro del checkbox */
.custom-checkbox .custom-control-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

/* Agregar checkmark dentro del ::before cuando el checkbox está marcado */
.custom-checkbox input[type="checkbox"]:checked+.custom-control-label::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 19l-5-5 1.4-1.4L9 16.2l9.6-9.6L20 8'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #28a745;
    background-color: #28a745;
}



.modalPhotoTakeFacemask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../img/facemask-vertical.png');
    z-index: 1000;
    pointer-events: none;
}

.modalCroppieFacemask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url('../img/facemask-vertical.png');
    z-index: 1000;
    pointer-events: none;
}


.modal-body .flatpickr-wrapper {
    width: 100%;
}

.modal-body form {
    border: none !important;
}


.embed-responsive-9by16::before {
    padding-top: 177.7778%;
}

.visitor-shell {
    max-width: 920px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}

.visitor-shell--empty {
    max-width: 760px;
    padding-top: 2rem;
}

.visitor-shell__intro {
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid #dbe5ef;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(0, 0, 0, 0.05), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

.visitor-shell__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--visitor-brand-soft, #e6f4f7);
    color: var(--visitor-brand, #0b6b77);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visitor-shell__title {
    margin: 0;
    color: #172033;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.05;
}

.visitor-shell__lead {
    max-width: 40rem;
    margin: 0.85rem 0 0;
    color: #607084;
    font-size: 1rem;
    line-height: 1.65;
}

.visitor-shell__stage {
    position: relative;
}

.visitor-screen {
    max-width: 760px;
    margin: 0 auto;
}

#login:not(.d-none),
#signup:not(.d-none),
#photo:not(.d-none) {
    animation: visitorScreenEnter 0.28s ease;
}

@keyframes visitorScreenEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.visitor-screen__form {
    padding: 1.5rem;
    border: 1px solid #e3ebf2;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.visitor-screen__head {
    margin-bottom: 1.25rem;
    text-align: center;
}

.visitor-screen__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 0.9rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--visitor-brand, #0b6b77) 0%, var(--visitor-brand-dark, #164e63) 100%);
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 16px 28px rgba(11, 107, 119, 0.22);
}

.visitor-screen__eyebrow {
    margin-bottom: 0.35rem;
    color: var(--visitor-brand, #0b6b77);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visitor-screen__title {
    margin: 0;
    color: #172033;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.15;
}

.visitor-screen__description {
    max-width: 38rem;
    margin: 0.6rem 0 0;
    color: #64748b;
    line-height: 1.6;
}

.visitor-form__body {
    padding-top: 1.25rem;
    border-top: 1px solid #edf2f7;
}

.visitor-form__section-title {
    margin: 1.5rem 0 0.9rem;
    padding-top: 1.1rem;
    border-top: 1px solid #edf2f7;
}

.visitor-form__section-title span {
    display: block;
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
}

.visitor-form__section-title small {
    display: block;
    margin-top: 0.2rem;
    color: #7b8795;
    font-size: 0.87rem;
}

.visitor-form__required {
    margin-top: 1.1rem;
    color: #7b8795;
    font-size: 0.88rem;
}

.visitor-form__actions {
    margin-top: 1.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid #edf2f7;
}

.visitor-form__actions--stacked .btn + .btn {
    margin-top: 0.85rem !important;
}

.visitor-form__cluster-title {
    margin: 1.45rem 0 0.8rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.visitor-form__cluster-title span {
    display: block;
    color: #172033;
    font-size: 0.98rem;
    font-weight: 700;
}

.visitor-form__cluster-title small {
    display: block;
    margin-top: 0.2rem;
    color: #7b8795;
    font-size: 0.85rem;
}

.visitor-modal__intro + .visitor-form__cluster-title {
    margin-top: 1rem;
    padding-top: 0;
    border-top: none;
}

/* ==========================================================================
   Fieldset con marco visual
   Usado para agrupar secciones del modal de solicitud (Informacion laboral,
   Salud y emergencia). Legend "flota" sobre el borde superior con icono.
   ========================================================================== */

.visitor-fieldset {
    position: relative;
    margin: 1.5rem 0 1.75rem;
    padding: 1.75rem 1.1rem 0.65rem;
    border: 1px solid #e3e8ef;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.visitor-fieldset:hover {
    border-color: #d3dae4;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.visitor-fieldset + .visitor-fieldset {
    margin-top: 1.35rem;
}

.visitor-fieldset__legend {
    position: absolute;
    top: -22px;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: auto;
    max-width: calc(100% - 2rem);
    margin: 0;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    font-size: inherit;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.visitor-fieldset__legend-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--visitor-brand, #0b6b77) 0%, var(--visitor-brand-dark, #164e63) 100%);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 6px 14px rgba(11, 107, 119, 0.22);
}

.visitor-fieldset__legend-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
}

.visitor-fieldset__legend-title {
    color: #172033;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.visitor-fieldset__legend small {
    display: block;
    margin-top: 0.15rem;
    color: #7b8795;
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
    .visitor-fieldset {
        padding: 1.55rem 0.85rem 0.4rem;
    }

    .visitor-fieldset__legend {
        left: 0.65rem;
        max-width: calc(100% - 1.3rem);
    }

    .visitor-fieldset__legend-title {
        font-size: 0.86rem;
    }

    .visitor-fieldset__legend small {
        font-size: 0.72rem;
    }
}

.visitor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: none !important;
}

.visitor-btn--primary {
    box-shadow: 0 18px 32px rgba(13, 110, 253, 0.18) !important;
}

.visitor-photo-block {
    margin: 0;
    padding: 1.25rem;
    border: 1px solid #dfe8f1;
    border-radius: 22px;
    background: linear-gradient(180deg, #f7fbff 0%, #fefefe 100%);
}

.visitor-photo-block__copy {
    color: #4f5f73;
    line-height: 1.6;
}

.visitor-photo-block__copy small {
    color: #7b8795;
}

.visitor-photo-block__stage {
    padding: 1rem;
    border: 1px dashed #c9d7e4;
    border-radius: 18px;
    background: #ffffff;
}

.visitor-photo-preview__image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid #dce6f0;
    background: #f6f9fc;
}

.visitor-liveness__start {
    min-height: 124px;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
}

.visitor-liveness__start-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.4rem;
}

.visitor-debug-panel {
    font-family: monospace;
    font-size: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 8px;
    max-height: 200px;
    overflow-y: auto;
    color: #333;
}

.visitor-debug-panel__copy {
    font-size: 10px;
}

.visitor-screen__form .form-control,
.visitor-screen__form .custom-select,
.visitor-screen__form select.form-control,
.visitor-screen__form textarea.form-control,
#modalNuevaCita .form-control,
#modalNuevaCita .custom-select,
#modalPerfil .form-control,
#modalPerfil .custom-select,
#modalReprogramar .form-control {
    min-height: 3rem;
    border-color: #d6e0ea;
    border-radius: 14px;
    background: #fcfdff;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.visitor-screen__form textarea.form-control,
#modalNuevaCita textarea.form-control {
    min-height: 110px;
}

.visitor-screen__form .form-control:focus,
.visitor-screen__form .custom-select:focus,
.visitor-screen__form select.form-control:focus,
.visitor-screen__form textarea.form-control:focus,
#modalNuevaCita .form-control:focus,
#modalNuevaCita .custom-select:focus,
#modalPerfil .form-control:focus,
#modalPerfil .custom-select:focus,
#modalReprogramar .form-control:focus {
    border-color: #9cc7d0;
    box-shadow: 0 0 0 4px rgba(11, 107, 119, 0.08);
    background: #fff;
}

.visitor-screen__form label,
#modalNuevaCita label,
#modalPerfil label,
#modalReprogramar label {
    color: #233044;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.visitor-screen__form hr,
.visitor-dashboard hr {
    border-top-color: #eef2f7;
}

.visitor-screen__form .custom-checkbox {
    padding: 0.9rem 1rem !important;
    border: 1px solid #dfe8f1;
    border-radius: 16px;
    background: #f7fbff;
}

.visitor-screen--photo input[readonly],
.visitor-screen--photo .form-control[readonly],
.visitor-screen--photo select[disabled] {
    background: #f4f7fb !important;
    color: #5b6776;
    border-style: dashed;
}

.visitor-dashboard {
    max-width: 980px;
    margin: 0 auto;
}

.visitor-dashboard__header {
    padding: 1rem 1.15rem;
    border: 1px solid #e3ebf2;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(11, 107, 119, 0.09), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.visitor-dashboard__avatar {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.visitor-dashboard__greeting {
    color: #172033;
    font-weight: 700;
}

.visitor-dashboard__company {
    color: #6b7786 !important;
}

.visitor-dashboard__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.visitor-dashboard__toolbar-btn {
    min-height: 2.55rem;
    padding: 0.5rem 0.95rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: none !important;
}

.visitor-dashboard__cta {
    min-height: 3.6rem;
    border-radius: 18px;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(13, 110, 253, 0.18);
}

.visitor-dashboard__tabs {
    gap: 0.45rem;
    border-bottom: none;
}

.visitor-dashboard__tabs .nav-link {
    border: none;
    border-radius: 14px 14px 0 0;
    padding: 0.85rem 1rem;
    color: #667587;
    font-weight: 700;
}

.visitor-dashboard__tabs .nav-link:hover,
.visitor-dashboard__tabs .nav-link:focus {
    background: #f4f8fb;
    color: #193b57;
}

.visitor-dashboard__tabs .nav-link.active,
.visitor-dashboard__tabs .show > .nav-link {
    color: #163a63;
    background: linear-gradient(180deg, #eef7fb 0%, #ffffff 100%);
    box-shadow: inset 0 -3px 0 var(--visitor-brand, #0b6b77);
}

.visitor-dashboard__panel {
    border-color: #e3ebf2 !important;
    border-radius: 0 0 20px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.visitor-dashboard__list {
    min-height: 6rem;
}

.visitor-modal__intro {
    margin-bottom: 1rem;
    padding: 1rem 1.05rem;
    border: 1px solid #e4ebf3;
    border-radius: 16px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.visitor-modal__intro-title {
    color: #172033;
    font-size: 1rem;
    font-weight: 700;
}

.visitor-modal__intro-text {
    margin-top: 0.25rem;
    color: #6b7786;
    font-size: 0.9rem;
    line-height: 1.55;
}

.visitor-modal {
    border: none;
    border-radius: 24px;
    overflow: hidden;
}

#modalNuevaCita .modal-content,
#modalPerfil .modal-content,
#modalReprogramar .modal-content {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
}

#modalNuevaCita .modal-header,
#modalPerfil .modal-header,
#modalReprogramar .modal-header {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

#modalNuevaCita .modal-title,
#modalPerfil .modal-title,
#modalReprogramar .modal-title {
    color: #172033;
    font-weight: 700;
}

#modalNuevaCita .modal-body,
#modalPerfil .modal-body,
#modalReprogramar .modal-body {
    padding: 1.2rem 1.35rem;
}

#modalNuevaCita .modal-footer,
#modalPerfil .modal-footer,
#modalReprogramar .modal-footer {
    padding: 1rem 1.35rem;
    border-top: 1px solid #edf2f7;
    background: #fbfcfe;
}

#modalNuevaCita .modal-footer .btn,
#modalPerfil .modal-footer .btn,
#modalReprogramar .modal-footer .btn {
    min-height: 3rem;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: none !important;
}

.modal-footer-loader {
    color: var(--visitor-brand, #0b6b77);
    font-size: 1.1rem;
}

/* ==========================================================================
   Dashboard appointment cards
   Diseno compartido entre visitor y vehiculos (mismas clases).
   Inspirado en Doctolib / Calendly / Airbnb trips:
   - Date badge estilo hoja de calendario como ancla visual
   - Status pill con indicador de color
   - Hora prominente, meta discreta
   - Footer de acciones separado visualmente
   ========================================================================== */

.appointment-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.appointment-card:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    border-color: #d8dee6;
}

.appointment-card .card-body {
    padding: 0;
}

.appointment-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

/* Date badge estilo hoja de calendario */
.appointment-date-badge {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 0.55rem 0.5rem;
    border-radius: 10px;
    background: #f4f6fa;
    border: 1px solid #e4e8ef;
    line-height: 1;
    text-align: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.appointment-date-badge .day {
    font-size: 1.65rem;
    font-weight: 700;
    color: #1d2935;
    margin-bottom: 3px;
    letter-spacing: -0.02em;
}

.appointment-date-badge .month {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #6c7380;
    text-transform: uppercase;
}

/* Tint del badge segun estado */
.appointment-card.status-pending   .appointment-date-badge { background: #fff7e0; border-color: #f9dd8a; }
.appointment-card.status-pending   .appointment-date-badge .day { color: #7a5500; }
.appointment-card.status-approved  .appointment-date-badge { background: #e6f6ea; border-color: #a8dcb4; }
.appointment-card.status-approved  .appointment-date-badge .day { color: #14552a; }
.appointment-card.status-rejected  .appointment-date-badge { background: #fde8e8; border-color: #f0b4b4; }
.appointment-card.status-rejected  .appointment-date-badge .day { color: #761919; }
.appointment-card.status-cancelled .appointment-date-badge { background: #f1f3f5; border-color: #dde1e6; }
.appointment-card.status-cancelled .appointment-date-badge .day { color: #495057; }
.appointment-card.status-done      .appointment-date-badge { background: #e3f2f5; border-color: #9accd6; }
.appointment-card.status-done      .appointment-date-badge .day { color: #094d60; }

.appointment-content {
    flex: 1 1 auto;
    min-width: 0;
}

.appointment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.appointment-type-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: #eef2f7;
    color: #495a6b;
    border-radius: 5px;
    line-height: 1.2;
}

.appointment-type-chip i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
}

.appointment-plate {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: #1d2935;
    color: #fff;
    border-radius: 5px;
    line-height: 1.2;
}

/* Status pill con dot de color */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1.2;
}

.status-pill::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.status-pill--pending   { background: #fff3d6; color: #7a5500; }
.status-pill--pending::before   { background: #e8a323; }
.status-pill--approved  { background: #dff1e4; color: #14552a; }
.status-pill--approved::before  { background: #2ea04d; }
.status-pill--rejected  { background: #fbe0e0; color: #761919; }
.status-pill--rejected::before  { background: #cf2a2a; }
.status-pill--cancelled { background: #e9ecef; color: #495057; }
.status-pill--cancelled::before { background: #8d9299; }
.status-pill--done      { background: #d9ecf0; color: #094d60; }
.status-pill--done::before      { background: #0c8fae; }

.appointment-time {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1d2935;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.appointment-time i {
    font-size: 0.95rem;
    color: #8d9299;
    align-self: center;
}

.appointment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.95rem;
    font-size: 0.82rem;
    color: #6c7380;
    line-height: 1.4;
}

.appointment-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
}

.appointment-meta-item i {
    color: #aab0b8;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.appointment-meta-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Footer con fondo sutil y divisor */
.appointment-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    flex-wrap: wrap;
    padding: 0.55rem 1rem;
    background: #fafbfc;
    border-top: 1px solid #eef1f5;
}

.appointment-footer .btn {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: none;
}

.appointment-footer .btn i {
    font-size: 0.88rem;
}

/* Empty state */
.dashboard-empty {
    text-align: center;
    color: #6c757d;
    padding: 2.75rem 1rem;
}

.dashboard-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    color: #ced4da;
}

.dashboard-empty .empty-text {
    font-size: 0.92rem;
    line-height: 1.45;
    max-width: 24rem;
    margin: 0 auto;
}

.dashboard-empty--error i { color: #dc3545; }

/* Responsive: mobile */
@media (max-width: 575.98px) {
    .visitor-shell {
        padding: 1rem 0.35rem 1.5rem;
    }

    .visitor-shell__intro,
    .visitor-screen__form {
        padding: 1.15rem;
        border-radius: 20px;
    }

    .visitor-shell__title {
        font-size: 1.55rem;
    }

    .visitor-screen__title {
        font-size: 1.3rem;
    }

    .visitor-photo-block {
        padding: 1rem;
        border-radius: 18px;
    }

    .visitor-liveness__start {
        min-height: 104px;
    }

    .visitor-dashboard__header {
        padding: 0.95rem;
    }

    .visitor-dashboard__toolbar {
        justify-content: flex-start;
        margin-top: 0.75rem;
    }

    .visitor-dashboard__toolbar-btn {
        flex: 1 1 100%;
        margin-right: 0 !important;
    }

    .visitor-dashboard__tabs .nav-link {
        padding: 0.75rem 0.85rem;
    }

    #modalNuevaCita .modal-body,
    #modalPerfil .modal-body,
    #modalReprogramar .modal-body,
    #modalNuevaCita .modal-header,
    #modalPerfil .modal-header,
    #modalReprogramar .modal-header,
    #modalNuevaCita .modal-footer,
    #modalPerfil .modal-footer,
    #modalReprogramar .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .appointment-top {
        gap: 0.8rem;
        padding: 0.85rem 1rem;
    }

    .appointment-date-badge {
        min-width: 54px;
        padding: 0.45rem 0.4rem;
    }

    .appointment-date-badge .day {
        font-size: 1.4rem;
    }

    .appointment-date-badge .month {
        font-size: 0.62rem;
    }

    .appointment-time {
        font-size: 1.05rem;
    }

    .appointment-footer {
        padding: 0.55rem 0.75rem;
    }

    .appointment-footer .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
