/* Dashboard de ejemplo de la portada: mismo lenguaje visual que la app (papel claro), con estilos acotados a .dash */
.dash {
  --surface: #FFFDF8; --surface2: #EFE8D8; --ink: #1B1A17; --ink2: #5E594E; --soft: rgba(27,26,23,.14);
  --accent: #00D9C0; --coral: #FF5252; --amber: #FFD60A; --blue: #2D8CFF;
  background: #F4EEE2 radial-gradient(rgba(27,26,23,.09) 1.2px, transparent 1.4px) 0 0 / 22px 22px; color: var(--ink);
  padding: 22px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; line-height: 1.55; text-align: left;
}
@media (min-width: 768px) { .dash { padding: 30px; } }
.dash * { box-sizing: border-box; }
.dash h3 { margin: 0 0 14px; font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.dash p { margin: 0; }
.dash .empty { color: var(--ink2); font-size: .9rem; }
.dash-loading { padding: 80px 0; text-align: center; color: #5E594E; }

.dash .card { background: var(--surface); border: 2px solid var(--ink); border-radius: 20px; padding: 22px; box-shadow: 4px 4px 0 var(--ink); }
.dash .row2 { display: grid; gap: 18px; margin-top: 18px; } @media (min-width: 900px) { .dash .row2 { grid-template-columns: 1fr 1fr; } }
.dash .kpis { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; } @media (min-width: 800px) { .dash .kpis { grid-template-columns: repeat(4, 1fr); } }
.dash .kpi { position: relative; background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 3px 3px 0 var(--ink); }
.dash .kpi::before { content: ""; position: absolute; left: 18px; top: -2px; width: 34px; height: 6px; border-radius: 0 0 6px 6px; background: var(--accent); }
.dash .kpi:nth-child(2)::before { background: var(--amber); } .dash .kpi:nth-child(3)::before { background: var(--blue); } .dash .kpi:nth-child(4)::before { background: var(--coral); }
.dash .kpi small { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink2); }
.dash .kpi strong { display: block; font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -.05em; } .dash .kpi span { font-size: .76rem; color: var(--ink2); }

.dash .chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; } .dash .chart-head h3 { margin: 0; }
.dash .seg { display: inline-flex; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 4px; box-shadow: 2px 2px 0 var(--ink); }
.dash .seg button { border: 0; background: transparent; color: var(--ink2); padding: 7px 14px; border-radius: 999px; font: 800 .8rem "Plus Jakarta Sans", sans-serif; cursor: pointer; white-space: nowrap; } .dash .seg button.on { background: var(--ink); color: #F4EEE2; }
.dash .chartwrap { position: relative; }
.dash svg.chart { width: 100%; height: auto; display: block; color: var(--ink); overflow: visible; touch-action: pan-y; } .dash svg.chart text { fill: var(--ink2); font-size: 11px; font-weight: 600; font-family: inherit; }
.dash svg.evo .endlbl { fill: #F4EEE2; font-weight: 800; font-size: 12px; } .dash svg.evo .ov { cursor: crosshair; }
.dash .tip { position: absolute; pointer-events: none; background: var(--ink); color: #F4EEE2; padding: 8px 13px; border-radius: 12px; font-size: .78rem; font-weight: 700; white-space: nowrap; transform: translate(-50%, -135%); box-shadow: 3px 3px 0 var(--accent); opacity: 0; transition: opacity .15s; z-index: 3; } .dash .tip.on { opacity: 1; }
.dash .chart-note { margin-top: 14px; color: var(--ink2); font-size: .86rem; max-width: 72ch; } .dash .chart-note b { color: var(--ink); }
.dash .up { color: #0a9d8b; font-weight: 800; } .dash .down { color: #e0453f; font-weight: 800; }

.dash .bars { display: grid; gap: 11px; } .dash .bar { display: grid; grid-template-columns: 100px 1fr 34px; gap: 12px; align-items: center; font-size: .84rem; font-weight: 600; }
.dash .bars4 .bar { grid-template-columns: 100px 1fr 30px 44px; }
.dash .bar > div { height: 14px; border-radius: 7px; background: var(--surface2); border: 2px solid var(--soft); overflow: hidden; } .dash .bar > div > i { display: block; height: 100%; background: var(--c, var(--accent)); } .dash .bar b { text-align: right; }
.dash .dots3 { display: inline-flex; gap: 3px; justify-content: flex-end; } .dash .dots3 i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--ink2); opacity: .55; } .dash .dots3 i.on { background: var(--ink); border-color: var(--ink); opacity: 1; }
.dash .stack-bar { display: flex; height: 22px; border-radius: 11px; overflow: hidden; border: 2px solid var(--ink); background: var(--surface2); } .dash .stack-bar i { display: block; min-width: 4px; }
.dash .mini-note { margin-top: 12px; font-size: .78rem; color: var(--ink2); } .dash .mini-note b { color: var(--ink); }
.dash .dowbars { display: flex; align-items: flex-end; gap: 10px; height: 150px; } .dash .dowbars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink2); font-weight: 700; }
.dash .dowbars i { width: 100%; border-radius: 8px 8px 0 0; background: var(--c); min-height: 4px; border: 2px solid var(--ink); border-bottom: 0; }
.dash .insights { list-style: none; padding: 0; margin: 0; } .dash .insights li { padding: 11px 0; border-top: 1px solid var(--soft); font-size: .9rem; } .dash .insights li:first-child { border-top: 0; padding-top: 0; }
.dash .legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: .76rem; color: var(--ink2); font-weight: 600; } .dash .legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; border: 2px solid var(--ink); }
.dash .scrollx { overflow-x: auto; padding-bottom: 6px; } .dash .year { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 4px; min-width: 640px; }
.dash .year i { aspect-ratio: 1; border-radius: 3px; background: var(--surface2); display: block; } .dash .year i.has { background: var(--c); }
.dash .stat-mini { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; } .dash .stat-mini div { background: var(--surface2); border-radius: 14px; padding: 12px 14px; } .dash .stat-mini strong { display: block; font-size: 1.6rem; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; } .dash .stat-mini span { font-size: .74rem; color: var(--ink2); }
@media (max-width: 520px) { .dash .card { padding: 16px; } .dash .bar { grid-template-columns: 84px 1fr 30px; } .dash .bars4 .bar { grid-template-columns: 84px 1fr 26px 40px; } }
