/* ============================================================
   MODAL DE IDENTIFICACIÓN
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(6px);
}

.modal-overlay.hidden {
    display: none !important;
}

.modal-card {
    width: 100%;
    max-width: 380px;
    background: #121820;
    border: 1px solid #1e2833;
    border-radius: 20px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.modal-card h2 {
    font-size: 1.3rem;
    color: #4da3ff;
    margin-bottom: 4px;
}

.modal-sub {
    font-size: 0.85rem;
    color: #7f8c9b;
    margin-bottom: 12px;
}

.modal-card label {
    font-size: 0.8rem;
    color: #7f8c9b;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-card input {
    background: #0b0f14;
    border: 1px solid #1e2833;
    border-radius: 10px;
    padding: 14px 14px;
    color: #e8eef5;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.modal-card input:focus {
    border-color: #4da3ff;
}

.btn-primary {
    margin-top: 18px;
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:active {
    transform: scale(0.97);
    background: #0b5ed7;
}

.btn-primary:disabled {
    background: #44505c;
    cursor: not-allowed;
}

/* ============================================================
   BARRA DE INFO DE USUARIO Y GPS
   ============================================================ */
.header-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gps-status {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #1e2833;
    color: #7f8c9b;
    transition: all 0.3s;
}

.gps-status.ok {
    background: #163a2a;
    color: #4ade80;
}

.gps-status.error {
    background: #3a1616;
    color: #ff8080;
}

.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #0e141b;
    border-bottom: 1px solid #1e2833;
    font-size: 0.78rem;
    color: #7f8c9b;
}

.user-bar span:first-child {
    color: #e8eef5;
    font-weight: 500;
}

.user-bar span:last-child {
    background: #1e2833;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    color: #4da3ff;
}