

    
.news-section {
    text-align: center;
    padding: 20px;
    
}
.news-card.animated {
    animation-name: fadeInUp;
    animation-duration: 5s;
  }
  
.titulonoti{
    font-size: 25px;
    color: #fff;
    text-align: center;
}
.news-container {
    display: flex;
    justify-content:center;
    margin: 0 auto;
    max-width: 1000px;    
    flex-wrap: wrap;
    
}
@media (min-width: 768px) {
    .news-container {
        justify-content: space-between; /* Se aplica para dispositivos con un ancho mínimo de 768px (como pantallas de PC) */
    }
} 
.news-card {
    flex-basis: 30%;
    width: 300px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    animation-name: fadeInUp;
    animation-duration: 1s;
}

.news-card img {
    width: 100%;
}

.news-card h3 {
    margin-top: 10px;
    font-size: 20px;
}

.news-card p {
    margin-top: 10px;
    font-size: 16px;
}

.news-card a {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    border: 1px solid #333;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    transition: all 5.0s ease;
}

.news-card a:hover {
    background-color: #fff;
    color: #333;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}





/*eventos*/



.article-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1000px;
    margin: 0 auto;
}

.article-card {
    flex-basis: calc(33.33% - 20px);
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f5f5f5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    animation-name: fade-in;
    animation-duration: 4s;
}

.article-card img {
    width: 100%;
}

.article-card h3 {
    margin-top: 10px;
    font-size: 20px;
}

.article-card p {
    margin-top: 10px;
    font-size: 16px;
}

.article-section a {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    border: 1px solid #333;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    transition: all 5.0s ease;
}

.article-section a:hover {
    background-color: #fff;
    color: #333;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card:hover::before {
    transform: skewX(-45deg) translateX(-100%);
    animation-name: article-card-hover;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
}

@keyframes article-card-hover {
    to {
        transform: skewX(-45deg) translateX(-100%);
    }
}