/* =============================================================================
   GESINEX FOOTER STYLES — Estándar de Centralización
   ============================================================================= */

/* 1. Reset y Contenedor Principal */
.footer-main {
    margin-top: auto;
    padding: 0.5rem 2rem;
    border-top: 1px solid rgba(224, 199, 7, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background:var(--bg-dark);
    /* Fondo oscuro por defecto */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Forzar fondo oscuro incluso en tema claro si se desea consistencia */
/* Nota: Estilos de footer para light mode movidos a light-mode.css */

@media (min-width: 768px) {
    .footer-main {
        flex-direction: row;
    }
}

/* 2. Secciones del Footer */
.footer-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section-right {
    justify-content: flex-end;
}

.footer-status-group {
    text-align: right;
}

.footer-status-label {
    margin: 0;
}

/* 3. Logos y Branding */
.footer-logo-link {
    display: block;
    line-height: 0;
    text-decoration: none;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Selector ultra-específico para forzar la limpieza del brillo */
body .footer-main .footer-logo-img,
body .auth-branding-footer-unificado .footer-logo-img {
    height: 2.5rem !important;
    width: auto !important;
    max-width: 150px !important;
    display: block !important;
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
    outline: none !important;
    mix-blend-mode: normal !important;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

footer.footer-main .footer-logo-img:hover,
.auth-branding-footer-unificado .footer-logo-img:hover {
    opacity: 1;
}

/* 4. Textos y Divisores */
.footer-text-white {
    font-size: calc(12px * var(--font-scale));
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ffffff;
}

.footer-text-muted {
    font-size: calc(10px * var(--font-scale));
    font-weight: 600;
    letter-spacing: 0.05em;
    color: rgb(255, 255, 255);
    white-space: pre-line;
}

.footer-lema {
    white-space: pre-line;
}

/* Asegurar visibilidad en tema claro */
html.theme-light .footer-text-white {
    color: #ffffff;
}

html.theme-light .footer-text-muted {
    color: rgba(255, 255, 255, 0.4);
}

.footer-divider-v-inline {
    opacity: 0.3;
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-branding-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-branding-group {
        justify-content: flex-start;
    }
}

/* 5. Status y Localización */
.footer-status-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.footer-status-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.footer-country-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-emoji {
    font-size: 0.75rem;
}

/* 6. Layout de Listas */
.list-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgb(255, 255, 255);
    padding: 0 2rem;
}


/* 8. Overrides para el Footer en Login/Auth */
.auth-branding-footer-unificado .footer-main {
    flex-direction: column !important;
    /* Forzar columna en login */
}

/* 9. Help Links en Footer */
.footer-help-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(224, 199, 7, 0.8);
    text-decoration: none;
    background: rgba(224, 199, 7, 0.08);
    border: 1px solid rgba(224, 199, 7, 0.2);
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-help-link:hover {
    background: rgba(224, 199, 7, 0.15);
    border-color: rgba(224, 199, 7, 0.5);
    color: var(--limonit-yellow);
}

.footer-help-text {
    display: none;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .footer-help-text {
        display: inline;
    }
}

.auth-branding-footer-unificado {
    justify-content: center;
    border-top: none;
    background: transparent;
    padding: 1.5rem;
    gap: 0.75rem;
}

/* En el login no mostramos el estado de conexión ni país */
.auth-branding-footer-unificado .footer-section-right {
    display: none;
}

.auth-branding-footer-unificado .footer-section {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.auth-branding-footer-unificado .footer-branding-group {
    justify-content: center;
}

.auth-branding-footer-unificado .footer-lema {
    font-size: 8.5px;
    margin-top: 0.25rem;
}


/* 10. Footer Landing (selector de elemento, usado en landing.css) */
footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-provider-text {
    margin-top: 0.25rem;
}

.footer-provider-text strong {
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}


/* =============================================================================
   FOOTER — RESPONSIVE (migrado desde responsive.css)
   ============================================================================= */
@media (max-width: 640px) {
    .footer-main {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem;
    }
    .footer-section {
        justify-content: center !important;
    }
}
