/* 
 * TSK-006: Estilos para la sección de Noticias 
 * Estética Profesional, Glassmorphism y Micro-animaciones
 */

.news-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.news-header {
    text-align: center;
    margin-bottom: 50px;
}

.news-header h2 {
    font-size: 2.5rem;
    color: #1a3a5f;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.news-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color, #0056b3);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Glassmorphism Card Design */
.news-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.1);
}

.news-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    background: var(--primary-color, #0056b3);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.news-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.meta-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.meta-info i {
    color: var(--primary-color, #0056b3);
}

.news-card-content h3 {
    font-size: 1.25rem;
    color: #2d3436;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s ease;
}

.news-card:hover h3 {
    color: var(--primary-color, #0056b3);
}

.news-card-content p {
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.news-card-footer {
    padding: 20px 25px;
    border-top: 1px solid #f1f2f6;
    background: rgba(248, 249, 250, 0.5);
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color, #0056b3);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s ease;
}

.btn-read-more:hover {
    gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-header h2 {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}