.main-footer {
    min-height: 50vh;
    background-color: #000;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}
.goals {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 50px 0;
}
.goals img {
    transition: all ease 0.3s;
    height: 54px;
    width: auto;
    margin: 10px;
    filter: grayscale(1);
}
.goals img:hover {
    filter: none;
}
.bottom-fotter a {
    color: #838383;
}
@media (max-width: 767px) {
    .footer-logo {
        margin-bottom: 20px;
    }
    .main-footer {
        height: auto;
        flex-direction: column;
        flex-wrap: wrap;
    }
    .goals img {
        height: 56px;
        margin: 10px;
    }
}

h4.title-column-ftr, .title-column-ftr {
    color: white;
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    line-height: 30px;
    /* letter-spacing: 3px; */
}

h5, .h5 {
    font-style: normal;
    font-weight: 500;
    font-size: 0.938rem;
    line-height: 22px;
    letter-spacing: 2px;
    color: #000000;
}

.page-template-template-homerediseno-php .above-footer {
    background: #dcfe6f !important;
    color: #000;
    font-weight: bold;
}

.above-footer .container {
    display: flex;
    justify-content: center;
}

.above-footer .btn {
    line-height: 25px;
    background-color: #3d3d3d;
    color: #ffffff;
    border: none;
    display: inline-block;
    width: fit-content;
    border-radius: 30px;
    padding: 10px 20px;
}

@media only screen and (max-width: 600px) {
    .above-footer .container {
        display: flex !important;
        justify-content: center;
        flex-wrap: wrap;
    }
}

#menu-family-companies li{
    line-height: 20px;
}


.footer-logo {
    text-align: center;
}

.site-footer p {
    color: #a0a0a0;
}

/* 1. Convertimos el contenedor principal en un Grid de 2 columnas */
/* Usamos el selector adyacente (+) para seleccionar solo el contenedor padre y no los hijos que comparten la misma clase */
.title__office + .mmg-offices {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Crea dos columnas del mismo ancho */
    gap: 10px 20px; /* 20px de separación en filas, 40px en columnas */
}

/* 2. Asignación de posiciones exactas en la cuadrícula */

/* Primer país del Repeater (Chile) -> Columna 1, Fila 1 */
.title__office + .mmg-offices > .mmg-offices:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

/* Segundo país del Repeater (Costa Rica) -> Columna 1, Fila 2 */
.title__office + .mmg-offices > .mmg-offices:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

/* Tercer país del Repeater (México) -> Columna 2, Fila 1 */
.title__office + .mmg-offices > .mmg-offices:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
}

/* Sección de Redes Sociales -> Columna 2, Fila 2 */
.title__office + .mmg-offices > .rrss {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: baseline; /* Alinea "Síguenos" con los íconos */
    /* gap: 15px;  */
    margin-top: 10px; /* Ajuste fino visual */
}

/* 3. Ajustes de color y tipografía (para que luzca como tu imagen) */
.title__office + .mmg-offices h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Asumiendo que tu campo ACF 'contenido_pais' devuelve un <p> */
.title__office + .mmg-offices p {
    color: #a0a0a0; /* Color gris de las direcciones */
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.rrss span {
    color: #a0a0a0;
    font-size: 1rem;
}

.footer-copyright__socialIcon {
    color: #a0a0a0; /* Íconos grises */
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-copyright__socialIcon:hover {
    color: #ffffff; /* Efecto hover en blanco */
}

/* 4. Responsive: Para teléfonos móviles (una sola columna) */
@media (max-width: 768px) {
    .title__office + .mmg-offices {
        grid-template-columns: 1fr; /* Pasa a 1 sola columna */
        gap: 20px;
    }

    /* Restablece el flujo natural para que caigan uno debajo del otro */
    .title__office + .mmg-offices > .mmg-offices:nth-child(n),
    .title__office + .mmg-offices > .rrss {
        grid-column: 1;
        grid-row: auto;
    }

    .goals {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 50px 0;
        align-items: center;
        justify-content: space-between;
    }

    .goals img {
        height: fit-content;
        margin: 10px;
        max-width: 38%;
    }
}