==================================================
ARCHIVO 3/3: /www/wwwroot/checkin.takinoko/portal_components.css
ESTADO: Entrega Completa (Bloque Único)
==================================================
/* ==========================================================================
   portal_components.css - Componentes Modales y Visor de Recuperación Facial
   ========================================================================== */

/* Ventana Modal Reutilizable y Fondo Overlay */
/* Ventana Modal Reutilizable y Fondo Overlay (iOS Fix) */
.modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); /* Crucial para efecto cristal en iPhone */
    z-index: 99999 !important;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 0 !important;
    box-sizing: border-box;
}
.modal-card {
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.15s;
}

.modal-close:hover {
    color: #0f172a;
}

/* Selector Dinámico de Idiomas (Grid Interno) */
.lang-grid-modal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

.lang-option {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    text-align: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.lang-option:active {
    transform: scale(0.96);
}

.lang-option.active {
    color: #ffffff;
    background: #0284c7;
    border-color: #0284c7;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

/* Visor para Recuperación Biométrica Facial */
.face-recovery-viewport {
    position: relative;
    width: 100%;
    height: 280px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.face-recovery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.face-recovery-guide-oval {
    position: absolute;
    width: 180px;
    height: 230px;
    border: 3px solid #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.65);
    pointer-events: none;
}