/* ==========================================================================
   COMPONENTE: PIE DE PÁGINA (FOOTER) INSTITUCIONAL
   ========================================================================== */

.pie-pagina {
    background: var(--footer-bg, linear-gradient(180deg, #052f91 0%, #020617 100%));
    color: var(--footer-text, #f8fafc);
    margin-top: 100px;
    border-top: 4px solid var(--accent-color, #059669);
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 50px;
    padding: 60px 0 40px 0;
}

.brand-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-footer-escudo {
    height: 90px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.brand-column h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background-color: var(--accent-color, #059669);
    border-radius: 2px;
}

.footer-text-item {
    font-size: 0.9rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    color: #cbd5e1;
}

.footer-text-item i {
    margin-top: 4px;
}

.text-accent {
    color: var(--accent-color, #059669);
}

.text-light-muted {
    color: var(--light-muted-text, #94a3b8);
    line-height: 1.4;
}

.redes-container {
    display: flex;
    gap: 12px;
}

.redes-container a {
    color: var(--footer-text, #f8fafc);
    background-color: rgba(255,255,255,0.06);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.redes-container a:hover {
    background-color: var(--primary-blue, #0e39b1);
    transform: translateY(-3px);
    color: white;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--light-muted-text, #94a3b8);
}

/* --- INTERRUPTOR DE TEMA FLOTANTE --- */
.theme-switch {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    cursor: pointer;
    background-color: var(--primary-blue, #0e39b1);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, background-color 0.2s;
}

.theme-switch:hover {
    transform: scale(1.08);
}

/* --- ADAPTABILIDAD (RESPONSIVE) --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-text-item {
        justify-content: center;
    }
    .redes-container {
        justify-content: center;
    }
}