/* NEWS GRID */
.news-grid {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;

    display: grid;
    grid-template-areas:
        "left1 big right1"
        "left2 big right2";
    grid-template-columns: 1fr 2fr 1fr;
    gap: 15px;
}

.news-item {
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    height: 200px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: block;
}

/* Áreas */
.left1  { grid-area: left1; }
.left2  { grid-area: left2; }
.right1 { grid-area: right1; }
.right2 { grid-area: right2; }

.big {
    grid-area: big;
    height: 415px;
}

/* IMAGEN */
.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

/* OVERLAY */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 20px 15px;
    color: white;
}

.overlay h2 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.big .overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.overlay .date {
    font-size: 0.85rem;
    opacity: 0.9;
}

.big .overlay .date {
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 968px) {
    .news-grid {
        grid-template-areas:
            "big big"
            "left1 right1"
            "left2 right2";
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-areas:
            "big"
            "left1"
            "left2"
            "right1"
            "right2";
        grid-template-columns: 1fr;
    }
    
    .news-item {
        height: 250px;
    }
}