    
/* -------------------------------------------------
// ----- DESARROLLADOR POR ODEL LEAL HERNANDEZ -----
// ------- VERSION 6.4.0 (2026.10.26) -------------- 
// --------------------------------------------------
 */


        /* --- TEMA CORPORATIVO --- */
        /* --- VARIABLES DE DISEÑO DEEP BLUE & AZURE SLATE (PROFIT BANK) --- */
:root {
    --primary-brand: #1e3a8a;        /* Soft Azure (Primario corporativo) */
    --accent-cyan: #0ea5e9;         /* Soft Cyan (Acentos y botones alternos) */
    --accent-jade: #34d399;         /* Light Jade (Éxitos y confirmaciones) */
    --header-bg: #020617;           /* Deep Blue (Fondo oscuro barra lateral) */
    --bg-body: #f0fdfa;             /* Icy Teal (Fondo de página sutil) */
    --text-primary: #1e293b;        /* Slate Slate (Texto oscuro principal) */
    --text-secondary: #64748b;      /* Slate Light (Texto secundario) */
    --card-bg: #ffffff;
    --border-color: #cbd5e1;
    --success-green: #34d399;
    --success-hover: #0ea5e9;
    --danger-coral: #ef4444;        /* Coral para indicadores "NO" y alertas */
    --warning-amber: #f59e0b;       /* Ambar corporativo para advertencias */
    
    --sidebar-width: 290px;
    --sidebar-collapsed-width: 80px;
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --editor-bg: #0b1020;

    /* Compatibilidad con variables previas */
    --brand-red: #1e3a8a; 
    --brand-red-light: #e0f2fe;
    --brand-red-dark: #172554;
    --brand-dark: #020617; 
    --bg-surface: #ffffff;
    --bg-information: #ecfeff; 
    --text-main: #1e293b; 
    --text-muted: #64748b; 
    --border-soft: #cbd5e1;
    --radius-lg: 16px; 
    --radius-md: 12px; 
    --shadow-float: 0 10px 25px rgba(2, 6, 23, 0.05);
    --shadow-sm: 0 2px 4px rgba(2, 6, 23, 0.03);
}

/* ========================================================================== */
/* 🎨 ESTILO GLOBAL DE PLACEHOLDERS (GRIS BIEN CLARO Y SUTIL)                */
/* ========================================================================== */
::placeholder {
    color: #cbd5e1 !important;
    opacity: 0.85 !important;
    font-weight: 400 !important;
}
::-webkit-input-placeholder {
    color: #cbd5e1 !important;
    opacity: 0.85 !important;
    font-weight: 400 !important;
}
::-moz-placeholder {
    color: #cbd5e1 !important;
    opacity: 0.85 !important;
    font-weight: 400 !important;
}
:-ms-input-placeholder {
    color: #cbd5e1 !important;
    opacity: 0.85 !important;
    font-weight: 400 !important;
}

        /* App Shell - Scroll Natural */
        body { 
            background-color: var(--bg-body); 
            font-family: 'Inter', sans-serif; 
            color: var(--text-main); 
            margin: 0; padding: 0;
            min-height: 100vh;
            overflow-x: hidden;
            display: flex; flex-direction: column; 
        }

