.home-news-module{
    max-width: 1200px;
    margin: auto;
}
.home-news-module #news {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    /* Todas las tarjetas tendrán la misma altura dinámica */
    margin: 60px auto;
}

.home-news-module #news>h3 {
    width: 100%;
    padding-left: 10px;
    color: var(--NEUTRAL-GREY-6, #4D4D4D);
    font-family: "MuseoSans_700";
    font-size: 24px;
    margin: 0;
    margin-bottom: 5px;
}

.home-news-module #news .first-container {
    padding: 10px;
    flex: 1 1 50%;
    /* Ocupa el 50% del ancho del contenedor padre */
    display: flex;
}

.home-news-module #news .other-container {
    padding: 10px;
    flex: 1 1 25%;
    /* Ocupa el 25% del ancho del contenedor padre */
}

.home-news-module #news .news {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    padding: unset;
    height: 100%;
}

/* Estas reglas se usaban en la versión anterior (cuando la imagen y el título tenían enlaces separados) */
.home-news-module #news .news>a {
    display: block;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Transición suave */
}

/* Efecto al hacer hover en el enlace de la imagen (versión anterior) */
.home-news-module #news .news>a:hover {
    transform: scale(1.05);
    /* Aumenta ligeramente el tamaño */
    opacity: 0.9;
    /* Reduce ligeramente la opacidad */
}

.home-news-module #news .first-container .news>a {
    flex: 1;
    /* La imagen de fondo ocupa todo el espacio disponible */
}

.home-news-module #news .small-image {
    width: 100%;
    height: 0;
    padding-top: 75%;
    /* Relación de aspecto 4:3 (altura calculada) */
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
}

.home-news-module #news .description {
    padding: 10px;
    text-align: left;
    width: 97%;
    color: var(--NEUTRAL-GREY-6, #4D4D4D);
    font-family: "OpenSans Regular";
    line-height: normal;
    margin-top: unset;
}
.home-news-module #news .title {
    text-decoration: none;
    font-size: 13px;
    color: #333;
    line-height: 1.5em;
}

.home-news-module .news_link {
    margin: 0 0 0 auto;
}

.home-news-module .news_link>a {
    text-decoration: none;
    color: var(--primary-principal);
    /* GENERAL/BUTTON/Button */
    font-family: "OpenSans Regular";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.home-news-module .news_link>a:hover {
    text-decoration: none;
}

/* Nuevas reglas para que toda la card sea el enlace y tenga la animación deseada */
.home-news-module #news .other-container a.news-card {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-news-module #news .other-container a.news-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.home-news-module .news_link>a:hover {
    text-decoration: none;
}
@media (max-width: 767px) {

    .home-news-module #news {
        display: block;
        /* Cambiamos a diseño vertical */
        width: 90%;
        max-width: 1200px;
        margin: auto;
    }

    .home-news-module #news>h3 {
        text-align: center;
    }

    .home-news-module #news .first-container {
        width: 100%;
        height: 200px;
        /* Ocupa 200px de alto */
        flex: none;
        /* Evitamos el comportamiento de flex */
        padding: 10px 0;
    }

    .home-news-module #news .other-container:nth-child(n+3) {
        display: none;
        /* Ocultamos las demás tarjetas */
    }

    .home-news-module #news .small-image {
        height: 100%;
        padding-top: 30%;
    }

    .home-news-module #news .description {
        width: 97%;
    }

    .home-news-module #news .other-container > a.news-card {
        width: 300px;
        height: 300px;
        margin: auto;
    }

    .home-news-module #news .news>a {
        height: 100%;
        /* La imagen ocupa todo el contenedor */
    }

    .home-news-module .news_link {
        margin: auto;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .home-news-module .news_link>a {
        margin: auto;
        display: flex;
        width: 140px;
        height: 48px;
        padding: 10px 20px;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
        color: var(--primary-principal);
        text-decoration: none;
        font-family: "OpenSans Regular";
        font-size: 14px;
        font-weight: 600;
        border-radius: 6px;
        border: 1px solid var(--primary-principal);
        background: rgba(243, 243, 243, 0.20);
    }

    .home-news-module .news_link>a:hover {
        border-radius: 6px;
        border: 1px solid var(--primary-principal);
        background: var(--primary-principal);
        color: #FFF;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {

    .home-news-module #news .first-container {
        width: 100%;
        height: 500px;
        /* Ocupa 500px de alto */
        flex: none;
        /* Evitamos el comportamiento de flex */
    }

    .home-news-module #news .news {
        height: 100%;
    }
}
@media (max-width: 400px) {
    .home-news-module #news .other-container > a.news-card {
        width: unset;
        height: 300px;
        margin: auto;
    }
}