
/* CSS Simple y Limpio para Knowledge Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #3a39ff 0%, #0528d3 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.header .subtitle {
    opacity: 0.9;
    font-size: 1.1em;
}

.content {
    padding: 40px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h1, 
.article-content h2, 
.article-content h3 {
    color: #2d3748;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.article-content h1 {
    font-size: 2.2em;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.article-content h2 {
    font-size: 1.8em;
    color: #4a5568;
}

.article-content h3 {
    font-size: 1.4em;
    color: #667eea;
}

.article-content p {
    margin: 15px 0;
    font-size: 1.1em;
    line-height: 1.7;
}

.article-content ul, 
.article-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.article-content li {
    margin: 8px 0;
    font-size: 1.05em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.article-content pre {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #4a5568;
    background: #f0f9ff;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.article-content a {
    color: #3182ce;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.article-content a:hover {
    border-bottom-color: #3182ce;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.article-content th {
    background: #f7fafc;
    font-weight: 600;
    color: #4a5568;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    padding: 10px 20px;
    background: #ff5b23;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.back-link:hover {
    background: #883114;
}

.folder-list {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.folder-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
}

.folder-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.folder-item h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.article-list {
    list-style: none;
    padding: 0;
}

.article-list li {
    margin: 8px 0;
}

.article-list a {
    display: block;
    padding: 10px 15px;
    background: #f7fafc;
    border-radius: 6px;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-list a:hover {
    background: #e2e8f0;
    color: #2d3748;
}

.stats {
    background: #f0f9ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.search-box {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    margin: 20px 0;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
}

.categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 25px;
            margin: 30px 0;
        }
        
        .category-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid #e2e8f0;
        }
        
        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        }
        
        .category-header {
            background: linear-gradient(135deg, #3a39ff 0%, #0528d3 100%);
            color: white;
            padding: 20px;
            text-align: center;
        }
        
        .category-title {
            font-size: 1.3em;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .category-description {
            opacity: 0.9;
            font-size: 0.95em;
        }
        
        .folders-list {
            display: none;
            padding: 20px;
        }
        
        .folder-item {
            display: block;
            padding: 12px 15px;
            margin: 8px 0;
            background: #f8f9fa;
            color: #4a5568;
            text-decoration: none;
            border-radius: 8px;
            border-left: 3px solid #ff5b23;
            transition: all 0.2s ease;
            position: relative;
        }
        
        .folder-item:hover {
            background: #e2e8f0;
            color: #2d3748;
            border-left-color: #ff5b23;
        }
        
        .folder-title {
            font-weight: 500;
            font-size: 1.05em;
        }
        
        .folder-meta {
            font-size: 0.85em;
            color: #718096;
            margin-top: 4px;
        }
        
        .stats-banner {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 1px solid #bee3f8;
            border-radius: 12px;
            padding: 25px;
            margin: 25px 0;
            text-align: center;
        }
        
        .stats-row {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            gap: 20px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 2em;
            font-weight: bold;
            color: #667eea;
            display: block;
        }
        
        .stat-label {
            color: #4a5568;
            font-weight: 500;
        }
        
        .search-section {
            background: white;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            margin: 25px 0;
        }
        
        .search-box {
            width: 100%;
            max-width: 600px;
            padding: 15px;
            border: 2px solid #e2e8f0;
            border-radius: 10px;
            font-size: 16px;
            margin: 0 auto;
            display: block;
        }
        
        .search-box:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .navigation-links {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 30px 0;
            flex-wrap: wrap;
            gap: 15px;
        }

        .nav-link {
            padding: 12px 24px;
            background: #ff5b23;
            color: white;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 500;
            transition: background 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .nav-link:hover {
            background: #ac3e19;
        }
        
        .nav-link.secondary {
            background: #e2e8f0;
            color: #4a5568;
        }
        
        .nav-link.secondary:hover {
            background: #cbd5e0;
        }

        .nav-link2 {
            padding: 12px;
            background: #ff5b23;
            color: white;
            font-size: 1.5em;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 700;
            text-align: center;
            display: block; /* Debe ser un elemento de bloque */
            width: 300px;   /* Debe tener un ancho definido */
            margin: 0 auto; /* Esto centra el bloque */
        }

        .folder-header {
            background: linear-gradient(135deg, #3a39ff 0%, #0528d3 100%);
            color: white;
            padding: 40px 30px;
            text-align: center;
            margin-bottom: 0;
        }
        
        

        .articles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }
        
        .article-card {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 20px;
            transition: all 0.3s ease;
            border-left: 4px solid #667eea;
        }
        
        .article-card:hover {
            border-color: #5a67d8;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        
        .article-title {
            font-size: 1.1em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
            line-height: 1.4;
        }
        
        .article-link {
            color: #3182ce;
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        .article-link:hover {
            color: #2c5aa0;
            text-decoration: underline;
        }
        
        .sub-folders-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
            margin: 20px 0;
        }
        
        .sub-folder-card {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border: 1px solid #cbd5e0;
            border-radius: 10px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }
        
        .sub-folder-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.1);
            border-color: #667eea;
        }
        
        .sub-folder-title {
            font-size: 1.2em;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 10px;
        }
        
        .sub-folder-link {
            color: #667eea;
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }
        
        @media (max-width: 768px) {
            .categories-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .stats-row {
                flex-direction: column;
                gap: 15px;
            }
        }

    

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .content {
        padding: 20px;
    }
    
    .article-content h1 {
        font-size: 1.8em;
    }
    
    .article-content h2 {
        font-size: 1.5em;
    }
}
