/* Estilos para la sección de noticias */
.news-section {
    background-color: #f9f9f9;
    padding: 50px 0;
    text-align: center;
}

.news-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
}

.news-item::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.news-item:hover::before {
    opacity: 1;
}

.news-item img {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.news-item h3 {
    margin: 15px 20px 10px;
    font-size: 1.5rem;
    color: #333;
}

.news-item p {
    margin: 0 20px 20px;
    color: #666;
    line-height: 1.4;
}

.read-more-link {
    display: inline-block;
    margin: 0 20px 15px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

.read-more-link:hover {
    background-color: #0056b3;
}

