:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;color:#24344a;background:#f3f5f7;--navy:#0f1f33;--green:#2e9e4f;--teal:#1a9aa0;--muted:#657386;--line:#e5eaf0}*{box-sizing:border-box}body{margin:0}a{color:#247c40;text-underline-offset:3px}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:0;border-radius:8px;padding:12px 18px;background:var(--green);color:white;text-decoration:none;font-weight:600;cursor:pointer}.secondary{background:#edf2f6;color:#31465c}.navy{background:var(--navy)}.danger{background:#fcecea;color:#a53632}.icon{width:21px;height:21px;flex-shrink:0;vertical-align:middle}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;padding:34px 20px;background:var(--navy);color:white;display:flex;flex-direction:column;z-index:30}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:17px;font-weight:700;line-height:1.4}.brand>.icon{width:36px;height:40px;color:#61cd7d}.brand small{display:block;font-size:13px;font-weight:400;color:#a9b7c8}.navlabel{font-size:10px;color:#99a9bd;letter-spacing:1.6px;margin:48px 12px 16px}.sidebar nav a{display:flex;align-items:center;gap:12px;color:#c7d1df;text-decoration:none;padding:14px 12px;margin:6px 0;border-radius:10px;line-height:1.4}.sidebar nav a:hover{background:#20344c}.sidebar nav a[aria-current=page]{background:var(--green);color:white}.asidebottom{margin-top:auto;padding-top:24px}.asidebottom small{color:#99a9bd;line-height:1.8;display:block;margin:18px 12px 0}.logout{background:transparent;color:#dce4ef;justify-content:flex-start;width:100%;padding-left:12px}main{margin-left:260px;padding:0 36px 28px;max-width:1840px;min-width:0}.desktop-header{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:28px;color:var(--muted);font-size:12px}.desktop-header span{font-size:10px;letter-spacing:1.3px}h1{font-size:30px;letter-spacing:-.8px;margin:8px 0}h2{font-size:18px;margin:0 0 12px}h3{font-size:16px}p{color:var(--muted);line-height:1.65;margin:8px 0 20px}small{color:var(--muted);line-height:1.5}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:#39834a}.title{display:flex;align-items:center;justify-content:space-between;gap:24px}.title p{margin-bottom:8px}.panel{background:white;border:1px solid #e9edf2;border-radius:12px;padding:24px;margin:20px 0;box-shadow:0 4px 20px #0f1f3306}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.metric{min-width:0;margin-bottom:0}.metric-heading{display:flex;align-items:center;justify-content:space-between;color:#56657a;font-weight:600}.metric-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#e7f5eb;color:var(--green)}.scope2 .metric-icon{background:#e2f5f5;color:var(--teal)}.scope3 .metric-icon{background:#eef0f3;color:#667689}.total .metric-icon{background:#e9eef6;color:var(--navy)}.metric strong{display:block;font-size:clamp(22px,2.25vw,34px);margin:18px 0 8px;overflow-wrap:anywhere}.metric strong small{font-size:12px;font-weight:400;white-space:nowrap}.metric p{font-size:12px;margin:0}.charts{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.charts .panel{min-width:0;margin-bottom:0}.charts p{font-size:12px}.chart-area{height:265px;position:relative}.report{display:flex;align-items:center;justify-content:space-between;gap:24px}.report p{margin-bottom:4px}.export-actions{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}.notice,.demo{border-radius:8px;padding:15px 18px;margin:20px 0;background:#e7f5eb;color:#28663a;line-height:1.5}.warning,.demo{background:#fff5dc;color:#795613;border:1px solid #e9cf8e}.demo{font-weight:700;border-left:4px solid #c99829}.error{background:#fcecea;color:#a53632}.inline{display:flex;gap:14px;align-items:end;margin:16px 0}.inline label{flex:1;min-width:0}.filters{max-width:600px}.filters label:first-child{flex:0 0 95px}label{display:block;font-size:12px;font-weight:500;color:#536278}input,select{display:block;width:100%;min-height:44px;border:1px solid #d5dde6;border-radius:7px;background:white;color:#24344a;padding:10px 12px;margin-top:7px}input[type=file]{max-width:100%;padding:10px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0 28px}.wide{grid-column:1/-1}.row{display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--line);padding:14px 0}.strong{font-weight:700}.building{padding:8px 0 22px;border-bottom:1px solid var(--line)}.badge{display:inline-block;padding:5px 10px;border-radius:20px;background:#fff1cd;color:#805a10;font-size:11px;font-weight:600}.badge.success{background:#e5f5e9;color:#25783c}.status-detail{display:block;margin-top:5px}.table-scroll{overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:16px 12px;border-bottom:1px solid var(--line)}th{background:#f7f9fb;font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#657386}td:first-child{font-weight:600}.period{white-space:nowrap}.breadcrumbs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);margin:14px 0}.breadcrumbs a{display:inline-flex;align-items:center;min-height:44px}summary{cursor:pointer;font-weight:600;line-height:1.8}.formatted-number{display:block;margin-top:6px}.invoice-upload{flex-wrap:wrap}.drop-zone{flex:1 0 100%;display:flex;flex-direction:column;align-items:center;text-align:center;border:2px dashed #b4c9ba;border-radius:12px;background:#f8fcf9;padding:36px 24px}.drop-zone>.icon{width:48px;height:48px;color:var(--green);margin-bottom:14px}.drop-title{font-size:19px;font-weight:600;color:#253b30}.drop-zone input{max-width:420px;margin:20px auto 0}.drop-zone p{font-size:12px;margin:12px 0 0}.drop-zone.drag-over{background:#e3f4e8;border-color:var(--green)}button:disabled{opacity:.65;cursor:wait}.login-page .sidebar,.login-page .mobile-header,.login-page .bottom-nav,.login-page .desktop-header{display:none}.login-page main{margin:0;max-width:none;min-height:100vh;padding:24px;display:flex;flex-direction:column;justify-content:center}.login{width:100%;max-width:440px;margin:24px auto;padding:36px}.login-logo{display:flex;gap:12px;align-items:center;margin-bottom:32px}.login-logo>.icon{width:40px;height:40px;color:var(--green)}.login-logo small{display:block}.login label{margin:20px 0}.login button{width:100%;margin-top:10px}.login-page footer{text-align:center}.login-page .demo{max-width:700px;margin:0 auto}footer{font-size:11px;color:#7d8999;border-top:1px solid var(--line);margin-top:32px;padding-top:20px}.mobile-header,.bottom-nav{display:none}:focus-visible{outline:3px solid #2785cd;outline-offset:4px}.skip-link{position:fixed;top:12px;left:12px;z-index:100;background:white;padding:14px;transform:translateY(-180%)}.skip-link:focus{transform:translateY(0)}
@media(min-width:769px) and (max-width:1200px){.sidebar{width:225px;padding:28px 16px}main{margin-left:225px;padding:0 24px 28px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.title{align-items:flex-start;flex-direction:column;gap:0}.filters{width:100%}.row,.report{flex-wrap:wrap}.row .inline{flex-wrap:wrap}}
@media(max-width:768px){body{padding-bottom:86px}.mobile-header{display:flex;align-items:center;justify-content:space-between;background:white;border-bottom:1px solid var(--line);padding:14px 18px}.mobile-header .brand{color:var(--navy);font-size:15px}.mobile-header .brand small{color:#657386}.mobile-header .brand>.icon{width:30px;height:34px}.menu-toggle{padding:10px 12px}.sidebar{display:none;position:relative;width:100%;padding:16px 18px}.sidebar.menu-open{display:flex}.sidebar>.brand,.navlabel{display:none}.asidebottom{padding-top:8px}.asidebottom small{display:none}main{margin:0;padding:20px 16px 24px}.desktop-header{display:none}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:40;background:white;border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 16px #0f1f3306}.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;padding:5px 0;text-decoration:none;font-size:11px;color:#657386}.bottom-nav a[aria-current=page]{color:var(--green);font-weight:700}.title,.row,.report,.inline{flex-wrap:wrap}.title{gap:8px}.filters{width:100%;max-width:none}.filters label:first-child{flex:1 0 80px}.filters label:nth-child(2){flex:3 1 180px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric{padding:16px}.metric-heading{font-size:12px;gap:4px}.metric-icon{width:30px;height:30px}.metric strong{font-size:25px}.metric strong small{display:block;margin-top:4px}.charts,.formgrid{grid-template-columns:1fr;gap:0}.formgrid{gap:18px}.panel{padding:18px}.charts .panel{margin-top:18px}.chart-area{height:240px}.wide{grid-column:auto}.inline label{flex-basis:100%}.filters label{flex-basis:auto}.inline button{align-self:flex-start}.row>form{width:100%}h1{font-size:27px;overflow-wrap:anywhere}.demo{margin-top:0;font-size:12px}.report>div{min-width:0}.export-actions{width:100%}.export-actions .button{flex:1}.drop-zone{padding:28px 14px}.drop-title{font-size:17px}.login-page{padding-bottom:0}.login{padding:24px;margin:16px auto}.login-page main{padding:16px}.table-scroll{overflow:visible}table,tbody,tr,td{display:block;min-width:0;width:100%}thead,table>tr:has(th),tbody>tr:has(th){display:none}tr{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:12px 0;background:#fff}td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;padding:12px 0;overflow-wrap:anywhere;white-space:normal}td:before{content:attr(data-label);color:#657386;font-size:11px;font-weight:500}td:last-child{border-bottom:0}.period{white-space:normal}}
@media(prefers-reduced-motion:no-preference){a,button{transition:background-color .15s ease}.drop-zone{transition:background-color .15s ease}}

/* SaaS dashboard v3 */
.sidebar{height:100vh}.panel{border-radius:14px;box-shadow:0 5px 24px #0f1f3308}.demo{padding:10px 14px;font-size:12px}.title{align-items:center}.filters{max-width:740px;gap:10px}.filters label{flex:1;min-width:100px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;box-shadow:0 3px 12px #0f1f3305}.filters label:first-child{flex:0 0 110px}.filters label>.icon{width:16px;height:16px;margin-right:4px;color:var(--green)}.filters select{border:0;padding:6px 0 0;margin:0;min-height:30px;font-weight:600}.metric-icon{width:48px;height:48px;color:white;background:var(--teal)}.total .metric-icon{background:var(--green);color:white}.scope1 .metric-icon{background:var(--teal)}.scope2 .metric-icon{background:var(--green);color:white}.scope3 .metric-icon{background:#8793a3;color:white}.metric-icon .icon{width:26px;height:26px}.metric strong{font-size:32px;font-weight:750}.chart-area{height:300px}.top-buildings{list-style:none;padding:0;margin:24px 0 0}.top-buildings li{margin:0 0 24px}.building-result{display:flex;gap:16px;justify-content:space-between;align-items:start;margin-bottom:10px;font-size:13px}.building-result span{overflow-wrap:anywhere;line-height:1.5}.building-result strong{white-space:nowrap;font-size:13px}.bar-track{height:8px;background:#f0f3f6;border-radius:8px;overflow:hidden}.bar-track span{display:block;height:100%;background:var(--bar-color);border-radius:8px}.export-actions .button{min-height:50px;padding:14px 22px}
@media(max-width:768px){.sidebar{height:auto}.sidebar.menu-open{position:fixed;top:72px;bottom:74px;overflow:auto}.filters{flex-wrap:wrap}.filters label,.filters label:nth-child(2){flex:1 1 140px}.filters label:first-child{flex:1 1 90px}.metric-heading{align-items:start;flex-direction:column-reverse;gap:12px}.metric-icon{width:48px;height:48px}.metric strong{font-size:32px}.chart-area{height:300px}.building-result{gap:10px}}

/* Inventario Edificios / Clima / Residuos */
.pendiente{color:#b42318!important;font-weight:650}.centros-scroll{max-width:100%;overflow:auto}.centros-scroll td{max-width:24rem;min-width:7rem;overflow-wrap:anywhere;vertical-align:top}.centros-scroll th{white-space:nowrap}.centros-form{display:flex;flex-wrap:wrap;gap:1rem;align-items:end}.centros-form label{display:flex;flex-direction:column;gap:.4rem;flex:1 1 240px}.centros-form input,.centros-form select{width:100%;min-width:0}progress{width:min(100%,36rem);accent-color:#168653;height:1.25rem}main{min-width:0}.card{min-width:0}@media(max-width:600px){.centros-form{display:flex;flex-direction:column;align-items:stretch}.centros-form label{flex:auto;width:100%}.centros-scroll{width:100%}}

.gap-sections{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.gap-section{border:1px solid #ddd;border-radius:8px;padding:12px}.gap-section summary{cursor:pointer;font-weight:600}.gap-section li{margin:8px 0}.centro-field>label{display:block}.boolean-options{display:flex;gap:16px}.boolean-options span{display:flex;align-items:center;gap:4px}.boolean-options input{width:auto}
