/* Fix para enlaces invisibles en hover en líneas de tiempo */

/* Botones de fuente en timeline - Estado normal */
.timeline-foto .brxe-button,
.timeline-foto .bricks-button,
.timeline-foto a.brxe-button,
.timeline-foto a.bricks-button {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: inline-flex !important;
}

/* Botones de fuente en timeline - Estado hover */
.timeline-foto .brxe-button:hover,
.timeline-foto .bricks-button:hover,
.timeline-foto a.brxe-button:hover,
.timeline-foto a.bricks-button:hover {
    color: #002b5c !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-decoration: none !important;
    pointer-events: auto !important;
}

/* Enlaces específicos con clase brxe-mfnagx (clase del botón de fuente) */
.timeline-foto a.brxe-mfnagx,
.timeline-foto .brxe-mfnagx {
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-flex !important;
    pointer-events: auto !important;
}

.timeline-foto a.brxe-mfnagx:hover,
.timeline-foto .brxe-mfnagx:hover {
    visibility: visible !important;
    opacity: 1 !important;
    color: #002b5c !important;
}

/* Footer: clase única para los textos de los links */
.footer-link-text {
    font-family: "Oswald" !important;
    font-size: 1em !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

/* El bundle de Bricks fuerza font-size distinto en los 2 primeros items del repeater; se refuerza con mayor especificidad */

/* Footer: 4 columnas iguales (tipo col-3 Bootstrap) */
#brxe-ufolwl {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: var(--n-space-m) !important;
    align-items: flex-start !important;
    justify-content: unset !important;
}
#brxe-wijamg,
#brxe-hgmrbh,
#brxe-taagpd,
#brxe-redes-col {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
}
/* Orden: Logo(1) Links(2) Historia(3) Redes(4) */
#brxe-taagpd    { order: 3 !important; }
#brxe-redes-col { order: 4 !important; }

#brxe-hgmrbh {
    row-gap: var(--n-space-3xs) !important;
}

/* Mobile: apilado Bootstrap — cada columna ocupa fila completa */
@media (max-width: 767px) {
    #brxe-ufolwl {
        flex-wrap: wrap !important;
        gap: var(--n-space-m) !important;
    }
    #brxe-wijamg,
    #brxe-hgmrbh,
    #brxe-taagpd,
    #brxe-redes-col {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 100% !important;
    }
}

/* Primera sección de contenido: padding-top para compensar header sticky dinámico en mobile */
@media (max-width: 767px) {
    #brxe-02920f,
    #brxe-3afd7f,
    #brxe-329689,
    #brxe-33f817,
    #brxe-d6fdbf,
    #brxe-2272a2,
    #brxe-cda844,
    #brxe-797278 {
        height: auto;
        padding-bottom: 0;
        padding-top: 100px;
    }
}

/* Título del header en mobile: header crece dinámicamente con el contenido */
@media (max-width: 767px) {
    #brxe-3f31af {
        height: auto !important;
        min-height: 4rem !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: var(--n-space-s) !important;
        padding-bottom: var(--n-space-s) !important;
        gap: var(--n-space-xs) !important;
    }
    #brxe-afwskp {
        flex: unset !important;
        width: 100% !important;
        justify-content: center !important;
    }
    #brxe-afwskp h2 {
        font-size: var(--n-head-s) !important;
        line-height: 1.2 !important;
    }
}
