/* ==========================================
   NOTICIAS - DISEÑO UNIFORME Y LIMPIO
   Grid consistente para todas las pantallas
   ========================================== */

/* Sección de Noticias */
.news-section {
    padding: 5rem 0 !important;
    background: #f8fafc !important;
    position: relative !important;
}

.news-section::before {
    display: none !important;
}

.news-section::after {
    content: '← Desliza para ver más →' !important;
    position: absolute !important;
    bottom: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
    animation: fadeInOut 3s ease-in-out infinite !important;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@media (max-width: 768px) {
    .news-section::after {
        font-size: 0.75rem !important;
        bottom: 1.5rem !important;
    }
}

.news-section .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Filtros */
.news-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-bottom: 3rem !important;
}

.filter-btn {
    padding: 0.65rem 1.5rem !important;
    background: white !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: none !important;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0a2463 !important;
    color: white !important;
    border-color: #0a2463 !important;
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.2) !important;
    transform: translateY(-2px) !important;
}

/* Grid de Noticias - Carrusel Deslizable */
.news-grid {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    gap: 2rem !important;
    padding-bottom: 1rem !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Scrollbar personalizado */
.news-grid::-webkit-scrollbar {
    height: 8px !important;
}

.news-grid::-webkit-scrollbar-track {
    background: #e8eef5 !important;
    border-radius: 10px !important;
}

.news-grid::-webkit-scrollbar-thumb {
    background: #0a2463 !important;
    border-radius: 10px !important;
}

.news-grid::-webkit-scrollbar-thumb:hover {
    background: #00d9ff !important;
}

/* Cards en carrusel */
.news-card {
    flex: 0 0 calc(33.333% - 1.35rem) !important;
    scroll-snap-align: start !important;
}

@media (max-width: 1024px) {
    .news-card {
        flex: 0 0 calc(50% - 1rem) !important;
    }
}

@media (max-width: 768px) {
    .news-grid {
        gap: 1.5rem !important;
    }
    
    .news-card {
        flex: 0 0 calc(85% - 0.75rem) !important;
    }
    
    .news-filters {
        gap: 0.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .filter-btn {
        padding: 0.5rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}

/* Cards de Noticias - Tamaño Uniforme */
.news-card {
    background: white !important;
    border: 1px solid #e8eef5 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(10, 36, 99, 0.06) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    backdrop-filter: none !important;
    min-height: 480px !important;
}

/* Eliminar featured - todos iguales */
.news-card.featured {
    flex: 0 0 calc(33.333% - 1.35rem) !important;
}

.news-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(10, 36, 99, 0.12) !important;
    border-color: #00d9ff !important;
}

/* Imagen de Noticia - Alto Fijo */
.news-image {
    position: relative !important;
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
    background: #f0f4f8 !important;
}

.news-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.news-card:hover .news-image img {
    transform: scale(1.05) !important;
}

.news-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.3), rgba(10, 22, 40, 0.7)) !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    padding: 1rem !important;
}

.news-category {
    background: #00d9ff !important;
    color: #0a2463 !important;
    padding: 0.4rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Contenido de Noticia */
.news-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.news-meta {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
    font-size: 0.85rem !important;
    color: #64748b !important;
}

.news-date {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.news-date::before {
    content: '📅' !important;
    font-size: 0.9rem !important;
}

.news-author {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.news-author::before {
    content: '✍️' !important;
    font-size: 0.9rem !important;
}

.news-separator {
    color: #cbd5e1 !important;
}

/* Título de Noticia - Alto Fijo */
.news-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 0.75rem !important;
    min-height: 64px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.news-title a {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.news-title a:hover {
    color: #0a2463 !important;
}

/* Extracto de Noticia - Alto Fijo */
.news-excerpt {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #64748b !important;
    margin-bottom: 1.25rem !important;
    flex-grow: 1 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 72px !important;
}

/* Acciones de Noticia */
.news-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
}

.read-more {
    color: #0a2463 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.read-more:hover {
    color: #00d9ff !important;
    gap: 0.75rem !important;
}

.read-more i {
    transition: transform 0.2s ease !important;
}

.read-more:hover i {
    transform: translateX(3px) !important;
}

.news-share {
    display: flex !important;
    gap: 0.5rem !important;
}

.share-btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.share-btn:hover {
    background: #00d9ff !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* Estados de Filtro */
.news-card[style*="display: none"] {
    display: none !important;
}

/* Responsive */
@media (max-width: 640px) {
    .news-image {
        height: 200px !important;
    }
    
    .news-title {
        font-size: 1.05rem !important;
        min-height: 56px !important;
    }
    
    .news-excerpt {
        font-size: 0.9rem !important;
        min-height: 66px !important;
    }
    
    .news-content {
        padding: 1.25rem !important;
    }
}
