/* Casa Clara — estilos (azul petróleo · naranja · durazno) */
:root{
  --teal:#1E4A5A; --teal-2:#2A6072; --teal-3:#3C7488;
  --orange:#F5A94B; --orange-2:#E8963A; --peach:#FDEBD9; --peach-2:#FFF5EC;
  --bg:#F3F6F7; --card:#FFFFFF; --ink:#1D3A45; --muted:#8A99A1; --line:#E6ECEE;
  --good:#2F9E75; --warn:#F5A94B; --bad:#D9634C; --blue:#4C8DB5;
  --r:20px; --r-sm:14px; --shadow:0 6px 24px rgba(30,74,90,.07);
  --side:252px; --bottom:74px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Poppins,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.45}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;font-weight:600;letter-spacing:-.01em}
p{margin:.3em 0 .8em}
small,.small{font-size:12.5px}
.muted{color:var(--muted)}
.ic{width:20px;height:20px;stroke-width:2;flex:none}
code{background:var(--peach-2);padding:1px 6px;border-radius:6px;font-size:.9em}
.hl{color:var(--orange)}

/* ---------- estructura ---------- */
.side{display:none}
.main{padding:0 16px calc(var(--bottom) + 28px);max-width:1180px;margin:0 auto}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0 8px}
.top h1{font-size:22px;line-height:1.2}
.top-actions{display:flex;align-items:center;gap:8px}
.avatar{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:50%;color:#fff;font-weight:600;font-size:13px;flex:none}
.avatar.sm{width:28px;height:28px;font-size:11px}
.help-btn,.icon-btn{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;border:0;background:var(--card);color:var(--teal);cursor:pointer;box-shadow:var(--shadow)}
.icon-btn{width:34px;height:34px;box-shadow:none;background:transparent;color:var(--muted)}
.icon-btn:hover{background:var(--bg);color:var(--teal)}
.icon-btn.danger:hover{color:var(--bad)}
.help-btn .ic{color:var(--orange)}
.viewbar{margin:4px 0 14px}
.seg{display:inline-flex;background:var(--card);border-radius:999px;padding:4px;box-shadow:var(--shadow)}
.seg a{display:flex;align-items:center;gap:6px;padding:7px 16px;border-radius:999px;font-size:13.5px;font-weight:500;color:var(--muted)}
.seg a .ic{width:16px;height:16px}
.seg a.on{background:var(--teal);color:#fff}
.viewing-member{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:var(--peach);padding:10px 14px;border-radius:var(--r-sm);font-size:14px}
.viewing-member a{margin-left:auto;font-weight:600;color:var(--teal);text-decoration:underline}
.content{display:flex;flex-direction:column;gap:16px}

/* barra inferior */
.bottom{position:fixed;left:0;right:0;bottom:0;height:calc(var(--bottom) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;box-shadow:0 -6px 24px rgba(30,74,90,.08);z-index:40;border-radius:22px 22px 0 0}
.bottom a{display:flex;flex-direction:column;align-items:center;gap:3px;color:#B3BEC4;font-size:10.5px;font-weight:500}
.bottom a.on{color:var(--teal)}
.bottom a.on::after{content:"";width:5px;height:5px;border-radius:50%;background:var(--teal);margin-top:1px}
.bottom a.on span{display:none}
.fab{justify-self:center;width:58px;height:58px;border-radius:50%;border:5px solid #FCE3C6;background:var(--orange);color:#fff;display:grid;place-items:center;cursor:pointer;margin-top:-26px;box-shadow:0 8px 20px rgba(245,169,75,.45)}
.fab .ic{width:26px;height:26px}
.fab-desk{display:none}

/* ---------- tarjetas ---------- */
.card{background:var(--card);border-radius:var(--r);padding:18px;box-shadow:var(--shadow)}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.card-h h2,.sec-title{font-size:17px}
.card-h a.link,.link{color:var(--teal-3);font-size:13px;font-weight:600}
.sec{display:flex;align-items:center;justify-content:space-between;margin-top:6px}
.hero{background:var(--teal);color:#fff;border-radius:var(--r);padding:20px;display:flex;align-items:center;justify-content:space-between;gap:14px;position:relative;overflow:hidden}
.hero::before,.hero::after{content:"";position:absolute;border:2px solid rgba(255,255,255,.08);border-radius:50%}
.hero::before{width:90px;height:90px;left:-30px;top:-30px}
.hero::after{width:140px;height:140px;right:-50px;bottom:-70px}
.hero p{margin:0 0 12px;font-size:15px;opacity:.95;max-width:260px}
.hero .big{font-size:26px;font-weight:700;display:block;margin-bottom:4px}
.ring .ring-bg{fill:none;stroke:rgba(255,255,255,.18);stroke-width:8}
.ring .ring-fg{fill:none;stroke:var(--orange);stroke-width:8;stroke-linecap:round;transform:rotate(-90deg);transform-origin:50% 50%}
.ring text{fill:currentColor;font-weight:600;font-size:15px;font-family:Poppins,sans-serif}
.card .ring .ring-bg{stroke:#EEF2F3}
.greet h2{font-size:24px;line-height:1.25}
.greet h2 b{color:var(--orange);font-weight:600}
.intention{font-size:13px;color:var(--muted);font-style:italic;margin-top:4px}

/* mosaico estilo "Today's schedule" */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tile{border-radius:18px;padding:16px;background:#fff;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:4px;min-height:96px;position:relative;overflow:hidden}
.tile .t-label{font-size:12.5px;color:var(--muted);display:flex;align-items:center;gap:6px}
.tile .t-val{font-size:19px;font-weight:600}
.tile .t-sub{font-size:12px;color:var(--muted)}
.tile.peach{background:var(--peach)}
.tile.teal{background:var(--teal);color:#fff}
.tile.teal .t-label,.tile.teal .t-sub{color:rgba(255,255,255,.75)}
.tile .t-ic{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.6)}
.tile.teal .t-ic{background:rgba(255,255,255,.12)}
.tile .t-ic .ic{width:18px;height:18px}
.up{color:var(--good)} .down{color:var(--bad)}

/* calendario tipo tira */
.cal{background:var(--teal);color:#fff;border-radius:var(--r);padding:16px 14px 18px;position:relative;overflow:hidden}
.cal-h{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.cal-h b{font-size:17px;font-weight:600}
.cal-h a{display:grid;place-items:center;width:32px;height:32px;color:#fff}
.cal-days{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.cal-days::-webkit-scrollbar{display:none}
.cal-day{flex:0 0 46px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:12.5px;color:rgba(255,255,255,.7)}
.cal-day b{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;font-weight:600;font-size:15px;position:relative}
.cal-day.today b{background:var(--orange)}
.cal-day.has b::after{content:"";position:absolute;bottom:3px;width:5px;height:5px;border-radius:50%;background:var(--orange)}
.cal-day.today.has b::after{background:#fff}

/* línea de tiempo */
.timeline{display:flex;flex-direction:column;gap:10px}
.tl-item{display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:start}
.tl-date{font-size:12.5px;color:var(--muted);padding-top:12px;text-align:right}
.tl-card{border-radius:16px;padding:12px 14px;background:#fff;box-shadow:var(--shadow);display:flex;align-items:center;gap:10px}
.tl-card.peach{background:var(--peach)}
.tl-card.over{background:#FBE3DE}
.tl-card .grow{flex:1;min-width:0}
.tl-card b{display:block;font-size:14.5px;font-weight:600}
.tl-card small{color:var(--muted)}

/* listas de movimientos */
.list{display:flex;flex-direction:column}
.li{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}
.li:last-child{border-bottom:0}
.li .grow{flex:1;min-width:0}
.li .ttl{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.li .sub{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.li .amt{font-weight:600;white-space:nowrap;text-align:right}
.li .amt small{display:block;font-weight:400;color:var(--muted)}
.cat-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex:none;background:var(--peach);color:var(--orange-2)}
.cat-ic.in{background:#E1F3EC;color:var(--good)}
.cat-ic.teal{background:#E3EDF0;color:var(--teal)}
.cat-ic .ic{width:19px;height:19px}
.day-h{font-size:12.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;padding:14px 0 2px}
.chip{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;padding:2px 9px;border-radius:999px;background:var(--bg);color:var(--teal);font-weight:500}
.chip.orange{background:var(--peach);color:var(--orange-2)}
.chip.green{background:#E1F3EC;color:var(--good)}
.chip.red{background:#FBE3DE;color:var(--bad)}
.chip .ic{width:12px;height:12px}

/* barras */
.bar{height:8px;border-radius:99px;background:#EEF2F3;overflow:hidden}
.bar span{display:block;height:100%;border-radius:99px;background:var(--good)}
.bar span.warn,.bar span.mid{background:var(--orange)}
.bar span.bad{background:var(--bad)}
.bar span.good{background:var(--good)}

/* botones */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:11px 22px;font:inherit;font-weight:600;font-size:14.5px;cursor:pointer;transition:.15s}
.btn .ic{width:18px;height:18px}
.btn-primary{background:var(--orange);color:#fff}
.btn-primary:hover{background:var(--orange-2)}
.btn-teal{background:var(--teal);color:#fff}
.btn-ghost{background:var(--bg);color:var(--teal)}
.btn-light{background:rgba(255,255,255,.95);color:var(--teal)}
.hero .btn-primary{padding:8px 18px;font-size:13px}
.btn-danger{background:var(--bad);color:#fff}
.btn-sm{padding:7px 14px;font-size:13px}
.btn-block{width:100%}
.row{display:flex;align-items:center}
.gap{gap:10px}.wrap{flex-wrap:wrap}.between{justify-content:space-between}.grow{flex:1}
form.inline{display:inline}

/* formularios */
.form{display:flex;flex-direction:column;gap:14px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:13.5px;font-weight:500;color:var(--ink)}
.form label small{font-weight:400;color:var(--muted)}
input,select,textarea{font:inherit;font-size:16px;color:var(--ink);background:#F7F9FA;border:1.5px solid var(--line);border-radius:14px;padding:11px 14px;width:100%;outline:none;transition:.15s}
input:focus,select:focus,textarea:focus{border-color:var(--orange);background:#fff}
input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--orange)}
.form label.check{flex-direction:row;align-items:center;gap:10px;font-weight:400}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.amount-input{font-size:34px;font-weight:600;text-align:center;border:0;background:transparent;padding:6px}
.amount-wrap{background:var(--peach-2);border-radius:18px;padding:12px;text-align:center}
.amount-wrap .cur{font-size:13px;color:var(--muted)}
.toggle-dir{display:grid;grid-template-columns:1fr 1fr;background:var(--bg);border-radius:999px;padding:4px}
.toggle-dir label{margin:0;cursor:pointer}
.toggle-dir input{display:none}
.toggle-dir span{display:block;text-align:center;padding:10px;border-radius:999px;font-weight:600;color:var(--muted)}
.toggle-dir input:checked + span{background:#fff;color:var(--teal);box-shadow:var(--shadow)}
.toggle-dir input[value=egreso]:checked + span{color:var(--bad)}
.toggle-dir input[value=ingreso]:checked + span{color:var(--good)}
.pick{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.pick::-webkit-scrollbar{display:none}
.pick label{flex:none;margin:0}
.pick input{display:none}
.pick span{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;background:var(--bg);font-size:13.5px;cursor:pointer;white-space:nowrap}
.pick input:checked + span{background:var(--teal);color:#fff}
.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatches label{margin:0}
.swatches input{display:none}
.swatches span{display:block;width:30px;height:30px;border-radius:50%;cursor:pointer;border:3px solid transparent}
.swatches input:checked + span{border-color:var(--ink)}

/* alertas / ayuda */
.alert{padding:12px 16px;border-radius:var(--r-sm);font-size:14px;margin-bottom:12px}
.alert-ok{background:#E1F3EC;color:#1D6B4F}
.alert-warn{background:var(--peach);color:#8A5317}
.alert-err{background:#FBE3DE;color:#8E3322}
.hint{display:flex;gap:10px;background:var(--peach-2);border:1.5px dashed #F6CFA2;border-radius:var(--r-sm);padding:12px 14px;font-size:13.5px;color:#7A5226}
.hint .ic{color:var(--orange);margin-top:1px}
.hint b{color:var(--ink)}
.tip{display:flex;gap:12px;align-items:flex-start;background:#fff;border-radius:var(--r);padding:16px;box-shadow:var(--shadow)}
.tip .t-i{width:40px;height:40px;border-radius:12px;background:var(--peach);color:var(--orange-2);display:grid;place-items:center;flex:none}
.tip small{color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.05em;font-size:11px}
.tip p{margin:2px 0 0;font-size:14px}

/* hoja inferior / modal */
.sheet{position:fixed;inset:0;background:rgba(18,40,49,.45);z-index:80;display:flex;align-items:flex-end;justify-content:center;animation:fade .15s}
.sheet[hidden]{display:none}
.sheet-card{background:#fff;width:100%;max-width:560px;max-height:88vh;overflow:auto;border-radius:26px 26px 0 0;padding:24px 20px calc(24px + env(safe-area-inset-bottom));position:relative;animation:up .2s ease-out}
.sheet-card.sm{max-width:400px}
.sheet-card h3{font-size:19px;margin-bottom:4px;padding-right:36px}
.sheet-card h4{font-size:14px;margin:16px 0 6px;color:var(--teal)}
.sheet-x{position:absolute;right:14px;top:14px;border:0;background:var(--bg);width:34px;height:34px;border-radius:50%;display:grid;place-items:center;cursor:pointer;color:var(--ink)}
@keyframes up{from{transform:translateY(40px);opacity:0}}
@keyframes fade{from{opacity:0}}
.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.quick{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:14px;border-radius:18px;background:var(--bg)}
.quick .ic{width:24px;height:24px;margin-bottom:6px}
.quick b{font-size:14px}.quick small{color:var(--muted);font-size:11.5px}
.q-out{background:#FBE3DE}.q-out .ic{color:var(--bad)}
.q-in{background:#E1F3EC}.q-in .ic{color:var(--good)}
.q-shop{background:var(--peach)}.q-shop .ic{color:var(--orange-2)}
.q-save{background:#E2EEF6}.q-save .ic{color:var(--blue)}
.q-fix{background:#E3EDF0}.q-fix .ic{color:var(--teal)}
.q-debt{background:#F0EAF8}.q-debt .ic{color:#8E6CC4}
.help-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.help-head .ic{color:var(--orange);width:26px;height:26px}
.help-steps{padding-left:20px;margin:0}.help-steps li{margin-bottom:6px}
.help-ex{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.help-ex li{background:var(--bg);border-radius:12px;padding:9px 12px;font-size:13.5px}
.help-tip{display:flex;gap:10px;background:var(--peach);border-radius:14px;padding:12px;margin:16px 0;font-size:13.5px}
.help-tip .ic{color:var(--orange-2)}

/* vacío */
.empty{text-align:center;padding:26px 10px}
.empty-ic{width:74px;height:74px;border-radius:24px;background:var(--peach);color:var(--orange-2);display:grid;place-items:center;margin:0 auto 12px}
.empty-ic .ic{width:32px;height:32px}
.empty h3{font-size:17px}
.empty p{color:var(--muted);font-size:14px;max-width:380px;margin:6px auto 16px}

/* primeros pasos */
.steps{display:flex;flex-direction:column;gap:8px}
.step{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;background:var(--bg)}
.step .n{width:28px;height:28px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:13px;font-weight:600;color:var(--teal);flex:none}
.step.done{opacity:.55}
.step.done .n{background:var(--good);color:#fff}
.step b{font-size:14px;font-weight:500;display:block}
.step small{color:var(--muted)}
.progress-line{display:flex;align-items:center;gap:10px;margin-bottom:12px;font-size:13px;color:var(--muted)}
.progress-line .bar{flex:1}

/* metas */
.goals{display:grid;grid-template-columns:1fr;gap:12px}
.goal{display:flex;gap:14px;align-items:center}
.goal .ring{color:var(--ink)}
.goal .ring .ring-bg{stroke:#EEF2F3}
.goal h3{font-size:16px}
.goal .meta{font-size:12.5px;color:var(--muted)}

/* cuentas */
.accs{display:grid;grid-template-columns:1fr;gap:12px}
.acc{border-radius:var(--r);padding:18px;color:#fff;position:relative;overflow:hidden;min-height:128px;display:flex;flex-direction:column;justify-content:space-between}
.acc::after{content:"";position:absolute;right:-40px;bottom:-60px;width:150px;height:150px;border-radius:50%;border:2px solid rgba(255,255,255,.15)}
.acc .a-top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.acc .a-name{font-weight:600}
.acc .a-type{font-size:12px;opacity:.8}
.acc .a-bal{font-size:24px;font-weight:700}
.acc .icon-btn{color:#fff}
.acc .icon-btn:hover{background:rgba(255,255,255,.15);color:#fff}
.acc .chip{background:rgba(255,255,255,.18);color:#fff}

/* presupuesto */
.bud-group{margin-bottom:6px}
.bud-row{display:grid;grid-template-columns:1fr 104px;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.bud-row:last-child{border-bottom:0}
.bud-row .nm{font-size:14px;font-weight:500}
.bud-row .real{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;margin-top:5px}
.bud-row input{padding:8px 10px;text-align:right;font-size:15px}
.bud-sum{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.table{width:100%;border-collapse:collapse;font-size:14px}
.table th{text-align:left;font-size:12px;color:var(--muted);font-weight:500;padding:8px 6px;border-bottom:1px solid var(--line)}
.table td{padding:10px 6px;border-bottom:1px solid var(--line)}
.table td.r,.table th.r{text-align:right}
.table-wrap{overflow-x:auto}

/* compras */
.shop-sec{margin-top:10px}
.shop-sec h4{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:10px 0 4px;display:flex;justify-content:space-between}
.item{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.item .box{width:26px;height:26px;border-radius:9px;border:2px solid #D6DEE1;display:grid;place-items:center;flex:none;background:#fff;cursor:pointer}
.item.checked .box{background:var(--orange);border-color:var(--orange);color:#fff}
.item .box .ic{width:15px;height:15px;opacity:0}
.item.checked .box .ic{opacity:1}
.item.checked .ttl{text-decoration:line-through;color:var(--muted)}
.item .grow{flex:1;min-width:0}
.item .qty{font-size:12.5px;color:var(--muted)}
.list-card{display:flex;flex-direction:column;gap:10px}
.sticky-foot{position:sticky;bottom:calc(var(--bottom) + 12px);z-index:5}

/* chart */
.chart-box{position:relative;height:260px}
.chart-box.sm{height:220px}
.legend{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.legend div{display:flex;align-items:center;gap:8px;font-size:13.5px}
.legend i{width:10px;height:10px;border-radius:3px;flex:none}
.legend span{flex:1}

/* familia */
.member{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.member:last-child{border-bottom:0}
.code-box{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--teal);color:#fff;border-radius:18px;padding:16px 18px}
.code-box b{font-size:28px;letter-spacing:.18em}
.switch{position:relative;width:46px;height:26px;flex:none}
.switch input{opacity:0;width:0;height:0}
.switch span{position:absolute;inset:0;background:#D6DEE1;border-radius:99px;cursor:pointer;transition:.2s}
.switch span::after{content:"";position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:.2s}
.switch input:checked + span{background:var(--good)}
.switch input:checked + span::after{transform:translateX(20px)}

/* menú más */
.menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.menu-grid a{background:#fff;border-radius:18px;padding:16px 10px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;font-size:13px;font-weight:500;box-shadow:var(--shadow)}
.menu-grid a .ic{width:24px;height:24px;color:var(--teal)}

/* autenticación */
.auth-body{min-height:100vh;background:var(--teal);display:flex;align-items:center;justify-content:center;padding:20px}
.auth-wrap{width:100%;max-width:440px}
.auth-card{background:#fff;border-radius:28px;padding:28px 24px;box-shadow:0 20px 60px rgba(0,0,0,.18)}
.auth-card h1{font-size:24px;margin:10px 0 4px}
.auth-brand{display:flex;align-items:center;gap:10px;font-size:18px}
.auth-brand b{color:var(--orange);font-weight:600}
.auth-foot{text-align:center;margin-top:16px;font-size:14px;color:var(--muted)}
.auth-foot a{color:var(--orange-2);font-weight:600}
.auth-hero{color:#fff;text-align:center;margin-bottom:18px}
.auth-hero h2{font-size:26px;line-height:1.25}
.auth-hero h2 b{color:var(--orange)}
.logo-dot{width:30px;height:30px;border-radius:10px;background:var(--orange);position:relative;flex:none}
.logo-dot::after{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}
.install-steps{display:flex;gap:8px;margin:14px 0}
.install-steps span{width:30px;height:30px;border-radius:50%;background:var(--bg);display:grid;place-items:center;font-size:13px;font-weight:600;color:var(--muted)}
.install-steps span.on{background:var(--orange);color:#fff}
.checklist{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}
.checklist li{padding:10px 12px;border-radius:12px;background:var(--bg);font-size:14px}
.checklist li.ok{color:var(--good)}.checklist li.bad{color:var(--bad)}

.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.kpi{background:#fff;border-radius:18px;padding:14px;box-shadow:var(--shadow)}
.kpi small{color:var(--muted);display:block}
.kpi b{font-size:18px}
.grid-2,.grid-3{display:grid;grid-template-columns:1fr;gap:16px}
.filters{display:flex;gap:8px;flex-wrap:wrap}
.filters select,.filters input{width:auto;flex:1;min-width:130px;padding:9px 12px;font-size:14px}
.mnav{display:flex;align-items:center;gap:6px}
.mnav a{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#fff;box-shadow:var(--shadow)}
.mnav b{min-width:120px;text-align:center}

/* ---------- escritorio ---------- */
@media (min-width:700px){
  .accs,.goals{grid-template-columns:repeat(2,1fr)}
  .tiles{grid-template-columns:repeat(4,1fr)}
  .kpis{grid-template-columns:repeat(4,1fr)}
  .bud-sum{grid-template-columns:repeat(4,1fr)}
  .grid-2{grid-template-columns:1fr 1fr}
  .menu-grid{grid-template-columns:repeat(4,1fr)}
  .sheet{align-items:center}
  .sheet-card{border-radius:26px;padding-bottom:24px}
}
@media (min-width:1000px){
  body{padding-left:var(--side)}
  .side{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:var(--side);background:var(--teal);color:#fff;padding:22px 14px;z-index:30}
  .brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:18px;padding:0 10px 22px}
  .side nav{display:flex;flex-direction:column;gap:2px;flex:1;overflow:auto}
  .side nav a{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:rgba(255,255,255,.72);font-size:14px;font-weight:500}
  .side nav a:hover{background:rgba(255,255,255,.06);color:#fff}
  .side nav a.on{background:rgba(255,255,255,.1);color:#fff}
  .side nav a.on .ic{color:var(--orange)}
  .side-user{display:flex;align-items:center;gap:10px;padding:12px;border-radius:14px;background:rgba(255,255,255,.07)}
  .side-user small{display:block;opacity:.7;font-size:12px}
  .side-user b{font-weight:500;font-size:14px}
  .bottom{display:none}
  .fab-desk{display:grid;position:fixed;right:28px;bottom:28px;margin:0;z-index:40}
  .main{padding:10px 32px 60px}
  .top h1{font-size:26px}
  .top-avatar{display:none}
  .grid-3{grid-template-columns:2fr 1fr}
  .accs{grid-template-columns:repeat(3,1fr)}
  .goals{grid-template-columns:repeat(2,1fr)}
}
/* evita desbordes horizontales en rejillas */
.grid-2>*,.grid-3>*,.content>*,.tiles>*{min-width:0}
html,body{overflow-x:hidden}
.alerts{display:flex;flex-direction:column;gap:6px}
.alerts .alert{margin:0}
.btn-ghost{background:#E7EEF1}
.amount-input,.amount-input:focus{background:transparent;border:0}
