
        /* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Vista de Escritorio
   ═══════════════════════════════════════════════════════════ */

        /* ─── TABLET (768px+) ─── */
        @media (min-width: 768px) {
    body {
        padding-bottom: 90px;
    }

    .contenedor {
        width: min(100% - 40px, 720px);
        padding: 20px 0;
    }

    .header-top {
        padding: 12px 24px;
    }

    /* Ajuste para la barra de navegación inferior en tabletas */
    .nav-inferior {
        max-width: 720px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 1px solid var(--stroke);
        border-right: 1px solid var(--stroke);
        border-radius: 20px 20px 0 0;
        display: flex;                  /* Para alinear los botones */
        justify-content: space-evenly;  /* Para repartir el espacio entre ellos */
        padding: 0 10px;                /* Para que no choquen con los bordes */
    }
    
            .auth-contenedor {
                max-width: 440px;
            }

            .grafico-contenedor {
                padding: 20px;
            }

            .chart-area {
                height: 450px !important;
            }

            #contenedor-velas {
                height: 420px !important;
            }

            /* Grids de 2 columnas */
            .fila-doble {
                gap: 14px;
            }

            .stats-grid {
                gap: 12px;
            }

            .metodos-grid {
                gap: 14px;
            }
        }

        /* ─── DESKTOP (1024px+) ─── */
        @media (min-width: 1024px) {


            /* ─── DRAWER como SIDEBAR permanente ─── */
            .drawer {
                width: 240px;
                transform: translateX(0) !important;
                border-right: 1px solid var(--stroke-2);
                box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                padding: 20px 16px;
                z-index: 100;
            }

            .drawer-overlay {
                display: none !important;
            }

            .menu-drawer-btn {
                display: none !important;
            }

            /* ─── HEADER ─── */
            .header-top {
                padding: 14px 32px;
                padding-left: 32px;
                margin-left: 0;
                position: sticky;
                top: 0;
            }

            .header-logo-mini {
                flex: 0 0 auto;
            }

            /* ─── CONTENEDOR ─── */
            .contenedor {
                width: min(100% - 60px, 1280px);
                padding: 32px 0;
                margin: 0 auto;
            }

            /* ─── NAV INFERIOR: ocultar ─── */
            .nav-inferior {
                display: none !important;
            }

            /* ─── GRÁFICO más grande ─── */
            .grafico-contenedor {
                padding: 24px;
            }

            .chart-area {
                height: 520px !important;
            }

            #contenedor-velas {
                height: 490px !important;
            }

            .grafico-precio {
                font-size: 34px;
            }

            .grafico-par {
                font-size: 14px;
            }

            /* ─── TARJETAS MÁS AMPLIAS ─── */
            .tarjeta {
                padding: 24px;
                margin-bottom: 20px;
            }

            .tarjeta-titulo {
                font-size: 15px;
                margin-bottom: 18px;
            }

            .saldo-valor {
                font-size: 52px;
            }

            /* ─── GRIDS ─── */
            .fila-doble {
                gap: 18px;
            }

            .mini-cuadro {
                padding: 16px;
            }

            .mini-valor {
                font-size: 18px;
            }

            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 14px;
            }

            .stat-card.primary:first-child {
                grid-column: 1 / -1;
            }

            /* ─── DASHBOARD ─── */
            .dashboard-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 16px;
            }

            /* ─── SERVICIOS Y ASESORES ─── */
            .servicios-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 16px;
            }

            .asesores-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 16px;
            }

            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 16px;
            }

            /* ─── HISTORIAL Y LISTAS ─── */
            .lista-activos {
                gap: 8px;
            }

            /* ─── MODAL ─── */
            .modal-box {
                max-width: 560px;
                padding: 32px;
            }

            /* ─── CHAT ─── */
            .chat-panel {
                right: 24px;
                left: auto;
                margin: 0;
                max-width: 420px;
                height: 80vh;
                bottom: 24px;
                border-radius: 24px;
                border: 1px solid var(--stroke-2);
            }

            .chat-fab {
                bottom: 32px;
                right: 32px;
            }
        }

        /* ─── PC GRANDE (1440px+) ─── */
        @media (min-width: 1440px) {
            body {
                padding-left: 280px;
            }

            .drawer {
                width: 280px;
            }

            .header-top {
                padding-left: calc(280px + 40px);
                margin-left: -280px;
            }

            .contenedor {
                width: min(100% - 120px, 1400px);
            }

            .chart-area {
                height: 580px !important;
            }

            #contenedor-velas {
                height: 550px !important;
            }

            .saldo-valor {
                font-size: 60px;
            }

            .stats-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 18px;
            }

            .dashboard-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 18px;
            }

            .servicios-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        :root {
            --bg-0: #05070d;
            --bg-1: #0a0e17;
            --bg-2: #111624;
            --glass: rgba(20, 26, 42, 0.65);
            --glass-strong: rgba(20, 26, 42, 0.95);
            --stroke: rgba(255, 255, 255, 0.06);
            --stroke-2: rgba(255, 255, 255, 0.1);
            --accent: #8bc34a;
            --accent-2: #4a7c23;
            --accent-3: #c5e1a5;
            --accent-grad: linear-gradient(135deg, #8bc34a 0%, #4a7c23 100%);
            --blue: #4a7dff;
            --blue-grad: linear-gradient(135deg, #4a7dff 0%, #2a5cd9 100%);
            --purple: #a259ff;
            --orange: #ff9f43;
            --danger: #ff3d71;
            --danger-grad: linear-gradient(135deg, #ff3d71 0%, #ff6b6b 100%);
            --text: #ffffff;
            --text-2: #8892a6;
            --text-3: #4d566b;
            --support: #d4a24c;
            --radius: 16px;
            --radius-sm: 10px;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            min-height: 100vh;
            padding-bottom: 90px;
            background: var(--bg-0);
            background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 195, 74, 0.12), transparent), radial-gradient(ellipse 60% 40% at 100% 100%, rgba(74, 124, 35, 0.08), transparent);
            color: var(--text);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 14px;
            line-height: 1.4;
            overflow-x: hidden;
        }

        .oculto {
            display: none !important;
        }

        .mono {
            font-family: 'JetBrains Mono', monospace;
        }

        .pos {
            color: var(--accent);
        }

        .neg {
            color: var(--danger);
        }

        ::-webkit-scrollbar {
            width: 4px;
            height: 4px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--stroke-2);
            border-radius: 4px;
        }

        .logo-escalada {
            display: block;
            width: 100%;
            max-width: 200px;
            margin: 0 auto;
            filter: drop-shadow(0 8px 24px rgba(139, 195, 74, 0.3));
        }

        .logo-login {
            max-width: 180px;
            margin-bottom: 12px;
        }

        .ticker-band {
            width: 100%;
            overflow: hidden;
            background: linear-gradient(90deg, rgba(139, 195, 74, 0.08), rgba(74, 125, 255, 0.06), rgba(139, 195, 74, 0.08));
            border-top: 1px solid rgba(139, 195, 74, 0.15);
            border-bottom: 1px solid rgba(139, 195, 74, 0.15);
            padding: 10px 0;
            position: relative;
        }

        .ticker-band::before,
        .ticker-band::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50px;
            z-index: 2;
            pointer-events: none;
        }

        .ticker-band::before {
            left: 0;
            background: linear-gradient(90deg, var(--bg-0), transparent);
        }

        .ticker-band::after {
            right: 0;
            background: linear-gradient(-90deg, var(--bg-0), transparent);
        }

        .ticker-track {
            display: flex;
            gap: 32px;
            animation: tickerScroll 18s linear infinite;
            white-space: nowrap;
            will-change: transform;
        }

        @keyframes tickerScroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        .ticker-item {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            font-weight: 700;
            flex-shrink: 0;
        }

        .ticker-symbol {
            color: var(--text-2);
            letter-spacing: 0.5px;
        }

        .ticker-price {
            color: var(--text);
        }

        .ticker-change {
            font-size: 12px;
            padding: 2px 7px;
            border-radius: 4px;
            font-weight: 700;
        }

        .ticker-change.pos {
            background: rgba(139, 195, 74, 0.15);
            color: var(--accent);
        }

        .ticker-change.neg {
            background: rgba(255, 61, 113, 0.15);
            color: var(--danger);
        }

        .auth-pantalla {
            position: fixed;
            inset: 0;
            z-index: 300;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: var(--bg-0);
            background-image: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 195, 74, 0.15), transparent), radial-gradient(ellipse 60% 40% at 100% 100%, rgba(74, 124, 35, 0.1), transparent);
            overflow-y: auto;
        }

        .auth-contenedor {
            width: 100%;
            max-width: 420px;
            animation: slideUp .5s ease;
            padding: 10px 0;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .auth-logo {
            text-align: center;
            margin-bottom: 16px;
        }

        .auth-logo p {
            color: var(--text-2);
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-top: 8px;
        }

        .auth-tarjeta {
            background: var(--glass);
            border: 1px solid var(--stroke);
            border-radius: 20px;
            padding: 24px 22px;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            margin-top: 16px;
        }

        .auth-titulo {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
            text-align: center;
        }

        .auth-subtitulo {
            font-size: 12px;
            color: var(--text-3);
            text-align: center;
            margin-bottom: 20px;
            line-height: 1.5;
        }

        .form-grupo {
            margin-bottom: 14px;
        }

        .form-etiqueta {
            display: block;
            margin-bottom: 6px;
            color: var(--text-2);
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-input {
            width: 100%;
            padding: 12px 14px;
            color: var(--text);
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
            outline: none;
            font-size: 14px;
            font-family: inherit;
            transition: all .2s;
        }

        .form-input:focus {
            border-color: var(--accent);
            background: rgba(139, 195, 74, 0.05);
            box-shadow: 0 0 0 4px rgba(139, 195, 74, 0.1);
        }

        .form-input::placeholder {
            color: var(--text-3);
        }

        .input-con-icono {
            position: relative;
        }

        .input-con-icono>i:first-child {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-3);
            font-size: 14px;
            pointer-events: none;
        }

        .input-con-icono input {
            padding-left: 40px;
        }

        .btn-primario {
            width: 100%;
            padding: 14px;
            color: #05070d;
            background: var(--accent-grad);
            border: 0;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 8px;
            transition: all .25s;
            box-shadow: 0 8px 24px rgba(139, 195, 74, 0.3);
            font-family: inherit;
            letter-spacing: 0.3px;
        }

        .btn-primario:active {
            transform: scale(0.99);
        }

        .btn-primario:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }

        .auth-footer-info {
            text-align: center;
            margin-top: 18px;
            font-size: 10px;
            color: var(--text-3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .auth-footer-info i {
            color: var(--accent);
        }

        .atencion-247 {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 14px;
            padding: 16px 14px;
            background: linear-gradient(90deg, rgba(139, 195, 74, 0.12), rgba(74, 125, 255, 0.08));
            border: 1.5px solid rgba(139, 195, 74, 0.35);
            border-radius: 14px;
            color: var(--text);
            font-weight: 800;
            box-shadow: 0 4px 20px rgba(139, 195, 74, 0.15);
            position: relative;
            overflow: hidden;
        }

        .atencion-247::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at 20% 50%, rgba(139, 195, 74, 0.15), transparent 60%);
            pointer-events: none;
        }

        .atencion-247 i {
            color: var(--accent);
            font-size: 26px;
            filter: drop-shadow(0 0 10px rgba(139, 195, 74, 0.5));
        }

        .atencion-247-texto {
            display: flex;
            flex-direction: column;
            gap: 2px;
            text-align: left;
        }

        .atencion-247-texto .linea-1 {
            font-size: 15px;
            font-weight: 900;
            letter-spacing: 0.3px;
            color: var(--accent);
            text-transform: uppercase;
        }

        .atencion-247-texto .linea-2 {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-2);
            letter-spacing: 0.5px;
        }

        .atencion-247-texto .linea-2 strong {
            color: var(--text);
        }

        .header-top {
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
            background: rgba(5, 7, 13, 0.85);
            border-bottom: 1px solid var(--stroke);
            backdrop-filter: blur(20px);
        }

        .header-logo-mini {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }

        .header-logo-mini .logo-mini-svg {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
        }

        .header-titulo {
            font-size: 12px;
            font-weight: 800;
            letter-spacing: -0.2px;
            background: linear-gradient(135deg, #c5e1a5, #8bc34a);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-transform: uppercase;
        }

        .header-bienvenida {
            font-size: 10px;
            color: var(--text-3);
            margin-top: 2px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .header-bienvenida strong {
            color: var(--text-2);
            font-weight: 600;
        }

        .id-cliente-header {
            font-size: 9px;
            color: var(--accent);
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            margin-top: 2px;
            letter-spacing: 0.3px;
        }

        .header-derecha {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .notif-btn {
            position: relative;
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--stroke);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-2);
            font-size: 15px;
            cursor: pointer;
            transition: all .2s;
        }

        .notif-btn:hover {
            color: var(--text);
            border-color: var(--stroke-2);
        }

        .notif-badge {
            position: absolute;
            top: -4px;
            right: -4px;
            min-width: 18px;
            height: 18px;
            background: var(--danger);
            color: white;
            border-radius: 9px;
            font-size: 10px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 5px;
            box-shadow: 0 2px 8px rgba(255, 61, 113, 0.5);
        }

        .saldo-header {
            text-align: right;
            background: rgba(139, 195, 74, 0.08);
            border: 1px solid rgba(139, 195, 74, 0.2);
            padding: 6px 12px;
            border-radius: 10px;
        }

        .saldo-etiqueta {
            font-size: 9px;
            color: var(--text-3);
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.5px;
        }

        .saldo-monto {
            font-size: 14px;
            font-weight: 800;
            color: var(--accent);
            font-family: 'JetBrains Mono', monospace;
        }

        .contenedor {
            width: min(100% - 24px, 520px);
            margin: 0 auto;
            padding: 14px 0;
        }

        .tarjeta {
            background: var(--glass);
            border: 1px solid var(--stroke);
            border-radius: var(--radius);
            padding: 18px;
            margin-bottom: 14px;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
        }

        .tarjeta-titulo {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            letter-spacing: 0.2px;
        }

        .tarjeta-saldo {
            background: radial-gradient(circle at 100% 0%, rgba(139, 195, 74, 0.15), transparent 60%), linear-gradient(135deg, rgba(139, 195, 74, 0.08), rgba(74, 124, 35, 0.05));
            border: 1px solid rgba(139, 195, 74, 0.2);
            position: relative;
            overflow: hidden;
        }

        .tarjeta-saldo::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(139, 195, 74, 0.15), transparent 70%);
            pointer-events: none;
        }

        .saldo-valor {
            font-size: 38px;
            font-weight: 800;
            margin: 8px 0 8px;
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: -1.5px;
            background: linear-gradient(135deg, #fff, #a8b5c8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .saldo-cambio {
            font-size: 12px;
            margin-bottom: 16px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 10px;
            background: rgba(139, 195, 74, 0.12);
            border: 1px solid rgba(139, 195, 74, 0.25);
            border-radius: 20px;
            font-weight: 600;
        }

        .fila-doble {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            position: relative;
            z-index: 1;
        }

        .mini-cuadro {
            padding: 12px;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
        }

        .mini-etiqueta {
            font-size: 10px;
            color: var(--text-3);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .mini-valor {
            font-size: 15px;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
        }

        .mercados-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 14px;
            overflow-x: auto;
            padding-bottom: 4px;
            scrollbar-width: none;
        }

        .mercados-tabs::-webkit-scrollbar {
            display: none;
        }

        .mercado-tab {
            padding: 8px 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 20px;
            color: var(--text-2);
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            white-space: nowrap;
            transition: all .25s;
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .mercado-tab.activo {
            background: var(--accent-grad);
            border-color: transparent;
            color: #05070d;
            box-shadow: 0 4px 16px rgba(139, 195, 74, 0.3);
            font-weight: 700;
        }

        .buscador-input {
            width: 100%;
            padding: 10px 14px 10px 38px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 10px;
            color: white;
            outline: none;
            font-size: 13px;
            font-family: inherit;
            margin-bottom: 12px;
        }

        .buscador-input:focus {
            border-color: var(--accent);
            background: rgba(139, 195, 74, 0.05);
        }

        .buscador-wrap {
            position: relative;
        }

        .buscador-wrap i {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-3);
            font-size: 13px;
            pointer-events: none;
        }

        .sub-tabs {
            display: flex;
            gap: 6px;
            margin-bottom: 12px;
            overflow-x: auto;
            padding-bottom: 4px;
            scrollbar-width: none;
        }

        .sub-tabs::-webkit-scrollbar {
            display: none;
        }

        .sub-tab {
            padding: 5px 12px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--stroke);
            border-radius: 20px;
            color: var(--text-3);
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            font-family: inherit;
        }

        .sub-tab.activo {
            background: rgba(74, 125, 255, 0.15);
            border-color: rgba(74, 125, 255, 0.4);
            color: var(--blue);
        }

        .lista-activos {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .fila-activo {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 12px 14px;
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all .2s;
        }

        .fila-activo:active {
            background: rgba(139, 195, 74, 0.05);
            border-color: rgba(139, 195, 74, 0.3);
        }

        .activo-izq {
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 0;
            flex: 1;
        }

        .activo-icono {
            width: 38px;
            height: 38px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 800;
            color: white;
            flex-shrink: 0;
            overflow: hidden;
        }

        .activo-icono.flag {
            font-size: 18px;
        }

        .activo-nombre {
            display: flex;
            flex-direction: column;
            min-width: 0;
        }

        .activo-nombre h4 {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 2px;
        }

        .activo-nombre p {
            font-size: 11px;
            color: var(--text-3);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .activo-der {
            text-align: right;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .activo-precio-wrap {
            text-align: right;
        }

        .activo-precio {
            font-size: 13px;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
        }

        .activo-pct {
            font-size: 11px;
            margin-top: 3px;
            font-weight: 700;
            display: inline-block;
            padding: 2px 6px;
            border-radius: 6px;
            font-family: 'JetBrains Mono', monospace;
        }

        .activo-pct.pos {
            background: rgba(139, 195, 74, 0.12);
            color: var(--accent);
        }

        .activo-pct.neg {
            background: rgba(255, 61, 113, 0.12);
            color: var(--danger);
        }

        .fav-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            color: var(--text-3);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
        }

        .fav-btn.activo {
            color: #ffd700;
            border-color: rgba(255, 215, 0, 0.3);
            background: rgba(255, 215, 0, 0.08);
        }

        .grafico-contenedor {
            background: linear-gradient(180deg, #0d1220, #080b14);
            border: 1px solid var(--stroke);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 14px;
            position: relative;
            overflow: hidden;
        }

        .grafico-cabecera {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 12px;
        }

        .grafico-par {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-2);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .grafico-par::before {
            content: '';
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 8px var(--accent);
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.4;
            }
        }

        .grafico-precio {
            font-size: 26px;
            font-weight: 800;
            font-family: 'JetBrains Mono', monospace;
            letter-spacing: -1px;
        }

        .grafico-cambio {
            font-size: 12px;
            font-weight: 700;
            padding: 5px 10px;
            border-radius: 8px;
            font-family: 'JetBrains Mono', monospace;
        }

        .grafico-cambio.pos {
            background: rgba(139, 195, 74, 0.12);
            color: var(--accent);
        }

        .grafico-cambio.neg {
            background: rgba(255, 61, 113, 0.12);
            color: var(--danger);
        }

        .chart-area {
            position: relative;
            height: 200px;
            margin-top: 8px;
        }

        .chart-grid {
            position: absolute;
            inset: 0 0 0 32px;
            background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 100% 25%, 8.33% 100%;
            border-left: 1px solid rgba(255, 255, 255, 0.06);
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        }

        .chart-y-labels {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 32px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            font-family: 'JetBrains Mono', monospace;
            font-size: 8px;
            color: var(--text-3);
            padding: 2px 0;
            font-weight: 600;
        }

        .chart-y-labels span {
            text-align: right;
            padding-right: 4px;
        }

        .chart-resistencia,
        .chart-soporte {
            position: absolute;
            left: 32px;
            right: 0;
            height: 0;
            border-top: 1px dashed var(--support);
            z-index: 3;
            pointer-events: none;
        }

        .chart-resistencia::after,
        .chart-soporte::after {
            content: attr(data-label);
            position: absolute;
            right: 4px;
            font-size: 8px;
            font-weight: 800;
            color: var(--support);
            background: rgba(13, 18, 32, 0.9);
            padding: 1px 5px;
            border-radius: 3px;
            border: 1px solid rgba(212, 162, 76, 0.4);
        }

        .chart-resistencia::after {
            top: -14px;
        }

        .chart-soporte::after {
            top: -14px;
        }

        .velas-contenedor {
            position: absolute;
            inset: 8px 0 0 32px;
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 2px;
            z-index: 2;
            padding: 0 2px;
        }

        .vela {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-end;
            min-width: 3px;
            animation: velaAparecer 0.5s ease;
        }

        @keyframes velaAparecer {
            from {
                opacity: 0;
                transform: scaleY(0.3);
                transform-origin: bottom;
            }

            to {
                opacity: 1;
                transform: scaleY(1);
            }
        }

        .vela-cuerpo {
            width: 70%;
            border-radius: 1px;
        }

        .vela-mecha {
            width: 1.5px;
            background: currentColor;
        }

        .vela.pos {
            color: #26a69a;
        }

        .vela.neg {
            color: #ef5350;
        }

        .vela.pos .vela-cuerpo {
            background: linear-gradient(90deg, #1e8e7e 0%, #26a69a 50%, #1e8e7e 100%);
        }

        .vela.neg .vela-cuerpo {
            background: linear-gradient(90deg, #d43f3f 0%, #ef5350 50%, #d43f3f 100%);
        }

        .chart-legend {
            display: flex;
            gap: 14px;
            justify-content: center;
            margin-top: 10px;
            padding: 8px 0;
            border-top: 1px solid var(--stroke);
            font-size: 9px;
            color: var(--text-3);
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
            text-transform: uppercase;
        }

        .chart-legend span {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .chart-legend .dot-green {
            width: 6px;
            height: 6px;
            background: #26a69a;
            border-radius: 50%;
        }

        .chart-legend .dot-red {
            width: 6px;
            height: 6px;
            background: #ef5350;
            border-radius: 50%;
        }

        .chart-legend .dot-gold {
            width: 6px;
            height: 2px;
            background: var(--support);
        }

        .etiqueta-tiempos {
            display: flex;
            justify-content: space-between;
            font-size: 9px;
            color: var(--text-3);
            margin-top: 8px;
            margin-left: 32px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
        }

        .tipo-operacion {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin-bottom: 16px;
            padding: 4px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid var(--stroke);
        }

        .tipo-btn {
            padding: 12px;
            border-radius: 9px;
            border: none;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            background: transparent;
            color: var(--text-2);
        }

        .btn-compra.activo {
            background: var(--accent-grad);
            color: #05070d;
            box-shadow: 0 4px 16px rgba(139, 195, 74, 0.3);
        }

        .btn-venta.activo {
            background: var(--danger-grad);
            color: white;
            box-shadow: 0 4px 16px rgba(255, 61, 113, 0.3);
        }

        .fila-input {
            margin-bottom: 12px;
        }

        .fila-input label {
            font-size: 11px;
            color: var(--text-2);
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 700;
        }

        .fila-input label .pct-actual {
            color: var(--accent);
            font-family: 'JetBrains Mono', monospace;
            font-size: 10px;
        }

        .fila-input input {
            width: 100%;
            padding: 12px 14px;
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
            color: white;
            outline: none;
            font-size: 14px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
        }

        .pct-buttons {
            display: flex;
            gap: 5px;
            margin-top: 8px;
            flex-wrap: wrap;
        }

        .pct-btn {
            flex: 1;
            min-width: 44px;
            padding: 8px 4px;
            border-radius: 8px;
            border: 1px solid var(--stroke);
            background: rgba(0, 0, 0, 0.3);
            color: var(--text-2);
            font-size: 11px;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
            text-align: center;
        }

        .pct-btn.clear {
            background: rgba(255, 255, 255, 0.04);
            color: var(--text-3);
            flex: 0 0 auto;
            padding: 8px 10px;
        }

        .leverage-box {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
            margin-bottom: 12px;
        }

        .leverage-label {
            font-size: 11px;
            color: var(--text-2);
            text-transform: uppercase;
            font-weight: 700;
            flex-shrink: 0;
        }

        .leverage-buttons {
            display: flex;
            gap: 4px;
            flex: 1;
        }

        .lev-btn {
            flex: 1;
            padding: 7px 4px;
            border-radius: 7px;
            border: 1px solid var(--stroke);
            background: transparent;
            color: var(--text-3);
            font-size: 11px;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
            cursor: pointer;
        }

        .lev-btn.activo {
            background: var(--purple);
            color: white;
            border-color: transparent;
        }

        .order-type {
            display: flex;
            gap: 6px;
            margin-bottom: 12px;
        }

        .order-type-btn {
            flex: 1;
            padding: 9px;
            border-radius: 8px;
            border: 1px solid var(--stroke);
            background: rgba(0, 0, 0, 0.3);
            color: var(--text-2);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
        }

        .order-type-btn.activo {
            background: rgba(74, 125, 255, 0.12);
            border-color: rgba(74, 125, 255, 0.4);
            color: var(--blue);
        }

        .resumen-op {
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
            padding: 14px;
            margin: 14px 0;
        }

        .resumen-fila {
            display: flex;
            justify-content: space-between;
            padding: 6px 0;
            font-size: 12px;
            color: var(--text-2);
        }

        .resumen-fila span:last-child {
            color: var(--text);
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
        }

        .resumen-fila.destacada {
            border-top: 1px solid var(--stroke);
            padding-top: 10px;
            margin-top: 6px;
            font-size: 13px;
            color: var(--text);
        }

        .resumen-fila.destacada span:last-child {
            color: var(--accent);
            font-weight: 800;
            font-size: 15px;
        }

        .resumen-fila.risk {
            color: var(--text-3);
            font-size: 11px;
        }

        .resumen-fila.risk span:last-child {
            color: var(--orange);
            font-weight: 700;
        }

        .rr-bar {
            display: flex;
            height: 6px;
            border-radius: 3px;
            overflow: hidden;
            margin: 8px 0 4px;
            background: rgba(255, 255, 255, 0.05);
        }

        .rr-bar-risk {
            background: var(--danger);
            height: 100%;
        }

        .rr-bar-reward {
            background: var(--accent);
            height: 100%;
            flex: 1;
        }

        .btn-ejecutar {
            width: 100%;
            padding: 14px;
            background: var(--accent-grad);
            border: 0;
            border-radius: var(--radius-sm);
            color: #05070d;
            font-size: 14px;
            font-weight: 800;
            cursor: pointer;
            font-family: inherit;
            box-shadow: 0 8px 24px rgba(139, 195, 74, 0.3);
        }

        .btn-ejecutar.vender {
            background: var(--danger-grad);
        }

        .billetera-header {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px;
            background: linear-gradient(135deg, rgba(74, 125, 255, 0.12), rgba(42, 92, 217, 0.05));
            border: 1px solid rgba(74, 125, 255, 0.2);
            border-radius: var(--radius);
            margin-bottom: 16px;
        }

        .billetera-header-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: var(--blue-grad);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 20px;
            flex-shrink: 0;
        }

        .billetera-header-txt h3 {
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 2px;
        }

        .billetera-header-txt p {
            font-size: 11px;
            color: var(--text-3);
        }

        .stepper {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-bottom: 18px;
        }

        .stepper-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 12px;
        }

        .stepper-item .num {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-3);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 800;
            flex-shrink: 0;
        }

        .stepper-item .txt {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-3);
        }

        .stepper-item.activo {
            background: linear-gradient(135deg, rgba(74, 125, 255, 0.15), rgba(42, 92, 217, 0.08));
            border-color: rgba(74, 125, 255, 0.4);
        }

        .stepper-item.activo .num {
            background: var(--blue-grad);
            color: white;
        }

        .stepper-item.activo .txt {
            color: var(--text);
        }

        .stepper-item.completado .num {
            background: var(--accent-grad);
            color: #05070d;
        }

        .stepper-item.completado .txt {
            color: var(--accent);
        }

        .paso-contenedor {
            animation: fadeIn .3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateX(8px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .paso-panel {
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid var(--stroke);
            border-radius: var(--radius);
            padding: 18px;
        }

        .paso-titulo {
            font-size: 13px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--stroke);
        }

        .paso-titulo i {
            color: var(--blue);
        }

        .importe-input-wrap {
            display: flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
            padding: 0 14px;
        }

        .importe-currency {
            font-size: 22px;
            font-weight: 800;
            color: var(--text-3);
            padding-right: 10px;
            font-family: 'JetBrains Mono', monospace;
        }

        .importe-input {
            flex: 1;
            padding: 14px 0;
            background: transparent;
            border: none;
            color: white;
            outline: none;
            font-size: 24px;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
        }

        .cuentas-rapidas {
            display: flex;
            gap: 6px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .cuenta-rapida {
            padding: 6px 12px;
            background: rgba(74, 125, 255, 0.08);
            border: 1px solid rgba(74, 125, 255, 0.2);
            color: var(--blue);
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
        }

        .metodos-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .metodo-card {
            padding: 14px 10px;
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid var(--stroke);
            border-radius: 12px;
            text-align: center;
            cursor: pointer;
            position: relative;
        }

        .metodo-card.activo {
            border-color: var(--blue);
            background: rgba(74, 125, 255, 0.08);
        }

        .metodo-icono {
            width: 40px;
            height: 40px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 8px;
            font-size: 18px;
            color: white;
        }

        .metodo-nombre {
            font-size: 12px;
            font-weight: 800;
            margin-bottom: 2px;
        }

        .metodo-desc {
            font-size: 10px;
            color: var(--text-3);
        }

        .metodo-check {
            position: absolute;
            top: 6px;
            right: 6px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--blue);
            display: none;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 10px;
        }

        .metodo-card.activo .metodo-check {
            display: flex;
        }

        .campos-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .campos-grid .full {
            grid-column: 1 / -1;
        }

        .nav-botones {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 8px;
            margin-top: 16px;
        }

        .btn-atras {
            padding: 13px;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-2);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            font-family: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn-continuar {
            padding: 13px;
            background: var(--blue-grad);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 800;
            cursor: pointer;
            font-family: inherit;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            box-shadow: 0 6px 20px rgba(74, 125, 255, 0.3);
        }

        .btn-continuar.verde {
            background: var(--accent-grad);
            color: #05070d;
        }

        .btn-continuar:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .resumen-pago {
            background: rgba(0, 0, 0, 0.4);
            border: 1px solid var(--stroke);
            border-radius: var(--radius-sm);
            padding: 14px;
            margin-bottom: 16px;
        }

        .resumen-pago-fila {
            display: flex;
            justify-content: space-between;
            padding: 7px 0;
            font-size: 12px;
            color: var(--text-2);
        }

        .resumen-pago-fila span:last-child {
            color: var(--text);
            font-weight: 600;
            font-family: 'JetBrains Mono', monospace;
        }

        .resumen-pago-fila.total {
            border-top: 1px solid var(--stroke);
            margin-top: 6px;
            padding-top: 12px;
            font-size: 13px;
            color: var(--text);
        }

        .resumen-pago-fila.total span:last-child {
            color: var(--blue);
            font-weight: 800;
            font-size: 17px;
        }

        .datos-bancarios {
            background: linear-gradient(135deg, rgba(74, 125, 255, 0.08), rgba(42, 92, 217, 0.04));
            border: 1px solid rgba(74, 125, 255, 0.25);
            border-radius: var(--radius);
            padding: 16px;
            margin-bottom: 14px;
        }

        .datos-bancarios h4 {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--blue);
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .dato-fila {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 9px 0;
            border-bottom: 1px dashed rgba(74, 125, 255, 0.15);
            font-size: 12px;
            gap: 10px;
        }

        .dato-fila:last-child {
            border-bottom: none;
        }

        .dato-fila .label {
            color: var(--text-3);
            font-weight: 600;
            font-size: 11px;
        }

        .dato-fila .valor {
            color: var(--text);
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
            font-size: 12px;
            text-align: right;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .copiar-btn {
            background: transparent;
            border: none;
            color: var(--text-3);
            cursor: pointer;
            padding: 2px 4px;
            font-size: 11px;
        }

        .tabs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 6px;
            margin-bottom: 18px;
            padding: 4px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            border: 1px solid var(--stroke);
        }

        .tab-btn {
            padding: 10px;
            background: transparent;
            border: none;
            color: var(--text-2);
            border-radius: 9px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 700;
            font-family: inherit;
        }

        .tab-btn.activo {
            background: var(--accent-grad);
            color: #05070d;
        }

        .tarjeta-guardada-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: linear-gradient(135deg, rgba(74, 125, 255, 0.1), rgba(42, 92, 217, 0.05));
            border: 1px solid rgba(74, 125, 255, 0.2);
            border-radius: 10px;
            margin-bottom: 8px;
            cursor: pointer;
        }

        .tg-chip {
            width: 46px;
            height: 32px;
            border-radius: 6px;
            background: linear-gradient(135deg, #ffd700, #ff9500);
            flex-shrink: 0;
            position: relative;
        }

        .tg-chip::after {
            content: '';
            position: absolute;
            inset: 6px;
            background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0 2px, transparent 2px 5px);
            border-radius: 3px;
        }

        .tg-info {
            flex: 1;
            min-width: 0;
        }

        .tg-info h5 {
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 2px;
            font-family: 'JetBrains Mono', monospace;
        }

        .tg-info p {
            font-size: 10px;
            color: var(--text-3);
            text-transform: uppercase;
        }

        .tg-acciones button {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            color: var(--text-3);
            width: 28px;
            height: 28px;
            border-radius: 7px;
            cursor: pointer;
        }

        .add-card-form {
            padding: 16px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px dashed rgba(74, 125, 255, 0.3);
            border-radius: 12px;
            margin-top: 10px;
        }

        .add-card-form h5 {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            color: var(--blue);
            margin-bottom: 12px;
        }

        .card-visual {
            background: linear-gradient(135deg, #1a2338 0%, #2a3a5c 100%);
            border-radius: 12px;
            padding: 16px;
            margin-bottom: 14px;
            aspect-ratio: 1.586;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .card-visual::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -30%;
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, rgba(139, 195, 74, 0.2), transparent 70%);
        }

        .card-visual-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: relative;
            z-index: 1;
        }

        .card-visual-chip {
            width: 40px;
            height: 30px;
            background: linear-gradient(135deg, #ffd700, #d4a24c);
            border-radius: 5px;
        }

        .card-visual-brand {
            font-size: 16px;
            font-weight: 900;
            color: white;
            letter-spacing: 1px;
        }

        .card-visual-number {
            font-family: 'JetBrains Mono', monospace;
            font-size: 16px;
            font-weight: 600;
            color: white;
            letter-spacing: 2px;
            position: relative;
            z-index: 1;
        }

        .card-visual-bottom {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            position: relative;
            z-index: 1;
        }

        .card-visual-field {
            font-size: 9px;
            color: rgba(255, 255, 255, 0.6);
            text-transform: uppercase;
            font-weight: 600;
            margin-bottom: 2px;
        }

        .card-visual-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            font-weight: 700;
            color: white;
        }

        .card-form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .card-form-grid .full {
            grid-column: 1 / -1;
        }

        .perfil-header {
            text-align: center;
            padding: 20px 0 14px;
        }

        .perfil-iniciales {
            width: 84px;
            height: 84px;
            border-radius: 50%;
            background: var(--accent-grad);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            font-weight: 800;
            color: #05070d;
            margin: 0 auto 14px;
            box-shadow: 0 12px 32px rgba(139, 195, 74, 0.35);
            position: relative;
        }

        .perfil-verified {
            position: absolute;
            bottom: 0;
            right: 0;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background: var(--blue);
            border: 3px solid #05070d;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
        }

        .perfil-nombre {
            font-size: 20px;
            font-weight: 800;
            margin-bottom: 4px;
        }

        .perfil-id-box {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 10px;
            background: rgba(139, 195, 74, 0.08);
            border: 1px solid rgba(139, 195, 74, 0.2);
            margin-bottom: 8px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            color: var(--accent);
            font-size: 12px;
        }

        .perfil-id-box button {
            background: transparent;
            border: none;
            color: var(--accent);
            cursor: pointer;
            font-size: 10px;
        }

        .perfil-meta {
            font-size: 11px;
            color: var(--text-3);
        }

        .stats-titulo {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-3);
            margin: 20px 0 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .stats-titulo i {
            color: var(--accent);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .stat-card {
            padding: 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 12px;
        }

        .stat-card.primary {
            background: radial-gradient(circle at 100% 0%, rgba(139, 195, 74, 0.15), transparent 60%), rgba(0, 0, 0, 0.3);
            border-color: rgba(139, 195, 74, 0.25);
        }

        .stat-card.danger {
            background: radial-gradient(circle at 100% 0%, rgba(255, 61, 113, 0.12), transparent 60%), rgba(0, 0, 0, 0.3);
            border-color: rgba(255, 61, 113, 0.2);
        }

        .stat-card.info {
            background: radial-gradient(circle at 100% 0%, rgba(74, 125, 255, 0.12), transparent 60%), rgba(0, 0, 0, 0.3);
            border-color: rgba(74, 125, 255, 0.2);
        }

        .stat-card.purple {
            background: radial-gradient(circle at 100% 0%, rgba(162, 89, 255, 0.12), transparent 60%), rgba(0, 0, 0, 0.3);
            border-color: rgba(162, 89, 255, 0.2);
        }

        .stat-icon {
            width: 32px;
            height: 32px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            margin-bottom: 10px;
        }

        .stat-card.primary .stat-icon {
            background: rgba(139, 195, 74, 0.15);
            color: var(--accent);
        }

        .stat-card.danger .stat-icon {
            background: rgba(255, 61, 113, 0.15);
            color: var(--danger);
        }

        .stat-card.info .stat-icon {
            background: rgba(74, 125, 255, 0.15);
            color: var(--blue);
        }

        .stat-card.purple .stat-icon {
            background: rgba(162, 89, 255, 0.15);
            color: var(--purple);
        }

        .stat-label {
            font-size: 10px;
            color: var(--text-3);
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .stat-valor {
            font-size: 18px;
            font-weight: 800;
            font-family: 'JetBrains Mono', monospace;
        }

        .stat-sub {
            font-size: 10px;
            color: var(--text-3);
            margin-top: 4px;
        }

        .winrate-box {
            padding: 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 12px;
            margin-top: 10px;
        }

        .winrate-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--text-2);
        }

        .winrate-header .valor {
            color: var(--accent);
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
        }

        .winrate-barra {
            height: 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            overflow: hidden;
            display: flex;
        }

        .winrate-ganadas {
            background: var(--accent-grad);
            height: 100%;
        }

        .winrate-perdidas {
            background: var(--danger);
            height: 100%;
        }

        .historial-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid var(--stroke);
            border-radius: 10px;
            margin-bottom: 6px;
        }

        .historial-icon {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            flex-shrink: 0;
        }

        .historial-icon.compra {
            background: rgba(139, 195, 74, 0.15);
            color: var(--accent);
        }

        .historial-icon.venta {
            background: rgba(255, 61, 113, 0.15);
            color: var(--danger);
        }

        .historial-info {
            flex: 1;
            min-width: 0;
        }

        .historial-info h5 {
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 2px;
        }

        .historial-info p {
            font-size: 10px;
            color: var(--text-3);
            font-family: 'JetBrains Mono', monospace;
        }

        .historial-pnl {
            text-align: right;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            font-size: 12px;
        }

        .ajustes-lista {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .ajuste-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 12px;
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            cursor: pointer;
        }

        .ajuste-item-izq {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .ajuste-icon {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            background: rgba(255, 255, 255, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-2);
            font-size: 14px;
        }

        .ajuste-item h5 {
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 1px;
        }

        .ajuste-item p {
            font-size: 11px;
            color: var(--text-3);
        }

        .ajuste-item>i {
            color: var(--text-3);
            font-size: 12px;
        }

        .kyc-progress {
            padding: 16px;
            background: linear-gradient(135deg, rgba(74, 125, 255, 0.1), rgba(42, 92, 217, 0.05));
            border: 1px solid rgba(74, 125, 255, 0.25);
            border-radius: var(--radius);
            margin-bottom: 14px;
        }

        .kyc-progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
        }

        .kyc-progress-header h4 {
            font-size: 13px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .kyc-progress-header h4 i {
            color: var(--blue);
        }

        .kyc-progress-pct {
            font-family: 'JetBrains Mono', monospace;
            font-size: 14px;
            font-weight: 800;
            color: var(--blue);
        }

        .kyc-progress-barra {
            height: 8px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 4px;
            overflow: hidden;
        }

        .kyc-progress-fill {
            height: 100%;
            background: var(--blue-grad);
            border-radius: 4px;
            transition: width .5s;
        }

        .kyc-progress-info {
            font-size: 11px;
            color: var(--text-3);
            margin-top: 10px;
        }

        .kyc-doc-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px;
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid var(--stroke);
            border-radius: 12px;
            margin-bottom: 8px;
            cursor: pointer;
        }

        .kyc-doc-item.completado {
            background: rgba(139, 195, 74, 0.05);
            border-color: rgba(139, 195, 74, 0.3);
        }

        .kyc-doc-icon {
            width: 42px;
            height: 42px;
            border-radius: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 17px;
            flex-shrink: 0;
        }

        .kyc-doc-icon.pending {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-3);
        }

        .kyc-doc-icon.done {
            background: rgba(139, 195, 74, 0.15);
            color: var(--accent);
        }

        .kyc-doc-icon.optional {
            background: rgba(255, 159, 67, 0.12);
            color: var(--orange);
        }

        .kyc-doc-info {
            flex: 1;
            min-width: 0;
        }

        .kyc-doc-info h5 {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 3px;
        }

        .kyc-doc-info p {
            font-size: 11px;
            color: var(--text-3);
        }

        .kyc-doc-status {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 800;
            text-transform: uppercase;
        }

        .kyc-doc-status.pending {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-3);
        }

        .kyc-doc-status.done {
            background: rgba(139, 195, 74, 0.15);
            color: var(--accent);
        }

        .kyc-doc-status.optional {
            background: rgba(255, 159, 67, 0.12);
            color: var(--orange);
        }

        .material-categoria {
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 12px;
            cursor: pointer;
            margin-bottom: 8px;
            transition: all .2s;
        }

        .material-categoria:hover {
            background: rgba(139, 195, 74, 0.05);
            border-color: rgba(139, 195, 74, 0.3);
        }

        .material-cat-icon {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: white;
            flex-shrink: 0;
        }

        .material-cat-info {
            flex: 1;
            min-width: 0;
        }

        .material-cat-info h4 {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 3px;
        }

        .material-cat-info p {
            font-size: 11px;
            color: var(--text-3);
        }

        .material-cat-count {
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 800;
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-2);
        }

        .material-item {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            padding: 14px;
            background: rgba(0, 0, 0, 0.25);
            border: 1px solid var(--stroke);
            border-radius: 12px;
            margin-bottom: 8px;
            cursor: pointer;
            transition: all .2s;
        }

        .material-item:hover {
            background: rgba(139, 195, 74, 0.04);
            border-color: rgba(139, 195, 74, 0.25);
        }

        .material-tipo-icon {
            width: 42px;
            height: 42px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }

        .material-tipo-icon.pdf {
            background: rgba(255, 61, 113, 0.15);
            color: var(--danger);
        }

        .material-tipo-icon.video {
            background: rgba(74, 125, 255, 0.15);
            color: var(--blue);
        }

        .material-tipo-icon.strategy {
            background: rgba(162, 89, 255, 0.15);
            color: var(--purple);
        }

        .material-tipo-icon.ebook {
            background: rgba(255, 159, 67, 0.15);
            color: var(--orange);
        }

        .material-info {
            flex: 1;
            min-width: 0;
        }

        .material-info h5 {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .material-info p {
            font-size: 11px;
            color: var(--text-3);
            line-height: 1.4;
            margin-bottom: 6px;
        }

        .material-meta {
            display: flex;
            gap: 10px;
            font-size: 10px;
            color: var(--text-3);
            font-weight: 600;
        }

        .material-meta span {
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .material-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            padding: 14px;
            background: linear-gradient(135deg, rgba(162, 89, 255, 0.12), rgba(74, 125, 255, 0.06));
            border: 1px solid rgba(162, 89, 255, 0.25);
            border-radius: var(--radius);
        }

        .material-header-icon {
            width: 46px;
            height: 46px;
            border-radius: 12px;
            background: linear-gradient(135deg, #a259ff, #7c3aed);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 22px;
            flex-shrink: 0;
        }

        .material-header-txt h3 {
            font-size: 16px;
            font-weight: 800;
            margin-bottom: 2px;
        }

        .material-header-txt p {
            font-size: 11px;
            color: var(--text-3);
        }

        .chat-fab {
            position: fixed;
            bottom: 96px;
            right: 16px;
            width: 58px;
            height: 58px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8bc34a, #4a7c23);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 8px 28px rgba(139, 195, 74, 0.5), 0 0 0 0 rgba(139, 195, 74, 0.6);
            z-index: 200;
            transition: all .25s;
            animation: pulseRing 2.5s infinite;
        }

        @keyframes pulseRing {
            0% {
                box-shadow: 0 8px 28px rgba(139, 195, 74, 0.5), 0 0 0 0 rgba(139, 195, 74, 0.6);
            }

            70% {
                box-shadow: 0 8px 28px rgba(139, 195, 74, 0.5), 0 0 0 16px rgba(139, 195, 74, 0);
            }

            100% {
                box-shadow: 0 8px 28px rgba(139, 195, 74, 0.5), 0 0 0 0 rgba(139, 195, 74, 0);
            }
        }

        .chat-fab:active {
            transform: scale(0.94);
        }

        .chat-fab.online-dot {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 14px;
            height: 14px;
            background: #26a69a;
            border: 2px solid var(--bg-0);
            border-radius: 50%;
            box-shadow: 0 0 8px #26a69a;
        }

        .chat-panel {
            position: fixed;
            bottom: 0;
            right: 0;
            left: 0;
            height: 88vh;
            max-width: 500px;
            margin: 0 auto;
            background: var(--bg-1);
            border-top: 1px solid var(--stroke-2);
            border-radius: 24px 24px 0 0;
            box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.7);
            z-index: 300;
            display: flex;
            flex-direction: column;
            transform: translateY(100%);
            transition: transform .35s cubic-bezier(.4, 0, .2, 1);
            overflow: hidden;
        }

        .chat-panel.abierto {
            transform: translateY(0);
        }

        .chat-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 16px;
            background: linear-gradient(135deg, rgba(139, 195, 74, 0.15), rgba(74, 124, 35, 0.08));
            border-bottom: 1px solid var(--stroke);
            flex-shrink: 0;
        }

        .chat-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8bc34a, #4a7c23);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 800;
            font-size: 15px;
            position: relative;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
        }

        .chat-avatar::after {
            content: '';
            position: absolute;
            bottom: 1px;
            right: 1px;
            width: 12px;
            height: 12px;
            background: #26a69a;
            border: 2px solid var(--bg-1);
            border-radius: 50%;
        }

        .chat-header-info {
            flex: 1;
            min-width: 0;
        }

        .chat-header-info h4 {
            font-size: 14px;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .chat-header-info h4 .verified {
            font-size: 11px;
            color: var(--blue);
            background: rgba(74, 125, 255, 0.15);
            padding: 1px 6px;
            border-radius: 8px;
            font-weight: 700;
        }

        .chat-header-info p {
            font-size: 11px;
            color: #26a69a;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .chat-header-info p::before {
            content: '';
            width: 6px;
            height: 6px;
            background: #26a69a;
            border-radius: 50%;
            box-shadow: 0 0 6px #26a69a;
            animation: pulse 1.5s infinite;
        }

        .chat-header-actions {
            display: flex;
            gap: 6px;
        }

        .chat-header-actions button {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            color: var(--text-2);
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .chat-mensajes {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            background: var(--bg-1);
        }

        .chat-mensaje {
            display: flex;
            gap: 8px;
            max-width: 85%;
            animation: msgAparecer .3s ease;
        }

        @keyframes msgAparecer {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .chat-mensaje.asesor {
            align-self: flex-start;
        }

        .chat-mensaje.usuario {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        .chat-mensaje-avatar {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: linear-gradient(135deg, #8bc34a, #4a7c23);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11px;
            font-weight: 800;
            flex-shrink: 0;
        }

        .chat-mensaje.usuario .chat-mensaje-avatar {
            background: linear-gradient(135deg, #4a7dff, #2a5cd9);
        }

        .chat-burbuja {
            padding: 10px 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--stroke);
            border-radius: 14px;
            font-size: 13px;
            line-height: 1.5;
            color: var(--text);
            word-wrap: break-word;
        }

        .chat-mensaje.usuario .chat-burbuja {
            background: linear-gradient(135deg, #4a7dff, #2a5cd9);
            border-color: transparent;
            color: white;
            border-radius: 14px 14px 4px 14px;
        }

        .chat-mensaje.asesor .chat-burbuja {
            border-radius: 14px 14px 14px 4px;
        }

        .chat-hora {
            font-size: 9px;
            color: var(--text-3);
            margin-top: 4px;
            padding: 0 4px;
            font-family: 'JetBrains Mono', monospace;
        }

        .chat-typing {
            display: none;
            align-self: flex-start;
            padding: 10px 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--stroke);
            border-radius: 14px 14px 14px 4px;
            gap: 4px;
            align-items: center;
        }

        .chat-typing.mostrar {
            display: flex;
        }

        .chat-typing-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--text-3);
            animation: typingBounce 1.2s infinite;
        }

        .chat-typing-dot:nth-child(2) {
            animation-delay: 0.15s;
        }

        .chat-typing-dot:nth-child(3) {
            animation-delay: 0.3s;
        }

        @keyframes typingBounce {

            0%,
            60%,
            100% {
                transform: translateY(0);
                opacity: 0.4;
            }

            30% {
                transform: translateY(-6px);
                opacity: 1;
            }
        }

        .chat-quick-replies {
            padding: 8px 16px;
            display: flex;
            gap: 6px;
            overflow-x: auto;
            scrollbar-width: none;
            border-top: 1px solid var(--stroke);
            background: rgba(0, 0, 0, 0.2);
        }

        .chat-quick-replies::-webkit-scrollbar {
            display: none;
        }

        .quick-reply {
            padding: 7px 12px;
            background: rgba(74, 125, 255, 0.1);
            border: 1px solid rgba(74, 125, 255, 0.25);
            color: var(--blue);
            border-radius: 16px;
            font-size: 11px;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            font-family: inherit;
            transition: all .2s;
        }

        .chat-input-wrap {
            display: flex;
            gap: 8px;
            align-items: center;
            padding: 12px 14px max(12px, env(safe-area-inset-bottom));
            background: var(--bg-2);
            border-top: 1px solid var(--stroke);
            flex-shrink: 0;
        }

        .chat-input {
            flex: 1;
            padding: 11px 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 20px;
            color: white;
            outline: none;
            font-size: 13px;
            font-family: inherit;
        }

        .chat-send-btn {
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: var(--accent-grad);
            border: none;
            color: #05070d;
            cursor: pointer;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(139, 195, 74, 0.4);
        }

        .nav-inferior {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            padding: 8px 6px max(8px, env(safe-area-inset-bottom));
            background: rgba(5, 7, 13, 0.95);
            border-top: 1px solid var(--stroke);
            backdrop-filter: blur(20px);
            z-index: 90;
        }

        .nav-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            padding: 6px 4px;
            background: transparent;
            border: none;
            color: var(--text-3);
            font-size: 9px;
            font-weight: 700;
            cursor: pointer;
            border-radius: 10px;
            font-family: inherit;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            position: relative;
        }

        .nav-btn i {
            font-size: 18px;
        }

        .nav-btn.activo {
            color: var(--accent);
        }

        .nav-btn.activo::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 20px;
            height: 3px;
            background: var(--accent);
            border-radius: 0 0 4px 4px;
            box-shadow: 0 0 12px var(--accent);
        }

        .notif-panel {
            position: fixed;
            top: 60px;
            right: 12px;
            width: 320px;
            max-width: calc(100% - 24px);
            max-height: 70vh;
            background: var(--glass-strong);
            border: 1px solid var(--stroke-2);
            border-radius: var(--radius);
            backdrop-filter: blur(24px);
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            z-index: 250;
            overflow: hidden;
            transform: translateY(-10px) scale(0.98);
            opacity: 0;
            pointer-events: none;
            transition: all .25s;
        }

        .notif-panel.abierto {
            transform: translateY(0) scale(1);
            opacity: 1;
            pointer-events: auto;
        }

        .notif-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 1px solid var(--stroke);
        }

        .notif-panel-header h4 {
            font-size: 14px;
            font-weight: 800;
        }

        .notif-panel-header button {
            background: transparent;
            border: none;
            color: var(--text-3);
            cursor: pointer;
            font-size: 12px;
            font-family: inherit;
        }

        .notif-lista {
            max-height: calc(70vh - 60px);
            overflow-y: auto;
        }

        .notif-item {
            display: flex;
            gap: 12px;
            padding: 12px 16px;
            border-bottom: 1px solid var(--stroke);
        }

        .notif-icon {
            width: 34px;
            height: 34px;
            border-radius: 9px;
            background: rgba(139, 195, 74, 0.15);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            flex-shrink: 0;
        }

        .notif-icon.blue {
            background: rgba(74, 125, 255, 0.15);
            color: var(--blue);
        }

        .notif-icon.orange {
            background: rgba(255, 159, 67, 0.15);
            color: var(--orange);
        }

        .notif-content {
            flex: 1;
            min-width: 0;
        }

        .notif-content h5 {
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 3px;
        }

        .notif-content p {
            font-size: 11px;
            color: var(--text-3);
            line-height: 1.4;
        }

        .toast {
            position: fixed;
            bottom: 100px;
            left: 16px;
            right: 16px;
            max-width: 420px;
            margin: 0 auto;
            padding: 14px 18px;
            background: var(--glass-strong);
            border: 1px solid var(--stroke-2);
            border-radius: var(--radius-sm);
            text-align: center;
            font-size: 13px;
            font-weight: 600;
            opacity: 0;
            transform: translateY(20px);
            transition: all .3s;
            z-index: 400;
            pointer-events: none;
            backdrop-filter: blur(20px);
        }

        .toast.mostrar {
            opacity: 1;
            transform: translateY(0);
        }

        .welcome-banner {
            position: fixed;
            top: 60px;
            left: 50%;
            transform: translateX(-50%) translateY(-100px);
            background: var(--accent-grad);
            color: #05070d;
            padding: 10px 20px;
            border-radius: 24px;
            font-weight: 700;
            font-size: 13px;
            box-shadow: 0 12px 32px rgba(139, 195, 74, 0.5);
            z-index: 350;
            opacity: 0;
            transition: all .5s;
            pointer-events: none;
            display: flex;
            align-items: center;
            gap: 8px;
            max-width: 90%;
        }

        .welcome-banner.mostrar {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        .btn-cerrar {
            width: 100%;
            padding: 13px;
            background: rgba(255, 61, 113, 0.1);
            color: var(--danger);
            border: 1px solid rgba(255, 61, 113, 0.25);
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: 700;
            font-family: inherit;
            font-size: 13px;
            margin-top: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            z-index: 500;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal-overlay.abierto {
            display: flex;
        }

        .modal-box {
            width: 100%;
            max-width: 440px;
            background: var(--bg-2);
            border: 1px solid var(--stroke-2);
            border-radius: 20px;
            padding: 22px;
            max-height: 90vh;
            overflow-y: auto;
            animation: slideUp .3s ease;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 18px;
            padding-bottom: 14px;
            border-bottom: 1px solid var(--stroke);
        }

        .modal-header h3 {
            font-size: 16px;
            font-weight: 800;
        }

        .modal-close {
            width: 32px;
            height: 32px;
            border-radius: 9px;
            background: rgba(255, 255, 255, 0.05);
            border: none;
            color: var(--text-2);
            cursor: pointer;
            font-size: 14px;
        }

        .upload-opciones {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 14px;
        }

        .upload-opcion {
            padding: 20px 12px;
            background: rgba(0, 0, 0, 0.3);
            border: 2px dashed rgba(74, 125, 255, 0.35);
            border-radius: 14px;
            text-align: center;
            cursor: pointer;
        }

        .upload-opcion i {
            font-size: 28px;
            color: var(--blue);
            margin-bottom: 8px;
            display: block;
        }

        .upload-opcion h5 {
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .upload-opcion p {
            font-size: 10px;
            color: var(--text-3);
        }

        .upload-preview {
            display: none;
            padding: 20px;
            background: rgba(139, 195, 74, 0.08);
            border: 2px solid rgba(139, 195, 74, 0.3);
            border-radius: 14px;
            text-align: center;
            margin-bottom: 14px;
        }

        .upload-preview.mostrar {
            display: block;
        }

        .upload-preview i {
            font-size: 40px;
            color: var(--accent);
            margin-bottom: 8px;
            display: block;
        }

        .upload-preview h5 {
            font-size: 12px;
            color: var(--accent);
            font-weight: 700;
        }

        .menu-drawer-btn {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--stroke);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-2);
            font-size: 15px;
            cursor: pointer;
        }

        .menu-drawer-btn:hover {
            color: var(--text);
            border-color: var(--stroke-2);
        }

        .drawer-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 290;
            display: none;
            backdrop-filter: blur(4px);
        }

        .drawer-overlay.abierto {
            display: block;
        }

        .drawer {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            width: 300px;
            background: var(--bg-1);
            border-right: 1px solid var(--stroke-2);
            z-index: 295;
            transform: translateX(-100%);
            transition: transform .3s ease;
            overflow-y: auto;
            padding: 20px 16px;
        }

        .drawer.abierto {
            transform: translateX(0);
        }

        .drawer-header {
            display: flex;
            align-items: center;
            gap: 12px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--stroke);
            margin-bottom: 16px;
        }

        .drawer-avatar {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--accent-grad);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #05070d;
            font-weight: 800;
            font-size: 18px;
            flex-shrink: 0;
        }

        .drawer-info h4 {
            font-size: 14px;
            font-weight: 800;
            margin-bottom: 2px;
        }

        .drawer-info p {
            font-size: 11px;
            color: var(--text-3);
            font-family: 'JetBrains Mono', monospace;
        }

        .drawer-info .drawer-id {
            font-size: 10px;
            color: var(--accent);
            margin-top: 3px;
        }

        .drawer-seccion {
            font-size: 10px;
            color: var(--text-3);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 800;
            margin: 16px 0 8px 8px;
        }

        .drawer-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 10px;
            border-radius: 10px;
            color: var(--text-2);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            margin-bottom: 2px;
            transition: background .2s;
        }

        .drawer-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text);
        }

        .drawer-item i {
            width: 20px;
            text-align: center;
            color: var(--accent);
            font-size: 14px;
        }

        .drawer-item.salir {
            color: var(--danger);
        }

        .drawer-item.salir i {
            color: var(--danger);
        }

        .servicios-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
        }

        .servicio-card {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 12px;
            padding: 16px 12px;
            text-align: center;
            transition: transform .2s, border-color .2s;
        }

        .servicio-card:hover {
            transform: translateY(-3px);
            border-color: rgba(139, 195, 74, 0.4);
        }

        .servicio-icon {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: rgba(139, 195, 74, 0.12);
            color: var(--accent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            margin: 0 auto 10px;
        }

        .servicio-titulo {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .servicio-desc {
            font-size: 11px;
            color: var(--text-3);
            line-height: 1.4;
        }

        .asesores-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 12px;
        }

        .asesor-card {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
        }

        .asesor-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: var(--accent-grad);
            color: #05070d;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 800;
            margin: 0 auto 10px;
        }

        .asesor-nombre {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 3px;
        }

        .asesor-especialidad {
            font-size: 11px;
            color: var(--accent);
            margin-bottom: 6px;
            font-weight: 600;
        }

        .asesor-estrellas {
            color: #ffd700;
            font-size: 11px;
            margin-bottom: 8px;
        }

        .asesor-contacto {
            font-size: 10px;
            color: var(--text-3);
            margin-bottom: 10px;
            line-height: 1.5;
        }

        .asesor-contacto i {
            color: var(--accent);
            margin-right: 4px;
        }

        .blog-grid {
            display: grid;
            gap: 10px;
        }

        .blog-card {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 12px;
            padding: 14px;
            cursor: pointer;
            transition: transform .2s, border-color .2s;
        }

        .blog-card:hover {
            transform: translateY(-3px);
            border-color: rgba(139, 195, 74, 0.4);
        }

        .blog-fecha {
            font-size: 10px;
            color: var(--text-3);
            margin-bottom: 6px;
            font-family: 'JetBrains Mono', monospace;
        }

        .blog-titulo {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .blog-resumen {
            font-size: 11px;
            color: var(--text-3);
            line-height: 1.5;
            margin-bottom: 8px;
        }

        .blog-tag {
            display: inline-block;
            padding: 3px 8px;
            background: rgba(139, 195, 74, 0.12);
            color: var(--accent);
            border-radius: 10px;
            font-size: 10px;
            font-weight: 700;
        }

        .cotizador-resultado {
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid var(--stroke);
            border-radius: 10px;
            padding: 14px;
            margin-top: 12px;
        }

        .cotizador-fila {
            display: flex;
            justify-content: space-between;
            padding: 7px 0;
            font-size: 12px;
            color: var(--text-2);
        }

        .cotizador-fila:last-child {
            border-bottom: none;
        }

        .cotizador-valor {
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            color: var(--accent);
        }

        .simulador-tabs {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 6px;
            margin-bottom: 14px;
            padding: 4px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 10px;
        }

        .simulador-tab {
            padding: 10px 6px;
            background: transparent;
            border: none;
            color: var(--text-2);
            border-radius: 8px;
            cursor: pointer;
            font-size: 11px;
            font-weight: 700;
            font-family: inherit;
        }

        .simulador-tab.activo {
            background: var(--accent-grad);
            color: #05070d;
        }

        .resultado-simulacion {
            background: rgba(0, 0, 0, 0.35);
            border: 1px solid var(--stroke);
            border-radius: 10px;
            padding: 14px;
            margin-top: 12px;
        }

        .calendario {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 4px;
            margin: 12px 0;
        }

        .calendario-dia {
            padding: 10px 4px;
            text-align: center;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 8px;
            cursor: pointer;
            font-size: 11px;
            font-family: 'JetBrains Mono', monospace;
            transition: all .2s;
        }

        .calendario-dia:hover {
            border-color: var(--accent);
        }

        .calendario-dia.seleccionado {
            background: var(--accent-grad);
            color: #05070d;
            font-weight: 800;
            border-color: transparent;
        }

        .calendario-dia.deshabilitado {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .horarios-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            margin: 12px 0;
        }

        .horario-btn {
            padding: 9px 4px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 8px;
            color: var(--text-2);
            cursor: pointer;
            font-size: 11px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
        }

        .horario-btn.seleccionado {
            background: var(--accent-grad);
            color: #05070d;
            border-color: transparent;
        }

        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
            margin-bottom: 14px;
        }

        .dashboard-card {
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 12px;
            padding: 14px;
        }

        .dashboard-label {
            font-size: 10px;
            color: var(--text-3);
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 6px;
        }

        .dashboard-valor {
            font-size: 20px;
            font-weight: 800;
            font-family: 'JetBrains Mono', monospace;
            color: var(--accent);
        }

        .seguridad-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(139, 195, 74, 0.1);
            color: var(--accent);
            border: 1px solid rgba(139, 195, 74, 0.25);
            border-radius: 20px;
            font-size: 11px;
            margin: 4px 4px 0 0;
            font-weight: 700;
        }

        .metodo-pago-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--stroke);
            border-radius: 10px;
            margin-bottom: 8px;
        }

        .metodo-pago-item i {
            font-size: 22px;
            color: var(--accent);
            width: 30px;
            text-align: center;
        }

        .metodo-pago-item strong {
            font-size: 12px;
            display: block;
            margin-bottom: 2px;
        }

        .metodo-pago-item small {
            font-size: 10px;
            color: var(--text-3);
        }
    
