/* --- Fonts --- */
@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    /*src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2) format('woff2');*/
    /*src: url("/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2");*/
    /*unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;*/
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    /*src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2) format('woff2');*/
    /*src: url("/fonts/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2");*/
    /*unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;*/
}

@font-face {
    font-family: 'Source Sans Pro';
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    /*src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2) format('woff2');*/
    /*src: url("/fonts/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2");*/
    /*unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;*/
}

/* --- Loading General --- */
.loadable {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
    z-index: 9999;
}

.loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

.logo-wrapper {
    position: relative;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 107, 0.25), transparent 70%);
    z-index: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    z-index: 2;
    animation: logoPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top: 2px solid #0ea56b;
    border-right: 2px solid #e5e7eb;
    animation: spin 1.2s linear infinite;
}

.ring::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border-top: 2px solid #0ea56b;
    filter: blur(6px);
    opacity: 0.6;
}

/* --- Barra de carga --- */
.line-loader {
    position: relative;
    width: 180px;
    height: 6px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.line-loader::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            #0ea56b,
            #e5e7eb,
            #d43c3c,
            #0ea56b);
    background-size: 200% 100%;
    animation: flow 1.8s linear infinite;
}

/* --- Texto --- */
.loading-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.4px;
    text-align: center;
}

.loading-text span {
    display: block;
    font-size: 0.75rem;
    color: #fbfbfb;
    margin-top: 4px;
}

/* --- Animaciones --- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes flow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
/* --- Fin Loading General --- */

/* FONDO */
body {
    background-color: #f6f8fb;
    display: flex;
    flex-direction: column;
}

html,
body {
    height: 100%;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
}

/* ----- Navbar ----- */
/* LOGO */
.logo-navbar {
    height: 50px;
    width: 150px;
    /*object-fit: contain;*/
}

/* TEXTO EMPRESA */
.empresa-text {
    font-size: 1.2rem;
    line-height: 1.2;
    white-space: normal;
    max-width: 450px;
}

/* USUARIO */
.user-text {
    font-size: 1.1rem;
}

/* TABLETS */
@media (max-width: 992px) {
    .empresa-text {
        font-size: 1rem;
        max-width: 300px;
    }
}

/* CELULARES */
@media (max-width: 576px) {
    .empresa-text {
        font-size: 0.85rem;
        max-width: 150px;
    }

    .logo-navbar {
        width: 120px;
        height: 45px;
    }

    .user-text {
        font-size: 1rem;
    }
}

.nav-link i {
    transition: transform 0.2s ease;
}

.nav-link:hover i {
    transform: rotate(15deg);
}

.dropdown-menu {
    position: absolute !important;
}

/* BANDERA */
.flag-icon {
    width: 26px;
    height: 26px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
}

/* BOTÓN IDIOMA AJUSTE */
.btn-lang {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* HOVER */
.btn-lang:hover {
    background: #f33e3e;
    color: #fff;
    border-color: #f33e3e;
    transform: translateY(-1px);
}

/* OPCIONAL: efecto a la bandera */
.btn-lang:hover .flag-icon {
    transform: scale(1.1);
}

/* -------- FIN NAVBAR -------- */

/* -------- Footer --------*/
.footer-capim {
    width: 100%;
    background: #ffffff;
}

/* CONTENEDOR */
.footer-container {
    width: 100%;
    overflow: hidden;
}

/* IMAGEN RESPONSIVE */
.footer-img {
    width: 100%;
    height: auto;
}

/* TABLET */
@media (max-width: 992px) {
    .footer-img {
        height: 80px;
        object-fit: cover;
    }
}

/* MOBILE */
@media (max-width: 576px) {
    .footer-img {
        height: 50px;
    }
}

/* -------- Fin Footer --------*/