/* HEADER REDISEÑADO: PROFIT BANK STICKY */
.header-bar { 
    background-color: var(--header-bg) !important; 
    padding: 0.75rem 0; 
    border-bottom: 3px solid var(--accent-cyan) !important; 
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important; 
    box-shadow: 0 4px 15px rgba(2, 6, 23, 0.4) !important; 
    flex-shrink: 0;
}
        .header-logo { height: 45px; width: auto; object-fit: contain; }
        .header-title { font-weight: 800; color: #ffffff; margin: 0; font-size: 1rem; letter-spacing: -0.5px;}
        
        /* ZONA DE SCROLL */
        .main-scroll-area { flex-grow: 1; overflow-y: auto; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; padding-top: 1.5rem;}

        /* COMPONENTES UI MODERNOS */
        .glass-card { 
            background: var(--bg-surface); 
            border: 1px solid var(--border-soft); 
            border-radius: var(--radius-lg); 
            box-shadow: var(--shadow-float); 
            padding: 1.5rem; 
            margin-bottom: 1.5rem;
        }
        
        .card-title-sm {
            font-size: 0.75rem; font-weight: 700; color: var(--brand-red-dark); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem;
            display: flex; align-items: center; gap: 8px;
        }

        .form-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.3rem; }
        .input-modern { 
            background-color: #F9FAFB; border: 1px solid var(--border-soft); border-radius: var(--radius-md); 
            font-weight: 500; color: var(--brand-dark); height: 46px; transition: all 0.2s; box-shadow: none !important;
        }
        .input-modern:focus { background-color: var(--bg-surface); border-color: var(--brand-red); box-shadow: 0 0 0 4px rgba(14, 165, 233,  0.1) !important; }
        .input-modern:disabled { background-color: #E5E7EB; opacity: 0.7; }

        .saldo-wrapper {
            background: var(--bg-surface); border: 2px solid var(--border-soft); border-radius: var(--radius-md);
            display: flex; align-items: center; transition: all 0.2s; overflow: hidden;
        }
        .saldo-wrapper:focus-within { border-color: var(--brand-red); box-shadow: 0 0 0 4px rgba(14, 165, 233,  0.1); }
        .saldo-currency { padding: 0 15px; font-weight: 800; color: var(--text-muted); font-size: 1.2rem; background: #F9FAFB; height: 100%; display:flex; align-items:center; border-right: 1px solid var(--border-soft);}
        .saldo-input { border: none; font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 800; color: var(--brand-dark); text-align: right; width: 100%; padding: 10px 15px; background: transparent; outline: none;}

        .dash-card { border-radius: var(--radius-md); padding: 1.2rem; border: 1px solid var(--border-soft); background: var(--bg-surface); height: 100%; display: flex; flex-direction: column; justify-content: center;}
        .dash-card.highlight { background: var(--brand-red-light); border-color: rgba(14, 165, 233,  0.2); }
        .dash-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase;}
        .dash-label.text-red { color: var(--brand-red); }
        .dash-value { font-family: 'JetBrains Mono', monospace; font-size: 2.2rem; font-weight: 800; color: var(--brand-dark); line-height: 1.1; letter-spacing: -1px;}
        .dash-value.text-red { color: var(--brand-red); }
        .dash-rate-sm { font-family: 'JetBrains Mono', monospace; font-size: 1.4rem; font-weight: 700; color: var(--text-main); }
        .dash-rate-sm.text-red { color: var(--brand-red); }

        .table-modern { font-size: 0.8rem; vertical-align: middle; }
        .table-modern thead th { background-color: #F9FAFB; color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.5px; border-bottom: 2px solid var(--border-soft); padding: 12px; }
        .table-modern tbody td { padding: 12px; border-bottom: 1px solid var(--border-soft); color: var(--text-main); }
        .val-num { font-family: 'JetBrains Mono', monospace; font-weight: 600; text-align: right; }

        /* Botones específicos para el Header (Fondo Rojo) */
        .btn-modern { border-radius: 8px; font-weight: 600; padding: 0.5rem 1rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
        .btn-header-outline { background-color: rgba(255, 255, 255, 0.15); color: white; border: 1px solid rgba(255, 255, 255, 0.3); }
        .btn-header-outline:hover { background-color: rgba(255, 255, 255, 0.25); color: white; border-color: white; }
        .btn-header-outline:disabled { opacity: 0.4; cursor: not-allowed; background-color: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); }
        .btn-header-primary { background-color: white; color: var(--brand-red); border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
        .btn-header-primary:hover:not(:disabled) { background-color: #f8f9fa; transform: translateY(-1px); }
        .btn-header-primary:disabled { 
            opacity: 0.4; 
            cursor: not-allowed; 
            background-color: rgba(255,255,255,0.5); 
            color: rgba(14, 165, 233,  0.5); 
            box-shadow: none; 
        }        
        .btn-primary-modern { background-color: var(--brand-red); color: white; border: none; }
        .btn-primary-modern:hover:not(:disabled) { background-color: #1e3a8a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(14, 165, 233,  0.3); }

        /* --- BOTONES OUTLINE CORPORATIVOS (SELECTOR DE MONEDA) --- */
        .btn-outline-brand {
            --bs-btn-color: var(--brand-red);
            --bs-btn-border-color: var(--brand-red);
            --bs-btn-hover-color: #fff;
            --bs-btn-hover-bg: var(--brand-red);
            --bs-btn-hover-border-color: var(--brand-red);
            --bs-btn-focus-shadow-rgb: 237, 28, 39; 
            --bs-btn-active-color: #fff;
            --bs-btn-active-bg: var(--brand-red);
            --bs-btn-active-border-color: var(--brand-red);
            --bs-btn-active-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
            --bs-btn-disabled-color: var(--brand-red);
            --bs-btn-disabled-bg: transparent;
            --bs-btn-disabled-border-color: var(--brand-red);
            --bs-gradient: none;
        } 

        /* --- SELECTOR DE MONEDA REDONDEADO (ESTILO PILL) --- */
        .btn-group-pill .btn:first-of-type {
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }
        .btn-group-pill .btn:last-of-type {
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }

        /* --- ESTILO PARA BOTÓN CANCELAR EDICIÓN --- */
        .btn-edit-cancel {
            background-color: var(--brand-red);
            color: white;
            border-radius: 10px;
            transition: all 0.2s ease-in-out;
        }
        .btn-edit-cancel:hover {
            background-color: var(--brand-red-dark); /* Se oscurece un poco */
            transform: translateY(-2px); /* Se levanta suavemente */
            box-shadow: 0 4px 12px rgba(14, 165, 233,  0.3) !important; /* Proyecta sombra roja */
            color: white;
        }

        .footer-modern { background: var(--bg-surface); border-top: 1px solid var(--border-soft); padding: 2rem 0; margin-top: 2rem; font-size: 0.8rem; color: var(--text-muted); border-radius: var(--radius-md); }
        .legal-box { background: #F9FAFB; border-radius: var(--radius-md); padding: 1.2rem; border: 1px solid var(--border-soft); }

         /* --- ESTILO DEL SWITCH (FIJAR TASA) --- */
        .form-check-input:checked {
            background-color: var(--brand-red);
            border-color: var(--brand-red);
        }
        
        /* Opcional: El halo que aparece al hacerle clic (Focus) */
        .form-check-input:focus {
            box-shadow: 0 0 0 4px rgba(14, 165, 233,  0.2) !important;
            border-color: var(--brand-red-light);
        }

        /* --- BARRA DE NAVEGACIÓN INFERIOR (MÓVIL) --- */
        .bottom-nav {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            background-color: white;
            box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
            z-index: 1060;
            border-radius: 20px 20px 0 0; /* Bordes redondeados modernos */
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Animación suave de deslizamiento */
        }

        /* Clase dinámica que esconde la barra */
        .bottom-nav.collapsed {
            transform: translateY(calc(100% - 30px)); /* Se hunde dejando solo 30px a la vista */
        }

        /* La pestaña superior que el usuario toca */
        .bottom-nav-toggle {
            height: 30px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            color: var(--brand-red);
            border-bottom: 1px solid var(--border-soft);
            background-color: #fdfdfd;
            border-radius: 20px 20px 0 0;
        }

        .bottom-nav-toggle i {
            font-size: 1.2rem;
            transition: transform 0.3s ease; /* Anima la rotación de la flecha */
            font-weight: 900; /* Máximo peso de fuente */
            -webkit-text-stroke: 2px currentColor; /* Dibuja un trazo extra. Cambia el 1px a 1.5px si la quieres aún más gruesa */
        }

        /* Girar flecha hacia arriba cuando está colapsado */
        .bottom-nav.collapsed .bottom-nav-toggle i {
            transform: rotate(180deg);
        }

        /* Contenedor interno de los botones (distribución simétrica en 5 columnas iguales) */
        .bottom-nav-buttons {
            padding: 10px 12px 22px 12px;
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 6px;
            align-items: center;
            justify-items: center;
            background-color: white;
        }

        .bottom-nav-buttons > a {
            display: flex;
            width: 100%;
            justify-content: center;
            text-decoration: none;
        }

        /* --- ESTILOS DE LOS BOTONES --- VERSION MOVIL */
        .nav-item-btn {
            background: none;
            border: none;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 0.68rem;
            font-weight: 600;
            padding: 6px 4px;
            transition: all 0.2s;
            border-radius: 10px;
            text-align: center;
        }
        
        .nav-item-btn i { font-size: 1.3rem; margin-bottom: 2px; color: var(--brand-dark); }
        .nav-item-btn:active { background-color: #F3F4F6; transform: scale(0.95); }
        .nav-item-btn:disabled { opacity: 0.3; filter: grayscale(100%); pointer-events: none; }

        .nav-save-btn {
            background-color: var(--brand-red);
            color: white;
            border: none;
            border-radius: 12px;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            padding: 6px 4px;
            box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
            font-size: 0.68rem;
            font-weight: 700;
        }

        .nav-save-btn i { font-size: 1.4rem; margin-bottom: 0; }
        .nav-save-btn:active { background-color: #172554; transform: scale(0.95); }
        .nav-save-btn:disabled { background-color: #e0f2fe; color: #FCA5A5; box-shadow: none; pointer-events: none; }

      /* --- ESTILOS PARA CHECKBOXES DE COMPARACIÓN --- */
        .compare-chk-wrapper input[type="checkbox"] {
            display: none;
        }
        .compare-chk-wrapper label {
            background-color: #F3F4F6;
            border: 1px solid var(--border-soft);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
            user-select: none;
        }
        .compare-chk-wrapper input[type="checkbox"]:checked + label {
            background-color: var(--brand-red-light);
            border-color: var(--brand-red);
            color: var(--brand-red);
            box-shadow: 0 2px 8px rgba(14, 165, 233,  0.15);
        }
        /* Ocultar scrollbar en la caja de checkboxes para que se vea limpio */
        #compareCheckboxes::-webkit-scrollbar { display: none; }
        #compareCheckboxes { -ms-overflow-style: none; scrollbar-width: none; } 

        
        /* --- ESTILOS AVANZADOS PARA DATA GRID Y MODAL FULLSCREEN --- */
        .grid-container {
            height: calc(100vh - 120px);
            overflow: auto;
            background-color: #ffffff;
        }
        .advanced-table { font-size: 0.75rem; white-space: nowrap; margin-bottom: 0; width: 100%; }
        .advanced-table thead th {
            position: sticky; top: 0; z-index: 5;
            background-color: #f8f9fa; color: var(--text-muted);
            border-bottom: 2px solid var(--border-soft);
            padding: 12px 10px; font-weight: 700; text-transform: uppercase;
        }
        
        /* Magia: Congelar múltiples columnas a la izquierda */
        .sticky-col-1, .sticky-col-2, .sticky-col-3 {
            position: sticky; z-index: 4; background-color: #ffffff;
        }
        
        /* Definimos anchos fijos y posiciones exactas para que no se traslapen */
        .sticky-col-1 { left: 0; min-width: 140px; }
        .sticky-col-2 { left: 140px; min-width: 80px; }
        .sticky-col-3 { 
            left: 220px; 
            min-width: 200px; max-width: 200px; 
            border-right: 2px solid var(--border-soft) !important;
            box-shadow: 2px 0 5px rgba(0,0,0,0.02);
        }

        .advanced-table thead th.sticky-col-1, 
        .advanced-table thead th.sticky-col-2, 
        .advanced-table thead th.sticky-col-3 { 
            z-index: 6; background-color: #f8f9fa; 
        }
        
        .advanced-table tbody td { padding: 10px; vertical-align: middle; border-bottom: 1px solid var(--border-soft);}
        
        .advanced-table tbody tr:hover td,
        .advanced-table tbody tr:hover .sticky-col-1, 
        .advanced-table tbody tr:hover .sticky-col-2, 
        .advanced-table tbody tr:hover .sticky-col-3 { 
            background-color: #fdfdfd; 
        }

  /* --- ESTILOS PARA LOS FILTROS DINÁMICOS DEL GRID --- */
        .grid-filter {
            font-size: 0.7rem;
            padding: 0.15rem 0.4rem;
            height: auto;
            border-radius: 6px;
            border: 1px solid var(--border-soft);
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            width: 100%;
            min-width: 60px;
        }
        .grid-filter:focus {
            border-color: var(--brand-red);
            box-shadow: 0 0 0 2px rgba(14, 165, 233,  0.1);
            outline: none;
        }

      /* --- ESTULOS DEL MODAL COMPARADOR ------------------------------- */
      /* --- ESTILOS PARA CHECKBOXES DE COMPARACIÓN (DISEÑO SIDEBAR) --- */
        .compare-chk-wrapper input[type="checkbox"] { display: none; }
        .compare-chk-wrapper { display: block; width: 100%; }
        
        .compare-chk-wrapper label { 
            width: 100%; 
            display: block; 
            text-align: left; 
            padding: 12px 15px;
            background-color: #ffffff;
            border: 1px solid var(--border-soft);
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s ease;
            box-shadow: 0 2px 4px rgba(0,0,0,0.01);
            user-select: none;
        }
        
        .compare-chk-wrapper input[type="checkbox"]:checked + label {
            background-color: var(--brand-red-light);
            border-color: var(--brand-red);
            color: var(--brand-red-dark);
            box-shadow: 0 4px 10px rgba(14, 165, 233,  0.15);
        }

/* ------ CONTROL DE VERSIÓN MÓVIL Y RESPONSIVE ------ */

/* 1. CONTROL DE VISIBILIDAD DE BARRA INFERIOR Y PANTALLA PRINCIPAL */
body.modal-open .bottom-nav { display: none !important; }

@media (max-width: 767px) {
    .dash-value { font-size: 1.8rem; }
    .btn-header-text { display: none; }
    .btn-modern.header-btn { padding: 0.5rem; width: 38px; justify-content: center;}
    .main-scroll-area { padding-bottom: 90px; } 
    
    /* --- APAGAR COLUMNAS CONGELADAS EN MÓVIL --- */
    .sticky-col-1, .sticky-col-2, .sticky-col-3 {
        position: static !important; 
        left: auto !important;
        box-shadow: none !important; 
        min-width: auto !important;
    }
    .advanced-table tbody td.sticky-col-1, 
    .advanced-table tbody td.sticky-col-2, 
    .advanced-table tbody td.sticky-col-3 {
        background-color: transparent !important;
        border-right: 1px solid var(--border-soft) !important;
    }
}

@media (min-width: 768px) {
    /* En PC la barra NUNCA debe existir */
    .bottom-nav { display: none !important; } 
}


/* 2. REGLAS RESPONSIVE EXCLUSIVAS PARA EL MODAL COMPARADOR */
@media (max-width: 991px) {
    /* En celulares/tablets: Todo se apila hacia abajo y hace scroll normal */
    #compareModalBody { overflow-y: auto !important; }
    .sidebar-panel { width: 100%; max-width: 100%; height: auto; }
    /* La cajita de productos no debe ocupar toda la pantalla */
    .products-panel { max-height: 350px; } 
    .chart-panel { min-height: 450px; }
}

@media (min-width: 992px) {
    /* En PC: Se bloquea el scroll de la página y se habilitan los paneles independientes */
    #compareModalBody { overflow: hidden !important; }
    .sidebar-panel { width: 380px; height: 100%; overflow-y: auto; }
    .chart-panel { height: 100%; overflow-y: auto; }
}



    
.btn-brand-primary {
    background-color: var(--primary-brand);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--transition-speed);
}
.btn-brand-primary:hover {
    background-color: var(--accent-cyan);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* ========================================================================== */
/* ESTILOS Y COMPONENTES EXCLUSIVOS PROFIT BANK (DEEP BLUE & JADE)            */
/* ========================================================================== */

/* Cajas de Resultado Parametrizada (Reemplazo de .result-box-red por JADE) */
.result-box-red,
.result-box-jade { 
    background-color: #f0fdf4 !important; 
    border: 1px solid #86efac !important; 
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.05);
}

.result-rate-red,
.result-rate-jade { 
    font-size: 1.75rem !important; 
    text-transform: uppercase; 
    font-weight: 800 !important; 
    color: #1e3a8a !important; 
    margin-bottom: 2px; 
}

.result-amount-red,
.result-amount-jade { 
    font-size: 0.85rem !important; 
    color: #059669 !important; 
    font-weight: 800 !important; 
}

/* Fila activa de selección (Soft Cyan / Icy Teal) */
.fila-activa { 
    background-color: #f0fdfa !important; 
    box-shadow: 0 0 0 2px #0ea5e9 inset !important; 
    transform: none !important; 
    cursor: default !important;
}

/* Tarjeta métrica destacada (Total Parametrizada) */
.metric-pill.highlight {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
}

/* Botones Principales Profit Bank */
.btn-profit-primary,
.btn-primary-modern,
.btn-danger:not(.btn-danger-real) {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.25s ease !important;
}

.btn-profit-primary:hover,
.btn-primary-modern:hover:not(:disabled),
.btn-danger:not(.btn-danger-real):hover:not(:disabled) {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35) !important;
}

/* Botón Outline Profit Bank */
.btn-profit-outline,
.btn-outline-danger:not(.btn-outline-danger-real) {
    border: 1.5px solid #0ea5e9 !important;
    color: #0284c7 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.btn-profit-outline:hover,
.btn-outline-danger:not(.btn-outline-danger-real):hover {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.25) !important;
}

/* Botón flotante FAB */
.fab-btn {
    background-color: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35) !important;
}
.fab-btn:hover:not(:disabled) {
    background-color: #0ea5e9 !important;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45) !important;
}

/* Step Wizard Active State */
.step-item.active .step-bubble {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2) !important;
}
.step-item.active .step-title {
    color: #1e3a8a !important;
}

/* Badges Institucionales */
.badge-profit-tc {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.badge-profit-ente {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
}

/* ========================================================================== */
/* ESTILOS Y COMPONENTES EXCLUSIVOS PROFIT BANK (DEEP BLUE & JADE)            */
/* ========================================================================== */

/* Cajas de Resultado Parametrizada (Reemplazo de .result-box-red por JADE) */
.result-box-red,
.result-box-jade { 
    background-color: #f0fdf4 !important; 
    border: 1px solid #86efac !important; 
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.05);
}

.result-rate-red,
.result-rate-jade { 
    font-size: 1.75rem !important; 
    text-transform: uppercase; 
    font-weight: 800 !important; 
    color: #1e3a8a !important; 
    margin-bottom: 2px; 
}

.result-amount-red,
.result-amount-jade { 
    font-size: 0.85rem !important; 
    color: #059669 !important; 
    font-weight: 800 !important; 
}

/* Fila activa de selección (Soft Cyan / Icy Teal) */
.fila-activa { 
    background-color: #f0fdfa !important; 
    box-shadow: 0 0 0 2px #0ea5e9 inset !important; 
    transform: none !important; 
    cursor: default !important;
}

/* Tarjeta métrica destacada (Total Parametrizada) */
.metric-pill.highlight {
    background: #f0fdf4 !important;
    border-color: #86efac !important;
}

/* Botones Principales Profit Bank */
.btn-profit-primary,
.btn-primary-modern,
.btn-danger:not(.btn-danger-real) {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border: none !important;
    transition: all 0.25s ease !important;
}

.btn-profit-primary:hover,
.btn-primary-modern:hover:not(:disabled),
.btn-danger:not(.btn-danger-real):hover:not(:disabled) {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35) !important;
}

/* Botón Outline Profit Bank */
.btn-profit-outline,
.btn-outline-danger:not(.btn-outline-danger-real) {
    border: 1.5px solid #0ea5e9 !important;
    color: #0284c7 !important;
    background-color: #ffffff !important;
    transition: all 0.2s ease !important;
}

.btn-profit-outline:hover,
.btn-outline-danger:not(.btn-outline-danger-real):hover {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.25) !important;
}

/* Botón flotante FAB */
.fab-btn {
    background-color: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35) !important;
}
.fab-btn:hover:not(:disabled) {
    background-color: #0ea5e9 !important;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.45) !important;
}

/* Step Wizard Active State */
.step-item.active .step-bubble {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2) !important;
}
.step-item.active .step-title {
    color: #1e3a8a !important;
}

/* Badges Institucionales */
.badge-profit-tc {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}

.badge-profit-ente {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
}

/* ========================================================================== */
/* 🏦 PROFIT BANK - SISTEMA DE DISEÑO DEEP BLUE & JADE                        */
/* ========================================================================== */

/* BOTÓN PRIMARIO PROFIT BANK (DEEP BLUE & CYAN HOVER) */
.btn-profit-primary {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
    transition: all 0.25s ease !important;
}
.btn-profit-primary:hover:not(:disabled) {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.35) !important;
}

