/* --- ESTILOS PRINCIPALES DEL FOOTER --- */
.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 */
    box-sizing: border-box;
    /* Asegura que el padding no cause desbordamiento */
}

/* 2. ESTILO DEL TÍTULO */
.footer-patrimonial .footer-title {
    /* Mantén tu regla de fuente si la tienes */
    font-size: 2em;
    font-weight: 500;
    margin: 0;
    /* Escritorio: Lo dejamos en left o como estaba, no importa */
    text-align: left;
}

/* 3. BLOQUE IZQUIERDO (Información/Título) */
.footer-left {
    padding-left: 2cm;
    /* separación desde el borde izquierdo */
    /* Escritorio: Por defecto a la izquierda */
    text-align: left;
}

/* 4. BLOQUE DERECHO (Enlaces) */
.footer-right {
    padding-right: 2cm;
    /* separación desde el borde derecho */
    text-align: right;
}

/* 5. ESTILOS DE PÁRRAFOS Y LISTAS */
.footer-left p {
    margin: 0 0 8px 0;
    line-height: 1.5;
}

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

/* 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;
}

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

    /* 1. Contenedor principal: Pasa de Flex a Bloque y centra el contenido principal */
    .footer-patrimonial {
        display: block;
        text-align: center;
        /* ⬅️ Esto ayuda a centrar texto y títulos */
        padding-left: 0;
        padding-right: 0;
    }

    /* 2. Bloques Izquierdo y Derecho: Ocupan todo el ancho y FUERZAN EL CENTRADO DE TEXTO */
    .footer-left,
    .footer-right {
        width: 100%;
        padding: 0 20px;
        margin-bottom: 15px;
        flex-basis: 100%;
        /* 🟢 CLAVE: Fuerza la alineación de todos los hijos de texto */
        text-align: center;
    }

    /* 🟢 3. SOLUCIÓN FINAL: Centrado del Título (H2) y Párrafos (P) */

    /* Centrado del bloque del título (WebOeba) */
    .footer-patrimonial .footer-title {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        margin-bottom: 10px;
    }

    /* 🟢 AÑADIDO CLAVE: Anula la alineación a la izquierda en los párrafos de Ciudad y República */
    .footer-left p {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* 4. Enlaces de la derecha: Aseguramos que se muestren en bloque y centrados */
    .footer-right ul {
        padding: 0;
        margin: 0;
    }

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

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