        :root {
            --primary: #2563eb;
            --primary-dark: #1e40af;
            --accent: #f59e0b;
            --dark: #0f172a;
            --light: #f8fafc;
        }

        body {
            background-color: #f8fafc;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: #334155;
            line-height: 1.7;
        }

        /* ========================================== */
        /* BOTÓN VOLVER                               */
        /* ========================================== */
        .back-home-link {
            position: absolute;
            top: 30px;
            left: 30px;
            display: inline-flex;
            align-items: center;
            color: #fff;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            padding: 10px 20px;
            border-radius: 10px;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .back-home-link:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            transform: translateX(-5px);
            text-decoration: none;
        }

        /* ========================================== */
        /* HEADER                                     */
        /* ========================================== */
        .docs-header {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
            color: #fff;
            padding: 80px 0 60px;
            position: relative;
            overflow: hidden;
        }

        .docs-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
            border-radius: 50%;
        }

        .docs-header h1 {
            font-size: 3rem;
            font-weight: 800;
            margin-bottom: 15px;
            position: relative;
        }

        .docs-header p.lead {
            font-size: 1.2rem;
            opacity: 0.9;
            position: relative;
            max-width: 700px;
            margin: 0 auto;
        }

        .docs-header .badge-docs {
            background: var(--accent);
            color: #000;
            padding: 6px 16px;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.85rem;
            display: inline-block;
            margin-bottom: 15px;
            position: relative;
        }

        /* ========================================== */
        /* LAYOUT PRINCIPAL                           */
        /* ========================================== */
        .docs-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }

        .docs-layout {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 40px;
        }

        /* ========================================== */
        /* SIDEBAR DE NAVEGACIÓN                      */
        /* ========================================== */
        .docs-sidebar {
            position: sticky;
            top: 20px;
            align-self: start;
            background: #fff;
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            height: fit-content;
            max-height: calc(100vh - 40px);
            overflow-y: auto;
        }

        .docs-sidebar h5 {
            font-size: 0.85rem;
            font-weight: 700;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 15px;
        }

        .docs-sidebar ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .docs-sidebar ul li {
            margin-bottom: 4px;
        }

        .docs-sidebar ul li a {
            display: flex;
            align-items: center;
            padding: 10px 14px;
            border-radius: 8px;
            color: #475569;
            text-decoration: none;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .docs-sidebar ul li a:hover {
            background: #f1f5f9;
            color: var(--primary);
        }

        .docs-sidebar ul li a.active {
            background: var(--primary);
            color: #fff;
        }

        .docs-sidebar ul li a i {
            margin-right: 10px;
            width: 18px;
            text-align: center;
            font-size: 0.85rem;
        }

        /* ========================================== */
        /* CONTENIDO PRINCIPAL                        */
        /* ========================================== */
        .docs-content {
            background: #fff;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        .docs-section {
            margin-bottom: 50px;
            scroll-margin-top: 20px;
        }

        .docs-section:last-child {
            margin-bottom: 0;
        }

        .docs-section h2 {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--dark);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            padding-bottom: 12px;
            border-bottom: 2px solid #f1f5f9;
        }

        .docs-section h2 i {
            color: var(--primary);
            margin-right: 12px;
            font-size: 1.5rem;
        }

        .docs-section h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--dark);
            margin-top: 25px;
            margin-bottom: 12px;
        }

        .docs-section p {
            color: #475569;
            margin-bottom: 15px;
        }

        .docs-section ul,
        .docs-section ol {
            padding-left: 25px;
            margin-bottom: 15px;
        }

        .docs-section li {
            margin-bottom: 8px;
            color: #475569;
        }

        .docs-section strong {
            color: var(--dark);
        }

        .docs-section a {
            color: var(--primary);
            text-decoration: none;
        }

        .docs-section a:hover {
            text-decoration: underline;
        }

        .docs-section code {
            background: #f1f5f9;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 0.9rem;
            color: var(--primary);
        }

        /* Cajas informativas */
        .info-box {
            background: #eff6ff;
            border-left: 4px solid var(--primary);
            padding: 16px 20px;
            border-radius: 8px;
            margin: 20px 0;
        }

        .warning-box {
            background: #fef3c7;
            border-left: 4px solid var(--accent);
            padding: 16px 20px;
            border-radius: 8px;
            margin: 20px 0;
        }

        .success-box {
            background: #d1fae5;
            border-left: 4px solid #10b981;
            padding: 16px 20px;
            border-radius: 8px;
            margin: 20px 0;
        }

        .info-box strong,
        .warning-box strong,
        .success-box strong {
            display: block;
            margin-bottom: 5px;
            color: var(--dark);
        }

        /* Tablas */
        .docs-table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background: #f8fafc;
            border-radius: 12px;
            overflow: hidden;
        }

        .docs-table thead {
            background: var(--primary);
            color: #fff;
        }

        .docs-table th,
        .docs-table td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid #e2e8f0;
        }

        .docs-table th {
            font-weight: 600;
            font-size: 0.9rem;
        }

        .docs-table td {
            color: #475569;
            font-size: 0.95rem;
        }

        .docs-table tbody tr:last-child td {
            border-bottom: none;
        }

        .docs-table tbody tr:hover {
            background: #fff;
        }

        /* Pasos numerados */
        .step-list {
            counter-reset: step-counter;
            list-style: none;
            padding-left: 0;
        }

        .step-list li {
            counter-increment: step-counter;
            position: relative;
            padding-left: 50px;
            margin-bottom: 20px;
            min-height: 40px;
        }

        .step-list li::before {
            content: counter(step-counter);
            position: absolute;
            left: 0;
            top: 0;
            width: 36px;
            height: 36px;
            background: var(--primary);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1rem;
        }

        .step-list li strong {
            color: var(--dark);
            display: block;
            margin-bottom: 4px;
        }

        /* Glosario */
        .glossary-letter {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary);
            margin-top: 30px;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 2px solid #e2e8f0;
        }

        .glossary-letter:first-child {
            margin-top: 0;
        }

        .glossary-item {
            padding: 18px 20px;
            background: #f8fafc;
            border-radius: 10px;
            margin-bottom: 12px;
            border-left: 3px solid var(--primary);
        }

        .glossary-term {
            font-weight: 700;
            color: var(--dark);
            font-size: 1.1rem;
            margin-bottom: 6px;
        }

        .glossary-definition {
            color: #475569;
            line-height: 1.6;
            margin: 0;
        }

        /* Timeline de versiones */
        .version-timeline {
            position: relative;
            padding-left: 30px;
            border-left: 3px solid #e2e8f0;
        }

        .version-item {
            position: relative;
            margin-bottom: 35px;
            padding: 20px;
            background: #f8fafc;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .version-item::before {
            content: '';
            position: absolute;
            left: -40px;
            top: 25px;
            width: 18px;
            height: 18px;
            background: var(--primary);
            border: 3px solid #fff;
            border-radius: 50%;
            box-shadow: 0 0 0 2px var(--primary);
        }

        .version-item.latest::before {
            background: var(--accent);
            box-shadow: 0 0 0 2px var(--accent);
        }

        .version-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .version-number {
            font-size: 1.3rem;
            font-weight: 800;
            color: var(--dark);
        }

        .version-date {
            color: #64748b;
            font-size: 0.9rem;
        }

        .version-tag {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-right: 6px;
        }

        .tag-latest {
            background: #fef3c7;
            color: #92400e;
        }

        .tag-stable {
            background: #d1fae5;
            color: #065f46;
        }

        .version-changes {
            margin-top: 12px;
        }

        .version-changes h5 {
            font-size: 0.85rem;
            font-weight: 700;
            color: #64748b;
            text-transform: uppercase;
            margin-top: 12px;
            margin-bottom: 6px;
        }

        .version-changes ul {
            margin: 0;
            padding-left: 20px;
        }

        .version-changes li {
            font-size: 0.95rem;
            margin-bottom: 4px;
        }

        /* Recursos descargables */
        .resource-card {
            display: flex;
            align-items: center;
            padding: 20px;
            background: #fff;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            margin-bottom: 15px;
            transition: all 0.3s;
            text-decoration: none;
            color: inherit;
        }

        .resource-card:hover {
            border-color: var(--primary);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
            text-decoration: none;
            color: inherit;
        }

        .resource-icon {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            color: #fff;
            margin-right: 20px;
            flex-shrink: 0;
        }

        .resource-icon.pdf {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }

        .resource-icon.excel {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        }

        .resource-icon.word {
            background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        }

        .resource-icon.zip {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }

        .resource-info {
            flex-grow: 1;
        }

        .resource-info h5 {
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 4px;
            font-size: 1.05rem;
        }

        .resource-info p {
            color: #64748b;
            font-size: 0.9rem;
            margin: 0;
        }

        .resource-meta {
            text-align: right;
            color: #94a3b8;
            font-size: 0.85rem;
        }

        .resource-meta strong {
            color: var(--primary);
            display: block;
            font-size: 0.9rem;
        }

        /* ========================================== */
        /* RESPONSIVE                                 */
        /* ========================================== */
        @media (max-width: 992px) {
            .docs-layout {
                grid-template-columns: 1fr;
            }

            .docs-sidebar {
                position: static;
                max-height: none;
            }

            .docs-sidebar ul {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 5px;
            }
        }

        @media (max-width: 768px) {
            .docs-header h1 {
                font-size: 2rem;
            }

            .docs-content {
                padding: 25px 20px;
            }

            .docs-section h2 {
                font-size: 1.4rem;
            }

            .docs-sidebar ul {
                grid-template-columns: 1fr;
            }

            .back-home-link {
                top: 20px;
                left: 20px;
                padding: 8px 15px;
                font-size: 0.85rem;
            }

            .docs-table {
                font-size: 0.85rem;
            }

            .docs-table th,
            .docs-table td {
                padding: 8px 10px;
            }

            .resource-card {
                flex-direction: column;
                text-align: center;
            }

            .resource-icon {
                margin-right: 0;
                margin-bottom: 15px;
            }

            .resource-meta {
                text-align: center;
                margin-top: 10px;
            }

            .step-list li {
                padding-left: 45px;
            }
        }