/* ================= VARIABLES GLOBALES ================= */
:root {
    /* Paleta de Colores */
    --brand-bg: #F8FAFC;
    --brand-900: #0F172A;
    --brand-primary: #1E40AF;
    --brand-primary-hover: #1e3a8a;
    --brand-accent: #14B8A6;
    --brand-accent-hover: #0D9488;
    
    /* Grises (Textos y Bordes) */
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-light: #E2E8F0;
    --bg-white: #FFFFFF;
    --bg-light: #F1F5F9;

    /* Colores de Estado */
    --success: #10B981;
    --success-bg: #D1FAE5;
    --danger: #EF4444;
    --danger-bg: #FEE2E2;
    --warning: #F59E0B;
    --warning-bg: #FEF3C7;

    /* Tipografía */
    --font-base: 'Inter', sans-serif;
}

/* ================= RESET Y BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background-color: var(--brand-bg);
    color: var(--text-main);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select {
    font-family: inherit;
}

.is-hidden {
    display: none !important;
}

.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.w-full { width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ================= COMPONENTES ================= */
/* Botones */
.btn-primary { background: var(--brand-primary); color: white; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 600; transition: all 0.2s; }
.btn-primary:hover { background: var(--brand-primary-hover); }
.btn-accent { background: var(--brand-accent); color: white; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 600; transition: all 0.2s; }
.btn-accent:hover { background: var(--brand-accent-hover); }
.btn-dark { background: var(--brand-900); color: white; padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 600; transition: all 0.2s; }
.btn-secondary { background: var(--bg-white); color: var(--text-muted); border: 1px solid var(--border-light); padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 600; }
.btn-outline { background: var(--bg-white); color: var(--text-main); border: 1px solid var(--border-light); padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.btn-full { width: 100%; }
.btn-icon { color: var(--text-muted); display: flex; align-items: center; justify-content: center; padding: 0.5rem; border-radius: 0.5rem; transition: background 0.2s; }
.btn-icon:hover { background: var(--bg-light); color: var(--text-main); }
.btn-back { width: 100%; display: flex; justify-content: center; align-items: center; gap: 0.5rem; padding: 0.75rem; color: var(--text-muted); font-weight: 500; }
.link-text { color: var(--brand-primary); font-weight: 500; text-decoration: none; }
.link-text:hover { text-decoration: underline; }

/* Badges e Iconos */
.badge { padding: 0.125rem 0.5rem; border-radius: 1rem; font-size: 0.65rem; font-weight: 700; }
.badge-danger { background: var(--danger); color: white; }
.badge-primary { background: var(--bg-light); color: var(--brand-primary); font-size: 0.875rem; }
.icon-circle { width: 3rem; height: 3rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.icon-primary { background: #EFF6FF; color: var(--brand-primary); }
.icon-success { background: var(--success-bg); color: var(--success); }
.icon-purple { background: #F3E8FF; color: #9333EA; }

/* Formularios */
.form-layout { display: flex; flex-wrap: wrap; gap: 1rem; }
.form-col-half { flex: 1 1 calc(50% - 1rem); min-width: 200px; }
.form-col-full { flex: 1 1 100%; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--text-main); }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.form-input { padding: 0.75rem 1rem; border: 1px solid var(--border-light); border-radius: 0.75rem; background: var(--bg-light); outline: none; transition: border 0.2s; width: 100%; }
.form-input:focus { border-color: var(--brand-accent); background: var(--bg-white); }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 1.25rem; height: 1.25rem; }
.input-with-icon input { width: 100%; padding: 0.75rem 1rem 0.75rem 3rem; border: 1px solid var(--border-light); border-radius: 0.75rem; background: var(--bg-light); outline: none; }
.form-section-title { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border-light); padding-bottom: 0.5rem; }

/* Tarjetas (Cards) */
.card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 1rem; padding: 1.5rem; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }

