/* ====================================================== */
/* 💾 FOOTER.CSS (VERSIÓN FINAL COMPLETA Y CORREGIDA) */
/* ====================================================== */

/* 1. ESTILOS PRINCIPALES DEL FOOTER (ESCRITORIO) */
.footer-patrimonial {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background-color: #004080;
    /* Azul institucional */
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

/* 2. ESTILO DEL TÍTULO */
.footer-patrimonial .footer-title {
    font-size: 2em;
    font-weight: 500;
    margin: 0;
    text-align: left;
    /* 🟢 WEB OEBA: Blanco Puro */
    color: #ffffff;
}

/* 3. BLOQUE IZQUIERDO (Información/Título) */
.footer-left {
    padding-left: 2cm;
    text-align: left;
    flex-grow: 1;
    /* 🟢 Aplicamos Blanco Puro a todo el contenedor izquierdo */
    color: #ffffff;
}

/* 4. BLOQUE DERECHO (Enlaces) */
.footer-right {
    padding-right: 2cm;
    text-align: right;
    flex-grow: 0.5;
    /* 💥 CONTENEDOR DERECHO: Blanco Brillante */
    color: #f8f8ff;
}

/* 5. ESTILOS DE PÁRRAFOS Y LISTAS */
.footer-left p {
    margin: 0 0 8px 0;
    line-height: 1.5;
    /* Aseguramos blanco puro para los párrafos de la izquierda */
    color: #ffffff;
}

.footer-patrimonial .footer-right ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-patrimonial .footer-right ul li {
    margin-bottom: 8px;
}

.footer-patrimonial .footer-right ul li a {
    text-decoration: none;
    /* 💥 CORRECCIÓN FINAL: Forzamos el Blanco Brillante directamente en el enlace (a) */
    color: #f8f8ff;
}

.footer-patrimonial .footer-right ul li a:hover {
    text-decoration: underline;
    color: #ffd700;
}

/* 6. BLOQUE INFERIOR (Derechos de Autor) */
.footer-patrimonial .footer-bottom {
    flex-basis: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #e0e0e0;
    /* Blanco suave para los derechos de autor */
}

/* ****************************************************** */
/* --- RESPONSIVE (Móviles) --- */
/* ****************************************************** */
@media (max-width: 768px) {

    /* 1. Contenedor principal: Pasa a bloque */
    .footer-patrimonial {
        display: block;
        padding-left: 0;
        padding-right: 0;
    }

    /* 2. Bloques Izquierdo y Derecho: Ocupan todo el ancho y FUERZAN EL CENTRADO */
    .footer-left,
    .footer-right {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 15px;
        flex-basis: 100%;
        text-align: center;
    }

    /* 3. Centrado de Títulos y Párrafos */
    .footer-patrimonial .footer-title {
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-left p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* 4. Centrado de la Lista de Enlaces (UL) */
    .footer-right ul {
        display: inline-block;
        padding: 0;
        margin: 0;
    }

    .footer-right li {
        text-align: center;
        margin: 8px 0;
    }

    .footer-right a {
        display: block;
        text-align: center;
    }
}