/* Footer Styles - Corregido para background completo y colores en todos los modos */

.footer-main {
    margin-top: auto;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 0.75rem 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);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: calc(100% + 4rem);
    position: relative;
    left: -2rem;
}

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

.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;
}

.footer-logo-link {
    display: block;
    line-height: 0;
    text-decoration: none;
    filter: none !important;
    -webkit-filter: none !important;
}

body .auth-branding-footer-unificado .footer-logo-img,
body .footer-main .footer-logo-img {
    height: 60px !important;
    width: auto !important;
    max-width: 180px !important;
    display: block !important;
    filter: none !important;
    -webkit-filter: none !important;
    box-shadow: none !important;
    outline: 0 !important;
    mix-blend-mode: normal !important;
    opacity: 0.7;
    transition: opacity 0.3s;
}

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

.footer-text-white {
    font-size: calc(12px * var(--font-scale));
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
}

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

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

/* Modo Claro - Texto oscuro sobre fondo claro */
html.theme-light .footer-text-white {
    color: #1e293b;
}

html.theme-light .footer-text-muted {
    color: #475569;
}

html.theme-light .footer-main {
    background: #f8fafc;
    border-top-color: rgba(0, 0, 0, 0.1);
}

/* Modo Sepia - Texto oscuro sobre fondo sepia */
html.theme-sepia .footer-text-white {
    color: #3d2b1f;
}

html.theme-sepia .footer-text-muted {
    color: #5c4a3d;
}

html.theme-sepia .footer-main {
    background: #f5e6d3;
    border-top-color: rgba(61, 43, 31, 0.2);
}

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

html.theme-light .footer-divider-v-inline {
    color: rgba(0, 0, 0, 0.2);
}

html.theme-sepia .footer-divider-v-inline {
    color: rgba(61, 43, 31, 0.3);
}

.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;
    }
}

.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;
}

.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: #fff;
    padding: 0 2rem;
}

.auth-branding-footer-unificado .footer-main {
    flex-direction: column !important;
}

.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: 0.2s;
}

.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: 0 0;
    padding: 1.5rem;
    gap: 0.75rem;
}

.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-unified .footer-branding-group {
    justify-content: center;
}

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

footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
}

html.theme-light footer {
    background: #f8fafc;
    border-top-color: rgba(0, 0, 0, 0.1);
}

html.theme-sepia footer {
    background: #f5e6d3;
    border-top-color: rgba(61, 43, 31, 0.2);
}

.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);
}

@media (max-width: 640px) {
    .footer-main {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem;
    }
    .footer-section {
        justify-content: center !important;
    }
}
