.footer-patrimonial {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background-color: #004080;
    /* azul institucional */
    color: #ffffff;
    width: 100%;
    /* ocupa todo el ancho disponible */
}

.footer-patrimonial .footer-left {
    text-align: left;
}

.footer-patrimonial .footer-right {
    text-align: right;
}

.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;
    color: #ffffff;
}

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

.footer-patrimonial .footer-bottom {
    flex-basis: 100%;
    text-align: center;
    margin-top: 20px;
    font-size: 0.9em;
    color: #e0e0e0;
}



.footer-left p {
    margin: 0 0 8px 0;
    /* mismo espacio que los <li> de la derecha */
    line-height: 1.5;
    /* interlineado consistente */
}

.footer-left {
    padding-left: 2cm;
    /* separación desde el borde izquierdo */
    text-align: left;
}

.footer-right {
    padding-right: 2cm;
    /* separación desde el borde derecho */
    text-align: right;
}

/* ================================================= */
/* REGLAS CORREGIDAS DEL FOOTER (Movidas del <style>) */
/* ================================================= */

/* REEMPLAZAR EL BLOQUE DE .footer-patrimonial EN footer.css */
.footer-patrimonial {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background-color: #004080;
    /* azul institucional */
    color: #ffffff;
    width: 100%;
    /* ocupa todo el ancho disponible */
    /*font-family: Tahoma, sans-serif !important;*/
    /* ⬅️ FUERZA LA TIPOGRAFÍA CORRECTA */
    box-sizing: border-box;
    /* Asegura que el padding no cause desbordamiento */
}

/* 2. ESTILO DE LA FUENTE */
.footer-patrimonial .footer-title {
    /* Usamos la variable de fuente de base.css para consistencia */
    font-family: var(--font-family);
    font-size: 2em;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {

    .footer-patrimonial .footer-left,
    .footer-patrimonial .footer-right {
        flex-basis: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer a {
        margin: 5px 0;
    }
}

@media (max-width: 768px) {
    .footer-patrimonial {
        display: block;
        text-align: center;
    }

    .footer-left,
    .footer-right,
    .footer-bottom {
        width: 100%;
        margin-bottom: 15px;
    }

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

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

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

.footer-patrimonial .footer-title {
    margin: 0 auto;
    /* centra el bloque horizontalmente */
    text-align: center;
    /* centra el texto dentro del bloque */
    display: inline-block;
    /* evita que se expanda a todo el ancho */
}

