@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--ink:#102b35;--ink2:#183d43;--muted:#6a8182;--green:#20c77a;--green2:#047a63;--paper:#f3f7f4;--line:#dce7e1;--white:#fff;--orange:#e69a63;--blue:#8ecfe8;--shadow:0 20px 65px rgba(16,43,53,.08)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{text-decoration:none;color:inherit}:focus-visible{outline:3px solid #009b6b;outline-offset:3px}.app-shell{display:grid;grid-template-columns:260px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--ink);color:white;display:flex;flex-direction:column;padding:34px 21px;position:sticky;top:0;height:100vh}.logo{font:700 47px/.9 'Space Grotesk';letter-spacing:-4px;padding:10px 12px 55px}.logo span{color:var(--green)}.logo small{display:block;font:700 9px 'DM Sans';letter-spacing:3px;margin-top:14px;color:#c8e6d9}.sidebar-caption{font-size:10px;letter-spacing:2px;color:#83a9a5;margin:0 14px 16px}.side-nav{display:grid;gap:7px}.side-nav button{width:100%;border:0;background:transparent;color:#c6d7d4;text-align:left;padding:15px 13px;border-radius:14px;font-weight:700;font-size:13px;display:flex;align-items:center;gap:14px;transition:.2s}.side-nav button span{font-size:22px;width:24px;text-align:center;font-weight:400}.side-nav button:hover,.side-nav button.active{background:#244a49;color:white}.side-nav button.active{box-shadow:inset 3px 0 var(--green)}.sidebar-foot{margin-top:auto;padding:20px 14px;border-top:1px solid #315055}.sidebar-foot strong{font:700 19px 'Space Grotesk'}.sidebar-foot p{font-size:12px;color:#aac5c0;line-height:1.7}.sidebar-foot a{font-size:12px;color:#7ce0ad;font-weight:700}.mini-orbit{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:var(--ink);font-size:25px;margin-bottom:18px}.main-shell{min-width:0}.topbar{height:82px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 clamp(22px,4vw,65px);gap:15px;background:#ffffffc4}.crumb{font-size:12px;color:#6a8081;font-weight:700;letter-spacing:.3px}.crumb span{margin:0 9px;color:#b1c1bb}.crumb b{color:var(--ink)}.top-actions{display:flex;gap:12px;align-items:center}.demo-pill{font-size:10px;letter-spacing:1px;color:#357960;font-weight:800;border:1px solid #c7e5d5;border-radius:30px;padding:9px 12px;white-space:nowrap}.demo-pill i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:6px}.icon-btn,.exit{border:1px solid var(--line);background:white;border-radius:30px;padding:10px 14px;font-size:12px;font-weight:700}.icon-btn{font-size:18px;line-height:15px}.main-shell main{max-width:1210px;margin:auto;padding:35px clamp(22px,4vw,65px) 65px;min-height:calc(100vh - 145px)}.app-footer{border-top:1px solid var(--line);padding:18px clamp(22px,4vw,65px);font-size:10px;color:#829692;display:flex;justify-content:space-between;gap:10px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#348362;text-transform:uppercase}.page-title{font:700 clamp(34px,5vw,58px)/1.05 'Space Grotesk';letter-spacing:-2.7px;margin:11px 0}.page-title em{font-style:normal;color:#188f65}.page-intro{color:var(--muted);line-height:1.7;font-size:14px;max-width:660px;margin:12px 0 28px}.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:34px 0 16px}.section-head h2{font:700 23px 'Space Grotesk';margin:0;letter-spacing:-.6px}.section-head small{color:var(--muted);font-size:12px}.btn{border:0;border-radius:14px;padding:13px 19px;font-weight:800;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:transform .2s,background .2s}.btn:hover{transform:translateY(-2px)}.btn-primary{background:var(--green);color:var(--ink)}.btn-dark{background:var(--ink);color:white}.btn-light{background:#e5f3eb;color:#1d6c4c}.btn-outline{border:1px solid var(--line);background:white;color:var(--ink)}.btn-danger{background:#fff1eb;color:#ae5136}.btn-small{padding:9px 13px;font-size:11px;border-radius:11px}.hero-panel{display:grid;grid-template-columns:1.2fr .8fr;min-height:275px;overflow:hidden;border-radius:27px;background:var(--ink);color:white;box-shadow:var(--shadow)}.hero-content{padding:34px clamp(25px,4vw,44px);position:relative;z-index:1}.hero-content .eyebrow{color:#87d9b1}.hero-content h1{font:700 clamp(35px,4.3vw,57px)/1.03 'Space Grotesk';letter-spacing:-2px;margin:20px 0}.hero-content h1 em{color:#5fe4a2;font-style:normal}.hero-content p{font-size:13px;color:#c3d9d1;line-height:1.7;max-width:380px}.hero-art{position:relative;overflow:hidden;background:radial-gradient(circle at 55% 50%,#267b61 0%,#173e3d 65%,#102b35 100%);display:grid;place-items:center}.hero-art:before,.hero-art:after{content:'';position:absolute;width:360px;height:360px;border:3px solid #49e2a13b;border-radius:42%;transform:rotate(35deg)}.hero-art:after{width:240px;height:240px;transform:rotate(-30deg)}.hero-art .route-letter{font:700 180px 'Space Grotesk';color:#57e4a7;position:relative;z-index:1;transform:rotate(-9deg);text-shadow:0 15px 40px #061b2050}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.stat,.card{background:white;border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:0 6px 22px #102b3505}.stat small{font-size:11px;color:var(--muted);font-weight:700}.stat strong{display:block;font:700 clamp(23px,3vw,35px) 'Space Grotesk';letter-spacing:-1.4px;margin:12px 0 8px;overflow-wrap:anywhere}.stat .delta{font-size:11px;color:#26885d;font-weight:700}.stat.accent{background:#dcf7e8;border-color:#b9e8ce}.two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.card h3{font:700 20px 'Space Grotesk';margin:0 0 7px}.card .sub{font-size:12px;color:var(--muted);margin:0 0 20px;line-height:1.6}.category-list{display:grid;gap:10px}.category-row{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #e8eeea}.category-row:last-child{border-bottom:0}.cat-icon{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;font-size:20px;background:#e6f5eb}.category-row strong{font-size:13px}.category-row small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.category-row .amount{font:700 15px 'Space Grotesk'}.progress{height:9px;border-radius:20px;background:#e7efea;overflow:hidden;margin-top:9px}.progress>span{display:block;height:100%;background:var(--green);border-radius:20px;transition:width .4s}.progress.orange>span{background:var(--orange)}.progress.blue>span{background:#65bad6}.progress.purple>span{background:#aa9be8}.donut-wrap{display:grid;grid-template-columns:165px 1fr;gap:20px;align-items:center}.donut{width:165px;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;position:relative}.donut:before{content:'';position:absolute;inset:27px;background:white;border-radius:50%}.donut-center{position:relative;text-align:center}.donut-center strong{font:700 24px 'Space Grotesk'}.donut-center small{display:block;color:var(--muted);font-size:10px}.legend{display:grid;gap:11px}.legend div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.legend i{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:7px}.legend b{font-size:12px}.budget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.budget-card{padding:23px;border:1px solid var(--line);border-radius:21px;background:white;transition:transform .2s,box-shadow .2s}.budget-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.budget-card-top{display:flex;align-items:center;justify-content:space-between}.budget-card h3{font:700 21px 'Space Grotesk';margin:18px 0 5px}.budget-card p{color:var(--muted);font-size:12px;margin:0 0 20px}.budget-card .big{font:700 30px 'Space Grotesk';letter-spacing:-1px}.budget-card .foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:19px}.chip{font-size:10px;font-weight:800;color:#207c54;background:#e1f5e9;padding:7px 10px;border-radius:20px}.account-card{display:grid;grid-template-columns:50px 1fr auto;align-items:center;gap:16px;padding:20px;background:white;border:1px solid var(--line);border-radius:19px;margin:12px 0}.account-mark{height:50px;width:50px;display:grid;place-items:center;border-radius:15px;background:#ec1c24;color:white;font-weight:800;font-size:23px}.account-mark.mp{background:#00a8e0;color:#092d3d;font-size:14px}.account-card h3{margin:0;font-size:16px}.account-card p{margin:6px 0 0;font-size:11px;color:var(--muted)}.account-card .right{text-align:right}.account-card .right strong{display:block;margin-bottom:8px}.account-card .right button{border:0;background:transparent;color:#b4503d;font-size:11px;font-weight:800}.empty{border:1px dashed #a7cabb;background:#edf6ef;border-radius:22px;text-align:center;padding:48px 20px}.empty .symbol{font-size:45px}.empty h3{font:700 23px 'Space Grotesk'}.empty p{font-size:13px;color:var(--muted);line-height:1.7}.form-card{max-width:650px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:grid;gap:8px;margin-bottom:20px}.field label{font-size:12px;font-weight:800}.field input,.field select{border:1px solid #cbded4;background:#fff;padding:14px 15px;border-radius:13px;width:100%;color:var(--ink);outline:none}.field input:focus,.field select:focus{border-color:#2db879;box-shadow:0 0 0 3px #2db87922}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.hint{background:#eaf6ee;padding:14px 17px;border-radius:12px;color:#376e56;font-size:12px;line-height:1.7}.list-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;border-bottom:1px solid var(--line)}.list-row:last-child{border-bottom:0}.list-row .primary{font-size:13px;font-weight:800}.list-row .secondary{font-size:11px;color:var(--muted);margin-top:5px}.list-row .value{font:700 16px 'Space Grotesk';white-space:nowrap}.filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.filter{border:1px solid var(--line);background:white;border-radius:30px;padding:10px 14px;font-size:12px;font-weight:700}.filter.active{background:var(--ink);color:white}.switch{appearance:none;width:45px;height:26px;background:#c9d8d0;border-radius:20px;position:relative;cursor:pointer;transition:.2s;flex-shrink:0}.switch:before{content:'';position:absolute;width:20px;height:20px;border-radius:50%;background:white;top:3px;left:3px;transition:.2s}.switch:checked{background:#18b976}.switch:checked:before{left:22px}.alert-row{display:flex;justify-content:space-between;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding:19px 0}.alert-row:last-child{border-bottom:0}.alert-row strong{font-size:14px}.alert-row p{color:var(--muted);font-size:12px;line-height:1.6;margin:6px 0 0}.toast{position:fixed;bottom:25px;right:25px;background:var(--ink);color:white;border-radius:13px;padding:15px 20px;font-size:13px;box-shadow:var(--shadow);opacity:0;transform:translateY(15px);pointer-events:none;transition:.25s;z-index:10}.toast.show{opacity:1;transform:translateY(0)}.back-link{border:0;background:transparent;color:#39765a;font-size:12px;font-weight:800;padding:8px 0;margin-bottom:18px}.confirmation{max-width:570px;margin:30px auto;text-align:center}.confirmation .symbol{font-size:60px}.confirmation h2{font:700 34px 'Space Grotesk';letter-spacing:-1px}.confirmation p{line-height:1.7;color:var(--muted)}.confirmation .form-actions{justify-content:center}.note{font-size:11px;color:var(--muted);line-height:1.6}.warning{color:#a75937}.inline-link{background:none;border:0;color:#178b60;font-weight:800;font-size:12px;padding:0}.split-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.bar-comparison{display:grid;gap:15px}.bar-comparison .labels{display:flex;justify-content:space-between;font-size:12px;gap:10px}.bar-comparison .labels strong{font-size:12px}.bar-comparison .track{height:12px;border-radius:20px;background:#edf3ef;overflow:hidden}.bar-comparison .track span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#1d9d7a,#51e5a3)}@media(max-width:1050px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:25px 13px}.donut-wrap{grid-template-columns:1fr}.donut{margin:auto}.legend{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.app-shell{display:block}.sidebar{position:relative;height:auto;padding:14px 16px 9px}.logo{font-size:31px;padding:3px 0 15px;letter-spacing:-2px}.logo small{font-size:7px;margin-top:7px;letter-spacing:2px}.sidebar-caption,.sidebar-foot{display:none}.side-nav{display:flex;gap:4px;overflow-x:auto;padding-bottom:7px}.side-nav button{white-space:nowrap;width:auto;flex:0 0 auto;padding:10px;font-size:11px;gap:5px}.side-nav button span{font-size:15px;width:17px}.topbar{height:58px;padding:0 18px}.demo-pill{display:none}.main-shell main{padding:23px 17px 50px}.app-footer{padding:16px 18px}.app-footer span{display:none}.hero-panel{grid-template-columns:1fr}.hero-art{display:none}.hero-content{padding:27px}.hero-content h1{font-size:38px}.two-col{grid-template-columns:1fr}.budget-grid{grid-template-columns:1fr 1fr}.stats{gap:8px}.stat{padding:16px}.stat strong{font-size:23px}}@media(max-width:520px){.budget-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.stats .stat:last-child{grid-column:1/-1}.form-row{grid-template-columns:1fr}.account-card{grid-template-columns:45px 1fr;gap:10px}.account-card .right{grid-column:2;text-align:left}.account-card .right strong{display:inline;margin-right:14px}.top-actions{gap:6px}.exit{padding:8px 10px}.crumb{font-size:10px}.page-title{font-size:36px}.donut-wrap{grid-template-columns:1fr 1fr}.donut{width:130px}.donut:before{inset:23px}.donut-center strong{font-size:20px}.legend{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* RUTA / UX 2.0 — extensión visual aislada de la web institucional VN15 */
:root{--paper:#f1f6f2;--green:#2db879;--shadow:0 18px 50px rgba(16,43,53,.075)}
body{background:radial-gradient(circle at 92% 8%,#dcf4e6 0,transparent 29%),var(--paper)}
.sidebar{background:linear-gradient(168deg,#0e2933 10%,#153f40 75%,#0d302f);border-right:1px solid #ffffff12}
.logo{letter-spacing:-4.5px}.side-nav button{position:relative}.side-nav button.active{background:#ffffff19;box-shadow:none;color:#fff}.side-nav button.active:before{content:"";position:absolute;left:0;top:22%;bottom:22%;width:3px;border-radius:3px;background:#65e9a7}
.topbar{backdrop-filter:blur(16px);position:sticky;top:0;z-index:8;background:#f7fbf6dc}
.main-shell main{padding-top:30px}
.hero-panel{min-height:315px;background:linear-gradient(125deg,#102b35 12%,#134b49 100%);box-shadow:0 24px 54px #102b3522}
.hero-content{padding-top:40px;padding-bottom:38px}
.hero-content h1{font-size:clamp(41px,5vw,65px);line-height:.99}
.hero-content p{font-size:14px;max-width:370px}
.hero-content .btn{margin-top:14px}
.hero-art{background:radial-gradient(circle at 70% 55%,#275f4d 0,#143f3f 52%,#102b35 100%)}
.hero-art:before,.hero-art:after{display:none}
.route-map{position:absolute;inset:0;overflow:hidden}
.map-grid{position:absolute;inset:-40%;transform:rotate(-27deg);opacity:.22;background:repeating-linear-gradient(0deg,transparent 0 50px,#d9f2de 51px 55px,transparent 56px 100px),repeating-linear-gradient(90deg,transparent 0 68px,#d9f2de 69px 74px,transparent 75px 128px)}
.route-map svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.route-shadow,.route-stroke{fill:none;stroke-linecap:round;stroke-linejoin:round}
.route-shadow{stroke:#102b35;stroke-width:24}
.route-stroke{stroke:#37e69c;stroke-width:13;stroke-dasharray:950;stroke-dashoffset:950;animation:draw-route 1.8s ease forwards}
@keyframes draw-route{to{stroke-dashoffset:0}}
.route-pin{position:absolute;width:54px;height:54px;border-radius:50%;background:#fff;color:#0e9260;display:grid;place-items:center;font-size:29px;box-shadow:0 10px 30px #001b2044}
.pin-one{left:25%;top:43%}.pin-two{right:17%;top:21%}
.route-label{position:absolute;right:12%;bottom:13%;background:#fff;color:#123b39;border-radius:40px;padding:12px 16px;font-size:10px;font-weight:800;letter-spacing:1.1px}.route-label b{color:#1fc67c;margin-left:10px}
.insights{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:12px;margin:18px 0 20px}
.insight-lead,.insight-next{border-radius:19px;border:1px solid #d3e6d8;min-height:136px;padding:20px 22px;text-align:left}
.insight-lead{background:#dff5e7}.insight-lead strong{display:block;font:700 19px/1.2 'Space Grotesk';margin:12px 0 5px}.insight-lead p{font-size:12px;line-height:1.5;color:#477065;margin:0}
.insight-next{position:relative;background:#fff;display:flex;flex-direction:column;justify-content:space-between;transition:transform .2s,box-shadow .2s,border-color .2s}
.insight-next:hover{transform:translateY(-4px);box-shadow:0 16px 28px #102b3511;border-color:#80cfa3}
.insight-next span{font-size:10px;letter-spacing:1.3px;color:#54836a;font-weight:800}
.insight-next b{font:700 17px/1.2 'Space Grotesk';max-width:175px}.insight-next i{position:absolute;right:19px;bottom:15px;font-style:normal;font-size:25px;color:#1d9e6c}
.stat,.card,.budget-card,.account-card{box-shadow:0 8px 24px #102b3508;border-color:#d8e7dd}
.stat{position:relative;overflow:hidden;transition:transform .2s}.stat:hover{transform:translateY(-3px)}.stat:before{content:"";position:absolute;right:-20px;top:-25px;width:95px;height:95px;border:1px solid #d7ede0;border-radius:50%}
.stat.accent{background:linear-gradient(145deg,#d9f6e4,#ecfff3)}
.budget-card{position:relative;overflow:hidden;transition:transform .22s,box-shadow .22s,border-color .22s}.budget-card:hover{border-color:#a1d7b8;transform:translateY(-5px)}.budget-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#2db879,#7ee1b1)}
.budget-card .big{font-size:clamp(27px,3vw,36px)}.budget-card .foot{border-top:1px solid #edf1ee;padding-top:15px}
.category-row{transition:background .2s,padding .2s}.category-row:hover{background:#f3faf5;padding-left:8px;border-radius:10px}
.btn-primary{background:#32d48a}.btn-primary:hover{background:#65e6a5}
.btn:active,.insight-next:active{transform:scale(.98)}
.page-title{letter-spacing:-2.4px}
.mobile-brand{display:none}
@media(max-width:1100px){.insights{grid-template-columns:1fr 1fr}.insight-lead{grid-column:1/-1;min-height:0}}
@media(max-width:760px){
 .sidebar{position:sticky;top:0;z-index:20;padding:11px 15px 7px;box-shadow:0 8px 22px #102b3520}
 .logo{font-size:27px;padding:0 0 11px}.logo small{display:none}
 .side-nav{scrollbar-width:none}.side-nav::-webkit-scrollbar{display:none}
 .side-nav button{border-radius:12px}.side-nav button.active:before{display:none}
 .topbar{position:relative;top:auto}
 .hero-panel{grid-template-columns:1fr 135px;min-height:270px}
 .hero-content{padding:26px 16px 27px 24px}.hero-content h1{font-size:40px}.hero-content p{font-size:12px}
 .hero-art{display:block}.route-map{transform:scale(1.35);transform-origin:center}
 .route-pin{width:34px;height:34px;font-size:18px}.route-label{font-size:7px;padding:8px}
 .insights{grid-template-columns:1fr 1fr}.insight-lead{grid-column:1/-1}
 .insight-next{padding:17px;min-height:130px}.insight-next b{font-size:15px}
}
@media(max-width:520px){
 .hero-panel{grid-template-columns:1fr 100px}.hero-content h1{font-size:35px}
 .hero-content .btn{font-size:11px;padding:11px}
 .stats{grid-template-columns:1fr 1fr}.stat{padding:17px}
 .stat strong{font-size:clamp(20px,5.2vw,27px)}
 .donut-wrap{grid-template-columns:1fr 1fr;gap:9px}.legend div{font-size:10px}
 .app-footer{padding-bottom:26px}
}
@media(prefers-reduced-motion:reduce){.route-stroke{animation:none;stroke-dashoffset:0}}

/* UX 3 / CARTOGRAFÍA: bienvenida, ruta de configuración y bandeja */
:root{--orange:#e69a63;--orange-light:#fff0e4}
.side-nav button[data-view="asignar"] span{color:#ffc395}
.side-nav button{letter-spacing:.05px}
.welcome-page{position:relative;min-height:calc(100vh - 225px);background:#f8fbf7;border:1px solid #d9e8dc;border-radius:32px;overflow:hidden;padding:clamp(28px,4vw,55px);display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr auto auto;box-shadow:0 24px 60px #102b350a}
.welcome-page:before{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 84% 18%,#c5f3d8 0,transparent 35%)}
.welcome-copy{position:relative;z-index:2;grid-column:1/-1;max-width:720px}
.welcome-logo{font:700 clamp(70px,12vw,136px)/.95 'Space Grotesk';letter-spacing:-10px;color:#0b2831;margin:32px 0 3px}
.welcome-logo span{color:#25bb7b}
.welcome-subtitle{font-size:12px;font-weight:800;letter-spacing:6px;margin:0 0 25px}
.welcome-copy h1{font:700 clamp(42px,5.2vw,72px)/1.04 'Space Grotesk';letter-spacing:-3.5px;margin:18px 0 25px}
.welcome-copy h1 em{font-style:normal;color:#23a874}
.welcome-lead{color:#526b70;font-size:clamp(14px,1.5vw,18px);line-height:1.55;max-width:430px}
.welcome-lead strong{color:#203e44}
.welcome-map{position:absolute;right:0;bottom:0;top:24%;width:65%;pointer-events:none;overflow:hidden;mask-image:linear-gradient(to right,transparent,#000 30%)}
.map-cells{position:absolute;inset:-30%;transform:rotate(-23deg);opacity:.55;background:repeating-linear-gradient(0deg,transparent 0 61px,#fff 62px 72px,transparent 73px 115px),repeating-linear-gradient(90deg,#dceee3 0 62px,#fff 63px 75px,#d3e6db 76px 124px)}
.welcome-map svg{position:absolute;inset:13% 0 0;width:100%;height:87%}
.map-road,.map-path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.map-road{stroke:#fff;stroke-width:33}.map-path{stroke:#14c987;stroke-width:20;stroke-dasharray:1300;stroke-dashoffset:1300;animation:draw-route 2.2s ease forwards}
.map-bubble,.map-pin{position:absolute;display:grid;place-items:center;box-shadow:0 13px 28px #12463730}
.map-bubble{width:65px;height:65px;border-radius:50%;background:#fff;color:#07835d;font-size:31px}
.map-a{left:20%;bottom:25%}.map-b{right:25%;bottom:19%}.map-c{right:42%;bottom:45%}
.map-pin{top:22%;right:17%;background:linear-gradient(140deg,#36e4a1,#067b60);color:white;font-size:32px;font-weight:800;width:75px;height:75px;border-radius:50% 50% 50% 7px;transform:rotate(-45deg)}
.map-pin::first-letter{transform:rotate(45deg)}
.map-coordinate{position:absolute;right:6%;bottom:7%;font-size:10px;letter-spacing:2px;color:#397f69;font-weight:800}
.welcome-actions{position:relative;z-index:2;grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:14px;max-width:780px;margin-top:90px}
.welcome-actions button{border:0;border-radius:21px;min-height:74px;padding:16px 23px;font:700 clamp(15px,1.6vw,20px) 'Space Grotesk';display:flex;align-items:center;justify-content:space-between;gap:20px;transition:transform .2s,box-shadow .2s}
.welcome-actions button:hover{transform:translateY(-4px);box-shadow:0 14px 28px #102b3522}
.welcome-actions button span{font-size:30px}
.welcome-start{background:#22c784;color:#0b2c34}.welcome-return{background:#dff2e7;color:#0b2c34}
.welcome-note{position:relative;z-index:2;grid-column:1/-1;font-size:11px;color:#6d8681;margin:16px 0 0}
.route-steps{max-width:920px;margin:0 auto}
.journey-track{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 45px;position:relative}
.journey-track:before{content:"";position:absolute;top:22px;left:12%;right:12%;height:3px;background:linear-gradient(90deg,#2db879,#d6e7da);z-index:0}
.journey-dot{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:10px;background:transparent;border:0;color:#64837a;font-weight:800}
.journey-dot b{display:grid;place-items:center;background:#e7f2e9;border:2px solid #b8d7c8;border-radius:50%;width:46px;height:46px;color:#2a7055;font-size:17px}
.journey-dot.current b,.journey-dot.done b{background:#19bd7b;color:#073c30;border-color:#19bd7b;box-shadow:0 0 0 6px #d8f5e5}
.journey-dot small{font-size:10px;letter-spacing:1.4px}
.setup-panel{border-radius:27px;border:1px solid #d6e7da;background:white;padding:clamp(20px,4vw,42px);box-shadow:0 22px 55px #102b350a}
.setup-heading{display:flex;gap:20px;align-items:center;margin-bottom:30px}
.setup-heading h2{font:700 clamp(22px,3vw,30px) 'Space Grotesk';margin:0 0 7px}
.setup-heading p{font-size:13px;color:#69817e;line-height:1.65;margin:0}
.setup-symbol{display:grid;place-items:center;background:#e2f8e9;border-radius:20px;width:75px;height:75px;font-size:37px;color:#0b8c60;flex-shrink:0}
.setup-account{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid #e4eee7}
.setup-account strong{display:block;font-size:17px}.setup-account small{display:block;color:#6c8580;font-size:12px;margin-top:5px}
.setup-toggle{margin-left:auto;white-space:nowrap;background:#f0f6f1;border:1px solid #c9e2d0;border-radius:30px;padding:11px 17px;color:#17543e;font-weight:800}
.setup-toggle.is-on{background:#daf8e5;border-color:#9ee3b8}
.setup-budget{display:grid;gap:10px}.setup-budget label{display:grid;grid-template-columns:46px 1fr minmax(115px,180px);align-items:center;gap:15px;padding:12px;border-radius:15px;background:#f5faf6;font-weight:700;font-size:13px}
.setup-budget input{width:100%;padding:12px;border:1px solid #cfe0d4;border-radius:11px;background:white;text-align:right}
.setup-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid #e4eee7;font-weight:700}
.setup-controls{display:flex;justify-content:space-between;gap:12px;margin-top:35px;flex-wrap:wrap}
.assignment-hero{display:grid;grid-template-columns:1fr 160px;align-items:center;background:#102b35;color:white;border-radius:24px;padding:30px 35px;overflow:hidden}
.assignment-hero .eyebrow{color:#83ddb2}.assignment-hero h2{font:700 clamp(25px,3.4vw,37px) 'Space Grotesk';letter-spacing:-1px;max-width:510px;margin:12px 0}
.assignment-hero p{font-size:13px;color:#b9d5cd;line-height:1.5}
.radar-graphic{height:150px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;background:repeating-radial-gradient(circle,#3ed6a420 0 2px,transparent 3px 28px);position:relative}
.radar-graphic:before{content:"";position:absolute;inset:15px;border-radius:50%;background:conic-gradient(from 40deg,transparent 0 70%,#2fda9130 100%);animation:radar-spin 6s linear infinite}
.radar-center{font-size:60px;color:#5ff4ae}
@keyframes radar-spin{to{transform:rotate(360deg)}}
.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:20px 0 28px}
.source-card{background:white;border:1px solid #d7e7db;border-radius:21px;padding:24px;min-height:190px;text-align:left;display:flex;flex-direction:column;gap:9px;transition:.2s}
.source-card:hover,.source-card.selected{border-color:#26b77e;box-shadow:0 12px 30px #102b3510;transform:translateY(-3px)}
.source-symbol{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:#fff0e4;color:#b76630;font-size:28px}
.source-card:nth-child(2) .source-symbol{background:#e2f6eb;color:#087a54}
.source-card strong{font:700 19px/1.15 'Space Grotesk'}.source-card small{color:#718680;font-size:12px;line-height:1.5}.source-card b{margin-top:auto;color:#1a8b63;font-size:12px}
.assignment-list{display:grid;gap:12px}
.assign-item{display:grid;grid-template-columns:48px 1fr auto;gap:14px;align-items:center;background:white;border:1px solid #dbe9df;border-radius:19px;padding:18px 20px}
.assign-location{width:47px;height:47px;display:grid;place-items:center;background:#fff0e4;color:#b3662f;border-radius:14px;font-size:26px}
.assign-info h3{font:700 17px 'Space Grotesk';margin:5px 0}.assign-info p{font-size:11px;color:#6d827f;margin:0}
.source-label{font-size:9px;font-weight:800;color:#ae6a3b;letter-spacing:1px}
.assign-money{font:700 18px 'Space Grotesk';white-space:nowrap}
.assign-controls{grid-column:2/-1;display:flex;align-items:center;justify-content:flex-end;gap:10px}
.assign-controls label{font-size:11px;font-weight:800;color:#647b73}
.assign-controls select{border:1px solid #d1e4d8;border-radius:10px;padding:9px;background:#f8fbf8;max-width:220px}
@media(max-width:900px){.welcome-page{grid-template-columns:1fr}.welcome-map{width:74%;top:28%}.welcome-copy h1{max-width:570px}.welcome-actions{margin-top:130px}}
@media(max-width:760px){.welcome-page{padding:28px 25px;min-height:calc(100svh - 210px)}.welcome-map{top:33%;width:100%;opacity:.8;mask-image:linear-gradient(to bottom,transparent,#000 18%)}.welcome-copy{z-index:2}.welcome-copy h1{font-size:clamp(38px,8vw,55px)}.welcome-logo{font-size:clamp(65px,16vw,100px);margin-top:20px;letter-spacing:-7px}.welcome-lead{max-width:400px}.welcome-actions{margin-top:190px}.setup-heading{align-items:flex-start}.assignment-hero{grid-template-columns:1fr 100px;padding:22px}.radar-graphic{height:100px}}
@media(max-width:520px){.welcome-page{border-radius:22px;padding:23px 20px}.welcome-copy h1{font-size:clamp(36px,10vw,48px);letter-spacing:-2.5px;margin:17px 0}.welcome-lead{font-size:13px;max-width:285px}.welcome-subtitle{font-size:9px;letter-spacing:4px}.welcome-map{top:43%;opacity:.78}.map-bubble{width:45px;height:45px;font-size:21px}.map-pin{width:50px;height:50px;font-size:24px}.map-coordinate{font-size:8px}.welcome-actions{grid-template-columns:1fr;margin-top:180px;gap:10px}.welcome-actions button{min-height:60px;border-radius:16px;font-size:16px}.welcome-note{font-size:10px}.journey-dot small{font-size:8px}.journey-track{margin-bottom:30px}.setup-heading{gap:12px}.setup-symbol{width:50px;height:50px;font-size:25px;border-radius:13px}.setup-account{gap:9px}.setup-toggle{padding:9px;font-size:11px}.setup-budget label{grid-template-columns:36px 1fr;gap:8px}.setup-budget label input{grid-column:2}.source-grid{grid-template-columns:1fr}.source-card{min-height:0}.assign-item{grid-template-columns:40px 1fr}.assign-money{grid-column:2}.assign-controls{grid-column:1/-1;flex-wrap:wrap;justify-content:stretch}.assign-controls select{flex:1;min-width:120px}.assignment-hero{grid-template-columns:1fr 70px}.radar-graphic{height:70px}.radar-center{font-size:35px}}
@media(prefers-reduced-motion:reduce){.radar-graphic:before,.map-path{animation:none;stroke-dashoffset:0}}

/* RUTA UX 4 — mapa interactivo, vinculación paso a paso y navegación móvil */
.ruta-icon{flex:none;vertical-align:middle}
.welcome-actions button span{display:flex;align-items:center}
.onboard-status{display:flex;align-items:center;gap:13px;padding:15px 18px;background:#f0f9f3;border:1px solid #cdebd7;border-radius:17px;margin-bottom:17px}
.status-orbit{display:grid;place-items:center;color:#0b9567;background:#d8f5e4;border-radius:50%;width:43px;height:43px;flex-shrink:0}
.onboard-status strong{display:block;font:700 16px 'Space Grotesk'}
.onboard-status small{display:block;font-size:11px;color:#65877b;margin-top:3px}
.status-pill{margin-left:auto;border-radius:30px;padding:8px 10px;font-size:9px;letter-spacing:1px;color:#27775a;background:#d9f3e4;font-weight:800;white-space:nowrap}
.onboard-account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.connect-tile{padding:23px;background:linear-gradient(155deg,#fff,#f5faf7);border:1px solid #d8e7dd;border-radius:21px;min-height:240px;display:flex;flex-direction:column;transition:transform .2s,border-color .2s,box-shadow .2s}
.connect-tile:hover{transform:translateY(-4px);border-color:#6bc89d;box-shadow:0 15px 35px #123c3113}
.connect-tile.connected{background:linear-gradient(145deg,#effaf3,#e0f6e9);border-color:#98dcb5}
.connect-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.connect-status{font-size:10px;font-weight:800;color:#347f5d;display:flex;align-items:center;gap:3px}
.connect-tile h3{font:700 23px 'Space Grotesk';margin:20px 0 3px}
.connect-tile p{font-size:12px;color:#748980;margin:0 0 23px}
.connect-cta{margin-top:auto;border:0;background:#113f3e;color:#fff;padding:13px 15px;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:700;cursor:pointer}
.connect-tile.connected .connect-cta{background:#fff;color:#326d57;border:1px solid #bddcc8}
.connect-cta:hover{filter:brightness(1.1)}
.read-only-tip{display:flex;gap:11px;align-items:flex-start;background:#fff5eb;border:1px solid #f2d7bf;border-radius:15px;padding:15px 17px;margin-top:18px;color:#a46335}
.read-only-tip p{margin:0;font-size:12px;line-height:1.55;color:#76563f}
.connect-wizard{max-width:780px;margin:0 auto}
.wizard-progress{display:flex;justify-content:space-between;gap:10px;margin:20px 0}
.wizard-progress span{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#91a59b;padding:12px 15px;border-bottom:3px solid #e2ece5;flex:1;text-align:center}
.wizard-progress span.current{color:#078a5d;border-color:#20cb84}
.wizard-progress span.done{color:#348c67;border-color:#9fe0bb}
.wizard-card{background:#fff;border:1px solid #d6e7dc;border-radius:27px;padding:clamp(23px,5vw,49px);box-shadow:0 24px 60px #102b3510}
.wizard-art{width:91px;height:91px;display:grid;place-items:center;border-radius:26px;color:#079668;background:#dff8e8;margin-bottom:24px}
.wizard-art.orange{color:#b66c35;background:#fff0e4}
.wizard-art.success{border-radius:50%;color:#fff;background:linear-gradient(135deg,#21cf86,#0c9b70);box-shadow:0 12px 30px #21b87955}
.wizard-card h1{font:700 clamp(36px,5vw,57px)/1.05 'Space Grotesk';letter-spacing:-2.3px;margin:14px 0 16px}
.wizard-card h1 em{color:#1eae76;font-style:normal}
.wizard-card>p{font-size:15px;line-height:1.7;color:#5d7974;max-width:590px}
.wizard-preview{display:flex;align-items:center;gap:15px;padding:19px;border-radius:18px;background:#f2f9f4;border:1px solid #dcebe0;margin:27px 0}
.wizard-preview strong{display:block;font-size:17px}.wizard-preview small{display:block;color:#6b837a;margin-top:5px}
.wizard-preview>span:last-child{margin-left:auto;color:#259f73}
.wizard-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:29px}
.wizard-actions .btn{display:inline-flex;align-items:center;gap:12px}
.permission-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0}
.permission-list>div{display:flex;align-items:center;gap:10px;border-radius:12px;background:#e8f9ef;padding:16px;color:#176a4a;font-size:13px;font-weight:700}
.permission-list>div.denied{background:#f7f7f3;color:#60746a}
.permission-check{display:flex;align-items:flex-start;gap:12px;background:#fff2e8;border:1px solid #f3d9c5;padding:17px;border-radius:14px;font-size:13px;color:#72563d;line-height:1.5}
.permission-check input{width:19px;height:19px;accent-color:#18b77c;flex-shrink:0}
.wizard-complete{display:flex;align-items:center;gap:12px;background:#e7f9ee;color:#187651;padding:19px;border-radius:15px;margin-top:25px}
.mobile-dock{display:none}
@media(max-width:760px){
 .mobile-dock{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);bottom:12px;left:12px;right:12px;z-index:30;background:#0e3036ed;backdrop-filter:blur(18px);border:1px solid #ffffff30;border-radius:21px;padding:7px 5px calc(7px + env(safe-area-inset-bottom,0px));box-shadow:0 14px 35px #0d293a55}
 .mobile-dock button{border:0;background:transparent;color:#c3ddd3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 1px;border-radius:14px;min-width:0;cursor:pointer}
 .mobile-dock button span{font-size:23px;line-height:1}.mobile-dock button small{font-size:9px;white-space:nowrap}
 .mobile-dock button.active{background:#2fd48a;color:#08372d}
 .main-shell{padding-bottom:98px}
 .side-nav{display:none}
 .onboard-account-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
 .onboard-account-grid{grid-template-columns:1fr}.connect-tile{min-height:0;padding:18px}
 .status-pill{display:none}.permission-list{grid-template-columns:1fr}
 .wizard-progress span{font-size:8px;padding:10px 4px}
 .wizard-card h1{font-size:38px}.wizard-actions{flex-direction:column}.wizard-actions .btn{justify-content:center}
 .mobile-dock button small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.connect-tile{transition:none}}
/* UX5 · EXPRESIVA — RUTA no es un homebanking, es una brújula */
:root{--route-green:#1fd28b;--route-orange:#e69a63;--route-ink:#092e38;--route-cream:#f7fbf6}
body{background:radial-gradient(circle at 75% -5%,#cbf4df 0,transparent 35%),#f0f7f1}
.sidebar{background:linear-gradient(168deg,#092a34,#10483f 75%,#0a2b33)}
.side-nav button{border-radius:16px;margin:4px 0;transition:background .2s,transform .2s}.side-nav button:hover{transform:translateX(4px);background:#ffffff14}
.topbar{background:#f4faf6ed;box-shadow:0 8px 30px #143a2a0a}
.page-title{font-size:clamp(40px,5.5vw,65px);letter-spacing:-3px;line-height:1.05}
.page-title em{color:#159d73}
.journey-progress{margin:24px 0 30px;background:#e8f6ec;border:1px solid #d4eadd;padding:15px 18px;border-radius:18px}
.journey-label{display:flex;justify-content:space-between;align-items:center;font-size:10px;font-weight:800;letter-spacing:1.4px;color:#3a6e57;margin-bottom:11px}
.journey-label b{font-size:13px;color:#0c7e59}
.journey-line{height:7px;background:#cce4d4;border-radius:20px;overflow:hidden}
.journey-line>span{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#0aa96d,#3ae8a1);transition:width .3s ease}
.setup-profile{display:grid;gap:15px}
.setup-profile label{font-size:13px;font-weight:800;color:#17443b}
.setup-profile input{display:block;width:100%;border:1px solid #c9e2d2;border-radius:15px;padding:18px;margin-top:10px;font:700 20px 'Space Grotesk';outline-color:#21c687;background:#f7fbf7}
.micro-hint{display:flex;gap:9px;align-items:center;font-size:12px;color:#567e70}
.field-label{font-weight:800;font-size:13px;margin:20px 0 13px}
.choice-row{display:flex;gap:8px;flex-wrap:wrap}
.choice-pill{padding:12px 19px;border-radius:30px;background:#f2f7f2;border:1px solid #d2e3d6;color:#224f43;font-weight:800;cursor:pointer}
.choice-pill.chosen,.goal-tile.chosen{background:#d9f8e5;border-color:#1fc985;color:#076c4b}
.goal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.goal-tile{display:flex;gap:11px;align-items:center;text-align:left;border:1px solid #d7e7dc;background:#f8fbf8;border-radius:17px;padding:18px;min-height:83px;font-weight:800;cursor:pointer;transition:transform .2s}
.goal-tile:hover{transform:translateY(-3px)}.goal-tile span{flex:1}
.permission-intro{text-align:center;max-width:560px;margin:0 auto 25px}
.permission-intro .setup-symbol{margin:0 auto 15px;border-radius:50%;width:90px;height:90px}
.permission-intro h2{font:700 clamp(30px,4vw,44px)/1.06 'Space Grotesk';letter-spacing:-1.5px}
.permission-intro p{font-size:14px;color:#668078;line-height:1.6}
.account-type-switch{display:flex;gap:10px;background:#eef7f1;padding:6px;border-radius:17px;margin-bottom:18px}
.account-type-switch button{flex:1;border:0;background:transparent;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:10px;padding:13px;color:#497668;font-weight:800;cursor:pointer}
.account-type-switch button.selected{background:#103e3c;color:#fff;box-shadow:0 7px 17px #0c453326}
.income-spotlight{border:1px solid #a7e2be;background:linear-gradient(145deg,#e5faec,#f8fff9);border-radius:23px;padding:30px}
.income-spotlight>span{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#267b5c}
.income-spotlight label{display:flex;align-items:center;gap:10px;font:700 clamp(30px,5vw,58px) 'Space Grotesk';margin:15px 0}
.income-spotlight input{width:100%;min-width:0;border:0;background:transparent;outline:0;font:inherit;color:#092e38}
.income-spotlight p{font-size:13px;color:#557b69}
.budget-remaining{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:17px;padding:17px;background:#113d3c;color:white;margin:0 0 15px}
.budget-remaining span{font-size:10px;letter-spacing:1px;font-weight:800;color:#9ce8c1}
.budget-remaining strong{font:700 23px 'Space Grotesk'}
.setup-alert strong,.setup-alert small{display:block}.setup-alert small{font-size:11px;color:#6e857c;font-weight:400;margin-top:6px}
.route-hub{margin:26px 0 28px}.route-hub-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}
.route-hub-header h2{font:700 clamp(25px,3vw,33px) 'Space Grotesk';letter-spacing:-1.2px;margin:8px 0}
.route-hub-live{font-size:9px;font-weight:800;letter-spacing:1px;color:#16895f}
.route-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.hub-action{border:1px solid #d4e7db;border-radius:23px;padding:23px;min-height:253px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;position:relative;overflow:hidden;cursor:pointer;transition:transform .25s,box-shadow .25s}
.hub-action:hover{transform:translateY(-6px);box-shadow:0 20px 40px #0a3b3317}
.hub-primary{background:linear-gradient(145deg,#113f40,#092d37);color:#fff;border-color:#113f40}
.hub-orange{background:linear-gradient(145deg,#fff2e7,#ffe2c8);border-color:#f4d7c0}
.hub-visual{display:grid;place-items:center;width:72px;height:72px;border-radius:20px;background:#ddf6e6;color:#10895e;margin-bottom:21px;transform:rotate(-7deg);transition:transform .25s}
.hub-action:hover .hub-visual{transform:rotate(5deg) scale(1.07)}
.hub-primary .hub-visual{background:#205b50;color:#6aefb0}.hub-orange .hub-visual{background:#ffdfc4;color:#bd6b32}
.hub-counter{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#5e957a;margin-bottom:8px}.hub-primary .hub-counter{color:#81e6ae}.hub-orange .hub-counter{color:#b46c3e}
.hub-action strong{font:700 23px/1.1 'Space Grotesk';letter-spacing:-.6px;max-width:230px}
.hub-action small{font-size:12px;line-height:1.5;color:#6d857a;max-width:240px;margin-top:8px}.hub-primary small{color:#b8d9cb}.hub-orange small{color:#9e7256}
.hub-arrow{position:absolute;right:20px;bottom:19px;font-size:28px}
.budget-card,.source-card,.connect-tile{border-radius:23px}
.btn,.connect-cta{transition:transform .18s,box-shadow .18s}.btn:hover,.connect-cta:hover{transform:translateY(-2px)}
@media(max-width:1000px){.route-hub-grid{grid-template-columns:1fr 1fr}.route-hub-grid .hub-orange{grid-column:1/-1;min-height:200px}}
@media(max-width:760px){.route-hub-grid{grid-template-columns:1fr 1fr}.hub-action{padding:17px;min-height:235px}.hub-action strong{font-size:20px}.hub-visual{width:58px;height:58px}.route-hub-live{display:none}}
@media(max-width:520px){.route-hub-grid{grid-template-columns:1fr}.route-hub-grid .hub-orange{grid-column:auto}.hub-action{min-height:0;padding:20px 20px 50px}.hub-visual{margin-bottom:13px}.goal-grid{grid-template-columns:1fr}.permission-list{grid-template-columns:1fr}.budget-remaining{align-items:flex-start;flex-direction:column}.setup-profile input{font-size:17px}}
@media(prefers-reduced-motion:reduce){.hub-action,.hub-visual,.goal-tile{transition:none}}

/* RUTA / Flow 2 — cartografía interactiva, conservando tipografía y paleta */
.f2-shell{max-width:1120px;margin:0 auto;animation:f2enter .45s cubic-bezier(.2,.7,.2,1)}
@keyframes f2enter{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
.f2-top,.f2-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;font-weight:800;letter-spacing:.18em;color:#50736c;padding:18px 2px;border-bottom:1px solid #c9ded6}
.f2-bottom{border:0;border-top:1px solid #c9ded6;margin-top:30px}
.f2-heading{padding:35px 0 24px;max-width:740px}.f2-heading h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(39px,5.5vw,72px);letter-spacing:-.07em;line-height:1.02;margin:12px 0 16px;color:#102b35}.f2-heading h1 em{font-style:normal;color:#08a96b}.f2-heading p{font-size:16px;line-height:1.6;max-width:580px;color:#567069}
.f2-map{height:270px;border-radius:30px;position:relative;overflow:hidden;background:linear-gradient(125deg,#d9f2e4,#f0fbf4 45%,#c2e8d6);box-shadow:0 18px 35px #133b2914}.f2-map-grid{position:absolute;inset:-50%;transform:rotate(-22deg);background:repeating-linear-gradient(90deg,transparent 0 72px,#fff9 73px 89px,transparent 90px 150px),repeating-linear-gradient(0deg,transparent 0 52px,#fff9 53px 68px,transparent 69px 140px)}.f2-map svg{position:absolute;inset:0;width:100%;height:100%;filter:drop-shadow(0 5px 5px #11865b44)}.f2-map-bubble{position:absolute;display:grid;place-items:center;width:56px;height:56px;background:#102b35;color:#b8f4d8;border:5px solid #fff;border-radius:50%;box-shadow:0 7px 18px #1c504038}.f2-map-bubble.a{left:24%;top:21%}.f2-map-bubble.b{right:21%;top:36%}.f2-map-caption{position:absolute;left:25px;bottom:22px;padding:12px 18px;background:#ffffffdf;backdrop-filter:blur(15px);border-radius:16px;display:flex;flex-direction:column;gap:3px}.f2-map-caption span{font-size:10px;letter-spacing:.13em;font-weight:800;color:#0a9e65}.f2-map-caption strong{font-size:15px}
.f2-origin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.f2-origin{border:1px solid #d1e7dc;border-radius:25px;padding:25px;min-height:270px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:13px;cursor:pointer;transition:transform .3s,box-shadow .3s,background .3s;position:relative}.f2-origin:hover,.f2-origin:focus-visible{transform:translateY(-7px);box-shadow:0 22px 36px #103e2b24}.f2-origin.geo{background:#102b35;color:white}.f2-origin.cuenta{background:#e1f7e9;color:#102b35}.f2-origin-icon{width:62px;height:62px;border-radius:18px;display:grid;place-items:center;background:#20c77a;color:#062a25}.f2-origin-count{position:absolute;right:20px;top:22px;font-size:11px;font-weight:800;padding:8px 10px;border:1px solid currentColor;border-radius:30px;opacity:.85}.f2-origin strong{font-size:clamp(23px,2.5vw,32px);line-height:1.06;letter-spacing:-.05em;max-width:290px}.f2-origin small{font-size:13px;line-height:1.5;opacity:.78}.f2-origin-arrow{display:flex;align-items:center;gap:12px;font-weight:800;font-size:13px;margin-top:auto}.f2-quick{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 0}.f2-quick>span{font-size:10px;letter-spacing:.15em;font-weight:800;color:#55766d}.f2-quick button{border:0;background:transparent;display:flex;gap:7px;align-items:center;cursor:pointer;font-size:12px;font-weight:800;color:#102b35}.f2-disclaimer{font-size:12px;color:#62776e}
.f2-back{border:0;background:transparent;padding:0 0 15px;color:#0b8059;cursor:pointer;font-weight:750}.f2-inbox-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;font-size:11px;font-weight:800;letter-spacing:.08em}.f2-mini-filters{display:flex;gap:5px;background:#dfeee7;padding:5px;border-radius:100px}.f2-mini-filters button{border:0;background:transparent;border-radius:30px;padding:9px 13px;cursor:pointer;font-size:12px}.f2-mini-filters button.active{background:#102b35;color:#fff}.f2-ticket-stack{display:grid;gap:10px}.f2-ticket{width:100%;border:1px solid #d4e9df;background:#fff;border-radius:21px;padding:18px 22px;display:flex;gap:18px;align-items:center;text-align:left;cursor:pointer;transition:transform .22s,box-shadow .22s}.f2-ticket:hover{transform:translateX(8px);box-shadow:0 12px 28px #15432b14}.f2-ticket-icon{width:58px;height:58px;flex-shrink:0;border-radius:19px;background:#e4f8ec;color:#0a9963;display:grid;place-items:center}.f2-ticket-body{display:flex;flex-direction:column;gap:5px;flex:1}.f2-ticket-body small{font-size:9px;letter-spacing:.12em;color:#0d9766;font-weight:800}.f2-ticket-body strong{font-size:18px;color:#102b35}.f2-ticket-body>span{font-size:12px;color:#6b7f79}.f2-ticket-end{display:flex;align-items:center;gap:18px;color:#102b35}.f2-ticket-end strong{font-size:18px}.f2-ticket-end i{color:#0caa6e}.f2-foot-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.f2-empty{padding:60px 25px;text-align:center;background:#e4f7eb;border-radius:25px}.f2-empty svg{color:#0aa96a}.f2-empty h2{margin:12px 0}
.f2-review-visual{min-height:265px;border-radius:28px;padding:28px;background:radial-gradient(circle at 80% 20%,#28554a,#102b35 65%);color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px}.f2-review-pin{background:#20c77a;color:#102b35;border-radius:22px;padding:13px;box-shadow:0 0 0 10px #20c77a22}.f2-review-place{font-size:10px;letter-spacing:.14em;opacity:.72}.f2-review-visual h2{font-size:clamp(23px,4vw,36px);letter-spacing:-.04em;margin:0}.f2-review-visual>strong{font-size:clamp(32px,5vw,48px);letter-spacing:-.05em;color:#b9f5d6}.f2-review-source{font-size:12px;opacity:.72}.f2-suggestion{margin:15px 0;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#e5f6e9;border:1px solid #cae9d8;border-radius:19px;padding:22px}.f2-suggestion div{display:flex;flex-direction:column;gap:6px}.f2-suggestion small{font-size:10px;letter-spacing:.12em;color:#39735d}.f2-suggestion strong{font-size:20px}.f2-suggestion button{border:0;background:#fff;border-radius:30px;padding:12px 15px;display:flex;align-items:center;gap:7px;font-weight:800;cursor:pointer}.f2-decision{display:grid;grid-template-columns:1fr 1fr;gap:10px}.f2-decision button{border:0;border-radius:17px;padding:18px;font-size:14px;font-weight:800;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:transform .2s}.f2-decision button:hover{transform:translateY(-3px)}.f2-confirm{grid-row:span 2;background:#20c77a;color:#092b25;font-size:19px!important}.f2-secondary{background:#fff;color:#102b35;border:1px solid #d8e6df!important}.f2-category-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.f2-category{display:flex;align-items:center;gap:13px;border:2px solid transparent;background:#fff;border-radius:20px;padding:20px;text-align:left;cursor:pointer;transition:transform .2s,border-color .2s}.f2-category:hover{transform:translateY(-3px)}.f2-category.selected{border-color:#20c77a;background:#eafff2}.f2-category-symbol{font-size:29px;width:52px;height:52px;display:grid;place-items:center;border-radius:16px}.f2-category>span:nth-child(2){display:flex;flex-direction:column;gap:4px;flex:1}.f2-category strong{font-size:16px}.f2-category small{font-size:12px;color:#617b70}.f2-category-select{color:#0aa86c}.f2-wide{margin-top:20px;width:100%;justify-content:center}.f2-form{background:#fff;border-radius:24px;padding:30px;display:grid;gap:15px}.f2-form label{font-size:12px;font-weight:800}.f2-form input{border:1px solid #cdded5;padding:16px;border-radius:12px;font:inherit}.f2-form-preview{display:flex;justify-content:space-between;align-items:center;padding:20px;background:#eaf7ef;border-radius:15px}.f2-form-preview span{font-size:11px;letter-spacing:.1em}.f2-form-preview strong{font-size:23px}.f2-completion{text-align:center;background:#e5f8ed;padding:48px 22px;border-radius:25px}.f2-completion-ring{width:116px;height:116px;margin:auto;border:5px solid #20c77a;border-radius:50%;display:grid;place-items:center;color:#09a36b;animation:f2pulse 1s ease-out}@keyframes f2pulse{from{box-shadow:0 0 0 30px #20c77a30}to{box-shadow:0 0 0 0 #20c77a00}}.f2-completion h2{margin:20px 0 5px}
@media(max-width:760px){.f2-origin-grid,.f2-category-grid{grid-template-columns:1fr}.f2-map{height:220px}.f2-origin{min-height:220px}.f2-heading{padding-top:23px}.f2-ticket{padding:13px;gap:10px}.f2-ticket-icon{width:42px;height:42px;border-radius:12px}.f2-ticket-body strong,.f2-ticket-end strong{font-size:14px}.f2-ticket-end{gap:5px}.f2-inbox-head{align-items:flex-start;flex-direction:column}.f2-decision{grid-template-columns:1fr}.f2-confirm{grid-row:auto}.f2-foot-actions .btn{flex:1}.f2-quick{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.f2-shell,.f2-completion-ring{animation:none}.f2-origin,.f2-ticket,.f2-decision button{transition:none}}

/* Flow 2 · Corrección conceptual: la bandeja es el contenedor y los orígenes son sus accesos */
.f2-hub .f2-hub-intro{padding:18px 0 18px}.f2-hub-title{display:flex;align-items:end;justify-content:space-between;gap:18px}.f2-hub-title h1{font:700 clamp(37px,4.6vw,61px)/1.02 'Space Grotesk',sans-serif;letter-spacing:-.065em;margin:13px 0 8px;color:#102b35}.f2-hub-title h1 em{font-style:normal;color:#08a96b}.f2-hub-title p{margin:0;color:#567069;font-size:15px}.f2-hub-indicator{width:106px;height:106px;border-radius:50%;border:7px solid #b9e9ce;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0;background:#e6f8ec}.f2-hub-indicator span{font:700 36px 'Space Grotesk';line-height:1;color:#0a8f60}.f2-hub-indicator small{font-size:9px;letter-spacing:.09em;font-weight:800;color:#487967}.f2-hub-section{margin-top:17px}.f2-hub-section-label{display:flex;justify-content:space-between;gap:12px;padding:0 0 10px;border-bottom:1px solid #bddccf;font-size:10px;letter-spacing:.13em;font-weight:800;color:#497a69}.f2-hub .f2-origin-grid{margin:12px 0 16px;gap:12px}.f2-hub .f2-origin{min-height:196px;padding:19px 22px;gap:8px;border-radius:21px}.f2-hub .f2-origin-icon{width:44px;height:44px;border-radius:12px}.f2-hub .f2-origin-icon svg{width:24px;height:24px}.f2-hub .f2-origin strong{font-size:clamp(21px,2.2vw,27px)}.f2-hub .f2-origin small{font-size:12px}.f2-hub .f2-origin-arrow{margin-top:auto;font-size:12px}.f2-hub-preview{margin-top:12px;border-top:1px solid #c5ddd1;padding-top:15px}.f2-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.f2-preview-heading h2{font:700 24px 'Space Grotesk';margin:5px 0 0;letter-spacing:-.04em}.f2-preview-all{border:0;background:#e0f5e8;color:#0a7954;padding:10px 13px;border-radius:30px;font-size:12px;font-weight:800;display:flex;align-items:center;gap:7px;cursor:pointer}.f2-preview-list{display:grid;gap:8px}.f2-hub .f2-ticket{padding:11px 16px;border-radius:16px}.f2-hub .f2-ticket-icon{width:41px;height:41px;border-radius:12px}.f2-hub .f2-ticket-body strong,.f2-hub .f2-ticket-end strong{font-size:14px}.f2-hub .f2-disclaimer{margin:16px 0}.f2-hub .f2-origin:hover{transform:translateY(-3px)}
@media(max-width:760px){.f2-hub .f2-hub-intro{padding:9px 0 15px}.f2-hub-title h1{font-size:clamp(34px,7vw,48px)}.f2-hub-indicator{width:73px;height:73px;border-width:5px}.f2-hub-indicator span{font-size:26px}.f2-hub-indicator small{font-size:7px}.f2-hub .f2-origin-grid{grid-template-columns:1fr 1fr}.f2-hub .f2-origin{min-height:190px;padding:15px}.f2-hub .f2-origin strong{font-size:19px}.f2-hub .f2-origin-count{position:static;padding:5px 8px;font-size:9px}.f2-hub .f2-origin small{font-size:11px}.f2-hub-section-label{font-size:9px}}
@media(max-width:520px){.f2-hub .f2-origin-grid{grid-template-columns:1fr}.f2-hub .f2-origin{min-height:150px;gap:7px}.f2-hub .f2-origin-count{position:absolute;top:16px;right:16px}.f2-hub .f2-origin strong{font-size:23px}.f2-hub .f2-hub-title p{font-size:12px}.f2-hub-section-label{font-size:8px}.f2-hub .f2-ticket-body>span{display:none}.f2-hub .f2-ticket-end strong{font-size:12px}}

/* RUTA UX7 / navegación continua, ubicación y proyección */
html{scroll-behavior:smooth;scroll-padding-top:88px}
button,a,input,select{touch-action:manipulation}
button,a{transition:background-color .22s ease,color .22s ease,transform .24s cubic-bezier(.2,.7,.2,1),box-shadow .24s ease,border-color .22s ease}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #e69a63;outline-offset:3px}
button:active{transform:scale(.97)}
.route-location{position:absolute;right:8%;bottom:11%;z-index:5;display:flex;align-items:center;gap:8px;background:#f5fff8;color:#123c36;border:1px solid #b8e6c9;border-radius:100px;padding:9px 13px 9px 8px;box-shadow:0 8px 25px #0b302d55;cursor:pointer;font:800 10px 'DM Sans',sans-serif;letter-spacing:.08em;white-space:nowrap}
.route-location:hover,.route-location:focus-visible,.route-location[aria-expanded=true]{background:#d9f7e4;transform:translateY(-3px)}
.location-target{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:#0aab72;color:white;position:relative}
.location-target:after{content:"";position:absolute;inset:-5px;border:1px solid #1fd58b;border-radius:50%;animation:location-pulse 2.4s infinite}
.location-pulse{width:7px;height:7px;border-radius:50%;background:#e69a63}
@keyframes location-pulse{0%{transform:scale(.85);opacity:1}100%{transform:scale(1.6);opacity:0}}
.location-tooltip{position:absolute;bottom:calc(100% + 12px);right:0;width:min(315px,80vw);background:#fff;color:#173d37;border:1px solid #c9e9d6;border-radius:18px;padding:19px;box-shadow:0 20px 45px #062d2d44;display:flex;flex-direction:column;gap:12px;text-align:left;white-space:normal;letter-spacing:0;opacity:0;visibility:hidden;transform:translateY(7px);pointer-events:none;transition:opacity .22s,transform .22s,visibility .22s}
.location-tooltip:after{content:"";position:absolute;right:24px;top:100%;border:8px solid transparent;border-top-color:white}
.location-tooltip>strong{font:700 19px 'Space Grotesk',sans-serif;color:#102b35}
.location-tooltip>span{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:#62796f;font-weight:500}
.location-tooltip>span b{font:700 14px 'Space Grotesk';color:#123e32}
.location-tooltip small{border-top:1px solid #e5f1e9;padding-top:10px;color:#6d867a;font-size:10px;font-weight:500}
.route-location:hover .location-tooltip,.route-location:focus-visible .location-tooltip,.route-location[aria-expanded=true] .location-tooltip{opacity:1;visibility:visible;transform:translateY(0)}
.route-forecast-entry,.budget-explore,.alert-route{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#eaf7ef;border:1px solid #cde9d8;border-radius:20px;padding:18px 23px;margin:18px 0}
.route-forecast-entry>div,.budget-explore>span{display:flex;align-items:center;gap:15px}
.route-forecast-entry svg,.budget-explore svg,.alert-route-icon{color:#0b986a}
.route-forecast-entry b,.budget-explore strong,.alert-route strong{display:block;font:700 17px 'Space Grotesk'}
.route-forecast-entry small{display:block;color:#5b7c70;font-size:12px;margin-top:4px}
.route-forecast-entry button,.budget-explore button,.alert-route button{display:flex;align-items:center;gap:10px;border:0;background:#102b35;color:#fff;border-radius:13px;padding:13px 16px;font-weight:800;cursor:pointer;white-space:nowrap}
.alert-route{background:#fff2e6;border-color:#f2d4bb}.alert-route-icon{background:#ffe2ca;padding:13px;border-radius:16px;color:#c67a3d}.alert-route>div:nth-child(2){flex:1}.alert-route p{font-size:12px;color:#816348;margin:5px 0 0}
.forecast-page{max-width:1120px;margin:0 auto;animation:f2enter .4s ease}.forecast-page>h1{font:700 clamp(40px,6vw,76px)/1.02 'Space Grotesk';letter-spacing:-.07em;margin:20px 0}.forecast-page>h1 em{font-style:normal;color:#0fa972}.forecast-intro{color:#59746b;line-height:1.65;max-width:620px;margin-bottom:24px}
.forecast-map{height:270px;position:relative;overflow:hidden;background:linear-gradient(110deg,#102b35,#155a4b);border-radius:28px;color:#fff}
.forecast-grid{position:absolute;inset:-80%;transform:rotate(-25deg);opacity:.13;background:repeating-linear-gradient(0deg,transparent 0 48px,#fff 49px 53px,transparent 54px 100px),repeating-linear-gradient(90deg,transparent 0 63px,#fff 64px 69px,transparent 70px 120px)}
.forecast-line{position:absolute;inset:0;background:linear-gradient(150deg,transparent 28%,#20c77a 29% 31%,transparent 32% 54%,#20c77a 55% 57%,transparent 58%);opacity:.55}
.forecast-point{position:absolute;display:grid;place-items:center;width:51px;height:51px;border-radius:50%;background:#e6fff0;color:#088b61}.forecast-point.a{left:12%;top:25%}.forecast-point.b{right:16%;bottom:15%}
.forecast-number{position:absolute;left:clamp(20px,5vw,55px);top:50%;transform:translateY(-50%);background:#0b302fcf;backdrop-filter:blur(10px);border:1px solid #ffffff35;border-radius:19px;padding:20px 27px;display:flex;flex-direction:column;gap:9px}
.forecast-number small{font-size:10px;letter-spacing:.14em;color:#8ee5ba}.forecast-number strong{font:700 clamp(29px,4vw,52px) 'Space Grotesk'}.forecast-number>span{font-size:12px;color:#c4dfd3}
.forecast-controls{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;margin:19px 0}.forecast-controls>div{background:#fff;border:1px solid #d8e9df;border-radius:22px;padding:28px}.forecast-controls h2{font:700 29px 'Space Grotesk';margin:12px 0 7px}.forecast-controls p{color:#657d72;font-size:13px}.forecast-slider-label,.forecast-range{display:flex;justify-content:space-between;gap:10px;align-items:center}.forecast-slider-label{margin:25px 0 8px}.forecast-slider-label strong{font:700 23px 'Space Grotesk'}.forecast-controls input[type=range]{width:100%;accent-color:#20c77a;cursor:grab}.forecast-controls input[type=range]:active{cursor:grabbing}.forecast-range{font-size:10px;color:#72887d}.forecast-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:23px}.forecast-pills button{border:1px solid #d0e6d9;background:#f0f8f2;padding:9px 11px;border-radius:20px;cursor:pointer;font-size:11px}.forecast-pills button.selected{background:#102b35;color:#fff}
.forecast-compare{display:flex;flex-direction:column;gap:16px}.forecast-compare>div:not(.forecast-meter){display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#617b70}.forecast-compare strong{font:700 20px 'Space Grotesk';color:#102b35}.forecast-meter{height:10px;background:#d7e9dd;border-radius:10px;overflow:hidden}.forecast-meter span{display:block;height:100%;background:linear-gradient(90deg,#20c77a,#e69a63);border-radius:10px}.forecast-compare small{color:#6b8074}.forecast-compare>button{border:0;background:transparent;color:#087a55;font-weight:800;cursor:pointer;align-self:flex-start}.forecast-next{display:grid;grid-template-columns:1fr 1fr;gap:14px}.forecast-next button{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:22px;border-radius:18px;background:#e4f7eb;border:1px solid #c9e6d5;font-weight:800;cursor:pointer}
@media(pointer:fine) and (hover:hover){.map-cursor{position:fixed;left:0;top:0;width:34px;height:34px;margin:-17px 0 0 -17px;border:1.8px solid #e69a63;border-radius:50%;z-index:9999;pointer-events:none;opacity:0;transition:opacity .2s,width .18s,height .18s,margin .18s,border-color .18s;mix-blend-mode:multiply}.map-cursor:before,.map-cursor:after{content:"";position:absolute;background:#e69a63}.map-cursor:before{width:1px;height:48px;top:-8px;left:50%}.map-cursor:after{height:1px;width:48px;left:-8px;top:50%}.map-cursor span{position:absolute;inset:12px;border-radius:50%;background:#e69a63}.map-cursor.visible{opacity:.85}.map-cursor.interactive{width:44px;height:44px;margin:-22px 0 0 -22px;border-color:#0b986a}.map-cursor.pressed{width:25px;height:25px;margin:-12px 0 0 -12px}}
@media(max-width:800px){.route-forecast-entry,.budget-explore,.alert-route{flex-wrap:wrap}.forecast-controls{grid-template-columns:1fr}.route-location{right:5%;bottom:8%}}
@media(max-width:520px){.route-location{bottom:6%;right:5%;font-size:9px;padding:6px}.location-target{width:28px;height:28px}.route-forecast-entry button,.budget-explore button,.alert-route button{width:100%;justify-content:center}.forecast-number{left:14px;right:14px;padding:15px}.forecast-map{height:245px}.forecast-controls>div{padding:19px}.forecast-next{grid-template-columns:1fr}.location-tooltip{width:min(290px,85vw)}}
@media(hover:none),(pointer:coarse){.map-cursor{display:none}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* UX 8 · Tarjetas contextuales discretas: no alteran el flujo ni cubren contenido al desplazarse. */
.route-peek{position:fixed;z-index:1200;width:min(298px,calc(100vw - 28px));padding:19px 19px 16px;border:1px solid #d3e9dc;border-radius:18px;background:#fcfffd;box-shadow:0 18px 46px #082d2840;color:#12332e;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(5px) scale(.98);transition:opacity .17s ease,transform .17s ease,visibility .17s;contain:layout style}
.route-peek.is-visible{opacity:1;visibility:visible;transform:translateY(0) scale(1)}
.route-peek-kicker{font:800 9px 'DM Sans',sans-serif;letter-spacing:.13em;color:#078b61;margin-bottom:9px}
.route-peek-title{display:block;font:700 19px 'Space Grotesk',sans-serif;letter-spacing:-.04em;line-height:1.15;margin-bottom:15px}
.route-peek-rows{display:grid;gap:10px;padding-bottom:13px;border-bottom:1px solid #e2eee6}
.route-peek-rows>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.route-peek-rows span{font:500 11px 'DM Sans',sans-serif;color:#5a786b}
.route-peek-rows b{font:700 13px 'Space Grotesk',sans-serif;color:#102b35;text-align:right}
.route-peek p{font:500 10px/1.5 'DM Sans',sans-serif;color:#6d8578;margin:12px 0 0}
@media(hover:none),(pointer:coarse){.route-peek{display:none}}
@media(prefers-reduced-motion:reduce){.route-peek{transition:none}}
/* Ajustes de fluidez y feedback de los recorridos */
.side-nav button,.mobile-dock button,.hub-action,.f2-ticket,.budget-card,.account-card{transition:transform .22s cubic-bezier(.22,.7,.2,1),background-color .22s ease,box-shadow .22s ease,border-color .22s ease}
.side-nav button:hover{transform:translateX(3px)}
.hub-action:hover,.budget-card:hover{box-shadow:0 16px 36px #0c3b2c18}
.f2-ticket:focus-visible,.hub-action:focus-visible,.side-nav button:focus-visible,.mobile-dock button:focus-visible{outline:3px solid #e69a63;outline-offset:3px}
@media(max-width:700px){.side-nav button:hover{transform:none}.mobile-dock{padding-bottom:max(4px,env(safe-area-inset-bottom))}}
/* Ajustes UX: lectura compacta, alertas prioritarias y formularios */
@media(min-width:900px){.page-title{font-size:clamp(34px,4vw,49px);letter-spacing:-1.6px}.page-intro{max-width:760px;margin-top:8px}.f2-hub .f2-origin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.f2-hub .f2-origin{min-height:205px}.f2-hub .f2-origin strong{font-size:clamp(18px,1.8vw,24px)}}
.f2-origin.external{background:#fff8ee;color:#102b35;border-color:#f0d3b8}.demo-pill{cursor:default;pointer-events:none}.budget-overrun{background:#fff0e4!important;border:2px solid #e69a63!important}.budget-overrun strong{color:#a7441f!important}.alert-route{background:#fff0e4!important;border:2px solid #e69a63!important}.alert-route>div>strong{font-size:clamp(18px,2vw,25px)}.category-row-link{width:100%;text-align:left;border:0;background:transparent;cursor:pointer;font:inherit}.category-row-link:hover{background:#eaf7ef}.subbudget-editor{margin:20px 0;padding:18px;background:#f1f8f4;border-radius:16px}.subbudget-row{display:grid;grid-template-columns:1fr 170px auto;gap:10px;margin:10px 0}.subbudget-row input,.money-input{min-width:0;padding:12px;border:1px solid #c7ded2;border-radius:10px;background:white;font:inherit}.subbudget-row button{border:0;background:#ffe9da;border-radius:10px;padding:8px;cursor:pointer}.subbudget-editor>.btn{margin:6px 8px 0 0}.stat strong,.amount,.big,.value{font-variant-numeric:tabular-nums} .page-title,.f2-hub-title h1{overflow-wrap:normal;word-spacing:normal}@media(max-width:650px){.subbudget-row{grid-template-columns:1fr}.f2-hub .f2-origin-grid{grid-template-columns:1fr}.page-title{font-size:36px}}

/* Ajustes de jerarquía y navegación de alertas */
.alert-stat{font:inherit;text-align:left;cursor:pointer;width:100%;color:inherit;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;transition:transform .18s,box-shadow .18s}
.alert-stat:hover,.alert-stat:focus-visible{transform:translateY(-3px);box-shadow:0 10px 24px #102b3519;outline:2px solid #20c77a;outline-offset:2px}
.alert-stat-warning{background:#fff0e5!important;border:2px solid #e69a63!important;color:#a64323!important}
.stat-hint{font-size:12px;font-weight:700;color:#047a63;margin-top:2px}
.alert-stat-warning .stat-hint{color:#a64323}
.page-topline{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:0 0 20px}
.page-topline .back-link,.page-topline .eyebrow{margin:0!important}
.alert-detail-list{margin-top:22px}.alert-detail-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 4px;border-bottom:1px solid #dce7e1}.alert-detail-row:last-child{border-bottom:0}.alert-detail-row small{display:block;margin-top:7px;color:#6a8182}.alert-detail-row .warning{color:#a64323;font-weight:700}.alert-detail-link{width:100%;border-left:0;border-right:0;border-top:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.alert-detail-link:hover{background:#f3f7f4}.alert-detail-page .back-link{display:inline-flex;margin-bottom:22px}

/* V4 — proporción tipográfica de la dona de presupuesto */
.donut-wrap .donut{width:clamp(165px,16vw,205px);max-width:100%;aspect-ratio:1;margin-inline:auto;}
.donut-wrap .donut::before{inset:24%;}
.donut-wrap .donut-center{width:52%;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;z-index:1;}
.donut-wrap .donut-center strong{display:block;width:100%;font-family:'Space Grotesk',sans-serif;font-size:clamp(12px,1.18vw,17px);font-weight:700;line-height:1.12;letter-spacing:-.65px;white-space:nowrap;text-align:center;}
.donut-wrap .donut-center small{font-size:clamp(7px,.65vw,9px);letter-spacing:.35px;line-height:1.15;}
@media(max-width:1050px){.donut-wrap .donut-center strong{font-size:15px}}
@media(max-width:520px){.donut-wrap .donut{width:150px}.donut-wrap .donut-center strong{font-size:12px}.donut-wrap .donut-center small{font-size:7px}}

/* V5 · Jerarquía de proyección y separación de encabezados */
.forecast-page .page-topline{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:0 0 12px}
.forecast-page .page-topline .f2-back{padding:0;margin:0;flex-shrink:0}
.forecast-page .page-topline .eyebrow{display:inline-block;line-height:1.5}
.forecast-page>h1{font-size:clamp(36px,4.5vw,58px);line-height:1.04;margin:12px 0 12px}
.forecast-page .forecast-intro{margin:0 0 15px;font-size:14px;line-height:1.55}
.forecast-page .forecast-map{height:clamp(135px,17vh,175px);border-radius:22px}
.forecast-page .forecast-number{padding:13px 20px;gap:5px;border-radius:15px;max-width:calc(100% - 36px)}
.forecast-page .forecast-number strong{font-size:clamp(24px,3.1vw,39px);line-height:1.1}
.forecast-page .forecast-number small{font-size:9px}
.forecast-page .forecast-controls{margin:14px 0}
.forecast-page .forecast-controls>div{padding:20px}
.forecast-page .forecast-controls h2{font-size:25px;margin:8px 0 5px}
.forecast-page .forecast-slider-label{margin-top:14px}
.forecast-page .forecast-pills{margin-top:14px}
.forecast-page .forecast-next button{padding:16px}
.detail-back-row{display:flex;align-items:center;margin-bottom:14px}
.detail-back-row .back-link{margin:0;padding:0;line-height:1.5}
@media(max-width:700px){.forecast-page .page-topline{gap:10px}.forecast-page .forecast-map{height:150px}.forecast-page .forecast-controls{grid-template-columns:1fr}.forecast-page .forecast-number{left:14px}.forecast-page .forecast-number strong{font-size:25px}}

/* V6: jerarquía de alertas */
.alert-overview .alert-stat{cursor:pointer;text-align:left;font:inherit}
.alert-overview .alert-stat:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(10,45,45,.11)}
.ruta-alerts-priority{display:grid;gap:12px;margin-bottom:20px}
.ruta-alert-priority{width:100%;display:flex;align-items:center;gap:18px;text-align:left;border:1px solid #d4e7dc;border-radius:18px;padding:20px 22px;background:#fff;color:#102d35;font:inherit}
button.ruta-alert-priority{cursor:pointer;transition:transform .15s,box-shadow .15s}
button.ruta-alert-priority:hover{transform:translateY(-2px);box-shadow:0 9px 25px rgba(0,0,0,.09)}
.ruta-alert-danger{background:#fff0e5;border:2px solid #e89057}
.ruta-alert-featured{background:#f5faf8}
.ruta-alert-clear{background:#e9f9f0}
.ruta-alert-symbol{flex:0 0 48px;width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#ffdcc2;color:#ae421c;font-size:30px;font-weight:800}
.ruta-alert-featured .ruta-alert-symbol,.ruta-alert-clear .ruta-alert-symbol{background:#d8f3e5;color:#0b7851}
.ruta-alert-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.ruta-alert-copy small{font-size:10px;font-weight:800;letter-spacing:.1em;color:#a64d24}
.ruta-alert-copy strong{font-size:clamp(17px,2vw,23px);line-height:1.2}
.ruta-alert-copy>span{font-size:13px;color:#526a6c}
.ruta-alert-copy b{font-size:15px;color:#a6441b;margin-top:3px}
.ruta-alert-cta{white-space:nowrap;font-size:13px;font-weight:800;color:#0c5d49}
@media(max-width:700px){.ruta-alert-priority{padding:15px;gap:10px}.ruta-alert-symbol{flex-basis:38px;width:38px;height:38px}.ruta-alert-cta{font-size:11px}}

/* V7 — detalle de alertas coherente con resumen por categoría */
.alert-detail-page .detail-back-row{display:flex;align-items:center;margin:0 0 22px}
.alert-detail-page .detail-back-row .back-link{display:inline-flex;align-items:center;gap:8px}
.ruta-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:16px;margin:24px 0}
.ruta-detail-card{border:1px solid #d4e5db;background:#fff;border-radius:22px;padding:24px;box-shadow:0 9px 25px rgba(13,52,48,.035)}
.ruta-detail-exceeded{border-top:4px solid #ed975c}
.ruta-detail-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.ruta-detail-warning{font-size:10px;font-weight:800;letter-spacing:.08em;color:#b34b25;background:#fff0e6;border-radius:999px;padding:8px 10px}
.ruta-detail-label{font-size:10px;font-weight:800;letter-spacing:.12em;color:#147c61}
.ruta-detail-card h3{font-size:clamp(19px,2vw,25px);line-height:1.2;margin:8px 0 20px;color:#102d35}
.ruta-detail-card p{font-size:13px;color:#657e7b}
.ruta-detail-amounts{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:18px}
.ruta-detail-amounts>div{display:flex;flex-direction:column;gap:7px;min-width:0}
.ruta-detail-amounts small{font-size:12px;color:#6a817e}
.ruta-detail-amounts strong{font-size:clamp(16px,2vw,23px);white-space:nowrap;font-variant-numeric:tabular-nums}
.ruta-detail-track{height:9px;border-radius:20px;background:#e3eee8;overflow:hidden;margin-bottom:16px}
.ruta-detail-track span{display:block;height:100%;border-radius:20px}
.ruta-detail-overrun{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 0;color:#b34b25;border-top:1px solid #f3dfd1;font-size:14px}
.ruta-detail-overrun strong{font-size:clamp(16px,2vw,21px);font-variant-numeric:tabular-nums}
.ruta-detail-link{display:block;width:100%;padding:14px 16px;border:0;border-radius:12px;background:#dff4e9;color:#075943;font-weight:800;text-align:center;cursor:pointer;margin-top:10px}
.ruta-detail-link:hover{background:#c7eddc}
.ruta-detail-feature-amount{font-size:26px;color:#102d35}
.ruta-detail-empty{padding:30px;border-radius:20px;background:#fff;border:1px solid #d4e5db;margin:24px 0}
@media(max-width:600px){.ruta-detail-card{padding:17px}.ruta-detail-amounts strong{font-size:16px}.ruta-detail-overrun{align-items:flex-start;flex-direction:column}}

/* V8 · Bienvenida: CTA visible sin desplazamiento en escritorio */
@media (min-width:761px){
 .welcome-page{height:calc(100dvh - 235px);min-height:480px;max-height:760px;padding:clamp(20px,2.2vh,30px) clamp(26px,3.5vw,50px);grid-template-rows:minmax(0,1fr) auto auto;align-content:stretch}
 .welcome-logo{font-size:clamp(58px,9vh,88px);margin:clamp(6px,1vh,14px) 0 0;letter-spacing:-6px}
 .welcome-subtitle{font-size:10px;letter-spacing:4px;margin:0 0 8px}
 .welcome-copy h1{font-size:clamp(35px,5.4vh,55px);line-height:1.02;margin:8px 0 10px;letter-spacing:-2px}
 .welcome-lead{font-size:clamp(12px,1.6vh,15px);line-height:1.4;margin:0;max-width:520px}
 .welcome-actions{margin-top:12px;max-width:780px;gap:12px}
 .welcome-actions button{min-height:55px;padding:11px 19px;font-size:clamp(14px,1.9vh,18px);border-radius:15px}
 .welcome-actions button span svg{width:22px;height:22px}
 .welcome-note{margin:9px 0 0;font-size:10px}
 .welcome-map{top:16%;width:60%}
}
@media (min-width:761px) and (max-height:740px){
 .welcome-page{height:calc(100dvh - 215px);min-height:390px}
 .welcome-logo{font-size:55px}.welcome-copy h1{font-size:34px}.welcome-lead{font-size:12px}
 .welcome-actions button{min-height:48px}.welcome-note{margin-top:6px}
}

/* V9 · Bienvenida equilibrada: texto y acciones visibles en un solo viewport */
@media (min-width:761px){
 .welcome-page{box-sizing:border-box;height:auto;min-height:0;max-height:none;padding:clamp(20px,3vh,32px) clamp(25px,3.4vw,45px);grid-template-columns:minmax(0,1fr) minmax(0,.9fr);grid-template-rows:auto auto auto;align-content:center;gap:0 14px}
 .welcome-copy{grid-column:1;grid-row:1;max-width:480px}
 .welcome-logo{font-size:clamp(48px,7vh,68px);margin:9px 0 0;letter-spacing:-4px}
 .welcome-subtitle{font-size:9px;letter-spacing:3px;margin:0 0 9px}
 .welcome-copy h1{font-size:clamp(29px,4.5vh,43px);line-height:1.08;letter-spacing:-1.7px;margin:7px 0 12px}
 .welcome-lead{font-size:clamp(11px,1.7vh,14px);line-height:1.4;max-width:390px}
 .welcome-map{top:8%;right:0;width:56%;height:92%;opacity:.88;mask-image:linear-gradient(to right,transparent,#000 25%)}
 .welcome-actions{grid-column:1/-1;grid-row:2;max-width:100%;margin-top:clamp(17px,3vh,28px);gap:12px}
 .welcome-actions button{min-height:49px;padding:10px 18px;font-size:clamp(13px,1.8vh,16px);border-radius:14px}
 .welcome-note{grid-column:1/-1;grid-row:3;margin-top:9px;font-size:10px}
}
@media (min-width:761px) and (max-height:820px){
 .welcome-page{padding-top:18px;padding-bottom:18px}
 .welcome-logo{font-size:52px;margin-top:5px}
 .welcome-copy h1{font-size:34px;margin:6px 0 9px}
 .welcome-actions{margin-top:17px}
}

/* V10 · Pantallas compactas: priorizar la acción sobre el texto decorativo */
@media(min-width:761px){
 .main-shell main{padding-top:22px;padding-bottom:34px;min-height:0}
 .page-title{font-size:clamp(31px,3.5vw,45px);line-height:1.08;margin:7px 0}
 .page-intro{font-size:13px;line-height:1.5;margin:7px 0 16px}
 .section-head{margin:22px 0 12px}
 .section-head h2{font-size:21px}
 .hero-panel{min-height:0}
 .hero-content{padding:23px 30px}
 .hero-content h1{font-size:clamp(31px,3.4vw,44px);margin:12px 0}
 .hero-content p{line-height:1.45}
 .stat,.card{padding:18px}
 .budget-card{padding:19px}
 .budget-card h3{margin:12px 0 4px}
 .budget-card p{margin-bottom:12px}
 .form-card .field{margin-bottom:12px}
 .connect-wizard{max-width:830px}
 .connect-wizard>.back-link{margin-bottom:3px}
 .wizard-progress{margin:8px 0 12px}
 .wizard-progress span{padding:8px 10px}
 .wizard-card{padding:clamp(20px,3vh,28px) clamp(24px,3vw,36px);border-radius:22px}
 .wizard-art{width:55px;height:55px;border-radius:16px;margin-bottom:11px}
 .wizard-art svg{width:31px;height:31px}
 .wizard-card h1{font-size:clamp(29px,3.5vw,40px);line-height:1.08;letter-spacing:-1.5px;margin:8px 0 9px}
 .wizard-card>p{font-size:13px;line-height:1.45;margin:0 0 13px}
 .wizard-preview{margin-top:12px;margin-bottom:12px}
 .wizard-actions{margin-top:15px}
 .wizard-actions .btn{padding:11px 17px}
 .permission-list{margin-top:12px;margin-bottom:12px}
}
@media(min-width:761px) and (max-height:800px){
 .main-shell main{padding-top:15px;padding-bottom:22px}
 .wizard-card{padding:20px 28px}
 .wizard-progress{margin:5px 0 9px}
 .wizard-art{width:48px;height:48px;margin-bottom:8px}
 .wizard-art svg{width:27px;height:27px}
 .wizard-card h1{font-size:34px;margin:6px 0 8px}
 .wizard-card>p{font-size:12px;line-height:1.35}
 .wizard-actions{margin-top:11px}
}
@media(max-width:760px){
 .wizard-card{padding:22px}
 .wizard-art{width:57px;height:57px;margin-bottom:12px}
 .wizard-art svg{width:32px;height:32px}
 .wizard-card h1{font-size:clamp(29px,7vw,38px);margin:10px 0}
 .wizard-card>p{font-size:13px;line-height:1.5}
 .wizard-actions{margin-top:16px}
}

/* V11 · Bienvenida: acciones fuera del mapa, sin superposiciones */
@media (min-width:761px){
 .welcome-page{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:32px;align-content:center;isolation:isolate}
 .welcome-copy{grid-column:1;grid-row:1;max-width:none}
 .welcome-map{left:auto;right:0;top:0;bottom:0;width:49%;height:100%;opacity:.95;mask-image:none;z-index:0}
 .welcome-actions{grid-column:1;grid-row:2;grid-template-columns:minmax(0,1fr);max-width:none;margin-top:16px;gap:9px}
 .welcome-actions button{width:100%;min-height:45px;box-sizing:border-box;padding:9px 16px;font-size:14px;border-radius:12px;box-shadow:0 2px 7px #102b350c}
 .welcome-start{background:#19c781;color:#082d30}
 .welcome-return{background:#e2f4e9;color:#082d30;border:1px solid #a7d7c2!important}
 .welcome-note{grid-column:1;grid-row:3;max-width:440px;line-height:1.35;margin-top:9px}
}
@media (min-width:761px) and (max-height:780px){
 .welcome-page{padding-top:15px;padding-bottom:15px}
 .welcome-logo{font-size:49px}
 .welcome-copy h1{font-size:31px;margin:5px 0 8px}
 .welcome-actions{margin-top:11px;gap:7px}
 .welcome-actions button{min-height:41px}
}

/* V12: seteo compacto y selector de cuentas */
.route-steps{max-width:920px;margin:0 auto;padding-top:8px}
.route-steps>.back-link{margin:0 0 8px}
.route-steps .journey-progress{margin:5px 0 12px;padding:10px 15px}
.route-steps .journey-label{margin-bottom:7px}
.route-steps .journey-line{height:5px}
.route-steps .setup-panel{padding:clamp(16px,2.2vw,27px) clamp(18px,3vw,35px);border-radius:23px}
.route-steps .setup-heading{margin-bottom:14px;gap:14px}
.route-steps .setup-heading h2{font-size:clamp(22px,2.5vw,31px);line-height:1.15;margin:0 0 5px}
.route-steps .setup-heading p{font-size:12px;line-height:1.4;margin:0}
.route-steps .setup-symbol{width:56px;height:56px;min-width:56px;border-radius:15px}
.route-steps .setup-symbol svg{width:28px;height:28px}
.route-steps .setup-controls{margin-top:16px}
.route-steps .onboard-status{padding:11px 15px;margin:10px 0}
.route-steps .account-type-switch{margin:10px 0;padding:4px}
.route-steps .account-type-switch button{padding:9px}
.route-steps .onboard-account-grid{display:grid;grid-template-columns:1fr;margin-top:10px}
.route-steps .connect-tile{padding:16px}
.route-steps .connect-tile h3{font-size:20px;margin:8px 0 2px}
.route-steps .connect-top{margin-bottom:5px}
.route-steps .read-only-tip{margin-top:10px;padding:9px 12px}
.route-steps .read-only-tip p{font-size:11px}
.route-steps .income-spotlight{padding:20px 24px}
.route-steps .income-spotlight label{font-size:clamp(28px,4vw,45px);margin:8px 0}
.route-steps .income-spotlight input{font-size:inherit;font-variant-numeric:tabular-nums}
.account-picker{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.account-picker label{font-size:12px;font-weight:800;color:#15483e}
.account-picker select{width:100%;min-height:43px;border:1px solid #b9ddcb;border-radius:12px;background:#fff;color:#0b3038;padding:9px 12px;font-size:14px;font-weight:700;cursor:pointer}
.account-picker small{font-size:11px;color:#6b827b}
@media(max-height:790px) and (min-width:761px){.route-steps{padding-top:5px}.route-steps .setup-panel{padding:16px 25px}.route-steps .setup-heading{margin-bottom:10px}.route-steps .journey-progress{margin:3px 0 9px}.route-steps .setup-controls{margin-top:12px}}

/* V13 — recorrido: compactación real, prioridad a las acciones */
@media (min-width:761px){
.route-steps{max-width:920px;padding-top:0}
.route-steps>.back-link{display:inline-flex;margin:0 0 5px;font-size:11px}
.route-steps .journey-progress{padding:7px 12px;margin:3px 0 8px;border-radius:14px}
.route-steps .journey-label{margin-bottom:4px}
.route-steps .setup-panel{padding:14px 24px 12px;border-radius:19px}
.route-steps .setup-heading{gap:10px;margin-bottom:9px}
.route-steps .setup-heading h2{font-size:clamp(20px,2.1vw,27px);margin:0 0 2px}
.route-steps .setup-heading p{font-size:11px}
.route-steps .setup-symbol{width:44px;height:44px;min-width:44px;border-radius:12px}
.route-steps .setup-symbol svg{width:23px;height:23px}
.route-steps .setup-controls{margin-top:9px;gap:8px}
.route-steps .onboard-status{margin:5px 0;padding:8px 12px}
.route-steps .account-type-switch{margin:6px 0;padding:3px}
.route-steps .account-type-switch button{padding:7px}
.route-steps .account-picker{margin:6px 0;gap:3px}
.route-steps .account-picker select{min-height:36px;padding:5px 10px}
.route-steps .account-picker small{font-size:10px}
.route-steps .onboard-account-grid{margin-top:5px}
.route-steps .connect-tile{min-height:0;padding:10px 13px;border-radius:13px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px}
.route-steps .connect-top{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:0}
.route-steps .account-mark{width:36px;height:36px;min-width:36px;font-size:11px;border-radius:9px}
.route-steps .connect-status{font-size:10px}
.route-steps .connect-tile h3{grid-column:1;grid-row:2;margin:0;font-size:16px}
.route-steps .connect-tile p{grid-column:1;grid-row:3;margin:0;font-size:10px}
.route-steps .connect-cta{grid-column:2;grid-row:1 / span 3;margin:0;min-width:160px;padding:9px 12px}
.route-steps .read-only-tip{margin-top:6px;padding:6px 10px}
.route-steps .income-spotlight{padding:13px 18px}
.route-steps .income-spotlight label{font-size:clamp(25px,3.3vw,38px)}
.route-steps .setup-controls button{min-height:38px}
}
@media(max-width:760px){
.route-steps{padding:8px 12px 24px}
.route-steps .setup-panel{padding:16px}
.route-steps .setup-heading{gap:10px}
.route-steps .setup-heading h2{font-size:22px}
.route-steps .connect-tile{min-height:0}
.route-steps .setup-controls{margin-top:12px}
}

/* V14 — onboarding compacto y orientación visual */
@media(min-width:761px){
.route-steps{max-width:960px}
.route-steps .setup-panel{padding:12px 20px}
.route-steps .goal-grid{gap:7px}
.route-steps .goal-tile{min-height:56px;padding:10px 14px;border-radius:13px}
.route-steps .choice-row{margin:6px 0 10px;gap:7px}
.route-steps .choice-pill{padding:8px 15px}
.route-steps .field-label{margin:7px 0 5px}
.route-steps .permission-intro{display:grid;grid-template-columns:55px 1fr;gap:3px 13px;text-align:left;max-width:none;margin:0 0 12px;align-items:center}
.route-steps .permission-intro .setup-symbol{grid-row:1 / span 2;margin:0;width:48px;height:48px;border-radius:14px}
.route-steps .permission-intro h2{font-size:clamp(24px,2.5vw,32px);line-height:1.12;letter-spacing:-.7px;margin:0}
.route-steps .permission-intro p{font-size:12px;line-height:1.35;margin:0}
.route-steps .permission-list{gap:7px;margin:8px 0}
.route-steps .permission-list>div{padding:11px 13px}
.route-steps .permission-check{margin:9px 0;padding:10px 12px}
.route-steps .setup-controls{position:sticky;bottom:0;z-index:4;background:linear-gradient(180deg,rgba(255,255,255,.92),#fff 30%);padding-top:7px;margin-top:6px}
.route-steps .connect-tile{grid-template-columns:48px minmax(0,1fr) auto;gap:8px 13px}
.route-steps .connect-top{grid-column:1;grid-row:1}
.route-steps .connect-status{position:absolute;right:18px;top:7px}
.route-steps .connect-tile{position:relative;padding:13px 15px}
.route-steps .connect-identity{grid-column:2;grid-row:1}
.route-steps .connect-identity h3{font-size:15px;margin:0}
.route-steps .connect-identity p{font-size:10px;margin:2px 0 0}
.route-steps .connect-cta{grid-column:3;grid-row:1;margin-top:10px}
}
.route-steps .setup-panel{box-shadow:0 14px 40px rgba(13,75,59,.045)}
.route-steps .goal-tile.chosen{box-shadow:inset 4px 0 #1fc985}
.route-steps .journey-line span{background:linear-gradient(90deg,#14a57b,#4be7a0)}
.route-steps .account-mark{font-size:10px;letter-spacing:-.4px}
@media(max-width:760px){.route-steps .permission-intro{margin-bottom:12px}.route-steps .permission-intro .setup-symbol{width:54px;height:54px;margin-bottom:7px}.route-steps .permission-intro h2{font-size:27px}.route-steps .permission-list>div{padding:11px}.route-steps .connect-identity h3{font-size:16px;margin:4px 0}.route-steps .connect-identity p{font-size:11px}.route-steps .setup-controls{position:sticky;bottom:0;background:#fff;padding:10px 0;z-index:3}}

/* V15 · Selección y vinculación sin tarjeta duplicada */
.route-steps .link-picker-label{font-size:12px;font-weight:800;color:#123e38;margin:13px 0 7px}
.route-steps .link-picker-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:stretch}
.route-steps .link-picker-row select{min-width:0;width:100%;border:1px solid #b6d9c6;background:#fff;border-radius:12px;padding:10px 13px;font:inherit;font-weight:700;color:#102e36}
.route-steps .link-picker-action{min-width:175px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:12px}
.route-steps .link-picker-action:disabled{opacity:.65;cursor:default}
.route-steps .linked-heading{display:flex;justify-content:space-between;align-items:center;margin:17px 0 7px;font-size:13px;color:#123e38}
.route-steps .linked-heading span{font-size:11px;color:#52786d}
.route-steps .linked-account-list{display:grid;gap:7px;max-height:165px;overflow:auto}
.route-steps .linked-account-row{display:flex;align-items:center;gap:11px;padding:9px 11px;border:1px solid #d4e9db;border-radius:12px;background:#f6fbf7}
.route-steps .linked-account-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#dff7e8;color:#087e59;flex-shrink:0}
.route-steps .linked-account-name{display:grid;gap:2px;flex:1;min-width:0}.route-steps .linked-account-name strong{font-size:13px}.route-steps .linked-account-name small{font-size:10px;color:#678178}
.route-steps .linked-account-state{font-size:11px;color:#07865a;display:flex;align-items:center;gap:4px}
.route-steps .linked-account-remove{border:1px solid #d1e4d8;border-radius:9px;padding:7px 10px;background:#fff;color:#245d4d;font-size:11px;font-weight:700;cursor:pointer}
.route-steps .linked-empty{display:flex;align-items:center;gap:10px;padding:13px;border:1px dashed #c7e2d0;border-radius:12px;color:#58776b;font-size:12px}
.route-steps .linked-disclaimer{display:flex;align-items:center;gap:7px;margin:10px 0 0;font-size:10px;color:#6b8177}
@media(max-width:600px){.route-steps .link-picker-row{grid-template-columns:1fr}.route-steps .link-picker-action{min-height:42px}.route-steps .linked-account-state{display:none}.route-steps .linked-account-remove{padding:6px}.route-steps .linked-account-list{max-height:240px}}

/* V16 · Identificación coherente de entidades en todas las pantallas */
.account-mark.account-mark-neutral,.account-mark.account-mark-neutral.mp{background:#103b3a;color:#fff;font-size:clamp(10px,1vw,13px);font-weight:800;letter-spacing:-.4px;white-space:nowrap;padding:0 3px;text-align:center;flex-shrink:0}
.route-steps .account-mark.account-mark-neutral{font-size:10px}

/* V17: ícono diferenciado, conservando la paleta original */
.f2-origin.external{background:#e9f7ef;color:#102b35;border-color:#c9e6d6}
.f2-origin.external .f2-origin-icon{background:#20c77a;color:#062a25}


/* =============================================================
   V18 · Estilos externos para el HTML limpio y lectura móvil
   - Colores de categoría y barras definidos acá (antes estaban
     escritos dentro del HTML que genera app.js).
   - Pie en concordancia con el rótulo VN15.
   - Celular: resumen con "¿En qué se va tu plata?" a primera vista.
   ============================================================= */

/* Colores de cada categoría */
[data-cat="fijos"] { --cat: #20c77a; }
[data-cat="cotidianos"] { --cat: #e69a63; }
[data-cat="opcionales"] { --cat: #65bad6; }
[data-cat="ahorros"] { --cat: #aa9be8; }

.cat-icon[data-cat] {
  background: color-mix(in srgb, var(--cat) 14%, transparent);
}

.cat-icon-form {
  margin-bottom: 20px;
}

.f2-category-symbol[data-cat] {
  background: color-mix(in srgb, var(--cat) 15%, transparent);
  color: var(--cat);
}

.legend i[data-cat] {
  background: var(--cat);
}

/* Barras de avance: elemento <progress> con el aspecto anterior */
progress.progress,
progress.journey-line,
progress.forecast-meter,
progress.ruta-detail-track {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
}

progress.progress {
  height: 9px;
  margin-top: 9px;
  background: #e7efea;
  color: var(--cat, #20c77a);
}

.category-row progress.progress {
  max-width: 230px;
}

progress.journey-line {
  height: 5px;
  background: #cce4d4;
  color: #20c77a;
}

progress.forecast-meter {
  height: 10px;
  border-radius: 10px;
  background: #d7e9dd;
  color: #20c77a;
}

progress.ruta-detail-track {
  height: 9px;
  margin-bottom: 16px;
  background: #e3eee8;
  color: var(--cat, #20c77a);
}

progress.progress::-webkit-progress-bar { background: #e7efea; }
progress.journey-line::-webkit-progress-bar { background: #cce4d4; }
progress.forecast-meter::-webkit-progress-bar { background: #d7e9dd; }
progress.ruta-detail-track::-webkit-progress-bar { background: #e3eee8; }

progress.progress::-webkit-progress-value,
progress.ruta-detail-track::-webkit-progress-value {
  background: var(--cat, #20c77a);
  border-radius: 20px;
}

progress.progress::-moz-progress-bar,
progress.ruta-detail-track::-moz-progress-bar {
  background: var(--cat, #20c77a);
  border-radius: 20px;
}

progress.journey-line::-webkit-progress-value {
  background: linear-gradient(90deg, #14a57b, #4be7a0);
  border-radius: 20px;
  transition: width .3s ease;
}

progress.journey-line::-moz-progress-bar {
  background: linear-gradient(90deg, #14a57b, #4be7a0);
  border-radius: 20px;
}

progress.forecast-meter::-webkit-progress-value {
  background: linear-gradient(90deg, #20c77a, #e69a63);
  border-radius: 10px;
}

progress.forecast-meter::-moz-progress-bar {
  background: linear-gradient(90deg, #20c77a, #e69a63);
  border-radius: 10px;
}

/* Dona del presupuesto: anillo en SVG */
.donut {
  background: none;
}

.donut-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.donut-arc {
  fill: none;
  stroke: var(--cat);
  stroke-width: 24;
}

.donut-center {
  z-index: 1;
}

/* Detalles que antes estaban escritos en el HTML */
.crumb {
  margin: 0;
}

.linked-dot {
  color: #0caa6e;
}

.list-row .value-in {
  color: #168b5a;
}

.list-row .value-out {
  color: #102b35;
}

.note-spaced,
.actions-spaced {
  margin-top: 20px;
}

.hint-spaced {
  margin-top: 22px;
}

/* Enlace para saltar al contenido (igual que en el rótulo) */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: #20c77a;
  color: #102b35;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

/* Pie: leyenda legal del rótulo VN15 */
.app-footer {
  flex-direction: column;
  gap: 14px;
}

.app-footer-legal {
  font-size: 11px;
  line-height: 1.7;
  color: #74878b;
}

.app-footer-legal p {
  margin: 4px 0 0;
  max-width: 820px;
}

/* Resumen: separación entre bloques en su nuevo orden */
.hero-panel + .section-head {
  margin-top: 26px;
}

.two-col + .stats {
  margin-top: 22px;
}

/* Celular: menos carga visual, lo importante primero */
@media (max-width: 760px) {
  .demo-pill {
    display: none;
  }

  /* Saludo compacto: el cuadro de gastos queda a primera vista */
  .hero-panel {
    min-height: 0;
  }

  .hero-panel .hero-art,
  .hero-panel .hero-content > p,
  .hero-panel .eyebrow {
    display: none;
  }

  .hero-panel .hero-content {
    padding: 20px 22px;
  }

  .hero-panel h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
    margin: 0;
  }

  .hero-panel + .section-head {
    margin-top: 18px;
  }

  /* Detalles decorativos que no ayudan a moverse en pantalla chica */
  .f2-hub-section-label,
  .f2-bottom,
  .route-hub-live {
    display: none;
  }

}


/* =============================================================
   V18.2 · Navegación en clave GPS, íconos y vinculación simple
   ============================================================= */

/* Íconos de categoría con el color de cada destino */
.cat-icon[data-cat],
.f2-category-symbol[data-cat] {
  color: color-mix(in srgb, var(--cat) 60%, #102b35);
}

.cat-icon .ruta-icon,
.f2-category-symbol .ruta-icon,
.map-bubble .ruta-icon,
.route-pin .ruta-icon,
.ruta-alert-symbol .ruta-icon,
.symbol .ruta-icon {
  display: block;
}

.mini-orbit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linejoin: round;
}

/* "Estás en": la ubicación actual, como en un GPS */
.app-shell .crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5d7576;
  font-size: 12px;
  letter-spacing: 0;
}

.app-shell .crumb b {
  color: var(--ink);
}

.crumb-pin {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #0caa6e;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Contadores de pendientes y alertas */
.nav-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e69a63;
  color: #102b35;
  font: 800 11px/20px 'DM Sans', sans-serif;
  text-align: center;
}

.nav-badge[hidden] {
  display: none;
}

/* Barra lateral: el menú es un recorrido y cada sección, una parada */
.app-shell .side-nav {
  position: relative;
  gap: 4px;
}

.app-shell .side-nav::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 28px;
  bottom: 28px;
  border-left: 2px dashed rgba(124, 224, 173, .3);
}

.app-shell .side-nav button {
  position: relative;
  gap: 14px;
  padding: 8px 12px;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.app-shell .side-nav button .nav-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 2px solid #2c5a5a;
  border-radius: 50%;
  background: #123740;
  color: #a9cbc4;
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}

.app-shell .side-nav button:hover {
  background: rgba(255, 255, 255, .05);
}

.app-shell .side-nav button:hover .nav-icon {
  border-color: #2fd48a;
}

.app-shell .side-nav button.active {
  background: linear-gradient(90deg, rgba(47, 212, 138, .16), transparent 90%);
  color: #fff;
  box-shadow: none;
}

.app-shell .side-nav button.active::before {
  display: none;
}

.app-shell .side-nav button.active .nav-icon {
  border-color: #2fd48a;
  background: #2fd48a;
  color: #08372d;
  box-shadow: 0 0 0 6px rgba(47, 212, 138, .18);
}

.app-shell .side-nav .nav-badge {
  margin-left: auto;
}

/* Llegada a cada pantalla: un solo movimiento breve */
#screen.arrive {
  animation: llegada .35s ease-out;
}

@keyframes llegada {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Paso "Conectá los puntos de tu mapa": acción en dos pasos claros */
.link-steps {
  display: grid;
  gap: 20px;
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
}

.link-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.link-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #102b35;
  color: #fff;
  font: 700 14px 'Space Grotesk', sans-serif;
}

.link-step-body h3 {
  margin: 4px 0 10px;
  font: 700 17px/1.25 'Space Grotesk', sans-serif;
  color: var(--ink);
}

.route-steps .link-step .account-type-switch {
  margin: 0;
}

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 8px;
  max-height: 268px;
  margin: 0;
  padding: 2px;
  overflow-y: auto;
  list-style: none;
}

.entity-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.entity-tile:hover {
  border-color: #20c77a;
  background: #f0faf4;
}

.entity-tile .account-mark {
  width: 36px;
  height: 36px;
  font-size: 9px;
}

.entity-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0b986a;
  font-size: 11px;
}

.entity-tile.is-linked {
  border-color: #bfe8d1;
  background: #e8f7ef;
  cursor: default;
}

/* Vinculación en un solo paso: aviso de solo lectura */
.readonly-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 14px 16px;
  border: 1px solid #c6ead6;
  border-radius: 16px;
  background: #e8f7ef;
  color: #14533f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.readonly-note .ruta-icon {
  flex: none;
  color: #0b986a;
}

.wizard-progress-two span {
  flex: 1;
}

/* Celular: barra inferior con paradas sobre una ruta punteada */
@media (max-width: 760px) {
  .topbar {
    justify-content: space-between;
  }

  .app-shell .mobile-dock {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
    background: rgba(12, 42, 48, .95);
  }

  .app-shell .mobile-dock::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 30px;
    border-top: 2px dashed rgba(124, 224, 173, .28);
  }

  .app-shell .mobile-dock button,
  .app-shell .mobile-dock button.active {
    position: relative;
    gap: 5px;
    padding: 4px 0;
    background: transparent;
    color: #b9d6cf;
  }

  .app-shell .mobile-dock button .nav-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid #2c5a5a;
    border-radius: 50%;
    background: #123740;
    transition: background-color .2s, box-shadow .2s;
  }

  .app-shell .mobile-dock button .nav-icon .ruta-icon {
    width: 20px;
    height: 20px;
  }

  .app-shell .mobile-dock button.active {
    color: #fff;
  }

  .app-shell .mobile-dock button.active .nav-icon {
    border-color: #2fd48a;
    background: #2fd48a;
    color: #08372d;
    box-shadow: 0 0 0 5px rgba(47, 212, 138, .22);
  }

  .app-shell .mobile-dock button small {
    font-size: 10px;
  }

  .app-shell .mobile-dock button.active small {
    font-weight: 800;
  }

  .app-shell .mobile-dock .nav-badge {
    position: absolute;
    top: 0;
    left: calc(50% + 9px);
    z-index: 2;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    line-height: 18px;
  }

  .entity-grid {
    grid-template-columns: 1fr;
    max-height: 300px;
  }

  .link-step {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  .link-step-number {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #screen.arrive {
    animation: none;
  }
}


/* =============================================================
   V18.3 · Pantallas compactas, menos texto y tabla de movimientos
   ============================================================= */

/* Texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Logo de la barra superior: solo en celular */
.topbar-logo {
  display: none;
}

/* Botón "Ver todos los movimientos" del resumen */
.card-cta {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

/* Tabla de movimientos: 5 columnas */
.table-card {
  padding: 4px 0 0;
  overflow-x: auto;
}

.movements-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.movements-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: #5f7778;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: left;
  text-transform: uppercase;
}

.movements-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #edf3ef;
  vertical-align: middle;
}

.movements-table tbody tr:hover {
  background: #f5faf7;
}

.movements-table .date {
  color: #5f7778;
  white-space: nowrap;
}

.movements-table .merchant {
  font-weight: 700;
}

.movements-table .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.movements-table .icon-col {
  width: 1%;
  text-align: center;
}

.movements-table .value-in {
  color: #168b5a;
}

.table-account,
.table-cat {
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
}

.table-account .account-mark,
.table-geo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 9px;
}

.table-geo {
  background: #e8f7ef;
  color: #0b986a;
}

.table-cat {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.table-income {
  background: #e8f7ef;
  color: #0b986a;
}

.table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 14px;
  border-top: 1px solid var(--line);
  color: #5f7778;
  font-size: 12px;
  list-style: none;
}

.table-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.table-legend .table-cat {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.table-legend .ruta-icon {
  width: 15px;
  height: 15px;
}

/* Paso de cuentas: todas las entidades a la vista, sin lista repetida */
.entity-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  max-height: none;
  overflow: visible;
}

.entity-name {
  white-space: normal;
  line-height: 1.2;
}

.linked-count {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #0b986a;
  font: 800 11px 'DM Sans', sans-serif;
  vertical-align: middle;
}

.link-help {
  margin: -8px 0 4px 44px;
  color: #6a8182;
  font-size: 12px;
}

/* Flujo de movimientos: todo lo necesario para confirmar en una pantalla */
.f2-compact .f2-heading {
  max-width: none;
  padding: 6px 0 16px;
}

.f2-compact .f2-back {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin: 0 0 12px;
}

.f2-compact .f2-heading .eyebrow {
  display: block;
}

.f2-compact .f2-heading h1 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.f2-compact .f2-heading p {
  margin: 0;
  font-size: 14px;
}

.f2-compact .f2-review-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "pin place amount"
    "pin name amount"
    "pin source amount";
  align-items: center;
  justify-items: start;
  gap: 2px 18px;
  min-height: 0;
  padding: 18px 22px;
  border-radius: 22px;
  text-align: left;
}

.f2-compact .f2-review-pin {
  grid-area: pin;
  padding: 10px;
  border-radius: 16px;
  box-shadow: 0 0 0 6px #20c77a22;
}

.f2-compact .f2-review-pin .ruta-icon {
  width: 28px;
  height: 28px;
}

.f2-compact .f2-review-place {
  grid-area: place;
}

.f2-compact .f2-review-visual h2 {
  grid-area: name;
  font-size: clamp(20px, 2.4vw, 26px);
}

.f2-compact .f2-review-visual > strong {
  grid-area: amount;
  justify-self: end;
  font-size: clamp(22px, 3vw, 34px);
  white-space: nowrap;
}

.f2-compact .f2-review-source {
  grid-area: source;
}

.f2-compact .f2-suggestion {
  margin: 12px 0;
  padding: 14px 18px;
}

.f2-compact .f2-decision {
  grid-template-columns: 2fr 1fr 1fr;
}

.f2-compact .f2-decision button {
  padding: 14px;
}

.f2-compact .f2-category-grid {
  gap: 8px;
}

.f2-compact .f2-category {
  min-height: 0;
  padding: 12px 14px;
}

.f2-compact .f2-wide {
  margin-top: 14px;
}

.f2-compact .f2-completion {
  min-height: 0;
  padding: 18px;
}

.f2-compact .f2-completion-ring {
  width: 76px;
  height: 76px;
}

.f2-compact .f2-completion-ring .ruta-icon {
  width: 36px;
  height: 36px;
}

.f2-compact .f2-foot-actions {
  margin-top: 14px;
}

/* Celular: información más sintética y organizada */
@media (max-width: 760px) {
  /* Una sola barra superior: logo, ubicación y acciones */
  .app-shell .sidebar {
    display: none;
  }

  .app-shell .topbar {
    position: sticky;
    top: 0;
    z-index: 25;
    height: auto;
    min-height: 56px;
    padding: 9px 12px;
    gap: 10px;
    border-bottom: 0;
    background: #102b35;
  }

  .topbar-logo {
    display: block;
    flex: none;
    color: #fff;
    font: 700 25px/1 'Space Grotesk', sans-serif;
    letter-spacing: -2px;
  }

  .topbar-logo span {
    color: #20c77a;
  }

  .app-shell .crumb {
    min-width: 0;
    margin-right: auto;
    padding: 6px 11px 6px 8px;
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .08);
    color: #b9d6cf;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
  }

  .app-shell .crumb b {
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
  }

  .app-shell .top-actions {
    gap: 6px;
  }

  .app-shell .icon-btn,
  .app-shell .exit {
    padding: 7px 10px;
    border-color: rgba(255, 255, 255, .25);
    background: transparent;
    color: #fff;
  }

  /* En la bienvenida y el registro no se muestra la barra inferior */
  .app-shell[data-view="bienvenida"] .mobile-dock,
  .app-shell[data-view="onboarding"] .mobile-dock,
  .app-shell[data-view="conectar-cuenta"] .mobile-dock {
    display: none;
  }

  .app-shell[data-view="bienvenida"] .main-shell,
  .app-shell[data-view="onboarding"] .main-shell,
  .app-shell[data-view="conectar-cuenta"] .main-shell {
    padding-bottom: 0;
  }

  /* Títulos más compactos */
  .page-title {
    font-size: 32px;
    letter-spacing: -1.4px;
  }

  .page-intro {
    margin-bottom: 18px;
  }

  /* Registro: paso de cuentas */
  .setup-heading p {
    display: none;
  }

  .entity-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .entity-tile {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    padding: 7px 22px 7px 8px;
    font-size: 12px;
  }

  .entity-tile .entity-state {
    position: absolute;
    top: 5px;
    right: 5px;
  }

  .entity-tile .entity-state .ruta-icon {
    width: 15px;
    height: 15px;
  }

  .entity-name {
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .app-shell .exit {
    white-space: nowrap;
  }

  .entity-tile .account-mark {
    width: 30px;
    height: 30px;
    font-size: 8px;
  }

  .link-steps {
    gap: 14px;
  }

  .link-help {
    margin-left: 36px;
  }

  /* Vinculación: solo lo necesario para confirmar */
  .connect-wizard .wizard-art,
  .connect-wizard .wizard-card > .eyebrow {
    display: none;
  }

  .connect-wizard .wizard-card {
    padding: 20px 18px;
  }

  .connect-wizard .wizard-card h1 {
    font-size: 28px;
    margin-top: 0;
  }

  .connect-wizard .wizard-progress {
    margin: 10px 0;
  }

  .readonly-note {
    margin: 14px 0 16px;
    padding: 12px 14px;
    font-size: 13px;
  }

  /* Revisión de movimientos */
  .f2-compact .f2-heading h1 {
    font-size: 28px;
  }

  .f2-compact .f2-review-visual {
    gap: 2px 12px;
    padding: 14px 16px;
  }

  .f2-compact .f2-review-pin {
    padding: 8px;
  }

  .f2-compact .f2-review-pin .ruta-icon {
    width: 22px;
    height: 22px;
  }

  .f2-compact .f2-review-visual h2 {
    font-size: 18px;
  }

  .f2-compact .f2-review-visual > strong {
    font-size: 20px;
  }

  .f2-compact .f2-decision {
    grid-template-columns: 1fr 1fr;
  }

  .f2-compact .f2-decision .f2-confirm {
    grid-column: 1 / -1;
  }

  .f2-compact .f2-category small {
    display: none;
  }

  .f2-compact .f2-category {
    padding: 10px 12px;
  }

  /* Edición de presupuesto */
  .cat-icon-form,
  .form-card > .hint {
    display: none;
  }

  /* Tabla de movimientos */
  .movements-table {
    font-size: 13px;
  }

  .movements-table th {
    padding: 10px 6px;
    font-size: 9px;
    letter-spacing: .06em;
  }

  .movements-table td {
    padding: 9px 6px;
  }

  .movements-table th:first-child,
  .movements-table td:first-child {
    padding-left: 12px;
  }

  .movements-table th:last-child,
  .movements-table td:last-child {
    padding-right: 12px;
  }

  .table-account .account-mark,
  .table-geo,
  .table-cat {
    width: 28px;
    height: 28px;
    font-size: 8px;
  }

  .table-cat .ruta-icon {
    width: 16px;
    height: 16px;
  }
}

/* Edición de presupuesto: botones de subcategorías separados */
.subbudget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}


/* =============================================================
   V18.4 · Paso de cuentas: buscador tipo GPS y mapa de paradas
   ============================================================= */

/* Marcas de entidades: bancos en tinta, billeteras en verde */
.account-mark-neutral[data-type="billetera"] {
  background: #20c77a;
  color: #08372d;
}

.account-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.account-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

/* Buscador */
.account-finder {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.finder-label {
  font: 700 17px 'Space Grotesk', sans-serif;
  color: var(--ink);
}

.finder-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 16px;
  border: 2px solid #20c77a;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(16, 43, 53, .07);
  transition: border-color .2s, box-shadow .2s;
}

.finder-field:focus-within {
  box-shadow: 0 0 0 5px rgba(32, 199, 122, .2);
}

.finder-field input {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
}

.finder-field input::placeholder {
  color: #8aa09c;
  font-weight: 500;
}

/* Ícono de ubicación con pulso de "buscando señal" mientras falta completar */
.finder-radar {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e8f7ef;
  color: #0b986a;
}

.finder-field.is-pending .finder-radar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #20c77a;
  animation: senal-gps 1.8s ease-out infinite;
}

@keyframes senal-gps {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(1.9); opacity: 0; }
}

.finder-help {
  margin: 0;
  color: #557071;
  font-size: 13px;
  font-weight: 600;
}

.finder-field.is-pending + .finder-help {
  color: #b5622d;
}

.finder-field.is-error {
  border-color: #c1502f;
  box-shadow: 0 0 0 5px rgba(193, 80, 47, .15);
}

.finder-field.is-error + .finder-help {
  color: #c1502f;
}

/* Resultados */
.search-results:empty {
  display: none;
}

.search-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  max-height: 264px;
  margin: 4px 0 0;
  padding: 2px;
  overflow-y: auto;
  list-style: none;
}

.search-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}

.search-option:hover,
.search-option:focus-visible {
  border-color: #20c77a;
  background: #f0faf4;
}

.search-option .account-mark {
  width: 38px;
  height: 38px;
  font-size: 9px;
}

.search-option-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-option-text strong {
  font-size: 14px;
}

.search-option-text mark {
  background: #c9f2dc;
  color: inherit;
  border-radius: 3px;
}

.search-option-text small {
  color: #6a8182;
  font-size: 11px;
}

.search-option-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #0b986a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.search-option.is-linked {
  border-color: #bfe8d1;
  background: #e8f7ef;
}

.search-empty {
  margin: 4px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: #f4f8f5;
  color: #557071;
  font-size: 14px;
}

/* Atajos: las más usadas */
.finder-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.finder-shortcuts > span {
  flex: none;
  margin-right: 2px;
  white-space: nowrap;
  color: #6a8182;
  font-size: 12px;
  font-weight: 700;
}

.shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
}

.shortcut-chip:hover {
  border-color: #20c77a;
  transform: translateY(-1px);
}

.shortcut-chip .account-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 7px;
}

.shortcut-all {
  padding: 7px 10px;
  border: 0;
  background: none;
  color: #0b986a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Mapa de cuentas: cada cuenta vinculada es una parada del recorrido */
.account-route {
  padding: 14px 16px 6px;
  border-radius: 18px;
  background: #f1f8f4;
}

.account-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-route-head h3 {
  margin: 0;
  font: 700 15px 'Space Grotesk', sans-serif;
}

.account-route-head .linked-count {
  margin: 0;
}

.route-stops {
  position: relative;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 14px 4px 10px;
  overflow-x: auto;
  list-style: none;
}

.route-stops::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 36px;
  border-top: 2px dashed #8fd8b2;
}

.route-stop {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 74px;
}

.route-stop small {
  max-width: 100%;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.route-stop .account-mark,
.stop-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f1f8f4;
  font-size: 9px;
}

.stop-dot {
  display: grid;
  place-items: center;
  background: #102b35;
  color: #fff;
}

.stop-dot-empty {
  border: 2px dashed #20c77a;
  background: #fff;
  color: #0b986a;
  cursor: pointer;
}

.stop-dot-empty:hover {
  background: #e8f7ef;
}

.stop-remove {
  position: absolute;
  top: -4px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #557071;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.stop-remove:hover {
  border-color: #c1502f;
  color: #c1502f;
}

@media (max-width: 760px) {
  .finder-field {
    min-height: 54px;
    padding: 0 12px;
  }

  .finder-field input {
    height: 50px;
    font-size: 16px;
  }

  .search-list {
    grid-template-columns: 1fr;
    max-height: 230px;
  }

  .finder-shortcuts {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .shortcut-chip {
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finder-field.is-pending .finder-radar::after {
    animation: none;
  }
}

/* RUTA: prioridad de interacción de los campos del onboarding */
.route-steps .setup-panel, .route-steps .setup-profile, .route-steps .finder-field,
.route-steps .budget-grid, .route-steps .budget-remaining { position:relative; }
.route-steps input, .route-steps select, .route-steps textarea {
  position:relative; z-index:10; pointer-events:auto !important;
  cursor:text; user-select:text; -webkit-user-select:text;
}
.route-steps input:focus { outline:2px solid #20c77a; outline-offset:2px; }
/* El cursor decorativo no se muestra al editar texto */
body:has(.route-steps input:hover) .map-cursor,
body:has(.route-steps input:focus) .map-cursor { opacity:0 !important; }

/* Las capas ornamentales no deben capturar clics de formularios. */
.route-steps .finder-radar,.route-steps .finder-radar::before,.route-steps .finder-radar::after,
.route-steps .setup-panel::before,.route-steps .setup-panel::after,
.route-steps .finder-field::before,.route-steps .finder-field::after {pointer-events:none!important}
.route-steps input,.route-steps textarea,.route-steps select{isolation:isolate;pointer-events:auto!important}

/* RUTA V24 · Ajustes móviles. Escritorio sin cambios. */
@media(max-width:760px){
.welcome-page{display:flex;flex-direction:column;min-height:0;padding:20px 18px 22px;gap:0}
.welcome-logo{margin-top:0;font-size:clamp(52px,13vw,76px)}
.welcome-copy h1{font-size:clamp(32px,8vw,42px);margin:10px 0 7px}
.welcome-map{position:relative;inset:auto;width:100%;height:clamp(105px,18svh,155px);flex:none;margin:4px 0 10px;opacity:.9;mask-image:none;border-radius:16px}
.welcome-map svg{inset:0;width:100%;height:100%}
.welcome-actions{position:relative;z-index:2;display:grid;grid-template-columns:1fr;gap:9px;margin:0;width:100%}
.welcome-actions button{min-height:51px;padding:10px 15px;font-size:15px;font-weight:700;border-radius:13px}
.welcome-start{background:#102b35!important;color:#fff!important;border:1px solid #102b35!important}
.welcome-return{background:#20c77a!important;color:#102b35!important;border:1px solid #159c60!important}
.topbar-logo{font-family:'Space Grotesk',Arial,sans-serif!important;font-weight:700;letter-spacing:-1.5px}
.route-steps .journey-progress{margin-top:0}
.route-steps .setup-panel{padding:16px}
.route-steps .setup-heading{margin-bottom:12px}
.route-steps .setup-heading h2{font-size:clamp(21px,5.5vw,27px);line-height:1.16}
.profile-choices{margin-top:15px}
.profile-choices .field-label{margin:12px 0 7px;font-size:12px}
.profile-choices .field-label small{font-weight:400;color:#647b83}
.profile-choices .goal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.profile-choices .goal-tile{min-width:0;min-height:82px;padding:11px 9px;gap:7px;font-size:12px}
.profile-choices .goal-tile span{line-height:1.25}
.route-steps .setup-controls{position:sticky;bottom:0;background:#fff;padding:12px 0 3px;margin-top:12px;z-index:3}
.f2-shell .f2-heading>p{font-size:12px;line-height:1.45;margin:7px 0 12px}
.f2-hub .f2-hub-title p,.f2-hub .f2-origin small{display:none}
.f2-hub .f2-origin{min-height:125px;padding:15px}
.f2-hub .f2-origin strong{font-size:19px}
.f2-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 2px}
.f2-bulk-toolbar label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:700}
.f2-bulk-toolbar button{font-size:11px;padding:10px}
.f2-select-row{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:5px}
.f2-bulk-check{display:flex;align-items:center;justify-content:center;min-height:44px}
.f2-bulk-check input,.f2-bulk-toolbar input{width:18px;height:18px;accent-color:#159c60;cursor:pointer}
.f2-select-row .f2-ticket{min-width:0;width:100%}
}
@media(min-width:761px){.f2-bulk-toolbar,.f2-bulk-check{display:none!important}.f2-select-row{display:block}}

/* ==============================================================
   RUTA V25 | Identidad y controles compartidos
   =============================================================== */
.topbar-logo img{display:block;width:100%;height:auto;max-height:100%;object-fit:contain}
.route-switch{display:inline-flex!important;align-items:center;justify-content:flex-start;flex:0 0 40px;width:40px!important;height:24px!important;min-height:24px;border:0!important;border-radius:99px!important;padding:3px!important;background:#c6d9cf!important;cursor:pointer!important;appearance:none!important;position:relative;z-index:15;transition:background .18s}
.route-switch.is-on{background:#20bd79!important}
.route-switch-thumb{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #102b3530;transition:transform .18s}
.route-switch.is-on .route-switch-thumb{transform:translateX(16px)}
.route-switch:focus-visible,.f2-bulk-check:focus-visible{outline:3px solid #102b35;outline-offset:3px}
.f2-bulk-check{width:25px;height:28px;min-height:28px;border:1.5px solid #96b6a7;background:#fff;border-radius:5px;display:grid;place-items:center;color:white;padding:0;cursor:pointer}
.f2-bulk-check.is-selected{background:#0c9f69;border-color:#0c9f69}
.f2-select-all{display:flex;align-items:center;gap:7px;background:transparent;border:0;padding:8px 2px;font-size:12px;font-weight:700;color:#102b35;cursor:pointer}
.f2-check-box{width:18px;height:18px;border:1.5px solid #96b6a7;border-radius:4px;display:grid;place-items:center;color:#fff}
.f2-select-all[aria-checked="true"] .f2-check-box{background:#0c9f69;border-color:#0c9f69}
@media(min-width:761px){
  /* Pantalla de bienvenida: mayor presencia en escritorio */
  .app-shell[data-view="bienvenida"] .main-shell main{max-width:none;padding-top:clamp(20px,3vh,36px);padding-bottom:24px}
  .app-shell[data-view="bienvenida"] .welcome-page{min-height:clamp(490px,calc(100dvh - 155px),900px);height:auto;max-height:none}
  .app-shell[data-view="bienvenida"] .welcome-logo{font-size:clamp(62px,6vw,96px)}
  .app-shell[data-view="bienvenida"] .welcome-copy h1{font-size:clamp(38px,4vw,62px)}
  .app-shell[data-view="bienvenida"] .welcome-actions button{min-height:53px}
  .topbar-logo{display:block;width:75px;height:27px;flex:none}
}
/* ==============================================================
   RUTA V25 | Celular <= 760 px | ritmo, escala y composición
   =============================================================== */
@media(max-width:760px){
  .topbar-logo{display:flex;align-items:center;justify-content:center;width:48px;height:22px;letter-spacing:normal}
  .topbar-logo img{width:48px;height:auto;filter:brightness(0) invert(1)}
  .app-shell[data-view="bienvenida"] .main-shell main{padding:10px 12px 12px;min-height:calc(100dvh - 56px)}
  .app-shell[data-view="bienvenida"] .welcome-page{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(210px,1fr) auto;gap:10px;padding:clamp(16px,3svh,28px) 17px 20px;min-height:calc(100dvh - 85px);height:auto;align-content:stretch}
  .welcome-copy{grid-column:1;grid-row:1;position:relative;z-index:2}
  .welcome-logo{font-size:clamp(49px,12vw,64px);line-height:1}
  .welcome-copy h1{font-size:clamp(31px,7.8vw,40px);margin:10px 0 7px}
  .welcome-map{grid-column:1;grid-row:2;position:relative;top:auto;right:auto;bottom:auto;left:auto;inset:auto;width:100%;height:100%;min-height:210px;max-height:none;margin:0;opacity:1;mask-image:none;border-radius:16px;overflow:hidden}
  .welcome-map svg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .welcome-map .map-bubble{width:clamp(37px,10vw,52px);height:clamp(37px,10vw,52px)}
  .welcome-map .map-bubble svg{position:static;width:55%;height:55%}
  .welcome-map .map-a{left:14%;bottom:20%}
  .welcome-map .map-b{right:14%;bottom:17%}
  .welcome-map .map-c{right:39%;bottom:49%}
  .welcome-map .map-pin{width:clamp(46px,12vw,64px);height:clamp(46px,12vw,64px);right:10%;top:13%;font-size:24px}
  .welcome-map .map-coordinate{font-size:8px;letter-spacing:1px;right:5%;bottom:4%}
  .welcome-actions{grid-column:1;grid-row:3;display:grid;grid-template-columns:1fr;gap:9px;margin:0;position:relative}
  .welcome-actions button{min-height:49px}
  .route-steps .choice-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex-wrap:nowrap}
  .route-steps .choice-pill{min-width:0;width:100%;padding:9px 1px;font-size:11px;white-space:nowrap;text-align:center}
  .route-steps .setup-panel,.form-card.card,.f2-review-card,.f2-suggestion,.f2-empty{width:100%;max-width:none;box-sizing:border-box}
  .route-steps .setup-panel{border-radius:18px}
  .main-shell main{padding-top:15px}
  .page-title{font-size:clamp(26px,7vw,33px);line-height:1.1;margin:6px 0 8px;letter-spacing:-1px}
  .page-intro{font-size:12px;line-height:1.45;margin:4px 0 13px}
  .eyebrow{font-size:9px;letter-spacing:1.3px}
  .f2-shell .f2-heading>h1{font-size:clamp(24px,6.6vw,32px);line-height:1.1;margin:6px 0}
  .f2-shell .f2-heading>p{margin:5px 0 10px}
  .f2-shell .f2-heading{padding-bottom:10px}
  .f2-hub .f2-hub-intro{padding-top:3px}
  .f2-bulk-toolbar{gap:8px}
  .f2-bulk-toolbar button.btn{min-height:36px}
  .f2-select-row{grid-template-columns:25px minmax(0,1fr);gap:8px}
  .f2-bulk-check{min-height:28px}
  .setup-alert .route-switch{cursor:pointer!important}
}
@media(max-width:760px) and (max-height:660px){
 .app-shell[data-view="bienvenida"] .welcome-page{grid-template-rows:auto minmax(140px,1fr) auto;min-height:calc(100dvh - 85px)}
 .welcome-map{min-height:140px}
}

/* ==============================================================
   RUTA V26 · Refinamiento de componentes y pantallas móviles
   =============================================================== */
/* Interruptor: una sola perilla, sin pseudo-elementos heredados */
.route-switch{appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:25px!important;min-height:25px!important;padding:3px!important;border:0!important;border-radius:99px!important;background:#bfd4c9!important;position:relative!important;cursor:pointer!important;box-shadow:none!important}
.route-switch.is-on{background:#20bd79!important}
.route-switch::before,.route-switch::after,.route-switch-thumb::before,.route-switch-thumb::after{content:none!important;display:none!important}
.route-switch .route-switch-thumb{display:block!important;flex:0 0 19px!important;width:19px!important;height:19px!important;background:#fff!important;border-radius:50%!important;transform:translateX(0)!important;box-shadow:0 1px 3px #102b3530!important}
.route-switch.is-on .route-switch-thumb{transform:translateX(17px)!important}
.movement-open-row{cursor:pointer}
.movement-open-row:hover,.movement-open-row:focus-visible{background:#e8f7ef;outline:2px solid #20bd79;outline-offset:-2px}
.movement-edit-card{display:grid;gap:16px;max-width:650px}
.movement-edit-card label{display:grid;gap:6px;font-size:13px;font-weight:700}
.movement-edit-card input,.movement-edit-card select{width:100%;min-height:44px;padding:10px;border:1px solid #c9dcd2;border-radius:10px;background:#fff;color:#102b35;font:inherit}
.movement-account-note{font-size:12px;color:#5d766c}
.movement-edit-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){
 /* Relación de aspecto fija: el mapa deja de estirarse en vertical */
 .app-shell[data-view="bienvenida"] .welcome-page{grid-template-rows:auto auto auto!important;align-content:center!important;min-height:calc(100dvh - 85px)!important;gap:12px!important}
 .app-shell[data-view="bienvenida"] .welcome-map{aspect-ratio:1.35/1!important;height:auto!important;min-height:0!important;max-height:310px!important;align-self:center!important}
 .app-shell[data-view="bienvenida"] .welcome-map>svg{width:100%!important;height:100%!important;inset:0!important}
 /* Una altura compartida para las cinco tarjetas de configuración */
 .route-steps .setup-panel{min-height:490px!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important}
 .route-steps .setup-controls{margin-top:auto!important;flex-shrink:0!important}
 .movement-edit-card{padding:18px;gap:12px}
 .movements-table .movement-open-row td{padding-top:13px;padding-bottom:13px}
}
@media(max-width:760px) and (max-height:690px){.route-steps .setup-panel{min-height:450px!important}}

/* ===========================================================
   RUTA V27 | Refinamiento de UX móvil (<=760px)
   =========================================================== */
@media (max-width:760px){
  /* Bienvenida: sin barra global, con identidad y composición propia */
  .app-shell[data-view="bienvenida"] .topbar{display:none!important}
  .app-shell[data-view="bienvenida"] .main-shell main{padding:12px!important;min-height:100dvh!important;display:flex;align-items:stretch}
  .app-shell[data-view="bienvenida"] #screen{width:100%;display:flex}
  .app-shell[data-view="bienvenida"] .welcome-page{width:100%;min-height:calc(100dvh - 24px)!important;grid-template-rows:auto minmax(0,1fr) auto!important;align-content:stretch!important;gap:14px!important;padding:clamp(22px,5vh,46px) 17px 22px!important}
  .app-shell[data-view="bienvenida"] .welcome-map{aspect-ratio:1.35/1!important;width:100%;max-height:300px!important;align-self:center!important;object-fit:contain}
  .welcome-brand-image{display:block;width:clamp(110px,32vw,160px);height:auto;filter:none}
  .welcome-copy h1{margin-top:17px!important}
  .welcome-actions{align-self:end}
  /* Tarjetas: una altura común basada en la pantalla más extensa */
  .route-steps .setup-panel{height:560px!important;min-height:560px!important;max-height:none!important;overflow-y:auto!important;align-items:stretch}
  .route-steps .setup-controls{margin-top:auto!important;position:sticky!important;bottom:0!important;background:#fff!important}
  .route-steps .setup-panel .setup-heading{flex-shrink:0}
  /* Resumen */
  .hero-panel .hero-content h1{font-size:clamp(20px,5.8vw,27px)!important;line-height:1.18!important;letter-spacing:-.6px!important}
  .mobile-gps-symbol{display:inline-flex;align-items:center;justify-content:center;color:#20c77a;margin-left:8px}
  .stats .stat-link{border:0;text-align:left;cursor:pointer;font:inherit;color:inherit}
  .stats .stat-link:focus-visible{outline:2px solid #20c77a}
  /* Movimientos editables */
  .movement-list-button{display:flex;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #dce7e1;align-items:center;justify-content:space-between;gap:10px;padding:14px 0;color:inherit;font:inherit}
  .movement-list-button .value{flex-shrink:0}
  .movement-list-button:focus-visible{outline:2px solid #20c77a;outline-offset:2px}
  .movement-edit-card input,.movement-edit-card select{pointer-events:auto!important;user-select:text!important}
  /* Alertas: encabezado en dos líneas y sin bloque de configuración duplicado */
  .alert-status-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important}
  .alert-status-head small{display:block!important;width:100%}
  .alert-preferences{display:none!important}
  /* Cuentas y presupuesto más compactos */
  .app-shell[data-view="cuentas"] .stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .app-shell[data-view="cuentas"] .stats .stat{min-width:0!important;padding:12px!important;min-height:85px!important}
  .app-shell[data-view="cuentas"] .section-head{margin-top:17px!important}
  .app-shell[data-view="presupuesto"] .budget-card{padding:13px!important;min-height:0!important}
  .app-shell[data-view="presupuesto"] .budget-card-top{margin-bottom:7px!important}
  .app-shell[data-view="presupuesto"] .budget-card h3{font-size:18px!important;margin:7px 0 3px!important}
  .app-shell[data-view="presupuesto"] .budget-card p{font-size:11px!important;line-height:1.35!important;margin:3px 0 9px!important}
  .app-shell[data-view="presupuesto"] .budget-card .big{font-size:22px!important;margin:8px 0!important}
  .app-shell[data-view="presupuesto"] .budget-card .foot{padding-top:9px!important}
  /* Saldos por cuenta */
  .balances-list{display:grid;gap:0;padding:8px 14px!important}
  .balance-line{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #dce7e1}
  .balance-line:last-child{border-bottom:0}
  .balance-line>span{display:grid;gap:3px;min-width:0;flex:1}
  .balance-line small{color:#66817c;font-size:11px}
  .balance-line>b{font-size:13px;white-space:nowrap}
  .balance-total{margin-top:12px}
}
@media (max-width:760px) and (max-height:700px){
 .route-steps .setup-panel{height:560px!important;min-height:560px!important}
 .app-shell[data-view="bienvenida"] .welcome-map{max-height:230px!important}
}

/* =============================================================
   RUTA V28 | Ajustes de interfaz por breakpoint
   ============================================================= */
@media (min-width:761px){
  /* La navegación lateral ya identifica a RUTA: no repetir marca arriba */
  .topbar-logo,.topbar .crumb{display:none!important}
  .topbar{justify-content:flex-end!important;min-height:60px!important}
  .app-shell[data-view="bienvenida"] .welcome-brand-image{width:70%!important;max-width:350px!important;height:auto!important;object-fit:contain!important}
  .app-shell[data-view="bienvenida"] .welcome-logo{max-width:100%!important}
  .app-shell[data-view="bienvenida"] .welcome-copy{justify-content:center}
}
@media (max-width:760px){
  /* Bienvenida: mapa protagonista en un bloque proporcionado y botones visibles */
  .app-shell[data-view="bienvenida"] .welcome-page{display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:14px!important;padding:clamp(18px,3.5svh,30px) 17px 19px!important;min-height:calc(100dvh - 24px)!important}
  .app-shell[data-view="bienvenida"] .welcome-copy{flex:none!important}
  .app-shell[data-view="bienvenida"] .welcome-map{flex:1 1 auto!important;aspect-ratio:auto!important;height:clamp(190px,37svh,330px)!important;min-height:190px!important;max-height:330px!important;align-self:stretch!important;border-radius:20px!important;background-color:#e3f4eb!important}
  .app-shell[data-view="bienvenida"] .welcome-map>svg{height:100%!important;width:100%!important;object-fit:cover!important}
  .app-shell[data-view="bienvenida"] .welcome-map .map-path{stroke-width:12!important}
  .app-shell[data-view="bienvenida"] .welcome-actions{flex:none!important;width:100%!important;align-self:stretch!important}
  .app-shell[data-view="bienvenida"] .welcome-copy h1{margin-top:10px!important}
  /* Presupuesto inicial: cuatro categorías en cuatro filas horizontales */
  .route-steps .setup-budget{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
  .route-steps .setup-budget>label{display:grid!important;grid-template-columns:30px minmax(0,1fr) minmax(94px,42%)!important;align-items:center!important;gap:7px!important;padding:8px 9px!important;min-height:52px!important}
  .route-steps .setup-budget>label .cat-icon{margin:0!important}
  .route-steps .setup-budget>label input{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;text-align:right!important}
  .route-steps .setup-budget>label>span:nth-child(2){font-size:11px!important;line-height:1.2!important}
  .route-steps .budget-remaining{padding:12px!important;margin-bottom:10px!important}
  .app-shell[data-view="flow2-bandeja"] .f2-heading{margin-top:0!important}
  .app-shell[data-view="agregar-movimiento"] .f2-back{display:none!important}
  .manual-origin{display:block!important;width:100%;margin-top:12px!important}
  .app-shell[data-view="agregar-movimiento"] .form-card input,.app-shell[data-view="agregar-movimiento"] .form-card select{pointer-events:auto!important;user-select:text!important}
}

/* ================================================================
   RUTA V29 · Móvil · claridad visual, formularios y distribución
   Todas las modificaciones de esta sección son exclusivas del móvil.
   ================================================================ */
@media (max-width:760px){
  .app-shell[data-view="bienvenida"] .welcome-page{padding:23px 18px 17px!important;gap:10px!important;min-height:calc(100dvh - 16px)!important}
  .app-shell[data-view="bienvenida"] .welcome-copy{padding-top:15px!important}
  .app-shell[data-view="bienvenida"] .welcome-copy h1{font-size:clamp(29px,8vw,39px)!important;line-height:1.05!important;margin:15px 0 8px!important;letter-spacing:-1.4px!important}
  .app-shell[data-view="bienvenida"] .welcome-lead{font-size:12px!important;line-height:1.4!important}
  .app-shell[data-view="bienvenida"] .welcome-map{height:clamp(195px,34svh,295px)!important;max-height:295px!important;min-height:195px!important;border:1px solid #d1eadc!important;box-shadow:inset 0 0 0 6px #ffffff55,0 15px 30px #12684d19!important;background:radial-gradient(circle at 78% 20%,#b4efd3 0%,transparent 43%),linear-gradient(135deg,#e8f8ef,#cce9db)!important}
  .app-shell[data-view="bienvenida"] .welcome-map .map-path{filter:drop-shadow(0 4px 3px #008b6d55)!important;stroke-width:13!important}
  .app-shell[data-view="bienvenida"] .welcome-actions{gap:9px!important;margin-top:3px!important}
  .app-shell[data-view="bienvenida"] .welcome-actions button{min-height:53px!important;font-size:14px!important;padding:12px 14px!important;box-shadow:0 5px 12px #103a3012}
  .app-shell[data-view="cuentas"] .page-title{max-width:100%;font-size:27px!important;line-height:1.1!important}
  .app-shell[data-view="cuentas"] .stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:12px 0 14px!important}
  .app-shell[data-view="cuentas"] .stats .stat{width:100%!important;min-width:0!important;min-height:94px!important;padding:12px!important;margin:0!important}
  .app-shell[data-view="cuentas"] .stats .stat strong{font-size:clamp(15px,4.5vw,21px)!important;white-space:nowrap!important}
  .route-steps .setup-budget{gap:7px!important}
  .route-steps .setup-budget>label{display:grid!important;grid-template-columns:27px minmax(0,1fr) minmax(78px,37%)!important;min-height:57px!important;gap:7px!important;padding:7px!important}
  .route-steps .setup-budget>label input{height:38px!important;min-height:38px!important;padding:6px!important;font-size:12px!important;position:relative!important;z-index:2!important;pointer-events:auto!important}
  .route-steps .setup-budget>label>span:nth-child(2){font-size:10px!important;line-height:1.15!important;min-width:0!important}
  .route-steps .setup-panel{min-height:590px!important;height:590px!important;overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important}
  .route-steps .setup-controls{margin-top:auto!important;flex-shrink:0!important;position:sticky!important;bottom:0!important}
  .app-shell[data-view="movimiento-detalle"] .movement-edit-card input,
  .app-shell[data-view="movimiento-detalle"] .movement-edit-card select,
  .app-shell[data-view="agregar-movimiento"] #movement-form input,
  .app-shell[data-view="agregar-movimiento"] #movement-form select,
  .app-shell[data-view="editar"] #budget-form input,
  .app-shell[data-view="editar-ingresos"] #income-edit-form input{position:relative!important;z-index:3!important;pointer-events:auto!important;user-select:text!important;touch-action:manipulation!important;opacity:1!important}
  .app-shell[data-view="editar-ingresos"] .subbudget-row{display:grid;grid-template-columns:1fr 95px auto;gap:6px;align-items:center;margin:8px 0}
  .app-shell[data-view="editar-ingresos"] .subbudget-row input{width:100%;min-width:0;padding:9px 6px;border:1px solid #d5e6dc;border-radius:9px}
  .app-shell[data-view="presupuesto"] .income-edit-entry{text-align:left;cursor:pointer}
  .app-shell[data-view="presupuesto"] .income-edit-entry small{color:#087d5c}
  .app-shell[data-view="presupuesto"] .section-head h2{line-height:1.12!important}
}

/* ======================================================
   RUTA V30 / MÓVIL · correcciones puntuales
   ====================================================== */
@media (max-width:760px) {
  .route-steps .setup-budget {display:flex!important;flex-direction:column!important;gap:7px!important;}
  .route-steps .setup-budget > label {
    display:grid!important;grid-template-columns:26px minmax(0,1fr) 96px!important;
    grid-template-rows:1fr!important;align-items:center!important;
    min-height:57px!important;height:57px!important;gap:7px!important;
    padding:7px 9px!important;overflow:visible!important;
  }
  .route-steps .setup-budget > label > span:nth-child(2) {
    grid-column:2!important;grid-row:1!important;
    font-size:11px!important;line-height:1.2!important;white-space:normal!important;
  }
  .route-steps .setup-budget > label > .cat-icon {grid-column:1!important;grid-row:1!important;}
  .route-steps .setup-budget > label > input {
    grid-column:3!important;grid-row:1!important;position:static!important;
    width:96px!important;height:36px!important;min-width:0!important;
    padding:6px!important;font-size:12px!important;box-sizing:border-box!important;
  }
  .route-steps .setup-panel {overflow:visible!important;}
  .route-steps .setup-controls {position:relative!important;bottom:auto!important;}
  .app-shell[data-view="bienvenida"] .welcome-page {
    justify-content:space-between!important;
    padding:24px 18px 22px!important;gap:18px!important;
  }
  .app-shell[data-view="bienvenida"] .welcome-copy {padding-top:10px!important;}
  .app-shell[data-view="bienvenida"] .welcome-map {
    flex:0 1 auto!important;height:auto!important;min-height:0!important;
    max-height:none!important;aspect-ratio:1.23/1!important;
    margin:auto 0!important;
  }
  .app-shell[data-view="bienvenida"] .welcome-actions {gap:10px!important;margin-top:auto!important;}
  .app-shell[data-view="bienvenida"] .welcome-actions button {min-height:49px!important;font-size:14px!important;}
  .movement-category-open {display:flex;width:100%;text-align:left;background:transparent;border:0;cursor:pointer;align-items:center;justify-content:space-between;padding:13px 2px;}
}

/* RUTA V31 · refinamiento de bienvenida móvil, CSS externo */
@media(max-width:760px){
 .app-shell[data-view="bienvenida"] .welcome-page{padding-top:clamp(34px,6.5vh,60px)!important;padding-bottom:clamp(35px,6vh,62px)!important;gap:8px!important}
 .app-shell[data-view="bienvenida"] .welcome-copy{transform:translateY(9px)}
 .app-shell[data-view="bienvenida"] .welcome-actions{transform:translateY(-13px);gap:10px!important}
 .app-shell[data-view="bienvenida"] .welcome-map{isolation:isolate;background:radial-gradient(ellipse at 74% 22%,#d1f4dc 0,transparent 44%),linear-gradient(135deg,#e4f4e8,#d6efe7 48%,#eff8eb)!important;box-shadow:inset 0 0 0 1px #b3d8c9,0 14px 30px #102b3512}
 .app-shell[data-view="bienvenida"] .welcome-map::before{content:"";position:absolute;inset:0;z-index:0;background:repeating-linear-gradient(0deg,transparent 0 24px,#5b9b8317 25px 26px),repeating-linear-gradient(90deg,transparent 0 24px,#5b9b8317 25px 26px);transform:rotate(-13deg) scale(1.3)}
 .app-shell[data-view="bienvenida"] .welcome-map::after{content:"RUTA  /  01 — 02 — 03";position:absolute;top:12px;left:13px;z-index:2;color:#0e6555;font:700 9px 'Space Grotesk',sans-serif;letter-spacing:2px;background:#ffffffc9;border:1px solid #b7dccb;border-radius:20px;padding:7px 11px}
 .app-shell[data-view="bienvenida"] .welcome-map .map-pin{background:#102b35!important;color:#48df9a!important;box-shadow:0 0 0 7px #2cc58c25,0 8px 20px #102b3538!important}
 .app-shell[data-view="bienvenida"] .welcome-map .map-bubble{box-shadow:0 6px 18px #102b3528!important;border:2px solid #ffffffc9!important}
 .app-shell[data-view="bienvenida"] .welcome-map .map-path{stroke:#16b77a!important;stroke-width:6!important;stroke-dasharray:12 7;filter:drop-shadow(0 2px 3px #13704a40)}
 .app-shell[data-view="bienvenida"] .welcome-map .map-road{stroke:#ffffff!important;stroke-width:15!important}
 .app-shell[data-view="bienvenida"] .welcome-map .map-coordinate{background:#ffffffd9;padding:6px 8px;border-radius:6px;color:#125d50!important}
 .mobile-gps-symbol{opacity:.9}
}
@media(max-width:390px) and (max-height:720px){.app-shell[data-view="bienvenida"] .welcome-page{padding-top:26px!important;padding-bottom:26px!important}.app-shell[data-view="bienvenida"] .welcome-actions{transform:translateY(-6px)}}

/* RUTA V32 · interacción de formularios y refinamiento responsive */
#screen form, #screen .form-card, #screen .movement-edit-card, #screen .wizard-card {position:relative;isolation:isolate;}
#screen form input,#screen form select,#screen form textarea {position:relative!important;z-index:5!important;pointer-events:auto!important;user-select:text!important;-webkit-user-select:text!important;touch-action:manipulation!important;cursor:text!important;}
#screen form select {cursor:pointer!important;}
#screen form label {pointer-events:auto!important;}
#screen form input:focus,#screen form select:focus {outline:2px solid #19bb84!important;outline-offset:2px!important;}
.connect-wizard .wizard-card {min-height:350px;display:flex;flex-direction:column;justify-content:center;}
.connect-wizard .wizard-actions {margin-top:auto;}
@media(max-width:600px){
 .app-shell[data-view="bienvenida"] .welcome-copy h1 {font-size:clamp(33px,8.8vw,43px)!important;line-height:1.09!important;letter-spacing:-.9px!important;}
 .app-shell[data-view="bienvenida"] .welcome-lead {font-size:clamp(14px,3.7vw,17px)!important;line-height:1.5!important;}
 .app-shell[data-view="bienvenida"] .welcome-copy {transform:none!important;padding-top:16px!important;}
 .app-shell[data-view="bienvenida"] .welcome-actions {transform:none!important;gap:11px!important;}
 .app-shell[data-view="bienvenida"] .welcome-actions button {min-height:60px!important;font-size:16px!important;font-weight:700!important;padding:14px 16px!important;}
 .app-shell[data-view="bienvenida"] .welcome-page {gap:13px!important;}
}

/* RUTA V33 · cohesión visual de bienvenida: jerarquía y ritmo vertical */
@media (max-width:600px){
 .app-shell[data-view="bienvenida"] .welcome-page{
   padding:clamp(25px,4.2svh,38px) 18px clamp(22px,3.5svh,32px)!important;
   gap:12px!important;
 }
 .app-shell[data-view="bienvenida"] .welcome-copy{
   padding-top:0!important;transform:none!important;
 }
 .app-shell[data-view="bienvenida"] .welcome-logo{margin:0 0 3px!important;line-height:1!important;}
 .app-shell[data-view="bienvenida"] .welcome-brand-image{
   width:clamp(155px,51vw,205px)!important;max-width:100%!important;
   display:block!important;
 }
 .app-shell[data-view="bienvenida"] .welcome-subtitle{
   font-size:10px!important;letter-spacing:2.3px!important;margin:1px 0 12px!important;
 }
 .app-shell[data-view="bienvenida"] .welcome-copy h1{
   font-size:clamp(36px,9.7vw,46px)!important;line-height:1.07!important;
   letter-spacing:-1.25px!important;margin:8px 0 9px!important;
 }
 .app-shell[data-view="bienvenida"] .welcome-lead{
   font-size:clamp(14px,3.8vw,17px)!important;line-height:1.35!important;
   margin:0!important;max-width:29ch;
 }
 .app-shell[data-view="bienvenida"] .welcome-actions{
   gap:10px!important;margin-top:0!important;transform:none!important;
 }
 .app-shell[data-view="bienvenida"] .welcome-actions button{
   min-height:64px!important;font-size:clamp(16px,4.15vw,18px)!important;
   padding:15px 18px!important;border-radius:12px!important;
   display:flex!important;align-items:center!important;justify-content:space-between!important;
   line-height:1.15!important;letter-spacing:-.2px!important;
 }
 .app-shell[data-view="bienvenida"] .welcome-actions button svg{width:27px;height:27px;flex-shrink:0;}
}
@media(max-width:600px) and (max-height:730px){
 .app-shell[data-view="bienvenida"] .welcome-page{padding-top:19px!important;padding-bottom:16px!important;gap:8px!important;}
 .app-shell[data-view="bienvenida"] .welcome-copy h1{font-size:34px!important;margin:5px 0 6px!important;}
 .app-shell[data-view="bienvenida"] .welcome-actions button{min-height:53px!important;}
}

/* RUTA V34 · acercar encabezado y acciones al mapa sin mover ni redimensionar el mapa */
@media (max-width:600px){
  .app-shell[data-view="bienvenida"] .welcome-copy{
    transform:translateY(24px)!important;
  }
  .app-shell[data-view="bienvenida"] .welcome-actions{
    transform:translateY(-22px)!important;
  }
}
@media (max-width:600px) and (max-height:730px){
  .app-shell[data-view="bienvenida"] .welcome-copy{transform:translateY(14px)!important;}
  .app-shell[data-view="bienvenida"] .welcome-actions{transform:translateY(-12px)!important;}
}

/* V35 · Afinaciones UX responsive */
@media(max-width:760px){
.f2-hub .f2-origin{min-height:132px!important;display:flex;flex-direction:column;justify-content:space-between;gap:5px}
.f2-hub .f2-origin strong{font-size:17px!important;line-height:1.15}
.category-detail-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-bottom:12px!important}
.category-detail-stats .stat{min-width:0!important;padding:14px 11px!important;border-radius:14px!important}
.category-detail-stats .stat strong{font-size:18px!important;overflow-wrap:anywhere}
.category-detail-stats .category-assigned{background:#e4f8ed!important;border:1px solid #b5e6d0!important}
.category-detail-stats .category-spent{background:#eaf2f7!important;border:1px solid #c9e0ea!important}
.app-shell[data-view="detalle-categoria"] .card{margin-top:10px!important}
.movements-table th:last-child{font-size:0!important}
.movements-table th:last-child::after{content:"Cat.";font-size:9px}
.wizard-card .wizard-preview{margin-top:15px!important;margin-bottom:14px!important}
.wizard-card .wizard-actions{gap:9px!important}
.wizard-complete-link{width:100%;border:0;text-align:left;cursor:pointer;display:flex;align-items:center;gap:9px}
.setup-unlink-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:9px}
.setup-unlink-list button{border:0;background:transparent;color:#477469;font-size:10px;text-decoration:underline;cursor:pointer;padding:5px}
.route-steps .setup-panel:has(#setup-name) .setup-controls{justify-content:flex-end!important}
}

/* V36 · Restaurar jerarquía cromática de la acción principal del onboarding */
.route-steps .setup-controls .btn.btn-primary,
.route-steps .setup-controls button.btn-primary {
  background-color:#2DD18A!important;
  color:#102B35!important;
  border:1px solid transparent!important;
}
.route-steps .setup-controls .btn.btn-primary:hover {
  background-color:#25C782!important;
}
.route-steps .setup-controls .btn.btn-outline {
  background-color:#fff!important;
  color:#102B35!important;
  border:1px solid #dce7e1!important;
}

/* V37 · bajar únicamente título y bajada, sin alterar logo, mapa ni botones */
@media (max-width:600px){
  .app-shell[data-view="bienvenida"] .welcome-copy h1,
  .app-shell[data-view="bienvenida"] .welcome-copy .welcome-lead{
    position:relative;
    top:12px;
  }
}

/* RUTA V38 · Afinación de composición y gestión de cuentas */
@media(max-width:760px){
 .route-steps .setup-heading{display:flex!important;align-items:center!important;gap:11px!important}
 .route-steps .setup-heading>div:last-child{align-self:center!important}
 .route-steps .setup-heading h2{margin:0!important;line-height:1.2!important}
 .connect-wizard .wizard-card{min-height:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;gap:13px!important;padding:22px 16px!important}
 .connect-wizard .wizard-card .wizard-art{display:none!important}
 .connect-wizard .wizard-card>.eyebrow{display:none!important}
 .connect-wizard .wizard-card h1{margin:0!important;line-height:1.17!important}
 .connect-wizard .wizard-card>p{margin:0!important}
 .connect-wizard .wizard-preview{margin:4px 0!important;min-height:65px!important}
 .connect-wizard .readonly-note{margin:0!important}
 .connect-wizard .wizard-actions{margin:0!important;display:grid!important;gap:8px!important}
 .connect-wizard .wizard-complete-link{margin:3px 0!important;min-height:50px!important}
 .app-shell[data-view="cuentas"] .stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;align-items:stretch!important}
 .app-shell[data-view="cuentas"] .stats>.stat{width:auto!important;min-width:0!important;min-height:90px!important;box-sizing:border-box!important;margin:0!important;padding:12px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
 .app-shell[data-view="cuentas"] .stats>.stat strong{font-size:clamp(14px,4vw,19px)!important;white-space:nowrap!important}
 .app-shell[data-view="resumen"] .mobile-gps-symbol{display:none!important}
}
.account-unlink-trigger{display:block;margin:12px 0 20px auto;border:0;background:transparent;color:#627b73;text-decoration:underline;font:inherit;font-size:12px;cursor:pointer;padding:9px}
.unlink-choice{padding:20px!important}.unlink-choice h2{font-size:23px;line-height:1.2;margin:9px 0}.unlink-choice>p{font-size:13px;color:#617970}
.unlink-choice-row{display:flex;align-items:center;gap:12px;width:100%;background:#f0f8f3;border:1px solid #d8e9df;border-radius:12px;padding:12px;margin-top:9px;text-align:left;font:inherit;color:#102b35;cursor:pointer}.unlink-choice-row span:nth-child(2){flex:1;font-weight:700}

/* RUTA · mejoras de filtros y ajuste contextual de presupuesto */
.ruta-filter-bar{margin:12px 0 14px}.ruta-filter-fields{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:10px;padding:13px;background:#e8f4ed;border:1px solid #d1e7d9;border-radius:15px}.ruta-filter-fields label{display:grid;gap:5px;font-size:11px;font-weight:800;flex:1 1 155px}.ruta-filter-fields select,.ruta-quick-budget input{min-width:0;width:100%;padding:10px 12px;border:1px solid #cbded4;border-radius:10px;background:#fff;color:#102b35;font:inherit}.ruta-filter-reset{border:0;background:transparent;color:#047a63;font-size:11px;font-weight:800;padding:10px}.ruta-quick-budget{margin:16px 0}.ruta-quick-budget>label{display:block;font-size:13px;font-weight:800;margin-bottom:10px}.ruta-quick-budget-row{display:flex;gap:10px;align-items:center}.ruta-quick-budget-row input{flex:1;min-width:0}.ruta-quick-budget small{display:block;margin-top:10px;color:#6a8182;font-size:11px}@media(max-width:520px){.ruta-filter-fields{display:grid;grid-template-columns:1fr 1fr}.ruta-filter-fields label{min-width:0}.ruta-filter-reset{grid-column:1/-1;text-align:left}.ruta-quick-budget-row{flex-wrap:wrap}.ruta-quick-budget-row button{flex:1}}

/* RUTA V9 — Primer paso de onboarding móvil: jerarquía y ritmo visual.
   Alcance deliberadamente limitado a la tarjeta con #setup-name. */
@media (max-width:760px){
 .route-steps .setup-panel:has(#setup-name){height:auto!important;min-height:600px!important;max-height:none!important;overflow:visible!important;padding:23px 19px 20px!important;gap:0!important}
 .route-steps .setup-panel:has(#setup-name) .setup-heading{gap:13px!important;margin-bottom:25px!important;align-items:flex-start!important}
 .route-steps .setup-panel:has(#setup-name) .setup-symbol{width:52px!important;height:52px!important;min-width:52px!important;border-radius:15px!important}
 .route-steps .setup-panel:has(#setup-name) .setup-heading>div:last-child{align-self:center!important}
 .route-steps .setup-panel:has(#setup-name) .setup-heading h2{font-size:clamp(20px,5.3vw,25px)!important;letter-spacing:-.5px!important;margin-bottom:7px!important}
 .route-steps .setup-panel:has(#setup-name) .profile-welcome-lead{font-size:12px!important;line-height:1.5!important;color:#5e7775!important;max-width:220px}
 .route-steps .setup-panel:has(#setup-name) .setup-profile label{display:block;font-size:12px!important;line-height:1.4!important}
 .route-steps .setup-panel:has(#setup-name) .setup-profile input{margin-top:10px!important;padding:14px 15px!important;min-height:49px!important;font-size:16px!important;background:#f8fcf9!important}
 .route-steps .setup-panel:has(#setup-name) .profile-choices{margin-top:24px!important}
 .route-steps .setup-panel:has(#setup-name) .profile-choices .field-label{font-size:12px!important;margin:0 0 11px!important;line-height:1.4!important}
 .route-steps .setup-panel:has(#setup-name) .profile-choices .choice-row{margin-bottom:26px!important;gap:7px!important}
 .route-steps .setup-panel:has(#setup-name) .profile-choices .choice-pill{min-height:34px!important}
 .route-steps .setup-panel:has(#setup-name) .profile-choices .field-label small{display:block;margin-top:4px;font-size:10px!important}
 .route-steps .setup-panel:has(#setup-name) .goal-grid{gap:11px!important;margin-top:12px!important}
 .route-steps .setup-panel:has(#setup-name) .goal-tile{min-height:98px!important;padding:15px 11px!important;gap:9px!important;font-size:12px!important;border-radius:13px!important}
 .route-steps .setup-panel:has(#setup-name) .goal-tile span{line-height:1.35!important}
 .route-steps .setup-panel:has(#setup-name) .setup-controls{margin-top:28px!important;padding-top:14px!important;position:relative!important;bottom:auto!important;background:transparent!important}
}

/* V10 · Edición de presupuesto desde detalle de categoría */
.category-detail-stats .category-assigned-link{appearance:none;text-align:left;cursor:pointer;width:100%;font:inherit;transition:box-shadow .2s,transform .2s}
.category-detail-stats .category-assigned-link:hover,.category-detail-stats .category-assigned-link:focus-visible{box-shadow:0 0 0 3px #4bd49a55;outline:0}
.category-detail-stats .category-assigned-link:active{transform:scale(.99)}
.category-assigned-link small{display:flex;justify-content:space-between;align-items:center;gap:8px}
.category-assigned-link small span{font-size:16px;color:#067f60}
.ruta-alert-budget-edit{margin-top:22px;padding:22px 18px}
.ruta-alert-budget-current{display:grid;gap:7px;padding:14px 16px;background:#e5f7ec;border-radius:13px;margin-bottom:24px}
.ruta-alert-budget-current span{font-size:12px;color:#52746b}.ruta-alert-budget-current strong{font-size:22px;color:#102b35}
.ruta-alert-budget-edit form{display:grid;gap:12px}.ruta-alert-budget-edit label{font-size:13px;font-weight:750}
.ruta-alert-budget-edit input{width:100%;min-width:0;padding:13px;border:1px solid #a5d9c3;border-radius:11px;background:#fff;font:inherit;color:#102b35}
.ruta-alert-budget-help{font-size:12px;color:#617978;margin:0 0 12px}.ruta-alert-budget-actions{display:flex;gap:10px;flex-wrap:wrap}.ruta-alert-budget-actions button{flex:1 1 140px}

/* RUTA V11 · Perfil inicial: un solo lenguaje cromático para objetivos y nombre */
@media(max-width:760px){
 .route-steps .setup-panel:has(#setup-name) .setup-profile input{
  background:#eef9f2!important;border:1.5px solid #a8d9c2!important;
  color:#102b35!important;box-shadow:0 2px 0 rgba(16,43,53,.025)!important;
  transition:border-color .18s,box-shadow .18s,background .18s!important;
 }
 .route-steps .setup-panel:has(#setup-name) .setup-profile input::placeholder{color:#58796f!important;opacity:1}
 .route-steps .setup-panel:has(#setup-name) .setup-profile input:focus{
  background:#fff!important;border-color:#20c884!important;
  outline:0!important;box-shadow:0 0 0 3px rgba(32,200,132,.17)!important;
 }
 .route-steps .setup-panel:has(#setup-name) .goal-tile,
 .route-steps .setup-panel:has(#setup-name) .goal-tile:not(.chosen){
  background:#f9fcfa!important;border:1px solid #d8e8df!important;
  color:#102b35!important;box-shadow:none!important;
  transition:background .18s,border-color .18s,box-shadow .18s!important;
 }
 .route-steps .setup-panel:has(#setup-name) .goal-tile.chosen{
  background:#e1f8eb!important;border:1.5px solid #26bd83!important;
  color:#075f4a!important;box-shadow:inset 3px 0 #26bd83!important;
 }
 .route-steps .setup-panel:has(#setup-name) .goal-tile:hover{background:#eff9f3!important;transform:none!important}
 .route-steps .setup-panel:has(#setup-name) .goal-tile.chosen:hover{background:#d8f5e5!important}
 .route-steps .setup-panel:has(#setup-name) .goal-tile:focus-visible{outline:2px solid #087a61!important;outline-offset:3px!important}
}

/* RUTA V12 · Refinamiento integral, escritorio y primera experiencia */
/* Escritorio: los botones de movimientos heredaban estilos nativos de button. */
@media(min-width:761px){
 .app-shell[data-view="movimientos"] .movement-list-button{
  appearance:none;display:flex;width:100%;max-width:none;min-height:80px;
  border:0;border-bottom:1px solid var(--line);border-radius:0;
  background:transparent;box-shadow:none;color:var(--ink);padding:17px 6px;
  text-align:left;align-items:center;justify-content:space-between;gap:24px;
  font:inherit;transition:background .18s;
 }
 .app-shell[data-view="movimientos"] .movement-list-button:last-child{border-bottom:0}
 .app-shell[data-view="movimientos"] .movement-list-button:hover{background:#f1f9f4}
 .app-shell[data-view="movimientos"] .movement-list-button>div:first-child{min-width:0;flex:1}
 .app-shell[data-view="movimientos"] .movement-list-button .primary{font-size:15px;line-height:1.35}
 .app-shell[data-view="movimientos"] .movement-list-button .secondary{font-size:12px;line-height:1.6}
 .app-shell[data-view="movimientos"] .movement-list-button .value{flex-shrink:0;font-size:17px}
 .app-shell[data-view="movimientos"] .card{max-width:100%;min-width:0}
 .app-shell[data-view="movimientos"] .section-head{flex-wrap:wrap}
 .app-shell[data-view="movimientos"] .filters{margin:12px 0 18px}
 .app-shell[data-view="movimientos"] .page-title{max-width:100%}
 .app-shell[data-view="detalle-categoria"] .category-detail-stats{max-width:750px}
 .app-shell[data-view="detalle-categoria"] .card{max-width:750px}
 .app-shell[data-view="editar-presupuesto-alerta"] .ruta-alert-budget-edit{max-width:620px}
 .app-shell[data-view="onboarding"] .route-steps{max-width:980px;margin-inline:auto}
}
/* Resumen: acceso secundario pero claramente accionable. */
.app-shell[data-view="resumen"] .card-cta{
 background:#e5f5ec!important;color:#075b47!important;
 border:1px solid #b7e4cc!important;min-height:45px;
 font-weight:800!important;letter-spacing:.01em;
 box-shadow:inset 0 -2px rgba(15,105,75,.06);
 transition:background .18s,border-color .18s,transform .18s;
}
.app-shell[data-view="resumen"] .card-cta:hover{background:#d4f0e1!important;border-color:#7fceaa!important;transform:translateY(-1px)}
.app-shell[data-view="resumen"] .card-cta:focus-visible{outline:3px solid #27c783;outline-offset:3px}
/* Primer contacto: secciones con ritmo, señalización de recorrido y un único verde de selección. */
.route-steps .setup-panel:has(#setup-name) .setup-intro-kicker{display:block;color:#278666;font-size:10px;font-weight:800;letter-spacing:1.5px;margin-bottom:8px}
.route-steps .setup-panel:has(#setup-name) .setup-title-dot{color:#20c77a}
.route-steps .setup-panel:has(#setup-name) .setup-block-number{display:block;color:#15956b;font-size:10px;font-weight:900;letter-spacing:1.3px;margin-bottom:10px}
.route-steps .setup-panel:has(#setup-name) .setup-block-number span{color:#78918b;letter-spacing:1px}
.route-steps .setup-panel:has(#setup-name) .setup-goals-number{margin-top:22px}
.route-steps .setup-panel:has(#setup-name) .setup-profile{padding:17px 16px 18px;background:#f0faf4;border:1px solid #d7eddf;border-radius:16px}
.route-steps .setup-panel:has(#setup-name) .setup-profile input{background:#fff!important;border-color:#b2d8c2!important}
.route-steps .setup-panel:has(#setup-name) .goal-tile{position:relative}
.route-steps .setup-panel:has(#setup-name) .goal-tile.chosen{background:#e3f8ec!important;border-color:#27bd84!important;box-shadow:inset 3px 0 #27bd84!important}
.route-steps .setup-panel:has(#setup-name) .goal-tile:not(.chosen){background:#fff!important}
@media(max-width:760px){
 .route-steps .setup-panel:has(#setup-name){min-height:0!important;padding:23px 18px 22px!important}
 .route-steps .setup-panel:has(#setup-name) .setup-heading{margin-bottom:21px!important}
 .route-steps .setup-panel:has(#setup-name) .setup-heading h2{font-size:clamp(20px,5vw,24px)!important}
 .route-steps .setup-panel:has(#setup-name) .setup-profile{padding:14px 13px 16px!important}
 .route-steps .setup-panel:has(#setup-name) .setup-profile input{min-height:46px!important;margin-top:8px!important}
 .route-steps .setup-panel:has(#setup-name) .profile-choices{margin-top:19px!important}
 .route-steps .setup-panel:has(#setup-name) .profile-choices .choice-row{margin-bottom:12px!important}
 .route-steps .setup-panel:has(#setup-name) .setup-goals-number{margin-top:17px!important}
 .route-steps .setup-panel:has(#setup-name) .goal-grid{gap:9px!important;margin-top:9px!important}
 .route-steps .setup-panel:has(#setup-name) .goal-tile{min-height:91px!important;padding:12px 10px!important}
 .route-steps .setup-panel:has(#setup-name) .setup-controls{margin-top:23px!important;padding-top:9px!important}
 .app-shell[data-view="resumen"] .card-cta{min-height:46px}
}
@media(max-width:360px){
 .route-steps .setup-panel:has(#setup-name) .goal-tile{padding:10px 7px!important;gap:6px!important;font-size:11px!important}
 .route-steps .setup-panel:has(#setup-name) .setup-profile{padding:12px 10px!important}
}

/* RUTA V13 — Correcciones exclusivamente de escritorio. La interfaz móvil <=760px permanece intacta. */
@media screen and (min-width:761px){
  /* Restaurar la misma selección masiva funcional del móvil. */
  .app-shell .f2-bulk-toolbar{display:flex!important;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 18px;margin:12px 0 16px;background:#eaf7ef;border:1px solid #cce8d9;border-radius:16px}
  .app-shell .f2-bulk-check{display:grid!important;place-items:center!important;width:25px;min-width:25px;height:25px;min-height:25px;flex-shrink:0;padding:0;border:1.5px solid #89b9a1;border-radius:7px;background:#fff;color:#fff;appearance:none;box-shadow:none}
  .app-shell .f2-bulk-check.is-selected{background:#0c9f69;border-color:#0c9f69}
  .app-shell .f2-select-row{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;align-items:center;gap:12px;width:100%;min-width:0}
  .app-shell .f2-select-row .f2-ticket{display:flex;min-width:0;width:100%;max-width:none}
  .app-shell .f2-bulk-toolbar .btn{font-size:12px;min-height:39px;padding:10px 16px}
  .app-shell .f2-bulk-toolbar .btn:disabled{opacity:.48;cursor:not-allowed}
  .app-shell .f2-ticket-stack,.app-shell .f2-preview-list{width:100%;min-width:0}
  .app-shell .f2-ticket-body{min-width:0}
  .app-shell .f2-ticket-end{flex-shrink:0}
  .app-shell .f2-ticket{box-sizing:border-box;box-shadow:none}
  .app-shell .f2-ticket:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(16,43,53,.07)}
  /* Tarjetas de detalle: no heredar el estilo nativo del botón. */
  .app-shell[data-view="detalle-categoria"] .movement-category-open{
    appearance:none;display:flex!important;align-items:center;justify-content:space-between;
    width:100%!important;max-width:none!important;min-width:0;min-height:63px;
    padding:16px 18px!important;margin:0!important;border:0!important;
    border-bottom:1px solid #e1ece6!important;border-radius:0!important;
    background:transparent!important;color:#102b35!important;text-align:left!important;
    box-shadow:none!important;font-family:'DM Sans',sans-serif!important;font-size:14px!important;
  }
  .app-shell[data-view="detalle-categoria"] .movement-category-open:last-child{border-bottom:0!important}
  .app-shell[data-view="detalle-categoria"] .movement-category-open:hover{background:#f0f9f3!important}
  .app-shell[data-view="detalle-categoria"] .movement-category-open span{min-width:0;overflow-wrap:anywhere;font-weight:600}
  .app-shell[data-view="detalle-categoria"] .movement-category-open strong{font:700 15px 'Space Grotesk',sans-serif;white-space:nowrap;margin-left:16px;color:#102b35}
  .app-shell[data-view="detalle-categoria"] .card{padding:8px 12px!important;width:100%;max-width:750px}
  .app-shell[data-view="detalle-categoria"] .category-detail-stats{width:100%;max-width:750px;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .app-shell[data-view="detalle-categoria"] .category-detail-stats .stat{min-width:0;min-height:120px;padding:20px!important;border-radius:18px!important}
  .app-shell[data-view="detalle-categoria"] .category-detail-stats .stat strong{font-size:clamp(22px,2.4vw,30px)!important;line-height:1.15}
  /* Hover contextual: limitar ancho para evitar que tape toda la fila. */
  .route-peek{width:min(270px,calc(100vw - 40px));padding:16px;box-shadow:0 12px 34px rgba(8,45,40,.2)}
  .app-shell .f2-inbox-head{flex-wrap:wrap;gap:14px}
  .app-shell .f2-mini-filters{flex-wrap:wrap}
}

/* V14 · Resumen: acción de consulta destacada, sin competir con el CTA verde principal. */
.app-shell[data-view="resumen"] .card-cta.btn-light{
  width:100%; min-height:48px; margin-top:18px;
  background:#102b35!important; color:#ffffff!important;
  border:1px solid #102b35!important;
  border-radius:13px; font-weight:800!important;
  box-shadow:0 5px 12px rgba(16,43,53,.12)!important;
  display:flex; align-items:center; justify-content:center; gap:11px;
}
.app-shell[data-view="resumen"] .card-cta.btn-light svg{color:#6ce5a7;stroke:currentColor;flex-shrink:0}
.app-shell[data-view="resumen"] .card-cta.btn-light:hover{background:#183d43!important;border-color:#183d43!important;transform:translateY(-1px)}
.app-shell[data-view="resumen"] .card-cta.btn-light:focus-visible{outline:3px solid #20c77a;outline-offset:3px}

/* V15 · Acciones de edición y eliminación: mismo comportamiento en celular y escritorio. */
.app-shell[data-view="movimiento-detalle"] .movement-edit-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) 44px;align-items:stretch;gap:8px;flex-wrap:nowrap}
.app-shell[data-view="movimiento-detalle"] .movement-edit-actions>.btn{min-width:0;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;padding:9px 7px;font-size:clamp(10px,2.7vw,13px)}
.app-shell[data-view="movimiento-detalle"] .movement-edit-actions>.movement-delete-btn{width:44px;padding:0;background:#fff0e6;color:#ad542b;border:1px solid #e69a63;border-radius:12px;box-shadow:none}
.app-shell[data-view="movimiento-detalle"] .movement-edit-actions>.movement-delete-btn:hover{background:#fce1cf;color:#8f3b1d}
.app-shell[data-view="movimiento-detalle"] .movement-edit-actions>.movement-delete-btn:focus-visible{outline:3px solid #e69a63;outline-offset:2px}
.app-shell[data-view="editar-presupuesto-alerta"] .ruta-alert-budget-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.app-shell[data-view="editar-presupuesto-alerta"] .ruta-alert-budget-actions .btn{width:100%;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;padding:10px 6px;font-size:clamp(10px,2.8vw,13px)}

/* RUTA V16 — corrección aislada del paso Distribuí tu presupuesto (móvil). */
@media (max-width:760px) {
  .route-steps .setup-panel:has([data-setup-budget]) .setup-budget {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:9px!important;
    width:100%!important;
  }
  .route-steps .setup-panel:has([data-setup-budget]) .setup-budget > label {
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr) minmax(78px,36%)!important;
    grid-template-rows:minmax(46px,auto)!important;
    align-items:center!important;
    column-gap:8px!important;
    width:100%!important;
    height:auto!important;
    min-height:56px!important;
    padding:8px!important;
    margin:0!important;
    box-sizing:border-box!important;
    overflow:visible!important;
  }
  .route-steps .setup-panel:has([data-setup-budget]) .setup-budget > label > .cat-icon {
    grid-column:1!important;grid-row:1!important;
    width:28px!important;min-width:0!important;margin:0!important;
  }
  .route-steps .setup-panel:has([data-setup-budget]) .setup-budget > label > span:nth-child(2) {
    grid-column:2!important;grid-row:1!important;
    display:block!important;min-width:0!important;
    font-size:11px!important;line-height:1.3!important;
    white-space:normal!important;overflow-wrap:normal!important;
  }
  .route-steps .setup-panel:has([data-setup-budget]) .setup-budget > label > input {
    grid-column:3!important;grid-row:1!important;
    width:100%!important;max-width:100%!important;min-width:0!important;
    height:36px!important;min-height:36px!important;
    margin:0!important;padding:6px 5px!important;
    box-sizing:border-box!important;text-align:right!important;
    font-size:11px!important;position:static!important;
  }
  .route-steps .setup-panel:has([data-setup-budget]) .setup-controls {
    display:flex!important;align-items:center!important;
    justify-content:space-between!important;gap:12px!important;
    margin-top:26px!important;padding-top:12px!important;
    position:relative!important;bottom:auto!important;
  }
  .route-steps .setup-panel:has([data-setup-budget]) .setup-controls > button {
    flex:0 1 auto!important;min-width:0!important;
  }
}
