/* Dashboard — diseño moderno MYTEAM */
.dash {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    max-width: none;
    width: 100%;
    margin: 0;
}

.dash-header { margin-bottom: 32px; }
.dash-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.dash-header p { margin: 0; color: #64748b; font-size: 16px; }
.dash-section { margin-bottom: 34px; }
.dash-section-title {
    margin: 0 0 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.dash-stat-grid { display: grid; gap: 20px; }
.dash-stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-stat-grid--metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dash-stat {
    border-radius: 16px;
    padding: 24px 26px;
    min-height: 108px;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}
.dash-stat::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.dash-stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}
.dash-stat--red .dash-stat-value {
    font-size: 1.55rem;
}
.dash-stat-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.dash-stat--blue { background: linear-gradient(135deg, #0284c7, #0369a1); }
.dash-stat--green { background: linear-gradient(135deg, #16a34a, #15803d); }
.dash-stat--red { background: linear-gradient(135deg, #dc2626, #b91c1c); }

.dash-metric {
    background: #fff;
    border-radius: 16px;
    padding: 22px 24px;
    min-height: 112px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: visible;
    display: block;
}
/* user-clickable en interfaz usa flex — anular en cards del dashboard */
.dash-metric.user-clickable {
    display: block !important;
    align-items: stretch !important;
    flex-direction: column !important;
}
.dash-metric::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.dash-metric:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}
.dash-metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.dash-metric-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.dash-metric-toggle {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 999px;
    white-space: nowrap;
}
.dash-metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.01em;
    display: block;
    width: 100%;
    word-break: break-word;
}
.dash-metric-details {
    display: none;
    clear: both;
    width: 100%;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
    background: #f8fafc;
    margin-left: -18px;
    margin-right: -18px;
    margin-bottom: -16px;
    padding: 14px 18px 16px;
    border-radius: 0 0 13px 13px;
}
.dash-metric-details.open { display: block; }
.dash-metric--open {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.dash-detail-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    align-items: baseline;
    font-size: 13px;
    margin-bottom: 8px;
    color: #64748b;
}
.dash-detail-row:last-child { margin-bottom: 0; }
.dash-detail-row span {
    line-height: 1.4;
    min-width: 0;
}
.dash-detail-row b {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
}

.dash-metric--dark::before { background: linear-gradient(90deg, #334155, #475569); }
.dash-metric--blue::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.dash-metric--amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.dash-metric--rose::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.dash-metric--emerald::before { background: linear-gradient(90deg, #16a34a, #4ade80); }
.dash-metric--violet::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

.dash-metric--blue .dash-metric-value { color: #0369a1; }
.dash-metric--amber .dash-metric-value { color: #b45309; }
.dash-metric--rose .dash-metric-value { color: #dc2626; }
.dash-metric--emerald .dash-metric-value { color: #15803d; }
.dash-metric--violet .dash-metric-value { color: #7c3aed; }
.dash-metric--negative .dash-metric-value { color: #dc2626 !important; }

/* Shell overrides */
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important; }

.top-nav-left { display: flex; align-items: center; gap: 8px; }
.top-nav-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.top-nav-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 12px; color: #fff;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
    flex-shrink: 0;
}
.top-nav-mark--img {
    background: #fff !important;
    padding: 0;
    overflow: hidden;
}
.top-nav-mark--img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.top-nav-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: #f8fafc; line-height: 1.2; }
.top-nav-sub { font-size: 11px; color: #94a3b8; font-weight: 500; }
.top-nav-actions { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; }
.nav-pill {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}
.nav-pill:hover { background: rgba(255,255,255,0.14); color: #fff; }
.nav-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}
.nav-clock__time {
    color: #f8fafc;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}
.nav-clock__sep { opacity: 0.45; }
.nav-clock__date {
    color: #cbd5e1;
    text-transform: capitalize;
}
.nav-user {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
}
.nav-user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-weight: 700; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.nav-user span { color: #e2e8f0; font-size: 12px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.top-nav {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    height: 56px !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.sidebar {
    width: 260px !important;
    background: linear-gradient(180deg, #0f172a 0%, #1a2332 50%, #0f172a 100%) !important;
    color: #94a3b8 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.sidebar-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 10px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}
.sidebar-scroll::-webkit-scrollbar { width: 5px; }
.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 999px;
}

.user-panel {
    display: flex !important;
    align-items: center !important;
    padding: 16px 14px !important;
    margin: 10px 10px 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    gap: 12px !important;
    flex-shrink: 0;
}
.user-panel-info { min-width: 0; flex: 1; }
.user-panel b {
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-role {
    color: #4ade80 !important;
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sidebar-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sidebar-menu li.header {
    padding: 18px 10px 6px !important;
    margin-top: 4px;
    color: #64748b !important;
    background: transparent !important;
    font-weight: 800 !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
}
.sidebar-menu li.header:first-child { margin-top: 0; padding-top: 8px; }
.sidebar-item { margin-bottom: 2px; list-style: none; }
.sidebar-item--cta { margin-bottom: 10px; }

.tab-btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    border: none !important;
    border-left: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #cbd5e1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.15s ease !important;
    line-height: 1.3 !important;
}
.tab-btn:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #f8fafc !important;
    transform: translateX(2px);
}
.tab-btn.active {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.06)) !important;
    color: #fff !important;
    box-shadow: inset 3px 0 0 #22c55e !important;
}
.tab-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}
.tab-btn.active .tab-icon {
    background: rgba(34, 197, 94, 0.2);
}
.tab-label {
    flex: 1;
    min-width: 0;
}
.tab-chevron {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.tab-btn--parent.is-open .tab-chevron {
    transform: rotate(180deg);
    color: #94a3b8;
}

.tab-btn--cta {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
    font-weight: 700 !important;
}
.tab-btn--cta:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.4) !important;
}
.tab-btn--cta .tab-icon {
    background: rgba(255, 255, 255, 0.2);
}

a.tab-btn {
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.tab-btn--chofer-mod {
    border-radius: 999px !important;
    padding: 12px 16px !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.tab-btn--chofer-mod .tab-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    background: rgba(255, 255, 255, 0.22) !important;
}

.tab-btn--chofer-mod .tab-label {
    font-size: 13px !important;
    letter-spacing: -0.01em;
}

.sidebar-submenu {
    list-style: none !important;
    padding: 4px 0 6px 0 !important;
    margin: 2px 0 4px 14px !important;
    background: transparent !important;
    border-left: 2px solid rgba(255, 255, 255, 0.08) !important;
    display: none;
}
.sidebar-submenu li { list-style: none; margin-bottom: 1px; }
.sub-tab {
    padding: 8px 12px 8px 14px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    border-radius: 8px !important;
    gap: 0 !important;
}
.sub-tab:hover {
    color: #e2e8f0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
}
.sub-tab.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: none !important;
}
.sub-tab .tab-icon { display: none; }

.sidebar-item--group.is-open > .sidebar-submenu {
    display: block !important;
}

.sidebar-submenu--nested {
    margin-left: 10px !important;
    padding-left: 8px !important;
}

.sidebar-item--nested {
    margin: 2px 0 !important;
}

.sidebar-item--nested > .tab-btn--parent {
    width: 100%;
    justify-content: space-between;
    font-weight: 700 !important;
    color: #cbd5e1 !important;
}

.sidebar-item--nested.is-open > .sidebar-submenu--nested {
    display: block !important;
}

.main-content {
    background: #f1f5f9 !important;
    padding: 28px 32px !important;
}
.app-wrapper { height: calc(100vh - 56px) !important; }
.logout-btn {
    background: rgba(220, 38, 38, 0.15) !important;
    border: 1px solid rgba(248, 113, 113, 0.35) !important;
    color: #fecaca !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}
.logout-btn:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #fff !important;
}
.user-panel .avatar,
.sidebar-avatar {
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35) !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    flex-shrink: 0;
}

.module-tecnologia .tab-btn.active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.2), rgba(14, 165, 233, 0.06)) !important;
    box-shadow: inset 3px 0 0 #0ea5e9 !important;
}
.module-tecnologia .tab-btn.active .tab-icon {
    background: rgba(14, 165, 233, 0.22);
}
.top-nav-mark--tech {
    background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35) !important;
}
.sidebar-avatar--tech {
    background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35) !important;
}
.sidebar-role--tech { color: #38bdf8 !important; }

.dash-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
}
.dash-table th {
    background: #f8fafc !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b !important;
}
.dash-ncf-badge {
    background: #f0f9ff;
    color: #0369a1;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    border: 1px solid #bae6fd;
}

/* —— Proyección anual —— */
.proy-title-anchor {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 4px !important;
}
.proy-title-anchor h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.proy-vault {
    display: flex;
    justify-content: center;
    padding: 32px 16px 48px;
}
.proy-vault-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.proy-vault-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.2));
}
.proy-vault-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}
.proy-vault-desc {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}
.proy-pin-wrap { margin-bottom: 20px; }
.proy-pin-input {
    width: 100%;
    max-width: 220px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 12px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    outline: none;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.proy-pin-input:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}
.proy-vault-error {
    margin: 20px 0 0;
    color: #dc2626;
    font-weight: 700;
    font-size: 13px;
}

.proy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 22px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.proy-btn:hover { transform: translateY(-1px); }
.proy-btn--primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    min-width: 200px;
}
.proy-btn--danger {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fecaca;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.proy-btn--danger:hover {
    background: #fef2f2;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

.proy-panel { animation: proyFadeIn 0.35s ease; }
@keyframes proyFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.proy-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}
.proy-toolbar-start {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 20px;
    flex: 1;
    min-width: 260px;
}
.proy-panel-title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}
.proy-panel-sub {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}
.proy-select-wrap { min-width: 220px; }
.proy-select-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
}
.proy-select {
    width: 100%;
    max-width: 280px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.proy-select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.proy-hero-card {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 28px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2);
}
.proy-hero-item { flex: 1; min-width: 200px; padding: 8px 16px; }
.proy-hero-item--accent { text-align: center; }
.proy-hero-divider {
    width: 1px;
    background: rgba(255,255,255,0.12);
    align-self: stretch;
    margin: 8px 0;
}
.proy-hero-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
    margin-bottom: 4px;
}
.proy-hero-hint {
    display: block;
    font-size: 11px;
    opacity: 0.5;
    margin-bottom: 8px;
}
.proy-hero-value {
    display: block;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.proy-hero-value--green { color: #4ade80; }

.proy-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.proy-kpi {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.proy-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
.proy-kpi--blue { border-top: 4px solid #0284c7; }
.proy-kpi--red { border-top: 4px solid #dc2626; }
.proy-kpi--green { border-top: 4px solid #16a34a; }
.proy-kpi--purple { border-top: 4px solid #9333ea; }
.proy-kpi-label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}
.proy-kpi-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
.proy-kpi--blue .proy-kpi-value { color: #0284c7; }
.proy-kpi--red .proy-kpi-value { color: #dc2626; }
.proy-kpi--green .proy-kpi-value { color: #16a34a; }
.proy-kpi--purple .proy-kpi-value { color: #9333ea; }
.proy-kpi-badge {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #0369a1;
    background: #e0f2fe;
    padding: 3px 10px;
    border-radius: 20px;
}
.proy-kpi-hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
}

.proy-projection-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.proy-projection-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.proy-projection-metric {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}
.proy-projection-metric--highlight {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-color: #bbf7d0;
}
.proy-projection-value {
    display: block;
    margin-top: 10px;
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 900;
    color: #0f172a;
}
.proy-projection-value--green { color: #16a34a; }

.proy-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.proy-partner {
    background: #f8fafc;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
}
.proy-partner-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.proy-partner-name {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}
.proy-partner-pct {
    font-size: 12px;
    font-weight: 800;
    color: #0284c7;
    background: #e0f2fe;
    padding: 2px 8px;
    border-radius: 6px;
}
.proy-partner-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 14px;
}
.proy-partner-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #0369a1);
    border-radius: 99px;
}
.proy-partner-bar--julio span { background: linear-gradient(90deg, #16a34a, #15803d); }
.proy-partner-bar--moises span { background: linear-gradient(90deg, #9333ea, #7e22ce); }
.proy-partner-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}
.proy-alert {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    color: #0369a1;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

#sub-rango-fechas {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-top: 6px;
    letter-spacing: 0.02em;
}

@media (max-width: 1100px) {
    .dash-stat-grid--3,
    .dash-stat-grid--metrics {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) {
    .proy-hero-divider { display: none; }
    .proy-hero-item--accent { text-align: left; }
    .proy-toolbar { flex-direction: column; }
    .proy-btn--danger { width: 100%; }
    .nav-user span { display: none; }
    .top-nav-sub { display: none; }
    .sidebar {
        width: 280px !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4) !important;
    }
}
