@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:light;--ink:#132536;--muted:#778494;--bg:#f5f8fa;--border:#e4eaf0;--green:#008e80;--mint:#e5f7f2;--navy:#0b1725;--shadow:0 16px 50px rgba(25,40,53,.055)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.45;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9ddbd4;outline-offset:2px}a{color:var(--green)}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,'DM Sans',sans-serif;letter-spacing:-.05em}h1{font-size:clamp(2rem,4.5vw,3.5rem);line-height:1.18}em{font-style:normal;color:#20c4a8}small{font-size:.75rem}.loading-screen{display:grid;place-items:center;height:100svh;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.eyebrow{font-size:11px;color:var(--green);text-transform:uppercase;letter-spacing:.16em;font-weight:800;margin-bottom:10px}.btn{border:1px solid var(--border);border-radius:13px;padding:11px 17px;font-size:13px;font-weight:750;min-height:42px;transition:.15s;white-space:nowrap}.btn:hover{transform:translateY(-1px)}.btn-primary{background:#0ca994;color:white;border-color:#0ca994;box-shadow:0 7px 18px rgba(0,153,128,.19)}.btn-primary:hover{background:#078f80}.btn-outline{background:white;color:#345266}.btn-demo{background:white;border:1px solid #d8e6e8;color:#16665f}.btn.wide{width:100%;min-height:49px}.text-button{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:800}.icon-btn{background:#f0f5f6;border:1px solid #e2ebed;width:38px;height:38px;border-radius:12px;color:#395464;font-size:19px;font-weight:bold;display:grid;place-items:center}.danger-outline{color:#aa3940;border-color:#f2dede}
.brand-logo{display:inline-grid;place-items:center;width:37px;height:37px;border-radius:12px;background:linear-gradient(140deg,#29ceae,#068976);color:white;font-size:24px;line-height:1;font-weight:800;box-shadow:0 7px 16px rgba(0,155,128,.15)}.brand,.welcome-brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.04em}.brand{font-size:19px}.welcome-brand{font-size:18px}
.welcome-page{min-height:100svh;display:grid;grid-template-columns:minmax(360px,600px) minmax(300px,1fr);background:white}.welcome-box{padding:44px clamp(24px,6vw,96px);display:flex;flex-direction:column;justify-content:center;min-width:0}.welcome-box .welcome-brand{margin-bottom:75px}.welcome-box h1{margin-bottom:19px}.lead{font-size:15px;color:#738392;line-height:1.85;max-width:500px;margin:5px 0 25px}.lead.small{font-size:14px}.welcome-features{display:flex;gap:13px;flex-wrap:wrap;margin:0 0 34px;color:#28796b;font-size:12px;font-weight:700}.welcome-features span{background:#eaf8f4;padding:7px 10px;border-radius:10px}.welcome-art{background:radial-gradient(circle at 75% 25%,#27525d,#102e38 55%,#0b1828);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:15px;padding:40px}.welcome-art>p{text-align:center;color:#a9c8ca;line-height:1.8;margin-top:38px}.floating-mini{width:min(360px,90%);border:1px solid #4b7b81;background:#ffffff18;backdrop-filter:blur(5px);padding:25px;border-radius:24px;display:flex;flex-direction:column;gap:10px}.floating-mini span,.floating-mini small{color:#b9d3d4}.floating-mini strong{font-family:Manrope;font-size:38px;letter-spacing:-.06em}.floating-row{width:min(360px,90%);border:1px solid #4c808280;background:#ffffff0e;padding:19px 21px;border-radius:17px;display:flex;justify-content:space-between;font-size:12px;gap:10px}.floating-row b{color:#6adac9}.auth-tabs{display:flex;background:#f3f7f8;padding:5px;border-radius:13px;margin:10px 0 20px}.auth-tabs button{flex:1;background:transparent;border:0;padding:10px;border-radius:9px;font-weight:800;color:#6b7c87}.auth-tabs button.active{background:white;color:var(--ink);box-shadow:0 3px 9px #13253610}.stack-form{display:flex;flex-direction:column;gap:16px}.stack-form label{display:flex;flex-direction:column;gap:6px;color:#3b5464;font-weight:700;font-size:12px}.stack-form input,.stack-form select,.stack-form textarea,.budget-input input{width:100%;min-width:0;border:1px solid #dbe5eb;border-radius:11px;background:#fff;padding:12px 13px;color:#233f4e;font-size:14px}.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus{border-color:#12aa9a}.stack-form input::placeholder{color:#9fabb5}.stack-form label small{color:var(--muted);font-weight:400;line-height:1.5}.fields-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.helper{font-size:11px;color:#84919b;margin-top:11px;line-height:1.7}.helper.center{text-align:center}.separator{text-align:center;color:#a3afb6;margin:22px 0 17px;font-size:12px}.setup-notice{border:1px solid #d8eee8;padding:15px;border-radius:14px;background:#effaf6;font-size:13px;color:#336e62;line-height:1.7;margin-top:10px}
.setup-page{min-height:100svh;display:grid;place-items:center;padding:28px 16px;background:radial-gradient(circle at top,#dff7f1,transparent 60%),#f3f7f8}.setup-card{background:white;border:1px solid var(--border);box-shadow:var(--shadow);width:min(580px,100%);padding:33px;border-radius:26px}.setup-card .welcome-brand{margin-bottom:30px}.setup-card h1{font-size:32px}.setup-card .lead{margin:12px 0 24px}.setup-actions{display:flex;justify-content:space-between;gap:8px;margin-top:20px}
.app-shell{min-height:100svh}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--border);padding:0 max(24px,calc((100% - 1210px)/2))}.topbar-right{display:flex;align-items:center;gap:12px}.live-dot{width:8px;height:8px;background:#22bd9b;border-radius:50%;box-shadow:0 0 0 4px #e5f7f2}.mode-label{color:#748798;font-size:12px}.app-content{max-width:1210px;margin:auto;padding:28px 20px 120px}.page-context{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:28px}.page-context .eyebrow{margin:0 0 4px;color:#8a9da8}.greeting{font-size:21px;font-family:Manrope;font-weight:800;letter-spacing:-.05em}.wave{color:#0da28a;font-size:18px}.month-picker{display:flex;align-items:center;gap:13px;background:white;border:1px solid var(--border);border-radius:15px;padding:6px}.month-picker span{min-width:145px;text-align:center;text-transform:capitalize;font-size:13px;font-weight:800}.month-arrow{width:32px;height:32px;border:0;border-radius:9px;background:#edf5f4;color:#345967;font-size:21px;line-height:1}
.hero{border-radius:23px;padding:30px 38px;min-height:205px;display:flex;align-items:center;justify-content:space-between;background:radial-gradient(ellipse at 88% 20%,#285361,transparent 46%),linear-gradient(125deg,#0b2637,#0d2735);color:white;overflow:hidden;margin-bottom:20px}.hero .eyebrow{color:#7ce0cd}.hero h1{font-size:clamp(28px,3.6vw,44px);margin-bottom:12px}.hero p{font-size:13px;color:#b7ced0}.hero-graphic{width:170px;height:145px;min-width:145px;background:#ffffff12;border:1px solid #ffffff28;border-radius:24px;transform:rotate(7deg);display:grid;place-content:center;text-align:center;gap:5px}.hero-graphic span{font-size:56px;line-height:1;color:#49d9b9}.hero-graphic small{color:#c2e3de;font-size:10px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card,.panel,.list-panel{background:white;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:19px}.stat-card{padding:19px;min-width:0}.stat-top{display:flex;justify-content:space-between;align-items:start;gap:8px;margin-bottom:13px}.stat-top>span:first-child{font-size:12px;color:#8294a0;font-weight:700}.stat-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;font-size:17px}.stat-icon.green{background:#e4f8ee;color:#069f83}.stat-icon.pink{background:#fff0f0;color:#d2777a}.stat-icon.blue{background:#ecf4ff;color:#5a8bc1}.stat-icon.gold{background:#fff6df;color:#c39843}.stat-card strong{display:block;font-size:clamp(16px,1.75vw,25px);font-family:Manrope;font-weight:800;letter-spacing:-.06em;white-space:nowrap}.negative{color:#d25a64!important}.positive{color:#049b79!important}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}.panel{padding:25px}.panel-head,.section-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.panel-head{margin-bottom:22px}.panel h3{font-size:17px;letter-spacing:-.045em}.panel-head p,.section-head p{font-size:12px;color:var(--muted);margin-top:4px}.allocation{display:flex;align-items:center;gap:12px;margin:20px 0}.avatar{width:40px;height:40px;border-radius:14px;display:grid;place-items:center;font-weight:800;color:#00877a;background:#e0f7f1;flex:none}.avatar.partner{color:#427db4;background:#e9f3ff}.allocation-content{flex:1;min-width:0}.allocation-row{display:flex;justify-content:space-between;gap:9px;font-size:12px;margin-bottom:10px}.allocation-row strong:last-child{font-size:13px}.progress-track{height:7px;background:#eaf0f3;border-radius:30px;overflow:hidden}.progress-fill{height:100%;background:#12b69b;border-radius:30px}.progress-fill.partner{background:#7db4ec}.progress-fill.over{background:#ef8e92}.footnote{margin-top:19px;color:#8b99a2;font-size:11px;line-height:1.7}.short-transaction{display:flex;align-items:center;gap:12px;border-bottom:1px solid #f0f3f4;padding:13px 0}.short-transaction:last-child{border:0}.short-date{width:41px;height:43px;border-radius:10px;background:#f1f7f7;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1;flex:none}.short-date b{font-size:16px}.short-date small{font-size:10px;text-transform:uppercase;color:var(--muted)}.short-main{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}.short-main b{font-size:12px}.short-main small{color:var(--muted)}.short-transaction>strong{font-size:12px;white-space:nowrap}.disclaimer{font-size:11px;color:#929eaa;text-align:center;padding:21px}
.content-view{margin-top:12px}.section-head{margin-bottom:22px;align-items:center}.section-head h2{font-size:26px}.summary-line{display:flex;align-items:center;justify-content:space-between;padding:0 3px 14px;font-size:12px;color:#82929d}.pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:20px;background:#eff3f6;color:#71818f;font-size:11px;font-weight:800}.pill.gold{color:#996e2d;background:#fff2d7}.pill.green{color:#038e73;background:#e5f8ef}.list-panel{padding:7px 22px}.transaction{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid #edf1f3;flex-wrap:wrap}.transaction:last-child{border-bottom:0}.trans-icon{width:43px;height:43px;border-radius:13px;background:#eff6f6;display:grid;place-items:center;font-size:20px;flex:none}.trans-icon.green-bg{color:#069a7f;background:#e6f7f0;font-size:23px}.trans-main{min-width:145px;flex:1}.trans-name{font-weight:800;font-size:14px}.repeat-icon{font-size:14px;color:#54a89b;padding-left:4px}.trans-meta{font-size:11px;color:#8a9aa4;margin-top:5px;line-height:1.55}.trans-end{text-align:right;white-space:nowrap}.trans-end strong{font-size:14px;display:block}.income-money strong{color:#009b7d}.status{font-size:10px;font-weight:750;display:inline-block;margin-top:4px}.status.paid{color:#029b72}.status.pending{color:#cc923c}.trans-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.mini-action{border:1px solid #e1e9ed;border-radius:8px;background:white;padding:7px 8px;font-size:10px;font-weight:750;color:#55717e;min-height:30px}.mini-action.success{background:#e5f7ef;color:#007e64;border-color:#d1efe4}.mini-action.muted{color:#b0787e}.transaction.is-paid{opacity:.77}.empty{min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#9aa8b0;padding:20px}.empty-icon{color:#b7d9d4;font-size:26px}.empty strong{color:#667e87;margin:4px}.empty p{font-size:12px;line-height:1.7}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:19px;align-items:start}.calendar-panel{padding:20px}.calendar-head,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-head{margin:0 0 12px;color:#92a1ab;font-size:11px;text-align:center;font-weight:800}.calendar-cell,.calendar-blank{aspect-ratio:1/1;max-height:76px;min-width:0}.calendar-cell{border:1px solid #edf2f3;border-radius:12px;background:#fafcfd;color:#385361;display:flex;flex-direction:column;align-items:start;padding:9px;justify-content:space-between;font-weight:800;font-size:13px}.calendar-cell:hover{border-color:#39bbab}.calendar-cell.selected{background:#0da28d;border-color:#0da28d;color:white}.calendar-cell.today:not(.selected){border-color:#12ae9e}.calendar-dots{display:flex;gap:4px}.calendar-dots i,.calendar-legend i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#eaab68}.calendar-dots .dot-income,.calendar-legend .dot-income{background:#3dc9af}.calendar-cell.selected .calendar-dots i{background:white}.calendar-legend{display:flex;gap:19px;color:#87959e;font-size:11px;margin-top:16px}.calendar-legend span{display:flex;align-items:center;gap:6px}.day-line{padding:12px 0;border-bottom:1px solid #edf1f3;display:flex;justify-content:space-between;gap:10px;font-size:12px}.day-line:last-child{border:0}.day-line strong{white-space:nowrap}
.budget-panel{max-width:100%;padding:26px}.budget-heading{display:grid;grid-template-columns:1fr 170px;gap:20px;font-size:12px;color:#a2aeb6;margin-bottom:8px}.budget-heading strong:last-child{text-align:right}.budget-row{display:grid;grid-template-columns:1fr 170px;gap:20px;align-items:center;border-bottom:1px solid #ecf1f3;padding:13px 0}.budget-info{min-width:0}.budget-line{display:flex;justify-content:space-between;gap:9px;align-items:center;font-size:12px;margin-bottom:8px}.budget-line span{font-size:11px;color:#8a9ba4}.budget-input input{text-align:right;max-width:170px}.no-budget{font-size:10px;color:#a4aeb7}.budget-save{margin-top:22px}.settings-panel{max-width:760px}.settings-panel h3{margin-bottom:18px}.settings-row{border-top:1px solid #ebf0f2;padding:14px 0;display:flex;justify-content:space-between;gap:18px;font-size:12px}.settings-row span{color:#8797a3}.settings-row strong{text-align:right;overflow-wrap:anywhere}.settings-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}
.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;align-items:center;justify-content:center;gap:6px;padding:11px max(18px,calc((100% - 1210px)/2));background:#fffefef2;backdrop-filter:blur(14px);border-top:1px solid var(--border);padding-bottom:max(11px,env(safe-area-inset-bottom))}.nav-link{border:0;background:transparent;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:9px;flex:1;max-width:170px;padding:9px 10px;color:#8a9ca7;font-size:12px;font-weight:800}.nav-link.active{background:#e5f8f2;color:#068b7b}.nav-icon{font-size:20px;line-height:1.1}
.modal-shade{position:fixed;inset:0;background:#071724aa;display:flex;justify-content:center;align-items:center;z-index:20;padding:14px;overflow-y:auto}.modal{width:min(540px,100%);max-height:min(94svh,900px);overflow:auto;background:white;padding:27px;border-radius:23px;box-shadow:0 25px 100px #0b182855}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px}.modal-header h2{font-size:25px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:7px}.close-button{font-size:25px}
#toast{position:fixed;bottom:93px;left:50%;transform:translate(-50%,10px);z-index:40;background:#143d43;color:white;border-radius:12px;padding:13px 19px;font-size:12px;font-weight:750;box-shadow:0 10px 24px #0002;opacity:0;pointer-events:none;transition:.2s;min-width:min(300px,90vw);max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#ad4248}
@media(max-width:970px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-grid{grid-template-columns:1fr}.welcome-page{grid-template-columns:1fr}.welcome-art{display:none}.welcome-box{max-width:570px;margin:0 auto;width:100%;min-height:100svh}.welcome-box .welcome-brand{margin-bottom:45px}.calendar-layout{grid-template-columns:1fr}}
@media(max-width:600px){.topbar{height:63px;padding:0 16px}.brand{font-size:17px}.brand-logo{width:32px;height:32px;border-radius:10px;font-size:20px}.mode-label{font-size:11px}.app-content{padding:19px 14px 116px}.page-context{margin-bottom:20px}.greeting{font-size:17px}.month-picker{gap:1px;padding:4px}.month-picker span{min-width:110px;font-size:11px}.month-arrow{width:29px;height:30px}.hero{padding:25px 21px;min-height:175px}.hero h1{font-size:29px}.hero-graphic{width:80px;min-width:80px;height:100px;border-radius:15px}.hero-graphic span{font-size:35px}.hero-graphic small{display:none}.hero p{font-size:11px}.stat-grid{gap:9px;margin-bottom:12px}.stat-card{padding:14px;border-radius:15px}.stat-card strong{font-size:clamp(16px,4.8vw,24px)}.stat-top{gap:3px;margin-bottom:9px}.stat-top>span:first-child{font-size:10px}.stat-icon{width:25px;height:25px;font-size:13px}.panel{padding:18px;border-radius:15px}.home-grid{gap:12px}.section-head h2{font-size:21px}.section-head p{font-size:11px}.section-head .btn{padding:9px 10px;font-size:11px}.list-panel{padding:2px 12px}.transaction{gap:9px;padding:13px 0}.trans-icon{width:37px;height:37px;font-size:18px;border-radius:11px}.trans-main{min-width:105px}.trans-name{font-size:12px}.trans-meta{font-size:10px}.trans-end strong{font-size:12px}.trans-actions{width:100%;padding-left:46px}.mini-action{font-size:10px}.bottom-nav{padding:7px 4px max(7px,env(safe-area-inset-bottom));gap:0}.nav-link{flex-direction:column;gap:3px;padding:8px 2px;font-size:10px}.nav-icon{font-size:20px}.budget-panel{padding:14px}.budget-heading,.budget-row{grid-template-columns:minmax(0,1fr) 98px;gap:8px}.budget-heading{font-size:10px}.budget-line{display:block;font-size:11px}.budget-line span{display:block;margin:3px 0}.budget-input input{padding:8px;font-size:12px}.calendar-panel{padding:11px}.calendar-head,.calendar-grid{gap:3px}.calendar-cell{border-radius:8px;padding:5px;font-size:11px}.calendar-dots{gap:2px}.calendar-dots i{width:5px;height:5px}.modal{padding:20px}.setup-card{padding:22px}.settings-row{flex-direction:column;gap:5px}.settings-row strong{text-align:left}.welcome-box{padding:28px 22px}.welcome-box h1{font-size:37px}.welcome-box .welcome-brand{margin-bottom:50px}.welcome-features{gap:6px;font-size:10px}}
@media(max-width:365px){.fields-2{grid-template-columns:1fr}.month-picker span{min-width:80px}.stat-card strong{font-size:15px}.hero-graphic{display:none}}

/* Mi Hogar V2 — importes legibles y responsabilidades completas */
.month-picker span{text-transform:none;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
.stat-card strong,.allocation-row strong,.trans-end strong,.short-transaction>strong,.day-line strong,.budget-line span,.floating-mini strong{font-variant-numeric:tabular-nums;letter-spacing:-.045em}
.stat-card strong{overflow-wrap:anywhere;line-height:1.18;display:block}
.allocation-content{min-width:0}.allocation-row strong:last-child{white-space:nowrap}
.payer-line{color:#137f72;background:#eaf9f5;display:inline-flex;max-width:100%;padding:4px 8px;margin-top:7px;border-radius:8px;font-size:11px;font-weight:800}
.payer-line.unassigned{background:#fff2dd;color:#8f5713}
.assignment-alert{padding:12px 14px;border:1px solid #f5dfb9;border-radius:12px;background:#fff9ed;color:#875714;font-size:12px;line-height:1.65;margin-top:12px}
.expense-filter{display:flex;align-items:center;gap:7px;margin-bottom:14px;overflow-x:auto;scrollbar-width:none;padding:2px 0 5px}
.expense-filter::-webkit-scrollbar{display:none}
.filter-pill{background:#fff;color:#5a6f7a;border:1px solid #dee8ec;border-radius:99px;padding:8px 14px;white-space:nowrap;min-height:35px;font-size:12px;font-weight:800}
.filter-pill.selected{background:#0a9583;color:#fff;border-color:#0a9583}
.budget-input input{font-variant-numeric:tabular-nums}
.modal-shade .stack-form label small{color:#6e8490}
@media(max-width:600px){
 .app-content{padding-top:18px}
 .page-context{align-items:flex-start;gap:9px;margin-bottom:20px}
 .month-picker span{min-width:112px;text-align:center;font-size:11px;white-space:nowrap}
 .hero{min-height:145px;padding:19px 21px;margin-bottom:14px}
 .hero h1{font-size:28px}
 .hero-graphic{display:none}
 .hero p{max-width:270px;font-size:11px}
 .stat-card{min-width:0;padding:16px 13px}
 .stat-card strong{font-size:clamp(16px,4.5vw,21px);white-space:nowrap;letter-spacing:-.055em}
 .transaction{align-items:flex-start}
 .trans-main{min-width:0;flex-basis:calc(100% - 60px)}
 .trans-end{margin-left:46px;text-align:left;flex-basis:100%;display:flex;gap:12px;align-items:center;justify-content:space-between}
 .trans-end strong{font-size:15px}
 .trans-actions{padding-left:46px;margin-top:1px}
 .payer-line{font-size:10px}
 .short-transaction{gap:9px}
 .short-transaction>strong{font-size:12px}
 .month-picker{flex:none}
 .budget-input input{font-size:13px}
}
@media(max-width:375px){
 .stat-card strong{font-size:15px}
 .month-picker span{min-width:90px;font-size:10px}
 .greeting{font-size:16px}
}