/* BOTÓN OUTLINE PROFIT BANK (CYAN / AZURE SLATE) */
.btn-profit-outline {
    background-color: #ffffff !important;
    color: #0284c7 !important;
    border: 1.5px solid #0ea5e9 !important;
    border-radius: 50rem !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.08) !important;
    transition: all 0.25s ease !important;
}
.btn-profit-outline:hover:not(:disabled) {
    background-color: #0ea5e9 !important;
    color: #ffffff !important;
    border-color: #0ea5e9 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3) !important;
}

/* BOTÓN JADE (PARA ÉXITOS / CONFIRMACIONES) */
.btn-profit-jade {
    background-color: #059669 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25) !important;
    transition: all 0.25s ease !important;
}
.btn-profit-jade:hover:not(:disabled) {
    background-color: #34d399 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(52, 211, 153, 0.35) !important;
}

/* CAJA DE RESULTADO PARAMETRIZADA (JADE FINANCIAL YIELD) */
.result-box-jade,
.result-box-red {
    background-color: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    text-align: center !important;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.06) !important;
}
.result-rate-jade,
.result-rate-red {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #1e3a8a !important; /* Tasa en Azul Principal */
    font-family: 'JetBrains Mono', monospace !important;
    line-height: 1.1 !important;
}
.result-amount-jade,
.result-amount-red {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #059669 !important; /* Interés en Jade */
    font-family: 'JetBrains Mono', monospace !important;
}

