/* Módulo 3: 3 Noticias */
.modulo-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.noticia-compacta {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    min-width: 0;
}

.noticia-compacta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.noticia-compacta img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.noticia-compacta:hover img {
    /* transform: scale(1.1); */
}

.noticia-compacta-contenido {
    padding: 18px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.noticia-compacta-contenido::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-principal), transparent);
    border-radius: 1px;
}

.noticia-compacta-descripcion {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
    flex: 1;
}
.noticia-compacta-titulo {
    font-size: 1.3rem;
    line-height: 1.3;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
    flex: 1;
}

.noticia-compacta-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #888;
    margin-top: auto;
}

@media (max-width: 992px) {
    .modulo-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .noticia-compacta {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .modulo-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .noticia-compacta {
        min-height: 340px;
    }

    .noticia-compacta img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .noticia-compacta {
        min-height: 320px;
    }

    .noticia-compacta-contenido {
        padding: 15px;
    }

    .noticia-compacta-descripcion {
        font-size: 0.85rem;
    }

    .noticia-compacta-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
