/* Procura — mobile first. Sin fuentes ni librerías externas. */
:root{color-scheme:light;--bg:#e7e1d3;--surface:#f8f5ef;--surface-alt:#eeeadf;--ink:#0e2436;--muted:#545454;--line:#0e24361c;--orange:#e75a2a;--green:#246649;--green-bg:#dcebdd;--blue:#54758d;--purple:#8a739a;--track:#0e24360c;--shadow:0 16px 45px #0e243612;--radius:22px}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0e2436;--surface:#163044;--surface-alt:#1b394e;--ink:#f1ede3;--muted:#bac6ca;--line:#e7e1d329;--green:#a1dfb6;--green-bg:#234b43;--blue:#89b4d0;--purple:#baa3ca;--track:#e7e1d310;--shadow:0 16px 45px #0002}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:default;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--orange);outline-offset:4px}button,input{min-height:44px}h1,h2,h3,p{margin:0}button{border:0}svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;left:16px;z-index:100;background:var(--surface);padding:12px}.skip-link:focus{top:12px}.brand{font-size:34px;font-weight:800;letter-spacing:-2px;text-decoration:none;line-height:1.2}.brand span{color:var(--orange)}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted)}.demo-label{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:7px}.demo-label i{width:6px;height:6px;border-radius:50%;background:var(--green)}.button{border-radius:12px;padding:14px 20px;font-size:14px;font-weight:650;display:inline-flex;justify-content:center;align-items:center;gap:20px;transition:background .15s,transform .15s}.button:hover:not(:disabled){transform:translateY(-1px)}.primary{background:var(--orange);color:#fff}.primary:hover:not(:disabled){background:#c8461c}.secondary{background:var(--surface);border:1px solid var(--line)}.full{width:100%}.text-button{background:none;padding:10px 0;font-size:13px;font-weight:650;text-align:left}.text-button:hover{text-decoration:underline;text-underline-offset:4px}.welcome{min-height:100svh;display:flex;flex-direction:column;padding:24px}.welcome-header{display:flex;justify-content:space-between;align-items:center}.welcome-content{width:100%;max-width:1100px;margin:auto;padding:56px 0 40px;display:grid;gap:36px}.intro h1{font-size:clamp(39px,7vw,68px);line-height:1.06;letter-spacing:-2.4px;font-weight:650;margin:20px 0 24px;max-width:650px}.intro h1 em{font-style:normal;color:var(--orange)}.intro>p{font-size:16px;color:var(--muted);max-width:300px}.upload-card{padding:20px;border:1px solid var(--line);background:var(--surface);border-radius:26px;box-shadow:var(--shadow)}.dropzone{padding:26px 12px 28px;text-align:center;border:1.5px dashed var(--line);border-radius:15px;margin-bottom:16px;transition:background .15s,border-color .15s}.dropzone.dragging{background:var(--green-bg);border-color:var(--green)}.upload-symbol{display:flex;margin:0 auto 16px;width:48px;height:48px;background:var(--bg);border-radius:14px;align-items:center;justify-content:center;font-size:30px}.dropzone h2{font-size:17px;overflow-wrap:anywhere}.dropzone p{font-size:13px;color:var(--muted);margin:6px 0 18px;overflow-wrap:anywhere}.example{display:block;text-align:center;width:100%;margin-top:6px}.privacy{text-align:center;font-size:11px;line-height:1.6;color:var(--muted);margin-top:13px}.welcome-footer{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:10px;padding-top:20px;border-top:1px solid var(--line)}.welcome-footer span:last-child{display:none}
/* El panel cubre, y después continúa hacia la izquierda. */
.transition{position:fixed;inset:0;background:#0e2436;color:#e7e1d3;z-index:90;display:grid;place-items:center;visibility:hidden;pointer-events:none;clip-path:polygon(100% 0,100% 0,100% 0,100% 0)}.transition.playing{visibility:visible;pointer-events:auto;animation:page-turn .82s cubic-bezier(.65,0,.35,1) both}.transition .brand{font-size:60px;animation:inherit;animation-name:logo-reveal}@keyframes page-turn{0%{clip-path:polygon(100% 0,100% 0,100% 0,100% 0)}45%,55%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}100%{clip-path:polygon(0 0,0 0,0 100%,0 100%)}}@keyframes logo-reveal{0%,15%,100%{opacity:0}40%,60%{opacity:1}}
.sidebar{position:fixed;bottom:0;left:0;right:0;z-index:30;background:var(--surface);border-top:1px solid var(--line);padding:6px 8px max(8px,env(safe-area-inset-bottom))}.app-brand,.sidebar-bottom{display:none}nav{display:grid;grid-template-columns:repeat(4,1fr);gap:2px}.nav-item{padding:8px 2px;display:flex;flex-direction:column;align-items:center;gap:5px;border-radius:12px;font-size:10px;line-height:1.3;background:transparent;color:var(--muted);min-width:0}.nav-item.active{background:var(--bg);color:var(--ink);font-weight:700}.nav-item.active svg{color:var(--orange)}.topbar{padding:20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.mobile-brand{font-size:27px}.company{display:none;font-size:12px;color:var(--muted)}.period{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:10px}.demo-tag{padding:3px 8px;border:1px solid var(--line);border-radius:6px;font-size:10px}.dot{padding:0 8px;color:var(--muted)}#main{padding:30px 18px 110px;max-width:1440px;margin:auto;outline:0}.page-header{display:flex;flex-direction:column;gap:22px;margin-bottom:26px}.page-header h1{font-size:33px;line-height:1.2;letter-spacing:-1.2px;margin:6px 0 8px;font-weight:650;outline:0}.page-header p{font-size:13px;color:var(--muted)}.branch-control{position:relative;z-index:20;max-width:360px;width:100%}.field-label{display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.branch-toggle{width:100%;display:flex;justify-content:space-between;gap:20px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:11px 14px;font-size:13px}.branch-menu{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);padding:10px;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.branch-menu input{width:100%;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:13px}.branch-options{max-height:245px;overflow-y:auto;margin-top:6px}.branch-option{display:flex;width:100%;text-align:left;justify-content:space-between;padding:10px;border-radius:8px;background:transparent;font-size:13px}.branch-option:hover,.branch-option[aria-pressed="true"]{background:var(--bg)}.empty{padding:20px;font-size:13px;color:var(--muted)}.stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}.stat{padding:20px 16px;min-width:0}.stat.total{grid-column:1/-1}.stat-label{font-size:11px;font-weight:500;color:var(--muted);display:block;min-height:34px}.stat-value{font-size:clamp(23px,5.2vw,35px);font-weight:650;letter-spacing:-1.5px;line-height:1.25;margin:5px 0 8px;white-space:nowrap;font-variant-numeric:tabular-nums}.total .stat-value{font-size:38px}.stat-note{font-size:10px;color:var(--muted);display:block}.saving .stat-value{color:var(--green)}.percent{display:inline-block;font-size:11px;vertical-align:middle;letter-spacing:0;background:var(--green-bg);padding:3px 6px;border-radius:5px;margin-left:5px}.opportunity-count{font-size:30px;line-height:1;margin:3px 0 7px;padding:8px 14px;border-radius:10px;color:var(--green);background:var(--green-bg);display:inline-flex;align-items:center;gap:22px;font-weight:700;min-height:48px}.opportunity-count span{font-size:21px}.opportunity-count:hover{box-shadow:inset 0 0 0 1px var(--green)}.modules{display:grid;gap:18px}.module{padding:24px 20px;min-width:0}.module-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:25px}.module-heading h2,.procly h2{font-size:18px;line-height:1.3;font-weight:650;letter-spacing:-.4px}.mini-label{font-size:10px;color:var(--muted);white-space:nowrap}.saving-row{margin:0 0 19px}.bar-label{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:12px;margin-bottom:8px}.bar-label>span{max-width:70%}.bar-label strong{font-size:12px;white-space:nowrap;font-weight:650}.track{height:8px;border-radius:8px;background:var(--track);overflow:hidden}.fill{height:100%;border-radius:inherit;width:var(--width);background:var(--bar);min-width:2px}.module-link{display:flex;align-items:center;justify-content:space-between;width:100%;border-top:1px solid var(--line);padding-top:17px;margin-top:25px}.module-link span{font-size:18px}.comparison+.comparison{border-top:1px solid var(--line);margin-top:23px;padding-top:22px}.comparison-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.comparison-title h3{font-size:13px;font-weight:650}.change{font-size:11px;font-weight:700;background:#e75a2a14;color:var(--orange);padding:3px 8px;border-radius:5px;white-space:nowrap}.change.good{background:var(--green-bg);color:var(--green)}.comparison-line{display:grid;grid-template-columns:78px 1fr 42px;align-items:center;gap:8px;margin:9px 0;font-size:10px;color:var(--muted)}.comparison-line strong{text-align:right;color:var(--ink);font-weight:600}.comparison-caption{font-size:10px;color:var(--muted);margin-top:12px}.procly{padding:24px 20px;margin-top:18px;overflow:hidden}.procly-header{display:flex;align-items:center;gap:14px;margin-bottom:20px}.procly-avatar{width:54px;height:62px;object-fit:cover;object-position:center 33%;border-radius:15px;background:#e7e1d3;flex-shrink:0}.procly h2 span{font-size:11px;color:var(--muted);font-weight:400;letter-spacing:0;display:block;margin-top:4px}.questions{display:flex;flex-wrap:wrap;gap:9px}.question{padding:11px 13px;background:transparent;border:1px solid var(--line);border-radius:10px;font-size:12px;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:15px}.question:hover:not(:disabled){border-color:var(--orange)}.conversation{margin-top:20px;border-top:1px solid var(--line);padding-top:18px;font-size:13px}.user-message{text-align:right;margin-bottom:14px;color:var(--muted);font-size:12px}.answer{max-width:720px;line-height:1.7}.answer .text-button{display:block;color:var(--green)}.response-note{font-size:10px;color:var(--muted);margin-top:10px}.thinking{display:flex;align-items:center;gap:5px;min-height:30px}.thinking i{height:6px;width:6px;background:var(--orange);border-radius:50%;animation:think 1s infinite}.thinking i:nth-child(2){animation-delay:.15s}.thinking i:nth-child(3){animation-delay:.3s}@keyframes think{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}.app-footer{border-top:1px solid var(--line);margin-top:28px;padding-top:16px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:12px}.app-footer span:last-child{display:none}.opportunity-list{display:grid;gap:14px}.opportunity{padding:22px 20px}.opportunity-top{display:flex;gap:14px;align-items:flex-start}.number{height:30px;width:30px;border-radius:9px;display:grid;place-items:center;background:var(--track);font-size:11px;color:var(--muted);flex-shrink:0}.opportunity h2{font-size:17px;font-weight:650;letter-spacing:-.3px}.opportunity p{font-size:12px;color:var(--muted);margin-top:6px}.opportunity-bottom{margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:12px}.opportunity-amount{font-size:24px;letter-spacing:-.8px;color:var(--green);font-weight:650}.opportunity-amount small{font-size:10px;color:var(--muted);letter-spacing:0;font-weight:400}.details{margin-top:18px;border-top:1px solid var(--line);padding-top:4px}.details p{margin-top:14px;font-size:13px;line-height:1.7}.details strong{color:var(--ink);font-weight:600}.comparison-grid{display:grid;gap:18px}.comparison-detail{padding:25px 20px}.comparison-detail h2{font-size:19px;margin:7px 0 5px}.comparison-detail .comparison-title{margin-bottom:20px}.comparison-detail .change{font-size:17px}.comparison-detail .comparison-line{grid-template-columns:85px 1fr 50px;font-size:12px;margin:18px 0}.comparison-detail .track{height:12px}.comparison-detail .comparison-caption{font-size:12px;border-top:1px solid var(--line);padding-top:18px;margin-top:24px;line-height:1.7}.scope{font-size:11px;color:var(--muted)}.settings{max-width:680px;padding:24px}.settings-profile{display:flex;gap:15px;align-items:center;padding-bottom:25px}.avatar{width:40px;height:40px;border-radius:50%;background:var(--bg);display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}.settings-profile strong{font-size:15px}.settings-profile p{font-size:12px;color:var(--muted);margin-top:3px}.setting-row{border-top:1px solid var(--line);padding:22px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px}.setting-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.switch{width:46px;height:27px;min-height:27px;border-radius:20px;background:var(--muted);padding:3px;flex-shrink:0}.switch span{display:block;width:21px;height:21px;border-radius:50%;background:#fff;transition:transform .18s}.switch[aria-checked="true"]{background:var(--green)}.switch[aria-checked="true"] span{transform:translateX(19px)}.theme-buttons{display:flex;background:var(--bg);padding:3px;border-radius:10px}.theme-buttons button{background:none;min-height:38px;font-size:11px;padding:7px 12px;border-radius:7px}.theme-buttons button[aria-pressed="true"]{background:var(--surface);box-shadow:0 2px 6px #0001}.logout{color:var(--orange);margin-top:6px}
@media(min-width:600px){.stat-label{min-height:auto}.stat-value{font-size:35px}.module{padding:28px}.welcome{padding:30px 40px}.welcome-footer span:last-child{display:inline}.comparison-grid{grid-template-columns:1fr 1fr}.app-footer span:last-child{display:inline}}
@media(min-width:960px){.welcome{padding:32px 48px}.welcome-content{grid-template-columns:1.4fr 1fr;align-items:center;gap:80px}.intro>p{max-width:none}.upload-card{padding:24px}.sidebar{width:215px;top:0;right:auto;bottom:0;border-top:0;border-right:1px solid var(--line);padding:32px 18px;display:flex;flex-direction:column}.app-brand{display:block;margin:0 15px 52px;font-size:34px}nav{display:flex;flex-direction:column;gap:7px}.nav-item{flex-direction:row;font-size:13px;gap:13px;padding:13px 15px;min-height:48px;text-align:left}.nav-item.active{box-shadow:inset 3px 0 var(--orange)}.sidebar-bottom{display:block;margin-top:auto;padding:0 10px}.profile{display:flex;gap:10px;align-items:center;margin-top:25px;border-top:1px solid var(--line);padding-top:25px}.profile strong{display:block;font-size:11px}.profile small{display:block;color:var(--muted);font-size:10px}.workspace{margin-left:215px}.topbar{padding:23px 36px;min-height:80px}.mobile-brand{display:none}.company{display:block}#main{padding:36px 32px 28px}.page-header{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:30px}.page-header h1{font-size:36px}.branch-control{width:245px;flex-shrink:0}.stats{grid-template-columns:1.1fr 1.15fr 1fr;gap:16px;margin-bottom:20px}.stat.total{grid-column:auto}.stat{padding:25px 20px}.stat-label{font-size:12px}.stat-value,.total .stat-value{font-size:32px}.stat-note{font-size:11px}.modules{grid-template-columns:1.05fr 1fr;gap:20px}.module{padding:25px 22px}.procly{padding:25px 28px;margin-top:20px}.procly h2 span{display:inline;margin-left:8px}.opportunity{padding:24px 28px}.opportunity-list{max-width:900px}.comparison-detail{padding:26px}.period{font-size:12px}}
@media(min-width:1250px){#main{padding:42px 48px 30px}.topbar{padding-left:48px;padding-right:48px}.stat{padding:26px}.stat-value,.total .stat-value{font-size:38px}.module{padding:28px}.sidebar{width:230px}.workspace{margin-left:230px}.procly-header{float:left;margin:0 30px 0 0}.questions{min-height:62px;align-items:center}.conversation{clear:both}.procly h2 span{display:block;margin-left:0}.bar-label{font-size:13px}}
@media(max-width:359px){#main{padding-left:12px;padding-right:12px}.stats{grid-template-columns:1fr}.stat.total{grid-column:auto}.stat-label{min-height:auto}.stat-value{font-size:30px}.nav-item{font-size:9px}.welcome{padding:18px}.intro h1{font-size:36px}.theme-buttons button{padding:5px 8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.transition.playing{clip-path:none;animation:none}.thinking i{opacity:.6;animation:none}}
/* El porcentaje baja de línea si hace falta, sin reducir la cifra. */
.saving .stat-value{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.saving .percent{margin-left:0;flex-shrink:0}

/* ── Revisión 2: identidad, Geist e interacciones ── */
@font-face{font-family:Geist;src:url('assets/fonts/Geist-ThinItalic.ttf') format('truetype');font-style:italic;font-weight:100;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-ExtraBold.ttf') format('truetype');font-style:normal;font-weight:800;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-MediumItalic.ttf') format('truetype');font-style:italic;font-weight:500;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-ExtraLightItalic.ttf') format('truetype');font-style:italic;font-weight:200;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-BlackItalic.ttf') format('truetype');font-style:italic;font-weight:900;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-ExtraBoldItalic.ttf') format('truetype');font-style:italic;font-weight:800;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-Medium.ttf') format('truetype');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-Italic.ttf') format('truetype');font-style:italic;font-weight:400;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-ExtraLight.ttf') format('truetype');font-style:normal;font-weight:200;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-LightItalic.ttf') format('truetype');font-style:italic;font-weight:300;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-SemiBoldItalic.ttf') format('truetype');font-style:italic;font-weight:600;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-Light.ttf') format('truetype');font-style:normal;font-weight:300;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-SemiBold.ttf') format('truetype');font-style:normal;font-weight:600;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-Black.ttf') format('truetype');font-style:normal;font-weight:900;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-Thin.ttf') format('truetype');font-style:normal;font-weight:100;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-BoldItalic.ttf') format('truetype');font-style:italic;font-weight:700;font-display:swap}
@font-face{font-family:Geist;src:url('assets/fonts/Geist-Bold.ttf') format('truetype');font-style:normal;font-weight:700;font-display:swap}
:root{--danger:#b23b29}
:root[data-theme="dark"]{--danger:#ffae9d}
body,button,input{font-family:Geist,Arial,sans-serif}
body{font-weight:500}
h1,h2,h3,.stat-value,.bar-label strong,.comparison-line strong,.opportunity-amount strong,.settings-profile strong,.profile strong{font-weight:700}
.eyebrow,.mini-label,.field-label,.stat-note,.scope,.comparison-caption,.privacy,.response-note,.app-footer,.welcome-footer,.demo-tag,.demo-label,.profile small,.setting-row small,.close-hint{font-weight:300}
.brand{letter-spacing:normal;display:inline-flex;align-items:center;line-height:1}
.logo{display:block;width:155px;height:auto;max-width:100%}
.logo-light{display:none}
:root[data-theme="dark"] .logo-dark{display:none}
:root[data-theme="dark"] .logo-light{display:block}
.transition .logo-dark{display:none!important}.transition .logo-light{display:block!important}
.transition .logo{width:230px}
.app-brand{margin-left:8px;margin-right:8px}
.mobile-brand .logo{width:110px}
.sidebar-bottom{padding-top:12px}
.sidebar-bottom .profile{border:0;padding-top:0;margin-top:0}
.topbar{justify-content:space-between;min-height:72px}
.header-actions{display:flex;align-items:center;gap:12px;margin-left:auto}
.theme-toggle{display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);width:42px;height:42px;min-height:42px;border-radius:50%;transition:background .15s,color .15s}
.theme-toggle:hover{background:var(--ink);color:var(--surface)}
.theme-toggle svg{width:19px;height:19px}
.page-header{gap:18px;margin-bottom:24px}
.page-header h1{margin:0;line-height:1.15;font-weight:700}
.page-header #page-subtitle:not([hidden]){margin-top:10px;font-weight:500}
.green-text{color:var(--green);font-weight:700}
.branch-toggle{align-items:center;min-height:46px;font-weight:500}
.selector-chevron{width:16px;height:16px;stroke-width:1.5;flex-shrink:0;transition:transform .15s}
.branch-toggle[aria-expanded="true"] .selector-chevron{transform:rotate(180deg)}
.branch-option{justify-content:flex-start;align-items:center;gap:10px;min-height:44px}
.selection-dot{width:13px;height:13px;border:1.5px solid var(--muted);border-radius:50%;position:relative;flex-shrink:0}
.branch-option[aria-pressed="true"] .selection-dot{border-color:var(--orange)}
.branch-option[aria-pressed="true"] .selection-dot::after{content:"";position:absolute;inset:2px;background:var(--orange);border-radius:50%}
.stats{align-items:stretch}
.stat-value,.total .stat-value{font-weight:700}
.opportunity-stat{background:var(--orange);border-color:var(--orange);color:#0e2436;text-align:left;display:flex;flex-direction:column;align-items:stretch;transition:background .15s,transform .15s,box-shadow .15s}
.opportunity-stat:hover{background:#f1764c;box-shadow:0 7px 22px #e75a2a26;transform:translateY(-2px)}
.opportunity-stat:active{transform:translateY(0)}
.opportunity-stat .stat-label,.opportunity-stat .stat-note{color:#0e2436}
.opportunity-stat .count-value{display:flex;align-items:center;justify-content:space-between;width:100%;flex:1;line-height:1.25}
.count-value>span{font-size:25px;font-weight:500}
.opportunity-stat .stat-note{margin-top:auto}
.modules{align-items:start}
.module{align-self:start}
.module-link{width:auto;display:inline-flex;gap:22px;background:var(--surface-alt);border:1px solid var(--line);padding:11px 16px;border-radius:12px;margin-top:8px;min-height:44px;font-weight:500;font-size:12px;text-decoration:none}
.module-link:hover,.module-link:active,.module-link:focus-visible{background:var(--ink);color:var(--surface);text-decoration:none}
.module-link span{font-size:17px}
.module .saving-row:last-of-type{margin-bottom:16px}
.question{background:var(--surface-alt);border-color:transparent;border-radius:16px;padding:12px 16px;font-weight:500;transition:background .15s,color .15s}
.question:hover:not(:disabled),.question:active,.question[aria-pressed="true"],.question:focus-visible{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.question[aria-pressed="true"]:disabled{opacity:1}
.procly-avatar{object-fit:contain;object-position:center;background:transparent;border-radius:0;width:55px;height:60px}
.procly h2{font-weight:700}
.procly h2 span{font-weight:500}
.procly-header{align-items:center}
.questions{align-items:center}
.app-footer{justify-content:flex-start;font-size:12px;padding-top:18px}
.opportunity-list{gap:16px}
.opportunity{padding:24px 20px;position:relative;display:grid;cursor:pointer;overflow:hidden;isolation:isolate;transition:border-color .15s,box-shadow .15s}
.opportunity:hover{border-color:var(--orange)}
.opportunity:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
.opportunity-base,.detail-overlay{grid-area:1/1;min-width:0}
.opportunity-base{display:flex;flex-direction:column;justify-content:space-between;gap:18px;min-height:190px;transition:filter .18s,opacity .18s}
.opportunity-top h2{font-weight:700;line-height:1.3}
.opportunity-bottom{flex-wrap:wrap;margin-top:0;align-items:center;gap:10px}
.opportunity-amount{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;font-size:12px;letter-spacing:0;font-weight:500;color:var(--green)}
.opportunity-amount strong{font-size:26px;letter-spacing:-.6px}
.opportunity-amount small{font-size:11px;font-weight:300;color:var(--muted)}
.detail-label{border:1px solid var(--line);background:var(--surface-alt);padding:10px 13px;border-radius:11px;font-size:11px;display:inline-flex;gap:18px;align-items:center;min-height:40px}
.detail-overlay{display:flex;align-items:center;justify-content:center;visibility:hidden;opacity:0;pointer-events:none;z-index:1;transition:opacity .18s;max-width:680px;justify-self:center;width:100%;padding:4px}
.detail-overlay p{font-size:12px;color:var(--ink);line-height:1.65;margin:0 0 12px}
.detail-overlay p:last-of-type{margin-bottom:0}
.detail-overlay strong{color:var(--orange);font-weight:700}
.close-hint{display:block;font-size:10px;color:var(--muted);margin-top:14px;text-align:center}
.opportunity.is-open .opportunity-base{filter:blur(6px);opacity:.12;pointer-events:none;user-select:none}
.opportunity.is-open .detail-overlay{visibility:visible;opacity:1}
.comparison-grid{align-items:start}
.comparison-title{align-items:center;flex-wrap:wrap;gap:10px}
.comparison-title h2,.comparison-title h3{font-weight:700}
.change{display:inline-flex;align-items:baseline;gap:5px;font-weight:500;font-size:10px;background:color-mix(in srgb,var(--danger) 9%,transparent);color:var(--danger);padding:5px 8px;border-radius:7px}
.change strong{font-size:13px;font-weight:700;line-height:1.2}
.change>span{font-size:10px;font-weight:500}
.change.good{background:var(--green-bg);color:var(--green)}
.change.neutral{color:var(--muted);background:var(--track)}
.comparison-line{grid-template-columns:100px minmax(24px,1fr) 46px;margin:9px 0;font-size:10px}
.versus{display:grid;grid-template-columns:100px 1fr 46px;gap:8px;margin:3px 0}
.versus span{grid-column:2;text-align:center;color:var(--muted);font-size:9px;font-weight:300;line-height:1}
.comparison-detail .comparison-line{grid-template-columns:100px minmax(24px,1fr) 48px;font-size:11px;margin:14px 0}
.comparison-detail .change strong{font-size:18px}
.comparison-detail .change>span{font-size:10px}
.comparison-detail .comparison-caption{font-weight:300}
.comparison+.comparison{margin-top:22px;padding-top:22px}
.settings-profile strong{font-weight:700}
@media(min-width:600px){.opportunity-base{min-height:165px}.detail-overlay p{font-size:13px}.opportunity{padding:25px 28px}}
@media(min-width:960px){.sidebar{padding-top:30px}.app-brand{display:inline-flex;margin-bottom:48px}.app-brand .logo{width:166px}.topbar{min-height:72px;padding-top:15px;padding-bottom:15px}.page-header{align-items:center;margin-bottom:28px;min-height:64px}.page-header h1{font-size:36px}.branch-control{width:260px}.stat{padding:24px 20px}.stat-label{font-weight:500}.opportunity-stat .count-value{margin:5px 0 8px}.procly-avatar{width:58px;height:63px}.comparison-detail .comparison-line{grid-template-columns:100px minmax(24px,1fr) 48px;font-size:11px}.opportunity-list{max-width:950px}.opportunity-base{min-height:160px}}
@media(min-width:1250px){.stat{padding:26px}.procly-header{margin-right:24px}.procly h2 span{font-weight:500}.comparison-detail .comparison-line{grid-template-columns:120px minmax(24px,1fr) 55px;font-size:12px}.comparison-detail .versus{grid-template-columns:120px 1fr 55px}.comparison-detail .change strong{font-size:20px}}
@media(max-width:359px){.comparison-line,.comparison-detail .comparison-line{grid-template-columns:86px minmax(20px,1fr) 43px;font-size:10px}.versus{grid-template-columns:86px 1fr 43px}.opportunity{padding:20px 16px}.opportunity-base{min-height:230px}.detail-overlay p{font-size:12px}.opportunity-amount strong{font-size:24px}}
.app-brand{display:none}
@media(min-width:960px){.app-brand{display:inline-flex}.mobile-brand{display:none}}

/* Revisión final con las métricas reales de Geist. */
:root{--orange-text:#b8421e}
:root[data-theme="dark"]{--orange-text:#ff956e}
.primary{color:#0e2436}
.primary:hover:not(:disabled){background:#f1764c}
.detail-overlay strong,.logout{color:var(--orange-text)}
.branch-menu input{font-size:16px}
.branch-toggle{font-size:14px}
.stat{container-type:inline-size}
.stat-label{font-size:12px;line-height:1.45}
.stat-note,.mini-label,.field-label,.scope,.comparison-caption,.privacy,.response-note,.close-hint{font-size:11px}
.question,.module-link{font-size:13px}
.comparison-line,.comparison-detail .comparison-line{font-size:11px}
.versus span{font-size:11px}
.change>span,.comparison-detail .change>span{font-size:11px}
.total .stat-value{font-size:clamp(26px,12cqi,38px);letter-spacing:-1px}
.saving .stat-value{font-size:clamp(22px,14cqi,38px);letter-spacing:-1px}
.stat-value{font-variant-numeric:tabular-nums}
.opportunity-base{min-width:0}
.opportunity-amount strong{font-variant-numeric:tabular-nums}
.detail-label{font-size:12px}
.theme-toggle{width:44px;height:44px;min-height:44px}
@media(min-width:960px) and (max-width:1199px){
 .stats{grid-template-columns:1fr 1fr}
 .stat.total{grid-column:1/-1}
 .total .stat-value{font-size:38px}
 .saving .stat-value{font-size:34px}
 .modules{grid-template-columns:1fr}
}
@media(min-width:1200px){
 .stats{grid-template-columns:1.25fr 1.05fr .9fr}
 .stat.total{grid-column:auto}
 .total .stat-value{font-size:clamp(26px,12cqi,38px)}
 .saving .stat-value{font-size:clamp(24px,14cqi,38px)}
}
@media(max-width:599px){
 .comparison-grid{grid-template-columns:1fr}
 .question{width:100%}
 .branch-control{max-width:none}
}
@media(max-width:359px){
 .stat-label{min-height:auto}
 .saving .stat-value{font-size:30px}
 .total .stat-value{font-size:32px}
}
/* Revisión producto y conversación. */
.welcome-content{display:flex;flex-direction:column;align-items:center;gap:20px;max-width:540px;margin:32px auto 28px;padding:0;width:100%}
.welcome .upload-card{width:100%}
.dropzone h1{font-size:22px;font-weight:700;line-height:1.25;margin:0 0 22px;letter-spacing:-.5px}
.product-subtitle{font-size:15px;font-weight:500;text-align:center;max-width:380px;line-height:1.5;color:var(--muted)}
.choice-or{display:block;text-align:center;margin:12px 0;font-size:12px;color:var(--muted)}
#start:not([hidden]){margin-top:12px}
.file-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;text-align:left;margin-top:10px;padding:6px 10px;background:var(--surface-alt);border-radius:8px}
.file-row span{overflow-wrap:anywhere;min-width:0}.file-row button{background:transparent;font-size:20px;flex-shrink:0}
.welcome-footer,.app-footer{font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.welcome-footer{margin-top:auto}.privacy-link{background:none;font-size:12px;font-weight:500;padding:8px 0;text-decoration:underline;text-underline-offset:3px}
.workspace{min-height:100svh;display:flex;flex-direction:column}#main{flex:1;width:100%;display:flex;flex-direction:column}#view-content{min-width:0;margin-bottom:28px}.app-footer{margin-top:auto}
.theme-toggle{background:transparent;border:0;border-radius:0}.theme-toggle:hover{background:transparent;color:var(--orange-text)}
.branch-option:hover,.branch-option[aria-pressed="true"]{background:transparent}
.branch-option>span:last-child{padding:4px 7px;border-radius:6px}
.branch-option:hover>span:last-child,.branch-option[aria-pressed="true"]>span:last-child{background:var(--bg)}
.branch-option:hover .selection-dot,.branch-option[aria-pressed="true"] .selection-dot{background:var(--orange);border-color:var(--orange)}
.branch-option[aria-pressed="true"] .selection-dot::after{display:none}
.opportunity-stat{background:var(--surface);border:1.5px solid var(--orange);color:var(--ink)}
.opportunity-stat:hover{background:var(--surface-alt)}.opportunity-stat .stat-label,.opportunity-stat .stat-note{color:var(--muted)}.opportunity-stat .count-value{color:var(--orange-text)}
.saving .stat-note{font-size:11px}.saving .stat-note strong{font-size:12px;font-weight:700}
.comparison-caption{margin-top:20px}.comparison-detail .comparison-caption{margin-top:24px}
.change,.change strong,.change>span,.comparison-detail .change strong,.comparison-detail .change>span{font-size:12px;font-weight:700;line-height:1.35}
.comparison-title{align-items:start}.comparison-title h2,.comparison-title h3{flex:1;min-width:90px}
.module-link{display:flex;width:max-content;margin-left:auto;padding:8px 11px;gap:9px;font-size:13px}
.comparison-grid>.comparison+.comparison{margin-top:0;padding-top:25px}
.procly-header{float:none!important;margin:0 0 18px!important}.procly h2 span{display:block;margin-left:0}
.suggestion-window{overflow:hidden;max-width:100%;margin-bottom:18px;mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent)}
.suggestion-track{display:flex;gap:10px;width:max-content;animation:questions-scroll 38s linear infinite}
.suggestion-track .question{width:auto;white-space:nowrap;flex-shrink:0;border:1px solid var(--line);background:transparent;border-radius:30px;font-size:12px;padding:10px 14px}
.suggestion-track .question:hover,.suggestion-track .question:focus-visible{background:var(--ink);color:var(--surface)}
@keyframes questions-scroll{to{transform:translateX(calc(-50% - 5px))}}
.chat-log{max-height:320px;overflow:auto;display:flex;flex-direction:column;gap:12px;scrollbar-width:thin}
.chat-message{padding:12px 16px;border-radius:16px;max-width:90%;font-size:13px;line-height:1.6;overflow-wrap:anywhere;flex-shrink:0}
.user-chat{align-self:flex-end;background:var(--ink);color:var(--surface)}.assistant-chat{align-self:flex-start;background:var(--surface-alt)}
.chat-log:not(:empty){margin-bottom:18px}.chat-form{display:flex;gap:6px;align-items:center;background:var(--surface-alt);padding:6px;border:1px solid var(--line);border-radius:28px}
.chat-form input{width:100%;min-width:0;border:0;background:transparent;color:var(--ink);font-size:16px;outline-offset:0;padding:8px 4px}
.chat-form button{width:40px;height:44px;flex-shrink:0;background:transparent;display:grid;place-items:center;border-radius:50%;font-size:22px}
.chat-form button:hover{background:var(--surface)}#chat-send{width:30px}.chat-form svg{width:20px;height:20px}
#recording-status{flex:1;display:flex;gap:12px;align-items:center;min-width:0;font-size:13px}.record-wave{color:var(--orange);letter-spacing:3px;animation:think .8s infinite}.recording{background:var(--orange)!important;color:#0e2436}
#privacy-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:24px;width:min(560px,calc(100% - 32px));max-height:85svh;overflow:auto;font-family:Geist,Arial,sans-serif}
#privacy-dialog::backdrop{background:#0e243680;backdrop-filter:blur(5px)}#privacy-dialog h2{font-size:22px;margin:12px 0 20px}#privacy-dialog p{font-size:14px;line-height:1.7;margin-bottom:14px}#privacy-close{display:block;margin-left:auto}
@media(min-width:960px){.welcome-content{margin:48px auto 36px}.opportunity-list{grid-template-columns:1fr 1fr;max-width:none}.opportunity-base{min-height:200px}.opportunity{padding:24px}.detail-overlay p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.suggestion-track{animation:none;flex-wrap:wrap;width:auto}.suggestion-window{mask-image:none}.suggestion-track .question:nth-child(n+6){display:none}.record-wave{animation:none}}
/* Ajustes de entrada, foco, espaciado y gráficos verticales. */
.welcome-actions{display:flex;align-items:center;gap:10px}
#choose-file{border:1px solid var(--orange)}
#example{background:var(--orange);color:#0e2436;border-color:var(--orange);gap:8px}
#example:hover{background:#f1764c}
#example>span{min-width:0}.button-arrow{width:19px;height:19px;flex:0 0 19px;overflow:visible}
.theme-toggle svg{stroke-width:1.25;fill:none}
.product-subtitle{min-height:3em}
.type-cursor{color:var(--orange);font-weight:500;animation:type-blink .9s steps(1) infinite}
@keyframes type-blink{50%{opacity:0}}
.assistant-chat>.text-button{display:block;margin-top:14px;padding:8px 0;font-size:13px}
.module{padding-bottom:24px}
.module-link{margin-top:24px}
.module .saving-row:last-of-type{margin-bottom:0}
.module>.comparison:last-of-type .comparison-caption{margin-bottom:0}
.chat-form input:focus,.chat-form input:focus-visible{outline:none;box-shadow:none}
.chat-form:focus-within{border-color:var(--muted)}
.chat-form+.response-note{margin-top:16px;line-height:1.5}
.chat-form button,#chat-send{width:40px;height:40px;min-height:40px;flex:0 0 40px;font-size:20px}
.chat-form button svg{width:19px;height:19px}
.branch-menu input{background:var(--surface);border:1px solid var(--line)}
:root[data-theme="dark"] .branch-menu input{background:var(--bg)}
.branch-menu input:focus,.branch-menu input:focus-visible{outline:none;box-shadow:none;border-color:var(--muted)}
.vertical-comparison{padding:24px;min-width:0;align-self:stretch;display:flex;flex-direction:column}
.vertical-comparison .comparison-title{margin:10px 0 20px;min-height:48px;align-items:start}
.vertical-comparison h2{font-size:18px;line-height:1.3;letter-spacing:-.3px;font-weight:700}
.vchart{display:flex;gap:30px;justify-content:center;margin:0 0 20px;padding:0 12px;width:100%;min-width:0}
.vchart-column{flex:1;max-width:140px;min-width:0;text-align:center}
.vchart-slot{height:180px;display:flex;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line);padding:0 12px}
.vchart-bar{width:100%;max-width:72px;position:relative;border-radius:8px 8px 0 0;min-height:4px}
.vchart-bar strong{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:13px;font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums}
.vchart-label{display:block;font-size:12px;font-weight:500;margin-top:12px;min-height:36px;line-height:1.5}
.vertical-comparison .comparison-caption{margin-top:auto;border-top:1px solid var(--line);padding-top:18px;font-size:12px;line-height:1.65;min-height:76px}
@media(min-width:600px){.comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}}
@media(min-width:960px) and (max-width:1199px){.comparison-grid{grid-template-columns:1fr 1fr}.vertical-comparison{padding:20px}.vchart{gap:16px;padding:0}.vchart-slot{padding:0 10px}.vchart-bar strong{font-size:12px}}
@media(max-width:359px){.welcome-actions{gap:2px}.welcome-header .logo{width:120px}.welcome-header .demo-label{font-size:10px}.product-subtitle{min-height:4.5em}#example{font-size:12px;padding-left:10px;padding-right:10px}.chat-form{gap:2px}.chat-form button,#chat-send{width:34px;height:34px;min-height:34px;flex-basis:34px}}
@media(prefers-reduced-motion:reduce){.type-cursor{animation:none}}

/* Navegación de cinco accesos, configuración compacta y comparaciones resumidas. */
.theme-toggle .moon-icon{stroke-width:1.1}
.settings{width:100%;max-width:500px;padding:20px}
.settings-profile{padding-bottom:18px}
.settings .setting-row{padding:14px 0;min-height:64px;align-items:center}
.settings .setting-row:last-child{padding-bottom:0;min-height:58px;justify-content:flex-end}
.logout{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;margin:0;padding:0}
.logout:hover{background:var(--track)}
.logout svg{width:22px;height:22px}
#asistente-ia{scroll-margin-top:24px}
.vchart{gap:12px}
.vchart-versus{flex:0 0 28px;align-self:center;font-size:13px;font-weight:700;color:var(--muted);text-align:center;transform:translateY(-24px)}
.summary-charts{display:grid;gap:20px}
.summary-comparison{min-width:0}
.summary-comparison+.summary-comparison{border-top:1px solid var(--line);padding-top:20px}
.summary-comparison .comparison-title{gap:8px;margin-bottom:12px}
.summary-comparison h3{font-size:13px;line-height:1.4}
.summary-comparison .vchart{margin:0;gap:10px;padding:0}
.summary-comparison .vchart-column{max-width:120px}
.summary-comparison .vchart-slot{height:94px;padding:0 10px}
.summary-comparison .vchart-bar{max-width:44px;border-radius:5px 5px 0 0}
.summary-comparison .vchart-bar strong{font-size:11px;bottom:calc(100% + 5px)}
.summary-comparison .vchart-label{font-size:11px;min-height:32px;margin-top:8px}
.summary-comparison .vchart-versus{font-size:12px;transform:translateY(-20px)}
.summary-comparison .comparison-caption{font-size:11px;line-height:1.5;margin-top:10px}
@media(max-width:959px){
 #navigation{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
 .nav-item{min-width:0;padding:9px 1px;gap:5px;font-size:clamp(8px,2.2vw,11px);letter-spacing:-.2px}
 .nav-item span{white-space:nowrap}
 .nav-item svg{width:20px;height:20px}
 #asistente-ia{scroll-margin-top:16px}
}

/* Gestión de archivos compartida con el inicio. */
.settings-files{border-top:1px solid var(--line);padding:18px 0}
.settings-files h2{font-size:15px;font-weight:700;margin-bottom:14px}
.settings-dropzone{padding:18px 12px;border:1px dashed var(--line);border-radius:12px;text-align:center}
.settings-dropzone p{font-size:13px;margin-bottom:12px;color:var(--muted)}
#settings-choose-files{border:1px solid var(--orange);padding:10px 16px;font-size:13px}
.settings-files .file-row{margin-top:10px}
#settings-update{margin-top:16px;padding:12px 16px;font-size:13px;gap:10px}
.settings-file-note{font-size:11px;color:var(--muted);line-height:1.6;margin-top:12px;font-weight:300}
@media(max-width:959px){
 #navigation .nav-item{display:flex;align-items:center;justify-content:center;padding:12px 0;min-height:48px;gap:0}
 #navigation .nav-item span{display:none}
 #navigation .nav-item svg{width:22px;height:22px}
}

/* Entrada de producto y cuatro secciones. */
.theme-toggle .moon-icon{transform:rotate(-22deg)}
#example{margin-top:12px}
#typed-emphasis{color:var(--orange)}
.transition.playing{animation:product-entry 1.54s cubic-bezier(.65,0,.35,1) both}
.transition-logo{width:min(250px,62vw);height:auto;display:block;animation:none}
.transition.playing .transition-logo{animation:product-logo 1.54s ease both}
@keyframes product-entry{0%{clip-path:polygon(100% 0,100% 0,100% 0,100% 0)}28%,76%{clip-path:polygon(0 0,100% 0,100% 100%,0 100%)}100%{clip-path:polygon(0 0,0 0,0 100%,0 100%)}}
@keyframes product-logo{0%,15%,100%{opacity:0}28%,76%{opacity:1}}
.settings-files{padding:14px 0}
.settings-dropzone{padding:14px 12px}
.change.neutral{color:var(--muted);background:var(--track)}
.expense-amount.difference,.expense-amount.difference strong,.expense-amount.difference>span{color:var(--orange-text)}
.expense-amount.equal,.expense-amount.equal strong,.expense-amount.equal>span{color:var(--muted)}
.opportunity-amount .expense-note{display:block;margin-top:8px;font-size:11px;line-height:1.5;white-space:normal}
@media(max-width:959px){#navigation{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.transition.playing,.transition.playing .transition-logo{animation:none;opacity:1}}

.opportunity-amount .expense-note{flex-basis:100%}

/* El detalle se superpone sin modificar las dimensiones de la tarjeta. */
.detail-overlay{position:absolute;grid-area:auto;inset:18px;width:auto;max-width:680px;margin:0 auto;padding:0 0 32px;display:flex;align-items:center;justify-content:center;justify-self:auto}
.detail-overlay .detail-content{min-width:0;width:max-content;max-width:min(480px,100%);max-height:none;overflow:visible;text-align:left}
.detail-overlay .close-hint{position:absolute;bottom:0;left:0;right:0;margin:0;text-align:center}
.detail-overlay .action-label{display:inline-block;background:var(--orange);color:#FFFFFF;border-radius:6px;padding:3px 8px;margin-right:4px;font-weight:700;line-height:1.5}

/* Tarjetas compactas: el contenido define la altura, sin huecos mínimos. */
.opportunity{padding:20px}
.opportunity-base{min-height:0;justify-content:flex-start;gap:18px}
.opportunity-top{gap:12px}
.opportunity h2{font-size:17px}
.opportunity-bottom{align-items:center;gap:12px}
.opportunity-amount strong{font-size:24px}
.detail-overlay .detail-content p{font-size:12px;line-height:1.55;margin-bottom:9px}
.detail-overlay .detail-content p:last-child{margin-bottom:0}
@media(min-width:960px){.opportunity-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(min-width:1200px){.opportunity-list{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:359px){.detail-overlay .detail-content p{font-size:11.5px;line-height:1.5}}

/* Solo el porcentaje recibe el tratamiento de ahorro. */
.saving .stat-note .saving-percent{display:inline-block;background:var(--green-bg);color:var(--green);padding:3px 7px;border-radius:5px;line-height:1.35;margin-right:3px}
/* Se mueve el panel entero; la pausa ocurre únicamente con cobertura completa. */
html.transition-active{overflow:hidden;scrollbar-gutter:auto}
.transition{clip-path:none;transform:translate3d(100%,-100%,0);will-change:transform}
.transition.playing{animation:procura-cover .38s cubic-bezier(.65,0,.35,1) both}
.transition.playing.leaving{animation:procura-reveal .38s cubic-bezier(.65,0,.35,1) both}
.transition.playing .transition-logo{animation:none;opacity:1}
@keyframes procura-cover{from{transform:translate3d(100%,-100%,0)}to{transform:translate3d(0,0,0)}}
@keyframes procura-reveal{from{transform:translate3d(0,0,0)}to{transform:translate3d(-101%,0,0)}}
@media(prefers-reduced-motion:reduce){.transition.playing,.transition.playing.leaving{animation:none;transform:none}}

/* Privacidad: fondo táctil real y foco inicial en el título. */
#privacy-dialog{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:16px;border:0;border-radius:0;background:transparent;overflow:hidden;cursor:pointer}
#privacy-dialog[open]{display:grid;place-items:center}
.privacy-panel{width:min(560px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--surface);border:1px solid var(--line);border-radius:22px;padding:24px;cursor:auto}
#privacy-title:focus{outline:none}
#privacy-close:focus:not(:focus-visible){outline:none}
:root[data-theme="dark"] .switch[aria-checked="true"]{background:#26824f;box-shadow:inset 0 0 0 1px #75d79c}
:root[data-theme="dark"] .switch[aria-checked="true"] span{background:#FFFFFF}
.branch-toggle,.branch-option{touch-action:manipulation}