/* FILA SELECCIONADA ACTIVA (ICY TEAL & CYAN BORDER) */
.fila-activa {
    background-color: #f0fdfa !important;
    box-shadow: 0 0 0 2px #0ea5e9 inset !important;
    transform: none !important;
    border-radius: 12px !important;
}
.fila-activa td,
.grid-premium tbody tr.fila-activa td {
    background-color: #f0fdfa !important;
}

/* TARJETA TOTAL PARAMETRIZADA EN CABECERA */
.metric-pill-param,
.metric-pill.highlight {
    background-color: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
    border-radius: 10px !important;
    padding: 6px 14px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

/* BADGES PROFIT BANK */
.badge-profit-tc {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}
.badge-profit-ente {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
}

/* BANNER INFORMATIVO (REEMPLAZO DE AVISO ROJO) */
.alert-aviso-profit {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-left: 4px solid #0ea5e9 !important;
    border-radius: 8px !important;
    padding: 12px 18px !important;
}

/* STEPPER ACTIVO */
.step-item.active .step-bubble {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25) !important;
}
.step-item.active .step-title {
    color: #1e3a8a !important;
    font-weight: 800 !important;
}

/* BOTÓN FLOTANTE (FAB) */
.fab-btn {
    background-color: #1e3a8a !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.35) !important;
}
.fab-btn:hover:not(:disabled) {
    background-color: #0ea5e9 !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45) !important;
}


