        /* La fuente Plus Jakarta Sans se carga desde el <head> (un @import aquí retrasaba el pintado) */

        :root { 
            --brand-red: #E11D48; 
            --brand-dark: #0F172A;
            --brand-soft: #F1F5F9;
            --brand-accent: #FB7185;
        }

        body { 
            font-family: 'Plus Jakarta Sans', sans-serif; 
            background-color: white; 
            color: var(--brand-dark); 
            scroll-behavior: smooth; 
            overflow-x: hidden;
        }
        
        .text-gradient {
            background: linear-gradient(to right, #E11D48, #FB7185);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .card-premium { 
            background: white; 
            border: 1px solid #E2E8F0; 
            border-radius: 24px; 
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .card-premium:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
        }

        .input-premium { 
            background: #F8FAFC!important; 
            border: 1px solid #E2E8F0!important; 
            border-radius: 12px!important; 
            padding: 12px 16px!important; 
            width: 100%; 
            transition: all 0.3s; 
            font-weight: 500; 
            font-size: 14px; 
        }
        .input-premium:focus { 
            border-color: var(--brand-red)!important; 
            background: white!important; 
            outline: none; 
            box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1); 
        }
        
        .btn-brand { 
            background: var(--brand-red); 
            color: white; 
            font-weight: 800; 
            padding: 16px 32px; 
            border-radius: 16px; 
            display: inline-flex; 
            align-items: center; 
            justify-content: center; 
            gap: 10px; 
            transition: all 0.3s ease; 
            cursor: pointer; 
            text-transform: uppercase; 
            font-size: 12px; 
            letter-spacing: 1.5px;
            border: none;
        }
        .btn-brand:hover { 
            background: #BE123C; 
            transform: scale(1.02); 
            box-shadow: 0 15px 30px rgba(225, 29, 72, 0.35); 
        }
        
        .btn-outline { 
            border: 2px solid #E2E8F0; 
            color: var(--brand-dark); 
            background: transparent; 
        }
        .btn-outline:hover { 
            border-color: var(--brand-red); 
            color: var(--brand-red); 
            background: rgba(225, 29, 72, 0.02);
        }

        .glass-nav { 
            background: rgba(255, 255, 255, 0.8); 
            backdrop-filter: blur(12px); 
            border-bottom: 1px solid rgba(226, 232, 240, 0.5); 
        }
        
        #mainContent { display: none; }
        
        .pre-viewer-code { 
            background: #020617; 
            color: #38BDF8; 
            font-family: 'Fira Code', 'Courier New', monospace; 
            font-size: 13px; 
            padding: 24px; 
            border-radius: 16px; 
            border: 1px solid rgba(56, 189, 248, 0.2); 
            line-height: 1.6;
        }

        .step-pill { 
            background: linear-gradient(to right, #FFF1F2, #FFE4E6);
            color: var(--brand-red); 
            padding: 6px 16px; 
            border-radius: 100px; 
            font-size: 11px; 
            font-weight: 800; 
            text-transform: uppercase; 
            letter-spacing: 1px;
            margin-bottom: 20px; 
            display: inline-block; 
            border: 1px solid rgba(225, 29, 72, 0.1);
        }

        .whatsapp-float { 
            position: fixed; 
            bottom: 30px; 
            right: 30px; 
            background: #25D366; 
            color: white; 
            width: 65px; 
            height: 65px; 
            border-radius: 20px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            font-size: 32px; 
            box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4); 
            z-index: 1000; 
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .whatsapp-float:hover {
            transform: scale(1.1) rotate(5deg);
        }

        .gia-float {
            position: fixed;
            bottom: 105px;
            right: 30px;
            background: #0F172A;
            color: white;
            width: 65px;
            height: 65px;
            border-radius: 20px;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            box-shadow: 0 15px 35px rgba(15, 23, 42, 0.4);
            z-index: 1000;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border: 2px solid #E11D48;
        }
        .gia-float:hover { transform: scale(1.1); background: #E11D48; }
        
        #gia-chat-window {
            position: fixed;
            bottom: 180px;
            right: 30px;
            width: 350px;
            height: 500px;
            background: white;
            border-radius: 24px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.2);
            z-index: 1001;
            display: none;
            flex-direction: column;
            overflow: hidden;
            border: 1px solid #E2E8F0;
        }
        .gia-header { background: #0F172A; color: white; padding: 20px; display: flex; align-items: center; gap: 12px; }
        #gia-messages { flex-grow: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
        .msg { padding: 10px 14px; border-radius: 14px; max-width: 85%; line-height: 1.4; }
        .msg-gia { background: #F1F5F9; color: #0F172A; align-self: flex-start; border-bottom-left-radius: 2px; }
        .msg-user { background: #E11D48; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
        .gia-input-area { padding: 15px; border-top: 1px solid #F1F5F9; display: flex; gap: 8px; }
        
        #modalPreview { display:none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px); z-index:1000; align-items:center; justify-content:center; }

        ::-webkit-scrollbar { width: 8px; }
        ::-webkit-scrollbar-track { background: #f1f1f1; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        @keyframes float {
            0% { transform: translateY(0px) rotate(2deg); }
            50% { transform: translateY(-20px) rotate(-1deg); }
            100% { transform: translateY(0px) rotate(2deg); }
        }
        .float-anim { animation: float 6s ease-in-out infinite; }
        
        #saveIndicator {
            position: fixed;
            bottom: 30px;
            left: 30px;
            background: #0F172A;
            color: white;
            padding: 8px 16px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 8px;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.3s;
            z-index: 1000;
        }
        #saveIndicator.show { opacity: 1; transform: translateY(0); }

        #logoPreview {
            max-width: 60px;
            max-height: 40px;
            object-fit: contain;
            border-radius: 6px;
        }

        .loading-ai {
            animation: pulse 1.5s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        #qrcode-container { display: none; }

        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        .switch input { 
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255,255,255,0.2);
            transition: .4s;
            border-radius: 24px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .slider {
            background-color: #25D366;
        }
        input:checked + .slider:before {
            transform: translateX(26px);
        }

        .autocomplete-items {
            position: absolute;
            border: 1px solid #E2E8F0;
            border-top: none;
            z-index: 99;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 0 0 12px 12px;
            max-height: 200px;
            overflow-y: auto;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .autocomplete-items div {
            padding: 8px 10px;
            cursor: pointer;
            border-bottom: 1px solid #F1F5F9;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .autocomplete-items div:hover {
            background-color: #FFF1F2;
        }
        .autocomplete-items div .ac-text {
            flex: 1;
            color: #0F172A;
        }
        .autocomplete-items div:hover .ac-text {
            color: #E11D48;
        }
        .autocomplete-items div .ac-delete {
            background: none;
            border: none;
            cursor: pointer;
            color: #cbd5e1;
            padding: 2px 6px;
            border-radius: 6px;
            font-size: 11px;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .autocomplete-items div .ac-delete:hover {
            color: #ef4444;
            background: #fff1f2;
        }

        .faq-answer { display: none; }
        .faq-answer.open { display: block; }

        .step-connector {
            position: absolute;
            top: 38px;
            left: calc(50% + 40px);
            width: calc(100% - 80px);
            height: 2px;
            background: linear-gradient(to right, #FEE2E2, #E11D48, #FEE2E2);
        }

        .extras-banner {
            background: linear-gradient(135deg, #0F172A 0%, #1E293B 40%, #0F172A 100%);
            border-radius: 28px;
            overflow: hidden;
            position: relative;
            min-height: 220px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .extras-banner::before {
            content: '';
            position: absolute;
            top: -60px; right: -60px;
            width: 220px; height: 220px;
            background: radial-gradient(circle, rgba(225,29,72,0.25) 0%, transparent 70%);
            border-radius: 50%;
        }
        .extras-banner::after {
            content: '';
            position: absolute;
            bottom: -80px; left: -40px;
            width: 260px; height: 260px;
            background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 70%);
            border-radius: 50%;
        }
        @keyframes spin-slow {
            from { transform: rotate(0deg); }
            to   { transform: rotate(360deg); }
        }
        .spin-slow { animation: spin-slow 18s linear infinite; }
        @keyframes pulse-ring {
            0%,100% { transform: scale(1); opacity: 0.4; }
            50%      { transform: scale(1.12); opacity: 0.15; }
        }
        .pulse-ring { animation: pulse-ring 3s ease-in-out infinite; }
        #monedaModal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(15, 23, 42, 0.92);
            backdrop-filter: blur(10px);
            z-index: 6000;
            align-items: center;
            justify-content: center;
        }

        #terms-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #0F172A;
            color: white;
            z-index: 999999;
            padding: 18px 48px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 24px;
            border-top: 1px solid rgba(255,255,255,0.08);
            font-family: 'Plus Jakarta Sans', sans-serif;
            transform: translateY(0);
            transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        #terms-banner.hidden-banner {
            transform: translateY(110%);
        }
        #terms-banner .terms-text {
            font-size: 11px;
            font-weight: 500;
            color: rgba(255,255,255,0.75);
            line-height: 1.6;
            max-width: 640px;
            letter-spacing: 0.02em;
        }
        #terms-banner .terms-text a {
            color: #FB7185;
            text-decoration: underline;
            text-underline-offset: 3px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            font-size: 10px;
        }
        #terms-banner .terms-text a:hover { color: #E11D48; }
        #terms-banner .terms-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }
        #btn-accept-terms {
            background: white;
            color: #0F172A;
            font-size: 10px;
            font-weight: 900;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            padding: 11px 28px;
            border: none;
            cursor: pointer;
            transition: background 0.2s, color 0.2s;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }
        #btn-accept-terms:hover { background: #E11D48; color: white; }
        #btn-reject-terms {
            background: transparent;
            color: rgba(255,255,255,0.4);
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            padding: 11px 20px;
            border: 1px solid rgba(255,255,255,0.12);
            cursor: pointer;
            transition: border-color 0.2s, color 0.2s;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }
        #btn-reject-terms:hover { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.75); }

        #terms-toast {
            position: fixed;
            top: 100px;
            left: 50%;
            transform: translateX(-50%) translateY(-20px);
            background: #0F172A;
            color: white;
            padding: 14px 28px;
            border-left: 4px solid #E11D48;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            z-index: 999999;
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s;
            pointer-events: none;
            white-space: nowrap;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }
        #terms-toast.show-toast { opacity: 1; transform: translateX(-50%) translateY(0); }

        #productInfoModal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(10px);
            z-index: 3000;
            align-items: center;
            justify-content: center;
        }
        .pi-option {
            text-align: center;
            padding: 10px 6px;
            border: 2px solid #E2E8F0;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 900;
            color: #64748b;
            transition: all 0.2s;
            cursor: pointer;
            user-select: none;
        }
        .pi-option:hover { border-color: #E11D48; color: #E11D48; background: #FFF1F2; }
        .pi-option.selected { border-color: #E11D48; color: #E11D48; background: #FFF1F2; }

        .btn-ml {
            background: #FFE600;
            border: none;
            border-radius: 8px;
            width: 28px;
            height: 28px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 9px;
            font-weight: 900;
            color: #1a1a2e;
            letter-spacing: -0.5px;
            flex-shrink: 0;
            transition: all 0.2s;
            font-family: 'Plus Jakarta Sans', sans-serif;
            box-shadow: 0 2px 8px rgba(255,230,0,0.4);
            line-height: 1;
        }
        .btn-ml:hover { transform: scale(1.12); box-shadow: 0 4px 14px rgba(255,230,0,0.55); }
        .btn-dots {
            background: none;
            border: none;
            color: #cbd5e1;
            width: 28px;
            height: 28px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 13px;
        }
        .btn-dots:hover { color: #0F172A; background: #F1F5F9; }
        .pi-saved-badge {
            display: inline-block;
            width: 7px;
            height: 7px;
            background: #10b981;
            border-radius: 50%;
            margin-left: 3px;
            vertical-align: middle;
        }

        #loginError {
            display: none;
            background: #FFF1F2;
            border: 1px solid #FECDD3;
            border-left: 4px solid #E11D48;
            color: #BE123C;
            font-size: 11px;
            font-weight: 700;
            padding: 12px 16px;
            border-radius: 12px;
            margin-top: 12px;
            text-align: left;
            letter-spacing: 0.02em;
        }
        #loginError.show { display: flex; align-items: center; gap: 8px; }
        #loginBtn.loading { opacity: 0.7; cursor: not-allowed; pointer-events: none; }

        /* ── VIN AUTOCOMPLETE ── */
        .vin-autocomplete-items {
            position: absolute;
            border: 1px solid #E2E8F0;
            border-top: none;
            z-index: 99;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 0 0 12px 12px;
            max-height: 220px;
            overflow-y: auto;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .vin-autocomplete-items div {
            padding: 10px 12px;
            cursor: pointer;
            border-bottom: 1px solid #F1F5F9;
            font-size: 12px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        .vin-autocomplete-items div:hover { background: #FFF1F2; }
        .vin-ac-info { flex: 1; }
        .vin-ac-vin { font-size: 11px; font-weight: 900; color: #E11D48; }
        .vin-ac-name { font-size: 12px; color: #0F172A; font-weight: 700; }
        .vin-ac-veh { font-size: 10px; color: #94a3b8; }
        .vin-ac-delete {
            background: none;
            border: none;
            cursor: pointer;
            color: #cbd5e1;
            padding: 4px 6px;
            border-radius: 6px;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .vin-ac-delete:hover { color: #ef4444; background: #fff1f2; }

        /* ── CLIENTES MODAL ── */
        #clientesModal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(15, 23, 42, 0.92);
            backdrop-filter: blur(10px);
            z-index: 4000;
            align-items: center;
            justify-content: center;
        }

        /* ── CONFIRM PRE MODAL ── */
        #confirmPreModal {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(15, 23, 42, 0.92);
            backdrop-filter: blur(10px);
            z-index: 5000;
            align-items: center;
            justify-content: center;
        }
