/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* CONTENEDOR */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* SECCIÓN */
.news-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #222;
}

/* GRID */
.news-grid {
    display: grid;
    gap: 25px;
}

/* Mobile First (1 columna) */
@media (min-width: 576px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* TARJETAS */
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    display: block;
}

.news-content {
    padding: 20px;
}

.category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: bold;
    color: #007BFF;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.news-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: #555;
}

.read-more {
    text-decoration: none;
    font-weight: bold;
    color: #007BFF;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}