
        /* Fuentes modernas globales - Mejora visual */
        * {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            font-feature-settings: 'liga' 1, 'kern' 1;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        code, pre, .code-example pre {
            font-family: 'JetBrains Mono', 'Fira Code', 'Droid Sans Mono', monospace;
            font-feature-settings: 'liga' 1;
        }
        
        .separa_p {
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        .docs-nav {
            background: linear-gradient(135deg, #6D2478 0%, #8B2A8B 100%) !important;
            box-shadow: 0 4px 24px rgba(109, 36, 120, 0.25);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
           
        }
        
        /* Optimización del navbar para reducir espacio */
        .docs-nav .navbar-brand {
            padding: 5px 15px !important;
        }
        
        .docs-nav .navbar-brand img {
            max-height: 70px !important;
            margin-top: -20px !important;
        }
        
        .docs-nav .navbar-nav {
            margin: 0;
        }
        
        .docs-nav .navbar-nav > li {
            margin: 0;
        }
        
        .docs-nav .navbar-nav > li > a {
            color: #b9c8e0 !important;
            padding: 12px 10px !important;
            font-size: 13px !important;
            font-weight: 500;
            line-height: 1.2;
            white-space: nowrap;
            transition: color 0.2s ease;
            background: transparent !important;
        }
        
        .docs-nav .navbar-nav > li > a:hover {
            color: #fff !important;
            background: transparent !important;
        }
        
        /* Estilos para el dropdown de APIs */
        .docs-nav .dropdown > a {
            position: relative;
        }
        
        .docs-nav .dropdown-menu {
            background: linear-gradient(135deg, #6D2478 0%, #8B2A8B 100%) !important;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            margin-top: 5px;
            min-width: 220px;
        }
        
        .docs-nav .dropdown-menu > li > a {
            color: #b9c8e0 !important;
            padding: 10px 20px !important;
            font-size: 13px !important;
            transition: all 0.2s ease;
        }
        
        .docs-nav .dropdown-menu > li > a:hover,
        .docs-nav .dropdown-menu > li > a:focus {
            background: transparent !important;
            color: #fff !important;
        }
        
        .docs-nav .dropdown-menu > .active > a,
        .docs-nav .dropdown-menu > .active > a:hover,
        .docs-nav .dropdown-menu > .active > a:focus {
            background: transparent !important;
            color: #fff !important;
        }
        
        .docs-nav .dropdown-menu .divider {
            background-color: rgba(255, 255, 255, 0.2);
            margin: 8px 0;
        }
        
        .docs-nav .caret {
            border-top-color: #b9c8e0;
            border-bottom-color: #b9c8e0;
            margin-left: 5px;
        }
        
        .docs-nav .dropdown.open > a,
        .docs-nav .dropdown.open > a:hover,
        .docs-nav .dropdown.open > a:focus {
            background: transparent !important;
            color: #b9c8e0 !important;
        }
        
        /* Navbar activo - solo texto blanco */
        .docs-nav .navbar-nav > li.active > a {
            background: transparent !important;
            color: #fff !important;
            font-weight: 500;
            border: none !important;
        }
        
        /* Responsive para pantallas medianas */
        @media (min-width: 992px) and (max-width: 1199px) {
            .docs-nav .navbar-nav > li > a {
                padding: 12px 8px !important;
                font-size: 12px !important;
            }
        }
        
        /* Para pantallas grandes */
        @media (min-width: 1200px) {
            .docs-nav .navbar-nav > li > a {
                padding: 12px 12px !important;
                font-size: 13.5px !important;
            }
        }
        
        /* Mobile - mostrar nombres completos */
        @media (max-width: 991px) {
            .docs-nav .navbar-brand img {
                max-height: 55px !important;
                margin-top: -8px !important;
            }
            
            .docs-nav .navbar-nav > li > a {
                padding: 10px 15px !important;
                font-size: 14px !important;
            }
            
            .docs-nav .dropdown-menu {
                background: rgba(109, 36, 120, 0.98) !important;
                position: static !important;
                float: none;
                width: 100%;
                margin-top: 0;
                border: none;
                border-radius: 0;
                box-shadow: none;
            }
        }
        
        /* CSS Custom Properties para efectos modernos */
        :root {
            --header-primary: #de007e;
            --header-secondary: #97095a;
            --header-accent: #FFB84D;
            --header-dark: #E67E00;
            --header-light: #FFD700;
            --wave-offset: 0px;
            --morph-shape: 0%;
            --glass-opacity: 0.1;
            --particle-size: 2px;
        }
        
        .docs-header {
            background: 
                linear-gradient(135deg, var(--header-primary) 0%, var(--header-secondary) 50%, var(--header-accent) 100%),
                radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 60%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
            color: white;
            padding: 60px 0;
            overflow: hidden;
            background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
            background-size: cover;
            background-position: center;
            background-blend-mode: overlay, overlay, overlay;
            box-shadow: 
                inset 0 -1px 0 rgba(255, 255, 255, 0.1);
            animation: 
                headerGlow 8s ease-in-out infinite alternate,
                imageFloat 15s ease-in-out infinite;
        }
        
        /* Efecto Glassmorphism con backdrop-filter */
        .docs-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                linear-gradient(45deg, 
                    rgba(255, 255, 255, var(--glass-opacity)) 0%, 
                    rgba(255, 255, 255, var(--glass-opacity)) 100%);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            pointer-events: none;
            /* animation: glassMorph 6s ease-in-out infinite; */
            mask: 
                radial-gradient(circle at 30% 20%, rgba(0,0,0,0.8) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0,0,0,0.6) 0%, transparent 50%);
            -webkit-mask: 
                radial-gradient(circle at 30% 20%, rgba(0,0,0,0.8) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0,0,0,0.6) 0%, transparent 50%);
        }
        
        /* Efecto Wave moderno sin espacios en blanco */
        .docs-header::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: 
                linear-gradient(90deg, 
                    rgba(255, 255, 255, 0.1) 0%,
                    rgba(255, 255, 255, 0.15) 50%,
                    rgba(255, 255, 255, 0.1) 100%);
            border-radius: 0 0 30px 30px;
            animation: waveMotion 4s ease-in-out infinite;
            pointer-events: none;
            z-index: 1;
        }
        
        .docs-header .container {
            position: relative;
            z-index: 2;
        }
        
        /* Contenido del header optimizado para rendimiento */
        .docs-header h1 {
            color: white;
            text-shadow: 
                0 2px 4px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 255, 255, 0.2);
            font-weight: 600;
            margin-bottom: 20px;
        }
        
        .docs-header p {
            color: rgba(255, 255, 255, 0.9);
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
            font-size: 1.2em;
            line-height: 1.6;
            max-width: 800px;
        }
        .section-title {
            color: #de007e;
            font-weight: 600;
            position: relative;
            padding-bottom: 12px;
            letter-spacing: -0.02em;
            line-height: 1.3;
        }
        
        .table-custom {
            border: 2px solid #0b66a5;
            margin: 24px 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 6px 20px rgba(11, 102, 165, 0.12);
            transition: box-shadow 0.3s ease;
        }
        
        .table-custom:hover {
            box-shadow: 0 8px 28px rgba(11, 102, 165, 0.18);
        }
        .table-custom th {
            background: linear-gradient(135deg, #0b66a5 0%, #1e88e5 100%);
            color: white;
            font-weight: 600;
            padding: 18px 16px;
            text-transform: uppercase;
            font-size: 0.9em;
            letter-spacing: 0.6px;
            font-feature-settings: 'kern' 1;
        }
        
        .table-custom td {
            padding: 16px;
            vertical-align: top;
            border-bottom: 1px solid #f0f0f0;
            line-height: 1.5;
        }
        
        .table-custom tbody tr:nth-child(even) {
            background: linear-gradient(135deg, #f9f9f9 0%, #f5f5f5 100%);
        }
        
        .table-custom tbody tr:hover {
            background: linear-gradient(135deg, #e8f4f8 0%, #e3f2fd 100%);
            transform: translateY(-2px);
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(11, 102, 165, 0.15);
        }
        
        .code-example {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border: 1px solid #e9ecef;
            border-radius: 16px;
            padding: 24px;
            margin: 24px 0;
            box-shadow: 0 6px 24px rgba(0,0,0,0.06);
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .code-example:hover {
            box-shadow: 0 8px 32px rgba(0,0,0,0.08);
            transform: translateY(-2px);
        }
        
        .code-example::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #de007e, #97095a);
            border-radius: 16px 16px 0 0;
        }
       
        @media (max-width: 768px) {
            .navbar-brand img {
                max-height: 35px;
            }
        }
        
        /* Botón Volver al Principio - Mejora visual */
        .back-to-top {
            position: fixed;
            bottom: 32px;
            right: 32px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: none;
            z-index: 10000;
            box-shadow: 0 6px 24px rgba(222, 0, 126, 0.4);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
        }
        
        .back-to-top:hover {
            background: linear-gradient(135deg, #b8005a 0%, #97095a 100%);
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 12px 40px rgba(222, 0, 126, 0.5);
        }
        
        .back-to-top:active {
            transform: translateY(-2px) scale(1.02);
        }
        
        @media (max-width: 768px) {
            .back-to-top {
                bottom: 24px;
                right: 24px;
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
        }
        
        /* Panel de Pruebas - Mejora visual */
        .test-panel {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border: 1px solid #dee2e6;
            border-radius: 20px;
            padding: 32px;
            margin: 32px 0;
            box-shadow: 0 10px 40px rgba(0,0,0,0.08);
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .test-panel:hover {
            box-shadow: 0 12px 48px rgba(0,0,0,0.12);
            transform: translateY(-2px);
        }
        
        .test-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, #de007e, #97095a, #6D2478);
            border-radius: 20px 20px 0 0;
        }
        
        .test-form {
            margin-bottom: 24px;
        }
        
        .test-form label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 10px;
            display: block;
            font-size: 14px;
            letter-spacing: 0.02em;
        }
        
        .test-form input, .test-form select, .test-form textarea {
            width: 100%;
            padding: 14px 18px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            margin-bottom: 18px;
            font-size: 14px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: #ffffff;
            font-family: inherit;
        }
        
        .test-form input:focus, .test-form select:focus, .test-form textarea:focus {
            border-color: #de007e;
            box-shadow: 0 0 0 4px rgba(222, 0, 126, 0.12);
            outline: none;
            transform: translateY(-1px);
        }
        
        .test-form textarea {
            height: 220px;
            font-family: 'JetBrains Mono', 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.5;
            resize: vertical;
        }
        
        .btn-test {
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            border: none;
            padding: 14px 28px;
            border-radius: 10px;
            cursor: pointer;
            margin-right: 14px;
            margin-bottom: 14px;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(222, 0, 126, 0.3);
            letter-spacing: 0.02em;
        }
        
        .btn-test:hover {
            background: linear-gradient(135deg, #b8005a 0%, #97095a 100%);
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(222, 0, 126, 0.4);
        }
        
        .btn-test:active {
            transform: translateY(-1px);
        }
        
        .btn-test:disabled {
            background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        .response-panel {
            background: #ffffff;
            border: 2px solid #dee2e6;
            border-radius: 12px;
            padding: 28px;
            margin-top: 24px;
            min-height: 160px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .response-panel:hover {
            box-shadow: 0 6px 24px rgba(0,0,0,0.12);
        }
        
        .response-panel h4 {
            color: #495057;
            margin-bottom: 18px;
            font-weight: 700;
            border-bottom: 3px solid #de007e;
            padding-bottom: 10px;
            letter-spacing: 0.02em;
        }
        
        .response-panel pre {
            background: #2d3748;
            border: 1px solid #4a5568;
            border-radius: 8px;
            padding: 24px;
            margin: 0;
            font-size: 13px;
            line-height: 1.6;
            color: #ffffff;
            overflow-x: auto;
            white-space: pre-wrap;
            word-wrap: break-word;
            font-weight: 500;
            font-family: 'JetBrains Mono', 'Fira Code', monospace;
        }
        
        .response-success {
            border-left: 5px solid #28a745;
            background: linear-gradient(135deg, #f8fff9 0%, #f0fff4 100%);
        }
        
        .response-error {
            border-left: 5px solid #dc3545;
            background: linear-gradient(135deg, #fff8f8 0%, #ffeaea 100%);
        }
        
        .response-success h4 {
            color: #28a745;
        }
        
        .response-error h4 {
            color: #dc3545;
        }
        
        .loading {
            display: none;
            text-align: center;
            padding: 20px;
        }
        
        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #de007e;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            animation: spin 1s linear infinite;
            margin: 0 auto;
            box-shadow: 0 2px 8px rgba(222, 0, 126, 0.2);
        }
        
        @keyframes spin {
          0% { transform: rotate(0deg); }
          100% { transform: rotate(360deg); }
        }
        
        @keyframes slideInRight {
          from {
            transform: translateX(100%);
            opacity: 0;
          }
          to {
            transform: translateX(0);
            opacity: 1;
          }
        }
        
        @keyframes slideOutRight {
          from {
            transform: translateX(0);
            opacity: 1;
          }
          to {
            transform: translateX(100%);
            opacity: 0;
          }
        }
        
        /* Estilos adicionales para mejoras visuales */
        .btn-loading {
          position: relative;
          overflow: hidden;
        }
        
        .btn-loading::after {
          content: '';
          position: absolute;
          top: 0;
          left: -100%;
          width: 100%;
          height: 100%;
          background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
          animation: loading-shimmer 1.5s infinite;
        }
        
        @keyframes loading-shimmer {
          0% { left: -100%; }
          100% { left: 100%; }
        }
        
        .loading-animation {
          animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
          0%, 100% { opacity: 1; }
          50% { opacity: 0.7; }
        }
        
        /* Estilos para expandir/contraer bloques de código */
        .code-block-container {
            position: relative;
        }
        
        .code-toggle-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            border: none;
            border-radius: 50%;
            width: 28px;
            height: 28px;
            font-size: 14px;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(222, 0, 126, 0.3);
        }
        
        .code-toggle-btn:hover {
            background: linear-gradient(135deg, #b8005a 0%, #97095a 100%);
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 4px 16px rgba(222, 0, 126, 0.4);
        }
        
        .code-toggle-btn:active {
            transform: translateY(0);
        }
        
        .code-content {
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .code-content.collapsed {
            max-height: 100px;
            position: relative;
        }
        
        .code-content.collapsed::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: linear-gradient(transparent, #696868);
            pointer-events: none;
        }
        
        .code-content.expanded {
            max-height: none;
        }
        
        /* Estilos para expandir/contraer bloques de código - Mejora visual */
        .code-block-container {
            position: relative;
        }
        
        .code-toggle-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            font-size: 16px;
            cursor: pointer;
            z-index: 10;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(222, 0, 126, 0.3);
            font-weight: 600;
        }
        
        .code-toggle-btn:hover {
            background: linear-gradient(135deg, #b8005a 0%, #97095a 100%);
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 6px 20px rgba(222, 0, 126, 0.4);
        }
        
        .code-toggle-btn:active {
            transform: translateY(0) scale(1.05);
        }
        
        .code-content {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
        }
        
        .code-content.collapsed {
            max-height: 100px !important;
            position: relative;
        }
        
        .code-content.collapsed::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 30px;
            background: linear-gradient(transparent, #696868);
            pointer-events: none;
        }
        
        .code-content.expanded {
            max-height: none !important;
            overflow: visible;
        }
        
        .code-example {
            position: relative;
        }
        
        .code-example pre {
            margin: 0;
        }
        
        /* ===== ANIMACIONES MODERNAS PARA EL HEADER ===== */
        
        /* Animación de morphing suave sin clip-path */
        @keyframes headerMorph {
            0%, 100% {
                transform: scale(1) rotate(0deg);
            }
            25% {
                transform: scale(1.01) rotate(0.5deg);
            }
            50% {
                transform: scale(1.005) rotate(-0.3deg);
            }
            75% {
                transform: scale(1.015) rotate(0.8deg);
            }
        }
        
        /* Animación de brillo dinámico simplificada */
        @keyframes headerGlow {
            0% {
                box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
            }
            100% {
                box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
            }
        }
        
        /* Animación sutil de imagen de fondo */
        @keyframes imageFloat {
            0%, 100% {
                background-position: center center;
            }
            25% {
                background-position: 45% 55%;
            }
            50% {
                background-position: 55% 45%;
            }
            75% {
                background-position: 48% 52%;
            }
        }
        
        /* Animación Glassmorphism */
        @keyframes glassMorph {
            0%, 100% {
                --glass-opacity: 0.1;
                backdrop-filter: blur(20px) saturate(180%);
                -webkit-backdrop-filter: blur(20px) saturate(180%);
            }
            50% {
                --glass-opacity: 0.2;
                backdrop-filter: blur(25px) saturate(200%);
                -webkit-backdrop-filter: blur(25px) saturate(200%);
            }
        }
        
        /* Animación Wave Motion suave */
        @keyframes waveMotion {
            0%, 100% {
                transform: translateY(0px) scaleY(1);
                opacity: 0.8;
            }
            25% {
                transform: translateY(-5px) scaleY(1.1);
                opacity: 0.9;
            }
            50% {
                transform: translateY(-10px) scaleY(1.2);
                opacity: 1;
            }
            75% {
                transform: translateY(-3px) scaleY(1.05);
                opacity: 0.85;
            }
        }
        
        /* Animaciones de texto eliminadas para mejor rendimiento */
        
        /* Partículas simplificadas para mejor rendimiento */
        .docs-header .particles {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            z-index: 1;
            opacity: 0.3;
        }
        
        .docs-header .particle {
            position: absolute;
            width: 3px;
            height: 3px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            animation: particleFloat 12s ease-in-out infinite;
            animation-delay: calc(var(--delay) * 0.2s);
        }
        
        @keyframes particleFloat {
            0%, 100% {
                transform: translateY(0px);
                opacity: 0.3;
            }
            50% {
                transform: translateY(-15px);
                opacity: 0.8;
            }
        }
        
        /* Estilos para scroll suave mejorado */
        .sidebar a.scrolling {
            background: linear-gradient(135deg, rgba(222, 0, 126, 0.15) 0%, rgba(151, 9, 90, 0.15) 100%) !important;
            color: #de007e !important;
            transform: translateX(4px);
            transition: all 0.3s ease;
            box-shadow: none;
            border-radius: 6px;
            border-left: 3px solid #de007e;
            font-weight: 600;
        }
        
        .navbar-nav a.scrolling {
            background: transparent !important;
            color: #fff !important;
            transform: none;
            transition: color 0.2s ease;
            box-shadow: none;
            border-radius: 0;
            padding: 12px 10px !important;
        }
        
        .sidebar a.scrolling:hover,
        .navbar-nav a.scrolling:hover {
            transform: translateX(4px);
            box-shadow: none;
        }
        
        .navbar-nav a.scrolling:hover {
            transform: none;
        }
        
        /* Indicador de progreso de lectura en el sidebar */
        .sidebar {
            position: relative;
        }
        
        .sidebar::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 3px;
            height: var(--scroll-progress, 0%);
            background: linear-gradient(180deg, #de007e 0%, #97095a 100%);
            border-radius: 2px;
            transition: height 0.3s ease;
            z-index: 1;
        }
        
        /* Mejora visual para enlaces del sidebar */
        .sidebar .nav li a {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 6px;
            margin: 2px 0;
            padding: 8px 12px;
            position: relative;
            overflow: hidden;
        }
        
        .sidebar .nav li a::before {
            content: '';
            position: absolute;
            left: -100%;
            top: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(222, 0, 126, 0.1), transparent);
            transition: left 0.5s ease;
        }
        
        .sidebar .nav li a:hover::before {
            left: 100%;
        }
        
        .sidebar .nav li a:hover {
            background: linear-gradient(135deg, rgba(222, 0, 126, 0.05) 0%, rgba(151, 9, 90, 0.05) 100%);
            transform: translateX(4px);
            color: #de007e;
        }
        
        .sidebar .nav li.active a {
            background: linear-gradient(135deg, rgba(222, 0, 126, 0.1) 0%, rgba(151, 9, 90, 0.1) 100%);
            color: #de007e;
            font-weight: 600;
            border-left: 3px solid #de007e;
        }

        /* Responsive para efectos modernos */
        @media (max-width: 768px) {
            .docs-header {
                padding: 60px 0;
                animation-duration: 10s, 6s, 15s;
            }
            
            .docs-header h1 {
                transform: translateZ(30px) rotateX(3deg);
                font-size: 2.5rem;
            }
            
            .docs-header p {
                transform: translateZ(20px) rotateX(-1deg);
                padding: 15px;
                font-size: 1.1rem;
            }
            
            .docs-header .container {
                perspective: 500px;
            }
        }
        
        /* Optimización para dispositivos con menos potencia */
        @media (prefers-reduced-motion: reduce) {
            .docs-header,
            .docs-header::before,
            .docs-header::after,
            .docs-header .container,
            .docs-header h1,
            .docs-header p {
                animation: none;
            }
            
            .docs-header {
                background: linear-gradient(135deg, var(--header-primary) 0%, var(--header-secondary) 100%);
            }
        }

        /* === ESTILOS DEL MODAL DE PANEL DE PRUEBAS DE ENVÍO === */
        
        /* Card para ejemplos de código */
        .code-examples-card {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            border: 1px solid #e9ecef;
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 25px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }
        
        .code-examples-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #de007e, #97095a);
            border-radius: 20px 20px 0 0;
        }
        
        /* Botón flotante del panel de envío */
        .panel-envio-btn {
            position: fixed;
            bottom: 30px;
            right: 100px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            z-index: 10000;
            box-shadow: 0 8px 25px rgba(222, 0, 126, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .panel-envio-btn:hover {
            background: linear-gradient(135deg, #b8005a 0%, #97095a 100%);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(222, 0, 126, 0.4);
        }
        
        .panel-envio-btn:active {
            transform: translateY(-1px) scale(1.02);
        }
        
        /* Botón flotante Visor JSON */
        .json-viewer-btn {
            position: fixed;
            bottom: 30px;
            right: 168px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            z-index: 10000;
            box-shadow: 0 8px 25px rgba(222, 0, 126, 0.3);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-family: 'JetBrains Mono', 'Fira Code', 'Droid Sans Mono', monospace;
        }
        
        .json-viewer-btn:hover {
            background: linear-gradient(135deg, #b8005a 0%, #97095a 100%);
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(222, 0, 126, 0.4);
        }
        
        .json-viewer-btn:active {
            transform: translateY(-1px) scale(1.02);
        }
        
        /* Overlay del modal */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: none;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 20px;
            box-sizing: border-box;
        }
        
        .modal-overlay.show {
            display: flex;
            opacity: 1;
            align-items: center;
            justify-content: center;
            flex-direction: column;
        }
        
        /* Contenedor del modal */
        .modal-container {
            background: white;
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
            max-width: 85vw;
            max-height: 85vh;
            width: 1100px;
            overflow: hidden;
            transform: scale(0.9) translateY(20px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            margin: auto;
        }
        
        .modal-overlay.show .modal-container {
            transform: scale(1) translateY(0);
        }
        
        /* Header del modal */
        .modal-header {
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            padding: 20px 25px;
            border-radius: 15px 15px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 15px rgba(222, 0, 126, 0.3);
        }
        
        .modal-header-content {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .modal-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .modal-icon i {
            font-size: 18px;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            transition: transform 0.3s ease;
        }
        
        .modal-icon:hover i {
            transform: rotate(90deg);
        }
        
        .modal-header h2 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 28px;
            cursor: pointer;
            padding: 0;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }
        
        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }
        
        /* Contenido del modal */
        .modal-content {
            padding: 20px;
            max-height: calc(85vh - 80px);
            overflow-y: auto;
        }
        
        /* === SELECTOR DE MÉTODOS DE ENVÍO === */
        
        .shipping-methods-container {
            margin-bottom: 0;
        }
        
        .shipping-methods-container h3 {
            color: #495057;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
            position: relative;
            padding-bottom: 15px;
        }
        
        .shipping-methods-container h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, #de007e, #97095a);
            border-radius: 2px;
        }
        
        .code-examples-note {
            color: #6c757d;
            font-size: 13px;
            text-align: center;
            margin-bottom: 20px;
            padding: 8px 15px;
            background: rgba(108, 117, 125, 0.1);
            border-radius: 8px;
            border-left: 3px solid #6c757d;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-style: italic;
        }
        
        .code-examples-note i {
            color: #6c757d;
            font-size: 14px;
        }
        
        /* Tabs de métodos de envío */
        .shipping-tabs {
            display: flex;
            gap: 4px;
            margin-bottom: 20px;
            background: #f8f9fa;
            padding: 12px;
            border-radius: 10px;
            overflow-x: auto;
            min-height: 80px;
        }
        
        .shipping-tab {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            font-weight: 500;
            color: #666;
            min-height: 56px;
            justify-content: center;
        }
        
        .shipping-tab:hover {
            background: rgba(222, 0, 126, 0.1);
            color: #de007e;
        }
        
        .shipping-tab.active {
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(222, 0, 126, 0.3);
        }
        
        .tab-icon {
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 6px;
        }
        
        .tab-icon i {
            font-size: 24px;
            transition: all 0.3s ease;
            opacity: 0.7;
        }
        
        .shipping-tab:hover .tab-icon i {
            transform: scale(1.1);
            opacity: 0.9;
        }
        
        .shipping-tab.active .tab-icon i {
            transform: scale(1.05);
            opacity: 1;
            color: white;
        }
        
        .tab-text {
            font-size: 14px;
            font-weight: 600;
        }
        
        /* === SUB-MÉTODOS === */
        
        .sub-methods-container {
            margin-top: 20px;
            margin-bottom: 20px;
        }
        
        .sub-methods-tabs {
            display: flex;
            gap: 6px;
            background: #f1f3f4;
            padding: 8px;
            border-radius: 10px;
            overflow-x: auto;
            flex-wrap: wrap;
            margin: 0;
        }
        
        .sub-method-tab {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            padding: 10px 12px;
            background: transparent;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            font-weight: 500;
            color: #666;
            font-size: 13px;
            min-height: 50px;
            min-width: 80px;
        }
        
        .sub-method-tab:hover {
            background: rgba(222, 0, 126, 0.1);
            color: #de007e;
        }
        
        .sub-method-tab.active {
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(222, 0, 126, 0.3);
        }
        
        .sub-method-icon {
            font-size: 14px;
            margin-bottom: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .sub-method-icon i {
            font-size: 18px;
            transition: all 0.3s ease;
            opacity: 0.7;
        }
        
        .sub-method-tab:hover .sub-method-icon i {
            transform: scale(1.1);
            opacity: 0.9;
        }
        
        .sub-method-tab.active .sub-method-icon i {
            transform: scale(1.05);
            opacity: 1;
            color: white;
        }
        
        .sub-method-text {
            font-size: 12px;
            font-weight: 600;
            text-align: center;
            line-height: 1.2;
        }
        
        /* Contenedor de código de envío */
        .shipping-code-container {
            background: #1e1e1e;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }
        
        .shipping-code-header {
            background: #2d2d2d;
            padding: 12px 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #404040;
        }
        
        .method-name {
            color: #fff;
            font-weight: 600;
            font-size: 14px;
        }
        
        .code-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }
        
        .expand-code-btn {
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(222, 0, 126, 0.3);
        }
        
        .expand-code-btn:hover {
            background: linear-gradient(135deg, #b8005a 0%, #97095a 100%);
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 6px 20px rgba(222, 0, 126, 0.4);
        }
        
        .expand-code-btn:active {
            transform: translateY(0) scale(1.05);
        }
        
        .expand-icon {
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .copy-code-btn {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            border: none;
            border-radius: 50%;
            width: 32px;
            height: 32px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
            position: relative;
        }
        
        .copy-code-btn:hover {
            background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
            transform: translateY(-2px) scale(1.1);
            box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        }
        
        .copy-code-btn:active {
            transform: translateY(0) scale(1.05);
        }
        
        .copy-code-btn i {
            font-size: 14px;
        }
        
        .copy-indicator {
            position: absolute;
            top: -2px;
            right: -2px;
            background: #28a745;
            color: white;
            border-radius: 50%;
            width: 12px;
            height: 12px;
            font-size: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            animation: copyPulse 0.3s ease-in-out;
        }
        
        @keyframes copyPulse {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.2); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .shipping-code-content {
            padding: 15px;
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .shipping-code-content.collapsed {
            max-height: 100px;
            padding: 10px 15px;
        }
        
        .shipping-code-content.collapsed pre {
            max-height: 60px;
            overflow: hidden;
            position: relative;
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
            pointer-events: auto !important;
        }
        
        .shipping-code-content.collapsed pre::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 20px;
            background: linear-gradient(transparent, #1e1e1e);
            pointer-events: none !important;
            z-index: 1;
        }
        
        /* Asegurar que el código sea seleccionable incluso colapsado */
        .shipping-code-content.collapsed pre code {
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
            pointer-events: auto !important;
            position: relative;
            z-index: 2;
        }
        
        .shipping-code-content pre {
            background: #000000 !important;
            color: #ffffff !important;
            font-family: 'JetBrains Mono', 'Consolas', monospace;
            font-size: 13px;
            line-height: 1.5;
            margin: 0;
            overflow-x: auto;
            padding: 15px;
            border-radius: 6px;
            border: 1px solid #333333;
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
            -webkit-touch-callout: default !important;
            -webkit-tap-highlight-color: transparent !important;
        }
        
        .shipping-code-content code {
            background: transparent !important;
            color: #ffffff !important;
            padding: 0;
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
        }
        
        /* Forzar seleccionabilidad en todos los elementos del código */
        .shipping-code-content * {
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
        }
        
        /* Asegurar que el código sea seleccionable incluso con otros estilos */
        #shippingCodeDisplay,
        #shippingCodeDisplay *,
        #shippingCodeContent,
        #shippingCodeContent * {
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
            -webkit-touch-callout: default !important;
            -webkit-tap-highlight-color: transparent !important;
            pointer-events: auto !important;
        }
        
        /* Solución más agresiva para la selección */
        .modal-container #shippingCodeDisplay,
        .modal-container #shippingCodeDisplay code,
        .modal-container #shippingCodeDisplay pre,
        .modal-container #shippingCodeContent,
        .modal-container #shippingCodeContent pre,
        .modal-container #shippingCodeContent code {
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
            pointer-events: auto !important;
            -webkit-touch-callout: default !important;
            -webkit-tap-highlight-color: transparent !important;
        }
        
        /* Forzar selección en el modal */
        .modal-overlay #shippingCodeDisplay,
        .modal-overlay #shippingCodeDisplay *,
        .modal-overlay #shippingCodeContent,
        .modal-overlay #shippingCodeContent * {
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
            pointer-events: auto !important;
        }
        
        /* SOLUCIÓN DEFINITIVA - Sobrescribir TODO */
        body #shippingCodeDisplay,
        body #shippingCodeDisplay *,
        body #shippingCodeContent,
        body #shippingCodeContent *,
        html #shippingCodeDisplay,
        html #shippingCodeDisplay *,
        html #shippingCodeContent,
        html #shippingCodeContent * {
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
            pointer-events: auto !important;
            -webkit-touch-callout: default !important;
            -webkit-tap-highlight-color: transparent !important;
        }
        
        /* Forzar selección en TODOS los estados */
        .shipping-code-content.collapsed #shippingCodeDisplay,
        .shipping-code-content.collapsed #shippingCodeDisplay *,
        .shipping-code-content.expanded #shippingCodeDisplay,
        .shipping-code-content.expanded #shippingCodeDisplay * {
            user-select: text !important;
            -webkit-user-select: text !important;
            -moz-user-select: text !important;
            -ms-user-select: text !important;
            cursor: text !important;
            pointer-events: auto !important;
        }
        
        .shipping-code-content pre::selection,
        .shipping-code-content code::selection {
            background: #de007e;
            color: white;
        }
        
        .shipping-code-content pre::-moz-selection,
        .shipping-code-content code::-moz-selection {
            background: #de007e;
            color: white;
        }
        
        /* === PANEL DE INTEGRACIÓN === */
        
        .integration-panel {
            margin-top: 30px;
            padding: 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 20px;
            border: 1px solid #e9ecef;
            
            overflow: hidden;
        }
        
        .integration-header {
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            padding: 25px 30px;
            display: flex;
            align-items: center;
            gap: 20px;
            color: white;
        }
        
        .integration-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
        }
        
        .integration-icon i {
            font-size: 22px;
            color: white;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .integration-title h3 {
            
            font-size: 24px;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .integration-title p {
            margin: 0;
            font-size: 15px;
            opacity: 0.9;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }
        
        .test-panel {
            padding: 30px;
            background: white;
        }
        
        .integration-card {
            background: white;
            
            padding: 25px;
           
            border: 1px solid #f0f0f0;
            
        }
        
        .test-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        .form-group label {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }
        
        .form-group input,
        .form-group select,
        .form-group textarea {
            padding: 12px 15px;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: #fafafa;
        }
        
        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #de007e;
            background: white;
            box-shadow: 0 0 0 3px rgba(222, 0, 126, 0.1);
        }
        
        .form-group textarea {
            min-height: 120px;
            resize: vertical;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
        }
        
        /* Estilos específicos para el textarea de JSON */
        #modalJsonData {
            background: #2d3748 !important;
            color: #ffffff !important;
            border: 2px solid #4a5568 !important;
            font-family: 'JetBrains Mono', 'Consolas', 'Monaco', monospace !important;
            font-size: 13px !important;
            line-height: 1.5 !important;
        }
        
        #modalJsonData:focus {
            background: #2d3748 !important;
            color: #ffffff !important;
            border-color: #de007e !important;
            box-shadow: 0 0 0 3px rgba(222, 0, 126, 0.2) !important;
        }
        
        #modalJsonData::placeholder {
            color: #a0aec0 !important;
            opacity: 0.8;
        }
        
        .form-actions {
            display: flex;
            gap: 15px;
            margin-top: 20px;
            flex-wrap: wrap;
        }
        
        .btn-test {
            padding: 12px 20px;
            border: none;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
        }
        
        .btn-secondary {
            background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
        }
        
        .btn-secondary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
        }
        
        .btn-success {
            background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
            color: white;
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
        }
        
        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        }
        
        .loading {
            text-align: center;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 15px;
            margin: 20px 0;
        }
        
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #de007e;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 15px;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .response-panel {
            background: #1e1e1e;
            border-radius: 15px;
            padding: 25px;
            margin-top: 20px;
            border: 1px solid #333;
        }
        
        .response-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #333;
        }
        
        .response-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 35px;
            height: 35px;
            background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
            border-radius: 50%;
            color: white;
        }
        
        .response-icon i {
            font-size: 16px;
        }
        
        .response-header h4 {
            margin: 0;
            color: #28a745;
            font-size: 18px;
            font-weight: 600;
        }
        
        .response-panel pre {
            background: #2d2d2d;
            color: #f8f8f2;
            padding: 20px;
            border-radius: 10px;
            overflow-x: auto;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            line-height: 1.5;
            border: 1px solid #444;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .modal-container {
                width: 95vw;
                margin: 10px;
                max-height: 90vh;
            }
            
            .modal-content {
                padding: 15px;
            }
            
            .code-examples-card {
                padding: 20px;
                margin-bottom: 20px;
            }
            
            .shipping-methods-container h3 {
                font-size: 18px;
                margin-bottom: 15px;
            }
            
            .code-examples-note {
                font-size: 12px;
                padding: 6px 12px;
                margin-bottom: 15px;
            }
            
            .form-group textarea {
                min-height: 100px;
                font-size: 12px;
            }
            
            #modalJsonData {
                font-size: 12px !important;
            }
            
            .modal-header {
                padding: 15px 20px;
            }
            
            .modal-header-content {
                gap: 12px;
            }
            
            .modal-icon {
                width: 35px;
                height: 35px;
            }
            
            .modal-icon i {
                font-size: 16px;
            }
            
            .modal-header h2 {
                font-size: 20px;
            }
            
            .shipping-tabs {
                flex-wrap: wrap;
                padding: 12px;
                min-height: 80px;
                gap: 6px;
            }
            
            .shipping-tab {
                flex: 1;
                min-width: 90px;
                justify-content: center;
                padding: 10px 6px;
                min-height: 55px;
                margin: 3px;
                box-sizing: border-box;
            }
            
            .tab-text {
                font-size: 11px;
            }
            
            .tab-icon i {
                font-size: 18px;
            }
            
            .shipping-tab.active .tab-icon i {
                transform: none;
                opacity: 1;
                color: white;
            }
            
            .shipping-tab:hover .tab-icon i {
                transform: none;
                opacity: 0.9;
            }
            
            .sub-methods-tabs {
                flex-wrap: wrap;
                gap: 8px;
                padding: 12px;
                margin: 10px 0;
            }
            
            .sub-method-tab {
                flex: 1;
                min-width: 90px;
                padding: 12px 8px;
                min-height: 55px;
                margin: 3px;
                box-sizing: border-box;
                border-radius: 6px;
                font-size: 13px;
            }
            
            .sub-method-icon {
                margin-bottom: 4px;
            }
            
            .sub-method-icon i {
                font-size: 16px;
            }
            
            .sub-method-tab.active .sub-method-icon i {
                transform: none;
                opacity: 1;
                color: white;
            }
            
            .sub-method-tab:hover .sub-method-icon i {
                transform: none;
                opacity: 0.9;
            }
            
            .sub-method-text {
                font-size: 11px;
                font-weight: 600;
                line-height: 1.2;
            }
            
            .panel-envio-btn {
                bottom: 20px;
                right: 80px;
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
            
            .json-viewer-btn {
                bottom: 20px;
                right: 140px;
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
            
            /* Panel de Integración Responsive */
            .integration-header {
                padding: 20px 25px;
                gap: 15px;
            }
            
            .integration-icon {
                width: 45px;
                height: 45px;
            }
            
            .integration-icon i {
                font-size: 20px;
            }
            
            .integration-title h3 {
                font-size: 20px;
            }
            
            .integration-title p {
                font-size: 14px;
            }
            
            .test-panel {
                padding: 20px;
            }
            
            .integration-card {
                padding: 20px;
                margin-bottom: 15px;
            }
            
            .form-row {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .form-actions {
                flex-direction: column;
                gap: 10px;
            }
            
            .btn-test {
                justify-content: center;
                padding: 14px 20px;
            }
        }
        
        /* ===== MODAL LATERAL DERECHO - VISOR JSON ===== */
        
        .json-viewer-modal {
            position: fixed !important;
            top: 0 !important;
            right: -450px;
            width: 450px;
            height: 100vh;
            background: #f7f7f7;
            border-left: 2px solid #de007e;
            box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
            z-index: 9999 !important;
            display: flex;
            flex-direction: column;
            transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            visibility: visible !important;
        }
        
        .json-viewer-modal.json-viewer-open {
            right: 0;
        }
        
        .json-viewer-header {
            background: linear-gradient(135deg, #de007e 0%, #97095a 100%);
            color: white;
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 10;
        }
        
        /* Tabs para alternar entre JSON y XML */
        .json-viewer-tabs {
            display: flex;
            background: #f8f9fa;
            border-bottom: 2px solid #de007e;
            padding: 0;
            margin: 0;
        }
        
        .json-viewer-tab {
            flex: 1;
            padding: 12px 20px;
            background: transparent;
            border: none;
            border-bottom: 3px solid transparent;
            color: #666;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .json-viewer-tab:hover {
            background: rgba(222, 0, 126, 0.05);
            color: #de007e;
        }
        
        .json-viewer-tab.active {
            background: rgba(222, 0, 126, 0.1);
            color: #de007e;
            border-bottom-color: #de007e;
            font-weight: 600;
        }
        
        .json-viewer-tab i {
            font-size: 16px;
        }
        
        /* Paneles de contenido */
        .viewer-panel {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 20px;
            background: #ffffff;
        }
        
        .viewer-panel::-webkit-scrollbar {
            width: 8px;
        }
        
        .viewer-panel::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        
        .viewer-panel::-webkit-scrollbar-thumb {
            background: #de007e;
            border-radius: 4px;
        }
        
        .viewer-panel::-webkit-scrollbar-thumb:hover {
            background: #97095a;
        }
        
        .json-viewer-title {
            margin: 0;
            font-size: 20px;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
            letter-spacing: 0.02em;
        }
        
        .json-viewer-close {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 24px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 0;
            line-height: 1;
            font-weight: 600;
        }
        
        .json-viewer-close:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1) rotate(90deg);
        }
        
        .json-viewer-close:active {
            transform: scale(0.95) rotate(90deg);
        }
        
        .json-viewer-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: #ffffff;
        }
        
        .json-viewer-pre {
            margin: 0;
            padding: 0;
            background: transparent !important;
            border: none !important;
            overflow-x: auto;
        }
        
        .json-viewer-code {
            font-family: 'JetBrains Mono', 'Fira Code', 'Droid Sans Mono', 'Consolas', 'Monaco', monospace;
            font-size: 13px;
            line-height: 1.6;
            color: #2d3748;
            background: transparent !important;
            padding: 0;
            white-space: pre;
            word-wrap: normal;
            overflow-x: auto;
            display: block;
        }
        
        /* Estilos para resaltado de sintaxis JSON (si se usa highlight.js) */
        .json-viewer-code .hljs-keyword {
            color: #de007e;
            font-weight: 600;
        }
        
        .json-viewer-code .hljs-string {
            color: #28a745;
        }
        
        .json-viewer-code .hljs-number {
            color: #007bff;
        }
        
        .json-viewer-code .hljs-literal {
            color: #dc3545;
        }
        
        .json-viewer-code .hljs-punctuation {
            color: #6c757d;
        }
        
        /* Estilos para resaltado de líneas del JSON según sección activa */
        .json-highlighted-line {
            background: rgba(222, 0, 126, 0.3);
            border-left: 3px solid #de007e;
            padding-left: 0;
            font-weight: 600;
            margin-left: 0;
            display: inline;
            position: relative;
            animation: highlightPulse 0.5s ease-in-out;
            white-space: pre;
        }
        
      
        /* Asegurar que el resaltado funcione con highlight.js */
        .json-viewer-code .json-highlighted-line .hljs-keyword,
        .json-viewer-code .json-highlighted-line .hljs-string,
        .json-viewer-code .json-highlighted-line .hljs-number {
            position: relative;
            z-index: 1;
        }
        
        /* Responsive para pantallas pequeñas */
        @media (max-width: 768px) {
            .json-viewer-modal {
                width: 100%;
                right: -100%;
            }
            
            .json-viewer-modal.json-viewer-open {
                right: 0;
            }
            
            .json-viewer-header {
                padding: 15px 20px;
            }
            
            .json-viewer-title {
                font-size: 18px;
            }
            
            .json-viewer-tabs {
                padding: 0;
            }
            
            .json-viewer-tab {
                padding: 10px 15px;
                font-size: 13px;
            }
            
            .viewer-panel {
                padding: 15px;
            }
            
            .json-viewer-code {
                font-size: 12px;
            }
        }
        
        