/* Estilos para la sección de noticias */
.news {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.news h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    animation: slideInDown 1s ease;
}

.news h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: grid !important;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.news-item:hover {
    transform: translateY(-5px);
}

.news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.news-item:hover img {
    transform: scale(1.05);
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0;
}

.news-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item p.expanded {
    -webkit-line-clamp: unset;
}

.ver-mas {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    width: fit-content;
    transition: color 0.3s;
}

.ver-mas:hover {
    color: var(--secondary-color);
}

[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Animaciones */
@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .news-item {
        grid-template-columns: 1fr;
    }

    .news-item img {
        height: 200px;
    }

    .news h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .news {
        padding: 1rem;
    }

    .news-item h3 {
        font-size: 1.2rem;
    }
}