        body {
            background-color: #080c14 !important;
            color: #e2e8f0;
            font-family: 'Plus Jakarta Sans', sans-serif;
            min-height: 100vh;
        }

        .feature-area {
            padding-top: 130px !important;
            padding-bottom: 70px !important;
        }

        @media (max-width: 991px) {
            .feature-area {
                padding-top: 25px !important;
                padding-bottom: 40px !important;
            }
        }

        .cat-subtitle {
            font-size: 11.5px;
            letter-spacing: 1.5px;
            font-weight: 700;
            color: var(--main-color-one, #00d285);
            text-transform: uppercase;
            display: inline-block;
            margin-bottom: 4px;
        }

        .page-main-title {
            font-size: 28px;
            font-weight: 800;
            color: #ffffff !important;
            margin: 0;
            line-height: 1.2;
        }

        .contract-box-card {
            background: #0d131f;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
            margin-bottom: 24px;
        }

        .section-contract-header {
            font-size: 14px;
            font-weight: 800;
            color: #ffffff;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 14px;
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .form-contract-input {
            background: #050811 !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-radius: 8px !important;
            color: #ffffff !important;
            padding: 8px 12px;
            font-size: 13px;
            width: 100%;
            outline: none;
            transition: all 0.2s ease;
        }

        .form-contract-input:focus {
            border-color: #00d285 !important;
            box-shadow: 0 0 0 3px rgba(0, 210, 133, 0.2) !important;
        }

        /* Viewport de Cláusulas con Scroll Dinámico: Llena todo el espacio disponible sin huecos vacíos */
        .clauses-scroll-viewport {
            flex: 1 1 auto;
            min-height: 350px;
            overflow-y: auto;
            padding-right: 6px;
            margin-bottom: 0;
        }

        @media (min-width: 1200px) {
            .clauses-scroll-viewport {
                flex: 1 1 0;
                min-height: 0;
                max-height: none;
            }
        }

        .clauses-scroll-viewport::-webkit-scrollbar {
            width: 5px;
        }

        .clauses-scroll-viewport::-webkit-scrollbar-thumb {
            background: rgba(0, 210, 133, 0.3);
            border-radius: 4px;
        }

        .clauses-scroll-viewport::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 210, 133, 0.6);
        }

        /* Toolbar Superior de Cláusulas */
        .clause-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
            padding-bottom: 6px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .btn-toggle-all {
            background: transparent;
            border: none;
            color: #64748b;
            font-size: 11.5px;
            font-weight: 600;
            cursor: pointer;
            transition: color 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 2px 6px;
        }

        .btn-toggle-all:hover {
            color: #00d285;
        }

        /* Tarjeta de Cláusula en Acordeón */
        .clause-item-card {
            background: #050811;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            margin-bottom: 8px;
            transition: all 0.2s ease;
            overflow: hidden;
        }

        .clause-item-card:hover {
            border-color: rgba(255, 255, 255, 0.2);
        }

        .clause-item-card.is-active {
            border-color: rgba(0, 210, 133, 0.45);
            box-shadow: 0 4px 18px rgba(0, 210, 133, 0.08);
        }

        /* Header Plegado de la Cláusula */
        .clause-header-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 12px;
            cursor: pointer;
            user-select: none;
            gap: 10px;
            background: rgba(255, 255, 255, 0.015);
            transition: background 0.2s ease;
        }

        .clause-header-row:hover {
            background: rgba(255, 255, 255, 0.04);
        }

        .clause-item-card.is-active .clause-header-row {
            background: rgba(0, 210, 133, 0.06);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .clause-header-left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1 1 0;
            min-width: 0;
        }

        .clause-num-badge {
            width: 24px;
            height: 24px;
            min-width: 24px;
            border-radius: 6px;
            background: rgba(0, 210, 133, 0.12);
            color: #00d285;
            font-size: 11px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'JetBrains Mono', monospace;
        }

        .clause-summary-box {
            display: flex;
            flex-direction: column;
            min-width: 0;
            flex: 1 1 0;
        }

        .clause-summary-title {
            font-size: 12.5px;
            font-weight: 700;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .clause-summary-snippet {
            font-size: 11px;
            color: #64748b;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: 1px;
        }

        .clause-header-actions {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }

        .btn-clause-icon {
            width: 26px;
            height: 26px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 10.5px;
            transition: all 0.18s ease;
        }

        .btn-clause-icon:hover {
            background: rgba(255, 255, 255, 0.12);
            color: #ffffff;
        }

        .btn-clause-del {
            background: rgba(239, 68, 68, 0.1) !important;
            border-color: rgba(239, 68, 68, 0.2) !important;
            color: #f87171 !important;
        }

        .btn-clause-del:hover {
            background: #ef4444 !important;
            color: #ffffff !important;
        }

        /* Botones de Reordenar Posición (Distintos y Claros con Flechas) */
        .btn-clause-move {
            background: rgba(56, 189, 248, 0.08) !important;
            border-color: rgba(56, 189, 248, 0.2) !important;
            color: #38bdf8 !important;
        }

        .btn-clause-move:hover:not(:disabled) {
            background: #38bdf8 !important;
            color: #0b1118 !important;
            box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
        }

        /* Badge Indicador de Desplegar / Editar */
        .clause-expand-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 8px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #94a3b8;
            font-size: 10px;
            font-weight: 700;
            transition: all 0.2s ease;
        }

        .clause-item-card.is-active .clause-expand-badge {
            background: rgba(0, 210, 133, 0.12);
            border-color: rgba(0, 210, 133, 0.3);
            color: #00d285;
        }

        .clause-chevron {
            font-size: 9.5px;
            transition: transform 0.22s ease;
        }

        .clause-item-card.is-active .clause-chevron {
            transform: rotate(180deg);
            color: #00d285;
        }

        /* Cuerpo Desplegable (Modo Edición / Transcripción) */
        .clause-body-edit {
            padding: 12px 14px 14px;
            display: none;
            background: #080d16;
        }

        .clause-item-card.is-active .clause-body-edit {
            display: block;
        }

        .clause-input-label {
            font-size: 10.5px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #64748b;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .clause-title-input {
            background: #050811 !important;
            border: 1px solid rgba(255, 255, 255, 0.12) !important;
            border-radius: 8px !important;
            color: #00d285 !important;
            font-weight: 700;
            font-size: 13px;
            padding: 6px 10px;
            width: 100%;
            outline: none;
            margin-bottom: 10px;
            transition: border-color 0.2s ease;
        }

        .clause-title-input:focus {
            border-color: #00d285 !important;
            box-shadow: 0 0 0 2px rgba(0, 210, 133, 0.15);
        }

        .clause-text-area {
            background: #050811 !important;
            border: 1px solid rgba(255, 255, 255, 0.1) !important;
            border-radius: 8px !important;
            color: #cbd5e1 !important;
            font-size: 12px;
            line-height: 1.6;
            padding: 10px;
            width: 100%;
            min-height: 80px;
            resize: vertical;
            outline: none;
            transition: all 0.2s ease;
        }

        .clause-text-area:focus {
            border-color: rgba(0, 210, 133, 0.5) !important;
            color: #ffffff !important;
        }

        /* Preset Library Quick Tags */
        .preset-clause-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: #94a3b8;
            font-size: 11.5px;
            font-weight: 600;
            padding: 5px 10px;
            border-radius: 6px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: all 0.18s ease;
        }

        .preset-clause-btn:hover {
            background: rgba(0, 210, 133, 0.12);
            border-color: rgba(0, 210, 133, 0.4);
            color: #00d285;
            transform: translateY(-1px);
        }

        /* Card de Previsualización: Mismo Nivel Exacto y Altura que el Panel Izquierdo */
        .contract-preview-card {
            display: flex;
            flex-direction: column;
            height: 100%;
            margin-bottom: 0 !important;
            box-sizing: border-box;
        }

        /* Escritorio Oscuro donde reposa la Hoja de Papel A4 */
        .paper-desk-viewport {
            flex: 1 1 auto;
            min-height: 520px;
            background: #060912;
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            padding: 18px 14px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            scroll-behavior: smooth;
        }

        .paper-desk-viewport::-webkit-scrollbar {
            width: 6px;
        }

        .paper-desk-viewport::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.02);
            border-radius: 3px;
        }

        .paper-desk-viewport::-webkit-scrollbar-thumb {
            background: rgba(0, 210, 133, 0.25);
            border-radius: 3px;
        }

        .paper-desk-viewport::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 210, 133, 0.5);
        }

        /* Hoja de Papel Fiel a Proporción Legal */
        .legal-paper-preview {
            background: #ffffff;
            color: #111827;
            border-radius: 4px;
            padding: 38px 34px;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(0, 0, 0, 0.08);
            font-family: 'Merriweather', Georgia, serif;
            font-size: 12.5px;
            line-height: 1.8;
            width: 100%;
            box-sizing: border-box;
            position: relative;
        }

        .legal-paper-preview h2 {
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 17px;
            font-weight: 800;
            text-align: center;
            color: #0f172a;
            border-bottom: 2px solid #00d285;
            padding-bottom: 12px;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .legal-clause-entry {
            margin-bottom: 16px;
            text-align: justify;
        }

        .legal-clause-entry strong {
            color: #0f172a;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 13px;
        }

        .badge-legal-pill {
            background: rgba(0, 210, 133, 0.12);
            color: #00d285;
            border: 1px solid rgba(0, 210, 133, 0.35);
            font-size: 11.5px;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 20px;
            display: inline-flex;
            align-items: center;
            letter-spacing: 0.2px;
        }

        .btn-paper-tool {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.12);
            color: #94a3b8;
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 11.5px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-paper-tool:hover {
            background: rgba(0, 210, 133, 0.15);
            color: #00d285;
            border-color: rgba(0, 210, 133, 0.4);
        }

        .btn-add-clause {
            background: rgba(0, 210, 133, 0.08);
            border: 1.5px dashed rgba(0, 210, 133, 0.4);
            color: #00d285;
            font-size: 13.5px;
            font-weight: 700;
            height: 48px;
            padding: 0 16px;
            white-space: nowrap;
            border-radius: 10px;
            width: 100%;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .btn-add-clause:hover {
            background: rgba(0, 210, 133, 0.18);
            border-color: #00d285;
            transform: translateY(-1px);
        }

        .btn-download-contract {
            background: linear-gradient(135deg, #00d285 0%, #059669 100%);
            color: #04130d !important;
            font-weight: 800;
            font-size: 13.5px;
            height: 48px;
            padding: 0 20px;
            border-radius: 10px;
            border: none;
            cursor: pointer;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            box-shadow: 0 4px 18px rgba(0, 210, 133, 0.35);
            transition: all 0.2s ease;
        }

        .btn-download-contract:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 24px rgba(0, 210, 133, 0.5);
            background: linear-gradient(135deg, #05e593 0%, #10b981 100%);
        }

        /* Uploader de Logo de Empresa / Desarrollador */
        .logo-contract-dropzone {
            background: rgba(255, 255, 255, 0.02);
            border: 1.5px dashed rgba(255, 255, 255, 0.14);
            border-radius: 8px;
            padding: 9px 14px;
            color: #94a3b8;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .logo-contract-dropzone:hover {
            border-color: #00d285;
            background: rgba(0, 210, 133, 0.06);
            color: #ffffff;
        }

        .logo-contract-preview {
            background: rgba(0, 210, 133, 0.06);
            border: 1px solid rgba(0, 210, 133, 0.25);
            border-radius: 8px;
            padding: 7px 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo-thumb-wrapper {
            width: 44px;
            height: 32px;
            background: #ffffff;
            border-radius: 4px;
            padding: 2px 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        .logo-thumb-wrapper img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .btn-remove-logo {
            background: rgba(239, 68, 68, 0.12);
            border: 1px solid rgba(239, 68, 68, 0.3);
            color: #f87171;
            font-size: 11px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        .btn-remove-logo:hover {
            background: #ef4444;
            color: #ffffff;
            border-color: #ef4444;
        }

        @media (max-width: 767px) {
            .contract-box-card {
                padding: 16px !important;
            }
            .form-contract-input {
                font-size: 16px !important;
            }
            .legal-paper-preview {
                padding: 20px 16px !important;
                max-height: 480px;
            }
        }

