
    /* Variables CSS para compatibilidad con dark mode */
    :root {
        --section-bg-primary: #ffffff;
        --section-bg-card: #ffffff;
        --section-text-primary: #000000;
        --section-text-secondary: #666666;
        --section-border-color: #7B7B7B;
        --section-accent-color: #7B7B7B;
    }

    [data-theme="dark"] {
        --section-bg-primary: #0d1117;
        --section-bg-card: #21262d;
        --section-text-primary: #f0f6fc;
        --section-text-secondary: #e6edf3;
        --section-border-color: #30363d;
        --section-accent-color: #58a6ff;
    }

    .news-grid {
        columns: 3;
        column-gap: 1rem;
        margin-bottom: 2rem;
    }
    @media (max-width: 992px) {
        .news-grid {
            columns: 2;
        }
    }
    @media (max-width: 768px) {
        .news-grid {
            columns: 1;
        }
    }
    .news-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        border-bottom: thin solid var(--section-border-color);
        background: var(--section-bg-card);
        display: inline-block;
        width: 100%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        overflow: hidden;
    }

    /* Efecto hover para las cards */
    .news-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    [data-theme="dark"] .news-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    [data-theme="dark"] .news-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }

    .news-image {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
    }

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

    .news-content {
        padding: 1rem;
        background: var(--section-bg-card);
    }
    .news-title {
        font-size: 1.1rem;
        margin: 0;
        font-weight: 600;
        line-height: 1.3;
    }
    .news-title a {
        color: var(--section-text-primary);
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .news-title a:hover {
        color: var(--section-accent-color);
    }

    .news-excerpt {
        color: var(--section-text-secondary);
        font-size: 0.9rem;
        line-height: 1.4;
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .news-meta {
        color: var(--section-text-secondary) !important;
    }

    .news-meta i {
        color: var(--section-accent-color);
    }

    #loading {
        display: none;
        text-align: center;
        padding: 20px;
        width: 100%;
        clear: both;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h1 {
        font-family: "Merriweather", serif;
        border-bottom: 2px solid var(--section-accent-color);
        padding-bottom: 0.5rem;
        margin: 0;
        color: var(--section-accent-color);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Section headers específicos para dark mode - color blanco */
    [data-theme="dark"] .section-header h1 {
        color: var(--section-text-primary) !important;
        border-bottom-color: var(--section-text-primary) !important;
    }

    /* Mejoras adicionales para dark mode */
    [data-theme="dark"] body {
        background-color: var(--section-bg-primary);
    }

    /* Spinner de loading para dark mode */
    [data-theme="dark"] .spinner-border {
        color: var(--section-accent-color) !important;
    }

    /* Responsive improvements */
    @media (max-width: 576px) {
        .news-content {
            padding: 0.75rem;
        }
        
        .news-title {
            font-size: 1rem;
        }
        
        .news-excerpt {
            font-size: 0.85rem;
        }
    }