/* ================= VISTAS DE AUTENTICACIÓN ================= */
.auth-wrapper { position: fixed; inset: 0; background: var(--brand-bg); display: flex; justify-content: center; align-items: center; z-index: 100; }
.auth-decor { position: absolute; width: 24rem; height: 24rem; border-radius: 50%; opacity: 0.2; filter: blur(40px); }
.auth-decor-1 { top: -5rem; left: -5rem; background: var(--brand-primary); }
.auth-decor-2 { bottom: -5rem; right: -5rem; background: var(--brand-accent); }
.auth-card { background: var(--bg-white); padding: 2.5rem; border-radius: 1.5rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); width: 100%; max-width: 420px; z-index: 10; border: 1px solid var(--border-light); }
.auth-card-large { max-width: 480px; max-height: 90vh; overflow-y: auto; }
.auth-logo { width: 3.5rem; height: 3.5rem; background: var(--brand-900); color: var(--brand-accent); border-radius: 1rem; display: flex; justify-content: center; align-items: center; margin: 0 auto 1.5rem; }
.auth-title { font-size: 1.5rem; font-weight: 700; color: var(--brand-900); margin-bottom: 0.25rem; text-align: center; }
.auth-card-large .auth-title, .auth-card-large .auth-subtitle { text-align: left; }
.auth-form { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.auth-footer { margin-top: 2rem; text-align: center; font-size: 0.875rem; color: var(--text-muted); }

/* ================= LAYOUT PRINCIPAL (APP) ================= */
.app-layout { display: flex; height: 100vh; width: 100%; }

/* Sidebar */
.sidebar { width: 260px; background: var(--brand-900); color: white; display: flex; flex-direction: column; flex-shrink: 0; z-index: 40; transition: transform 0.3s ease; }
.sidebar-header { padding: 1.5rem; display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; font-weight: 700; }
.sidebar-logo { background: rgba(255,255,255,0.1); color: var(--brand-accent); padding: 0.5rem; border-radius: 0.5rem; display: flex; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.nav-section { font-size: 0.65rem; color: #94A3B8; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; padding: 0 1rem; margin-bottom: 0.5rem; }
.nav-link { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-radius: 0.75rem; color: #CBD5E1; font-weight: 500; transition: all 0.2s; width: 100%; text-decoration: none; }
.nav-link-inner { display: flex; align-items: center; gap: 0.75rem; }
.nav-link i { width: 1.25rem; height: 1.25rem; }
.nav-link:hover { background: rgba(255,255,255,0.05); color: white; }
.nav-link.active { background: var(--brand-primary); color: white; box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3); }
.sidebar-footer { padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); }
.text-danger { color: #F87171 !important; }

/* Main Area & Header */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.top-header { height: 70px; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; flex-shrink: 0; }
.header-left { display: flex; align-items: center; gap: 1rem; }
.page-title { font-size: 1.25rem; font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 1rem; background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 2rem; padding: 0.25rem 0.5rem; }
.search-bar { position: relative; display: flex; align-items: center; }
.search-bar i { position: absolute; left: 0.75rem; color: var(--text-muted); width: 1rem; height: 1rem; }
.search-bar input { border: none; background: var(--bg-light); padding: 0.5rem 1rem 0.5rem 2.25rem; border-radius: 1.5rem; font-size: 0.875rem; outline: none; width: 250px; }
.notification-btn { position: relative; }
.notification-dot { position: absolute; top: 0.25rem; right: 0.25rem; width: 8px; height: 8px; background: var(--danger); border: 2px solid white; border-radius: 50%; }
.user-profile { display: flex; align-items: center; gap: 0.75rem; padding-left: 1rem; border-left: 1px solid var(--border-light); cursor: pointer; }
.user-info { text-align: right; }
.user-name { font-size: 0.875rem; font-weight: 600; }
.user-role { font-size: 0.75rem; color: var(--text-muted); }
.user-profile img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }

/* Subviews (Páginas) */
.content-wrapper { flex: 1; overflow-y: auto; padding: 2rem; }
.subview { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; padding-bottom: 2rem; }
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }

/* ================= COMPONENTES ESPECÍFICOS ================= */
/* KPIs */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.kpi-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 1rem; padding: 1.5rem; display: flex; justify-content: space-between; align-items: flex-start; transition: border-color 0.2s; }
.kpi-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 600; margin-bottom: 0.5rem; }
.kpi-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.trend { font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 0.25rem; }
.trend.positive { color: var(--success); }
.trend.neutral { color: var(--text-muted); }
.trend.warning { color: var(--warning); }
.trend.accent { color: var(--brand-accent); }
.kpi-icon { padding: 0.75rem; border-radius: 0.75rem; }

