/* =========================
   BASE GLOBAL
========================= */

html {
    position: relative;
    min-height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* =========================
   LOADING OVERLAY GLOBAL
========================= */

.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.loading-spinner {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

.loading-text {
    margin-top: 1rem;
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* =========================
   NAVBAR VELIOS (PRO)
========================= */

.velios-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    padding: 0.75rem 0;
}

.velios-navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.velios-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.velios-logo {
    height: 32px;
    width: auto;
}

.velios-navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

/* =========================
   SELECTOR DE IDIOMA
========================= */

.velios-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 4px 8px;
}

.velios-lang-globe {
    font-size: 14px;
}

.velios-lang-option {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .velios-lang-option:hover {
        background: #eef2f7;
        color: #0f172a;
    }

    .velios-lang-option.active {
        background: #fff1eb;
        color: #f05a28;
    }

.velios-lang-sep {
    color: #94a3b8;
}

/* =========================
   BOTÓN LOGIN
========================= */

.velios-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.5rem 1.2rem;
    border-radius: 10px;
    border: 1px solid #0f172a;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .velios-login-btn:hover {
        background: #0f172a;
        color: #ffffff;
    }

/* =========================
   ESTADO PROCESANDO
========================= */

.btn-processing {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    position: relative;
}

button.btn-processing,
input.btn-processing,
a.btn-processing {
    pointer-events: none !important;
}

    button.btn-processing::after,
    a.btn-processing::after {
        content: "";
        width: 14px;
        height: 14px;
        margin-left: 8px;
        display: inline-block;
        border: 2px solid currentColor;
        border-top-color: transparent;
        border-radius: 50%;
        vertical-align: middle;
        animation: velios-spin 0.7s linear infinite;
    }

@keyframes velios-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 575.98px) {

    .velios-navbar-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
        margin-top: 10px;
    }

    .velios-lang-switch {
        justify-content: center;
    }

    .velios-login-btn {
        width: 100%;
    }
}