/* ========================================================================== */
/* 📱 AJUSTES RESPONSIVOS Y UNIFICACIÓN DE TIPOGRAFÍAS PROFIT BANK          */
/* ========================================================================== */

/* UNIFICACIÓN ESTRICTA DE CAJAS DE PROYECCIÓN (VENTANILLA VS PARAMETRIZADA) */
.result-box {
    background-color: #F8FAFC !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #CBD5E1 !important;
    min-height: 72px !important;
}

.result-box.result-box-jade {
    background-color: #f0fdf4 !important;
    border: 1.5px solid #86efac !important;
}

.result-rate,
.result-rate-jade,
.result-rate-param {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    font-family: 'JetBrains Mono', monospace !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
    text-align: center !important;
}
.result-rate {
    color: #1e293b !important;
}
.result-rate-jade,
.result-rate-param {
    color: #1e3a8a !important;
}

.result-amount,
.result-amount-jade,
.result-amount-param {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    font-family: 'JetBrains Mono', monospace !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
}
.result-amount {
    color: #334155 !important;
}
.result-amount-jade,
.result-amount-param {
    color: #059669 !important;
}

/* RESPONSIVE LAYOUT PARA PANTALLAS PEQUEÑAS (TABLETS Y MÓVILES) */
@media (max-width: 991px) {
    /* Barra contextual de cliente en Paso 2 */
    .client-context-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 14px 16px !important;
    }

    .client-context-bar .client-info-section {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .client-context-bar .btn-modify-client {
        align-self: flex-start !important;
        padding: 8px 16px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }

    .client-context-bar .client-active-details {
        border-left: none !important;
        border-top: 1px solid #E2E8F0 !important;
        padding-left: 0 !important;
        padding-top: 10px !important;
        width: 100% !important;
    }

    .client-context-bar .client-badges-row {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 6px !important;
        margin-top: 4px !important;
    }

    .client-context-bar #lblEnteBadge {
        order: 1 !important;
    }

    .client-context-bar #lblSegmentoBadge {
        order: 1 !important;
        margin-left: auto !important;
        white-space: nowrap !important;
    }

    .client-context-bar #lblNombreBadge {
        font-size: 0.90rem !important;
        word-break: break-word !important;
        line-height: 1.25 !important;
        width: 100% !important;
        order: 2 !important;
        display: block !important;
        margin-top: 2px !important;
    }
    
    .client-context-bar .context-metrics-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .client-context-bar .metric-pill,
    .client-context-bar .metric-pill.highlight {
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 10px !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .client-context-bar .metric-label-sm {
        font-size: 0.56rem !important;
        line-height: 1.15 !important;
    }
    
    .client-context-bar .metric-pill .font-mono {
        font-size: 0.90rem !important;
        white-space: nowrap !important;
    }

    .client-context-bar .context-actions-row {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 2px !important;
    }

    .client-context-bar .context-actions-row .btn {
        width: 100% !important;
        padding: 9px 12px !important;
        font-size: 0.85rem !important;
    }

    /* Portafolio de cuentas cabecera en móvil */
    .portfolio-header-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .portfolio-header-row #btnAgregarFila {
        width: 100% !important;
        padding: 9px 14px !important;
        font-size: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Padding inferior general para evitar que la barra fija tape contenido */
    body {
        padding-bottom: 95px !important;
    }
    
    /* Botón flotante (FAB) reubicado */
    .fab-add-container {
        bottom: 75px !important;
        right: 15px !important;
    }
    .fab-btn {
        width: 48px !important;
        height: 48px !important;
    }
}

