/* Ocultar footer original */
#colophon.site-footer {
    display: none !important;
}

/* Prevenir scroll horizontal en toda la página */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* Ancho completo del footer - VERSIÓN CORREGIDA */
.footer-bcm-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

.footer-bcm-wrapper * {
    box-sizing: border-box;
}

/* IMPORTANTE: Evitar overflow en contenedores padre */
.site-content-contain,
.wrap,
#page,
.site {
    overflow-x: hidden !important;
}

/* Forzar ancho completo en contenedores constrained */
.footer-bcm-wrapper .is-layout-constrained,
.footer-bcm-wrapper .wp-block-group__inner-container.is-layout-constrained {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.footer-bcm-wrapper [class*="wp-container-core-group-is-layout"] {
    max-width: 100% !important;
}

.footer-bcm-wrapper .wp-block-group {
    max-width: 100% !important;
}

/* CENTRAR ICONOS SOCIALES */
.footer-bcm-wrapper .wp-block-social-links.is-content-justification-center,
.footer-bcm-wrapper .wp-block-social-links.is-layout-flex,
.footer-bcm-wrapper [class*="wp-container-core-social-links"] {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
}

.footer-bcm-wrapper .wp-block-column:has(.wp-block-social-links) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* Estilos de iconos individuales */
.footer-bcm-wrapper .wp-social-link {
    width: 40px !important;
    height: 40px !important;
    padding: 8px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.footer-bcm-wrapper .wp-social-link svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* Color de enlaces */
.footer-bcm-wrapper a {
    color: #2d5a7b !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.footer-bcm-wrapper a:hover {
    color: #1a3a4f !important;
    text-decoration: underline !important;
}

.footer-bcm-wrapper .wp-block-navigation a,
.footer-bcm-wrapper nav a {
    color: #2d5a7b !important;
    font-weight: 500;
}

/* Limpieza general */
.footer-bcm-wrapper::before,
.footer-bcm-wrapper::after {
    display: none !important;
}

/* Estandarizar tamaño de todos los logos */
.footer-bcm-wrapper .wp-block-image img,
.footer-bcm-wrapper figure img {
    max-width: 180px !important;
    width: auto !important;
    height: auto !important;
    max-height: 100px !important;
    object-fit: contain !important;
}

/* Alineación vertical al centro de las imágenes */
.footer-bcm-wrapper .wp-block-image,
.footer-bcm-wrapper figure.wp-block-image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100px !important;
}

/* Alinear columnas de logos verticalmente al centro */
.footer-bcm-wrapper .wp-block-columns {
    align-items: center !important;
}

.footer-bcm-wrapper .wp-block-column {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Asegurar que los contenedores figure no añaden altura extra */
.footer-bcm-wrapper figure {
    margin: 0 !important;
}


/* Espacio inferior en la sección de logos */
.footer-bcm-wrapper .wp-block-columns:first-of-type {
    padding-bottom: 30px !important;
}

/* Alternativa: si hay un contenedor específico de logos */
.footer-bcm-wrapper .wp-block-group:first-child {
    padding-bottom: 30px !important;
}