        :root {
            /* Tema Oscuro (Por defecto) */
            --wt-bg-main: #102f48;
            --wt-bg-elevated: #163B56;
            --wt-bg-surface: #1A4568;
            --wt-text-main: #FFFFFF;
            --wt-text-secondary: #A0AEC0;
            --wt-border: #2D5475;
            --wt-shadow: rgba(0,0,0,0.3);

            /* Constantes */
            --wt-teal-primary: #00A896;
            --wt-teal-dark: #028070;
            --wt-teal-glow: rgba(0, 168, 150, 0.3);
            --wt-font-main: 'Inter', sans-serif;
            --radius-card: 18px;
            --radius-btn: 12px;
        }

        /* Tema Claro (Sobrescribir variables) */
        body.light-mode {
            --wt-bg-main: #F8F9FA;
            --wt-bg-elevated: #FFFFFF;
            --wt-bg-surface: #F1F5F9;
            --wt-text-main: #102f48; /* Usamos el azul oscuro como texto principal */
            --wt-text-secondary: #6C757D;
            --wt-border: #E9ECEF;
            --wt-shadow: rgba(0,0,0,0.05);
        }

        * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

        body {
            margin: 0;
            font-family: var(--wt-font-main);
            background-color: #0a1f30; /* Fondo externo */
            color: var(--wt-text-main);
            line-height: 1.5;
            height: 100dvh;
            width: 100vw;
            overflow: hidden;
            display: flex;
            justify-content: center;
            transition: background-color 0.3s ease;
        }

        /* LOGIN SCREEN */
        #login-screen {
            width: 100%; max-width: 480px; height: 100%;
            background: var(--wt-bg-main);
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            padding: 24px; position: relative; z-index: 3000;
            transition: background-color 0.3s ease, opacity 0.5s ease, transform 0.5s ease;
        }
        #login-screen.hidden { opacity: 0; pointer-events: none; transform: scale(1.05); position: absolute; }

        .login-logo { margin-bottom: 48px; text-align: center; }
        .login-logo img { height: 40px; margin-bottom: 12px; }
        .login-logo h1 { margin: 0; font-size: 1.2rem; color: var(--wt-text-secondary); font-weight: 400; }

        .login-form { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 20px; }
        .login-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--wt-text-secondary); }

        .login-input {
            width: 100%; padding: 14px; border-radius: var(--radius-btn);
            border: 1px solid var(--wt-border);
            background: var(--wt-bg-surface); /* Adaptativo */
            font-family: var(--wt-font-main); font-size: 16px;
            color: var(--wt-text-main);
            outline: none; transition: all 0.2s;
        }
        .login-input:focus { border-color: var(--wt-teal-primary); }

        .login-btn {
            width: 100%; padding: 16px; border-radius: var(--radius-btn); border: none;
            background: var(--wt-teal-primary); color: white;
            font-family: var(--wt-font-main); font-weight: 600; font-size: 1rem;
            cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;
            margin-top: 10px; box-shadow: 0 4px 14px var(--wt-teal-glow);
        }
        .login-btn:active { transform: scale(0.98); }
        .login-error { color: #FC8181; font-size: 0.8rem; text-align: center; height: 16px; margin-bottom: 8px; }

        /* APP CONTAINER */
        #app-container {
            width: 100%; max-width: 480px; height: 100%;
            background: var(--wt-bg-main);
            position: relative; display: none; flex-direction: column;
            box-shadow: 0 0 40px var(--wt-shadow);
            overflow: hidden;
            transition: background-color 0.3s ease;
        }
        #app-container.active { display: flex; }

        .app-header {
            padding: 16px 24px; display: flex; justify-content: space-between; align-items: center;
            background: var(--wt-bg-elevated); backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--wt-border); flex-shrink: 0; z-index: 100;
            transition: background-color 0.3s ease;
        }

        .brand-logo img { height: 32px; width: auto; object-fit: contain; }

        .user-avatar {
            width: 36px; height: 36px; border-radius: 50%;
            background: var(--wt-bg-surface); border: 2px solid var(--wt-teal-primary);
            display: flex; align-items: center; justify-content: center;
            color: var(--wt-teal-primary); cursor: pointer;
        }

        main { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }

        .module-card {
            background: var(--wt-bg-elevated); margin: 24px; padding: 24px;
            border-radius: var(--radius-card); box-shadow: 0 8px 24px var(--wt-shadow);
            border: 1px solid var(--wt-border);
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        .module-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--wt-text-secondary); margin-bottom: 16px; font-weight: 600; }

        .btn-wt {
            width: 100%; padding: 14px; border-radius: var(--radius-btn); border: none;
            font-family: var(--wt-font-main); font-weight: 600; font-size: 0.95rem;
            cursor: pointer; transition: all 0.2s; display: flex; align-items: center;
            justify-content: center; gap: 8px; text-decoration: none;
        }
        .btn-primary { background: var(--wt-teal-primary); color: white; box-shadow: 0 4px 14px var(--wt-teal-glow); }
        .btn-primary:active { transform: scale(0.98); background: var(--wt-teal-dark); }
        .btn-secondary { background: var(--wt-bg-surface); color: var(--wt-text-main); border: 1px solid var(--wt-border); }

        /* Dashboard Specifics */
        .vault-display { text-align: center; padding: 10px 0; }
        .vault-amount { font-size: 2.8rem; font-weight: 700; color: var(--wt-text-main); margin: 4px 0; letter-spacing: -1px; }
        .vault-subtext { font-size: 0.8rem; color: var(--wt-teal-primary); background: rgba(0, 168, 150, 0.15); padding: 4px 12px; border-radius: 20px; display: inline-block; }

        .route-name-display { text-align: center; font-size: 1rem; font-weight: 600; color: var(--wt-text-main); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--wt-border); }

        .progress-container { display: flex; flex-direction: column; align-items: center; position: relative; margin: 10px 0; }
        .progress-ring { transform: rotate(-90deg); }
        .progress-ring__circle { stroke: var(--wt-bg-surface); stroke-width: 8; fill: transparent; }
        .progress-ring__highlight { stroke: var(--wt-teal-primary); stroke-width: 8; stroke-linecap: round; fill: transparent; stroke-dasharray: 326; stroke-dashoffset: 326; transition: stroke-dashoffset 1s ease-in-out; filter: drop-shadow(0 0 8px var(--wt-teal-glow)); }
        .progress-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
        .progress-month-big { font-size: 2rem; font-weight: 700; color: var(--wt-text-main); display: block; }

        .actions-row { display: flex; justify-content: center; gap: 32px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--wt-border); }
        .action-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--wt-text-secondary); transition: color 0.2s; background: none; border: none; font-family: var(--wt-font-main); }
        .action-item:active { transform: scale(0.95); }
        .action-item:hover { color: var(--wt-teal-primary); }
        .action-item svg { width: 20px; height: 20px; }
        .action-item span { font-size: 0.7rem; font-weight: 500; }

        .tx-item { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--wt-border); }

        /* Profile & Theme Selector */
        .profile-header { text-align: center; padding: 24px 0; border-bottom: 1px solid var(--wt-border); margin-bottom: 24px; }
        .profile-avatar-lg { width: 80px; height: 80px; border-radius: 50%; background: var(--wt-teal-primary); color: white; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 10px; font-weight: 700;}
        .info-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--wt-border); }
        .info-label { color: var(--wt-text-secondary); font-size: 0.9rem; }
        .info-value { font-weight: 600; color: var(--wt-text-main); font-size: 0.9rem; text-align: right; }

        /* Theme Selector UI */
        .theme-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
        .theme-option-card {
            padding: 16px; border-radius: 12px; border: 2px solid var(--wt-border);
            background: var(--wt-bg-surface); cursor: pointer; text-align: center;
            transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px;
        }
        .theme-option-card.active { border-color: var(--wt-teal-primary); background: rgba(0, 168, 150, 0.1); }
        .theme-option-card svg { width: 24px; height: 24px; color: var(--wt-text-main); }
        .theme-option-card span { font-size: 0.8rem; font-weight: 600; color: var(--wt-text-main); }

        /* Modal System */
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
        .modal-overlay.active { opacity: 1; pointer-events: all; }

        .modal-content { background: var(--wt-bg-elevated); width: 100%; max-width: 480px; max-height: 90dvh; border-radius: 24px 24px 0 0; padding: 24px; overflow-y: auto; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); display: flex; flex-direction: column; border-top: 1px solid var(--wt-border); }
        .modal-overlay.active .modal-content { transform: translateY(0); }
        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .modal-header h3 { margin: 0; color: var(--wt-text-main); }
        .modal-close { background: none; border: none; cursor: pointer; color: var(--wt-text-secondary); padding: 4px; }

        /* QR & Auth */
        .qr-container { background: var(--wt-bg-main); padding: 24px; border-radius: 16px; border: 1px solid var(--wt-border); text-align: center; margin-bottom: 20px; }
        .qr-code-box { width: 200px; height: 200px; margin: 0 auto 16px; padding: 10px; background: white; border-radius: 12px; }
        .folio-box { background: var(--wt-bg-surface); padding: 12px; border-radius: 8px; font-family: monospace; font-weight: 700; color: var(--wt-text-main); font-size: 1.1rem; }

        .auth-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--wt-bg-main); z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; text-align: center; padding: 24px; }
        .auth-overlay.active { opacity: 1; pointer-events: all; }

        .spinner { width: 50px; height: 50px; border: 4px solid var(--wt-border); border-top-color: var(--wt-teal-primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
        @keyframes spin { to { transform: rotate(360deg); } }
        .success-check { width: 80px; height: 80px; border-radius: 50%; background: var(--wt-teal-primary); color: white; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }

        /* Nav */
        .bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; background: var(--wt-bg-elevated); backdrop-filter: blur(10px); border-top: 1px solid var(--wt-border); display: flex; justify-content: space-around; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 200; transition: background-color 0.3s ease; }
        .nav-item { display: flex; flex-direction: column; align-items: center; color: var(--wt-text-secondary); text-decoration: none; font-size: 0.65rem; font-weight: 500; padding: 4px 12px; }
        .nav-item.active { color: var(--wt-teal-primary); }


		/*ACTIVAR*/
		
		
		.activo {border-color: green;border-style: groove;border-width: 4px}