@media (max-width: 767px) {
    #seccionPaso1, #seccionPaso2 {
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    #seccionPaso1 {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 140px !important;
    }

    #seccionPaso2 {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 90px !important;
    }

    .client-context-bar .btn-modify-client {
        width: 100% !important;
        align-self: stretch !important;
        justify-content: center !important;
        display: inline-flex !important;
        white-space: nowrap !important;
        text-align: center !important;
        padding: 9px 16px !important;
    }

    .portfolio-header-row #btnAgregarFila {
        width: 100% !important;
        white-space: nowrap !important;
        padding: 10px 16px !important;
        font-size: 0.90rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .step-card-center {
        padding: 20px 16px !important;
        margin: 10px auto 16px auto !important;
    }

    .glass-card {
        padding: 16px 14px !important;
    }

    /* Modal Mi Perfil en Móvil (Botones simétricos) */
    .user-profile-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .user-profile-actions > div {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .user-profile-actions button,
    .user-profile-actions a {
        width: 100% !important;
    }

    /* Encabezado compacto en celulares */
    .header-bar {
        padding: 0.5rem 0.75rem !important;
    }
    .header-bar img {
        height: 26px !important;
    }
    .header-title {
        display: none !important;
    }

    /* Stepper compacto */
    .wizard-stepper-container {
        padding: 8px 0 !important;
    }
    .stepper-nav {
        gap: 4px !important;
    }
    .step-item {
        padding: 4px 8px !important;
        gap: 8px !important;
    }
    .step-bubble {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }
    .step-title {
        font-size: 0.70rem !important;
    }

    /* Paso 1 - Badge TC */
    #lblTipoCambio {
        font-size: 0.70rem !important;
        padding: 4px 8px !important;
    }
}


/* ========================================================================== */
/* 🛡️ ESTILOS DEL PANEL DE ADMINISTRACIÓN (TABS PILLS & KPIS - PROFIT BANK)  */
/* ========================================================================== */