.kpi-card.type-blue:hover { border-color: var(--brand-primary); }
.kpi-card.type-blue .kpi-icon { background: #EFF6FF; color: var(--brand-primary); }
.kpi-card.type-red:hover { border-color: var(--danger); }
.kpi-card.type-red .kpi-icon { background: var(--danger-bg); color: var(--danger); }
.kpi-card.type-dark { background: var(--brand-900); color: white; border-color: var(--brand-900); }
.kpi-card.type-dark .kpi-label { color: #94A3B8; }
.kpi-card.type-dark .kpi-icon { background: rgba(20, 184, 166, 0.2); color: var(--brand-accent); }
.kpi-card.type-teal:hover { border-color: var(--brand-accent); }
.kpi-card.type-teal .kpi-icon { background: #CCFBF1; color: var(--brand-accent); }

/* Dashboard Grids */
.dashboard-data-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.chart-container { position: relative; height: 300px; width: 100%; margin-top: 1rem; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.tx-list { display: flex; flex-direction: column; gap: 1rem; }
.tx-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; border-radius: 0.5rem; transition: background 0.2s; }
.tx-item:hover { background: var(--bg-light); }
.tx-left { display: flex; align-items: center; gap: 1rem; }
.tx-icon { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tx-icon.in { background: var(--success-bg); color: var(--success); }
.tx-icon.out { background: var(--danger-bg); color: var(--danger); }
.tx-desc { font-size: 0.875rem; font-weight: 600; color: var(--text-main); }
.tx-amount { font-size: 0.875rem; font-weight: 700; }
.tx-amount.in { color: var(--success); }

/* Tablas */
.table-card { padding: 0; overflow: hidden; }
.table-toolbar { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; background: #FAFAF9; }
.toolbar-actions { display: flex; gap: 0.5rem; }
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 700px; text-align: left; }
.data-table th { padding: 1rem 1.5rem; font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); background: #FAFAF9; border-bottom: 1px solid var(--border-light); }
.data-table td { padding: 1rem 1.5rem; font-size: 0.875rem; border-bottom: 1px solid var(--bg-light); color: var(--text-main); }
.data-table tr:hover td { background: #FAFAF9; }
.status-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 700; border: 1px solid; }
.status-ok { background: var(--success-bg); color: var(--success); border-color: #A7F3D0; }
.status-low { background: var(--warning-bg); color: var(--warning); border-color: #FDE68A; }
.status-critical { background: var(--danger-bg); color: var(--danger); border-color: #FECACA; }
.table-actions { display: flex; gap: 0.5rem; justify-content: flex-end; opacity: 0; transition: opacity 0.2s; }
.data-table tr:hover .table-actions { opacity: 1; }
.btn-table { padding: 0.5rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; }
.btn-edit { background: #EFF6FF; color: var(--brand-primary); }
.btn-edit:hover { background: var(--brand-primary); color: white; }
.btn-delete { background: var(--danger-bg); color: var(--danger); }
.btn-delete:hover { background: var(--danger); color: white; }

/* Perfil */
.profile-view { max-width: 800px; }
.profile-card { padding: 0; overflow: hidden; }
.profile-cover { height: 8rem; background: linear-gradient(to right, var(--brand-900), var(--brand-primary)); }
.profile-body { padding: 0 2rem 2rem; position: relative; }
.profile-avatar { position: absolute; top: -3rem; left: 2rem; border: 4px solid white; border-radius: 50%; background: white; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.profile-avatar img { width: 6rem; height: 6rem; border-radius: 50%; }
.profile-actions { display: flex; justify-content: flex-end; padding-top: 1rem; }
.profile-info { margin-top: 1rem; }

/* Alertas */
.alert { display: flex; gap: 1rem; padding: 1rem; border-radius: 1rem; align-items: flex-start; border: 1px solid; }
.alert-warning { background: var(--warning-bg); border-color: #FDE68A; color: #92400E; }
.alert-warning i { color: var(--warning); }
.alert h4 { font-size: 0.875rem; margin-bottom: 0.25rem; }
.alert p { font-size: 0.875rem; opacity: 0.9; }

/* Modales */
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); display: flex; justify-content: center; align-items: center; z-index: 100; padding: 1rem; }
.modal-container { background: white; border-radius: 1rem; width: 100%; max-width: 500px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 1.5rem; overflow-y: auto; }
.modal-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border-light); background: #FAFAF9; display: flex; justify-content: flex-end; gap: 0.75rem; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .dashboard-data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .sidebar { position: absolute; height: 100%; transform: translateX(-100%); }
    .sidebar.is-open { transform: translateX(0); }
    .mobile-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 30; }
    .content-wrapper { padding: 1rem; }
}

@media (min-width: 769px) {
    .mobile-only { display: none !important; }
}
/* ===== BUSCADOR GLOBAL ===== */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 0.75rem;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}
.search-input {
    padding: 0.45rem 1rem 0.45rem 2.25rem;
    border: 1px solid var(--border-light);
    border-radius: 0.6rem;
    font-size: 0.85rem;
    width: 220px;
    background: var(--bg-light);
    color: var(--text-main);
    transition: border-color 0.2s, width 0.3s;
    font-family: 'Inter', sans-serif;
}
.search-input:focus { outline: none; border-color: #1E40AF; width: 280px; background: #fff; }
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow: hidden;
    min-width: 300px;
}
.search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
}
.search-item:hover { background: #f8fafc; }
.search-item-icon {
    width: 34px; height: 34px;
    background: #EFF6FF; color: #1E40AF;
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.search-item-icon svg { width: 16px; height: 16px; }
.search-item-title { font-size: 0.875rem; font-weight: 600; color: #1e293b; margin: 0; }
.search-item-sub   { font-size: 0.75rem; color: #94a3b8; margin: 0; }
.search-empty { padding: 1rem; text-align: center; font-size: 0.875rem; color: #94a3b8; }

/* ===== NOTIFICACIONES ===== */
.notif-wrapper { position: relative; }
.notif-btn { position: relative; }
.notif-badge {
    position: absolute;
    top: 0; right: 0;
    background: #EF4444; color: #fff;
    font-size: 0.65rem; font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-white);
    pointer-events: none;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
}
.notif-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem; font-weight: 600; color: #1e293b;
}
.notif-clear { font-size: 0.75rem; color: #1E40AF; background: none; border: none; cursor: pointer; font-weight: 500; }
.notif-list { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y: auto; }
.notif-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f8fafc;
}
.notif-item:hover { background: #f8fafc; }
.notif-item-leida { opacity: 0.5; }
.notif-item-icon {
    width: 34px; height: 34px;
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.notif-item-icon svg { width: 16px; height: 16px; }
.notif-item-text { font-size: 0.8rem; color: #334155; line-height: 1.4; padding-top: 0.15rem; }
.notif-empty { padding: 1.5rem; text-align: center; font-size: 0.875rem; color: #94a3b8; }

/* ===== KPIs CLIENTES ===== */
.kpi-mini-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 0.9rem;
    padding: 1.2rem 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.kpi-mini-icon {
    width: 44px; height: 44px;
    border-radius: 0.65rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.kpi-mini-icon svg { width: 20px; height: 20px; }
.kpi-mini-label { font-size: 0.78rem; color: #94a3b8; font-weight: 500; margin: 0 0 0.2rem; text-transform: uppercase; letter-spacing: 0.04em; }
.kpi-mini-val { font-size: 1.35rem; font-weight: 700; color: #1e293b; margin: 0; }
.kpi-mini-name { font-size: 1rem !important; }
/* ================= MOBILE FIXES ================= */
@media (max-width: 768px) {

    /* Header: título no se parta y buscador se oculte */
    .top-header {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }
    .page-title {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 140px;
    }
    .search-wrapper {
        display: none;
    }
    .header-right {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    /* View headers: título arriba, botón abajo */
    .view-header,
    [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    .view-header button,
    .btn-primary, .btn-accent {
        width: 100%;
        justify-content: center;
    }

    /* Grids de 3 columnas → 1 columna */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* KPIs mini en 2 columnas */
    .customers-kpi-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    /* Tablas scrolleables horizontalmente */
    .table-container {
        overflow-x: auto;
    }

    /* Perfil en columna */
    .profile-layout {
        grid-template-columns: 1fr !important;
    }
    .profile-avatar-panel {
        border-right: none !important;
        border-bottom: 1px solid var(--border-light);
        padding-right: 0 !important;
        padding-bottom: 1.5rem;
    }

    /* Finanzas grid 3 col → 1 col */
    .grid-cards {
        grid-template-columns: 1fr !important;
    }
}