.admin-tab-btn {
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-size: 0.80rem !important;
    font-weight: 700 !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #f8fafc !important;
    color: #475569 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.admin-tab-btn:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

.admin-tab-btn.active {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
}

.kpi-admin-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.user-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: 800;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* ========================================================================== */
/* STITCH MOBILE RESPONSIVE INTERFACE COMPONENT STYLES                        */
/* ========================================================================== */
.account-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1.5px solid #E2E8F0;
    background-color: #FFFFFF;
}
.account-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}
.account-card.fila-activa {
    background-color: #FFFFFF !important;
    border: 2px solid #10B981 !important;
    box-shadow: 0 0 0 1px #10B981, 0 10px 25px -5px rgba(16, 185, 129, 0.1) !important;
}

.account-card.fila-activa:hover {
    background-color: #FFFFFF !important;
    border-color: #10B981 !important;
}
.account-card .btn-action-icon {
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.account-card .btn-action-icon:hover {
    background-color: #F1F5F9;
}
.account-card .btn-action-icon.remove-account-btn:hover {
    background-color: #FEE2E2;
}

@media (max-width: 1023px) {
    .has-mobile-bottom-nav {
        padding-bottom: 5.5rem !important;
    }
    .mobile-only {
        display: flex !important;
    }
    .desktop-only {
        display: none !important;
    }
}
@media (min-width: 1024px) {
    .has-mobile-bottom-nav {
        padding-bottom: 0 !important;
    }
    .mobile-only {
        display: none !important;
    }
    .desktop-only {
        display: flex !important;
    }
}


/* ========================================================================== */
/* STITCH CARDS EXACT DESIGN (PROFIT BANK)                                    */
/* ========================================================================== */

/* Contenedor Grid Responsive */
#accountsContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 1024px) {
    #accountsContainer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
    }
}

/* Tarjeta Principal */
.account-card {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 1rem; /* 16px */
    padding: 1.25rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .account-card {
        padding: 1.5rem;
    }
}

.account-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
}

.account-card.fila-activa {
    background-color: #FFFFFF !important;
    border: 2px solid #10B981 !important;
    box-shadow: 0 0 0 1px #10B981, 0 10px 25px -5px rgba(16, 185, 129, 0.1) !important;
}

.account-card.fila-activa:hover {
    background-color: #FFFFFF !important;
    border-color: #10B981 !important;
}

/* Header de la tarjeta */
.account-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid #F1F5F9;
    margin-bottom: 1rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background-color: #CBD5E1;
    transition: all 0.2s ease;
    display: inline-block;
}

.status-dot.active {
    background-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.account-card-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1E293B;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.account-header-bullet {
    color: #CBD5E1;
    font-size: 0.75rem;
}

.account-header-moneda {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
}

.account-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-action-icon {
    background: transparent;
    border: none;
    color: #94A3B8;
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.btn-action-icon:hover {
    color: #334155;
    background-color: #F1F5F9;
}

.btn-action-icon.remove-account-btn:hover {
    color: #EF4444;
    background-color: #FEE2E2;
}

/* Campos de la tarjeta */
.account-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-field-group {
    display: flex;
    flex-direction: column;
}

.account-field-label {
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    color: #94A3B8;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.375rem;
}

/* Selector de Producto */
.account-select-wrapper {
    position: relative;
    width: 100%;
}

.account-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem; /* 12px */
    padding: 0.625rem 2.25rem 0.625rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1E293B;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.account-select:focus {
    border-color: #00B4D8;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

.account-select-icon {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94A3B8;
    font-size: 0.75rem;
}

.account-compound-alert {
    margin-top: 0.35rem;
    color: #EF4444;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Fila Moneda + Numero Cuenta */
.account-moneda-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.account-moneda-pills {
    display: inline-flex;
    border-radius: 0.75rem; /* 12px */
    padding: 3px;
    background-color: #F1F5F9;
    border: 1px solid #E2E8F0;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.moneda-pill-btn {
    border: none;
    outline: none;
    padding: 0.25rem 0.65rem;
    border-radius: 0.5rem; /* 8px */
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    background-color: transparent;
    color: #475569;
    transition: all 0.15s ease;
}

.moneda-pill-btn:hover {
    color: #0F172A;
}

.moneda-pill-btn.active {
    background-color: #102A45;
    color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.account-num-input {
    flex: 1;
    min-width: 0;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    color: #1E293B;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.account-num-input:focus {
    border-color: #00B4D8;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

/* Saldo comprometido promedio */
.account-saldo-wrapper {
    position: relative;
    width: 100%;
}

.account-saldo-symbol {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    pointer-events: none;
}

.account-saldo-input {
    width: 100%;
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem 0.625rem 2rem;
    font-size: 0.925rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: #0F172A;
    text-align: right;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.account-saldo-input:focus {
    border-color: #00B4D8;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.2);
}

/* Ajuste Tasa / Spread */
.account-adjust-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.account-switch-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.account-switch-track {
    width: 32px;
    height: 18px;
    background-color: #CBD5E1;
    border-radius: 9999px;
    position: relative;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.account-switch-thumb {
    width: 14px;
    height: 14px;
    background-color: #FFFFFF;
    border-radius: 9999px;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.account-switch-input:checked + .account-switch-track {
    background-color: #10B981 !important;
}

.account-switch-input:checked + .account-switch-track .account-switch-thumb {
    transform: translateX(14px);
}

.account-adjust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.account-adjust-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 0.625rem;
    text-align: center;
    transition: all 0.2s ease;
}

/* Modo Manual Activo: Fondo gris original intacto, SOLO los números en color verde esmeralda */
.account-adjust-box.manual-active {
    background-color: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: none !important;
}

.account-adjust-box.manual-active .account-adjust-sublabel {
    color: #94A3B8 !important;
    font-weight: 700 !important;
}

.account-adjust-box.manual-active .account-adjust-input,
.account-adjust-input.manual-active {
    color: #059669 !important;
    font-weight: 800 !important;
}

.account-adjust-sublabel {
    font-size: 0.625rem; /* 10px */
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.account-adjust-input {
    width: 100%;
    text-align: center;
    background: transparent;
    border: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1E293B;
    outline: none;
    padding: 0;
    margin: 0;
}

.account-adjust-input:disabled {
    color: #64748B;
    opacity: 0.85;
}

.account-adjust-box input[type="number"]::-webkit-outer-spin-button,
.account-adjust-box input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.account-adjust-box input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Bloques de Proyecciones Comparativas */
.account-projections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    padding-top: 0.5rem;
}

.account-proy-vent {
    background-color: rgba(248, 250, 252, 0.7);
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.account-proy-title {
    font-size: 0.625rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    display: block;
}

.account-proy-rate {
    font-size: 0.68rem;
    color: #94A3B8;
    display: block;
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.account-proy-amount-wrap {
    margin: 0.375rem 0;
}

.account-proy-amount {
    font-size: 0.875rem;
    font-weight: 800;
    color: #1E293B;
    font-family: 'JetBrains Mono', monospace;
}

.account-proy-footer {
    font-size: 0.56rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Caja Parametrizada Destacada */
.account-proy-param {
    background-color: rgba(236, 253, 245, 0.6);
    border: 2px solid #10B981;
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 2px rgba(16, 185, 129, 0.06);
}

.account-proy-deco {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    width: 3rem;
    height: 3rem;
    background-color: rgba(167, 243, 208, 0.5);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(4px);
}

.account-proy-param-title {
    font-size: 0.625rem;
    font-weight: 800;
    color: #065F46;
    text-transform: uppercase;
    display: block;
}

.account-proy-param-rate {
    font-size: 0.68rem;
    color: #047857;
    font-weight: 600;
    display: block;
    margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

.account-proy-param-amount {
    font-size: 0.875rem;
    font-weight: 800;
    color: #059669;
    font-family: 'JetBrains Mono', monospace;
}

.account-proy-param-footer {
    font-size: 0.56rem;
    color: #047857;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Borde verde y fondo blanco estricto para tarjeta seleccionada */
.account-card.fila-activa,
.account-card.fila-activa:hover,
.account-card.fila-activa:focus {
    background-color: #FFFFFF !important;
    border: 2px solid #10B981 !important;
    box-shadow: 0 0 0 1px #10B981, 0 10px 25px -5px rgba(16, 185, 129, 0.1) !important;
}

/* ======================================================== */
/* PANELES INFERIORES: TABLAS AMPLIAS Y ALINEACIÓN ESTRICTA */
/* ======================================================== */
.table-panel-spacious {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.table-panel-spacious th {
    padding: 11px 16px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748B;
    background-color: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    white-space: nowrap;
}

.table-panel-spacious td {
    padding: 11px 16px !important;
    font-size: 0.78rem !important;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
    white-space: nowrap;
}

.table-panel-spacious tr:last-child td {
    border-bottom: none;
}

.table-panel-spacious tr:hover td {
    background-color: #F8FAFC;
}

/* Alineación columna por columna: Tasas Preferenciales */
.table-pref-aligned thead th:nth-child(1),
.table-pref-aligned tbody td:nth-child(1) {
    text-align: left !important;
    padding-left: 20px !important;
}
.table-pref-aligned thead th:nth-child(2),
.table-pref-aligned tbody td:nth-child(2) {
    text-align: left !important;
    padding-left: 14px !important;
}
.table-pref-aligned thead th:nth-child(3),
.table-pref-aligned tbody td:nth-child(3) {
    text-align: right !important;
    padding-right: 20px !important;
}

/* Alineación columna por columna: Desglose Matemático por Tramos */
.table-desglose-aligned thead th:nth-child(1),
.table-desglose-aligned tbody td:nth-child(1) {
    text-align: left !important;
    padding-left: 18px !important;
}
.table-desglose-aligned thead th:nth-child(2),
.table-desglose-aligned tbody td:nth-child(2) {
    text-align: left !important;
    padding-left: 12px !important;
}
.table-desglose-aligned thead th:nth-child(3),
.table-desglose-aligned tbody td:nth-child(3) {
    text-align: right !important;
    padding-right: 12px !important;
}
.table-desglose-aligned thead th:nth-child(4),
.table-desglose-aligned tbody td:nth-child(4) {
    text-align: center !important;
}
.table-desglose-aligned thead th:nth-child(5),
.table-desglose-aligned tbody td:nth-child(5) {
    text-align: right !important;
    padding-right: 12px !important;
}
.table-desglose-aligned thead th:nth-child(6),
.table-desglose-aligned tbody td:nth-child(6) {
    text-align: center !important;
}
.table-desglose-aligned thead th:nth-child(7),
.table-desglose-aligned tbody td:nth-child(7) {
    text-align: right !important;
    padding-right: 18px !important;
}


/* ========================================================================== */
/* FIX CONFLICTO TAILWIND (.collapse) Y BOOTSTRAP 5 ACCORDION / COLLAPSE      */
/* ========================================================================== */
.collapse:not(table):not(tr):not(td):not(th),
.accordion-collapse,
.accordion-collapse.collapse,
.accordion-collapse.collapse.show {
    visibility: visible !important;
}
