/* Mobile layout corrections; desktop composition is preserved. */
.mobile-nav-toggle{display:none}
@media(max-width:1050px){
 html{scroll-padding-top:90px}
 .mobile-home .nav-in{position:relative;gap:12px}.mobile-home .brand{margin-right:auto}.mobile-home .brand span{display:none}
 .mobile-nav-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border:1px solid #718078;background:#101b17;color:#f1eee6;font:600 15px/1.2 sans-serif;cursor:pointer}
 .mobile-home .nav-links{display:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 80px);overflow:auto;background:#101b17;padding:16px;border:1px solid #516159;z-index:60}
 .mobile-home .nav-links.mobile-open{display:grid;gap:4px}.mobile-home .nav-links a{display:flex!important;align-items:center;min-height:44px;padding:10px;font-size:16px}
 #organizacion .system-route{display:flex;flex-direction:column;overflow:visible;height:auto!important;gap:0;margin-top:28px}
 #organizacion .route-station{display:grid;grid-template-columns:32px minmax(0,1fr) 24px;grid-template-rows:auto;gap:12px;align-items:center;width:100%;min-width:0;min-height:64px!important;height:auto!important;padding:16px!important;border-right:0;border-bottom:1px solid #556159;flex:none}
 #organizacion .route-station:before{display:none}#organizacion .route-station:after{content:'+';font-size:24px}#organizacion .route-station.is-active:after{content:'−'}
 #organizacion .route-station>span{margin:0;font-size:13px}#organizacion .route-station>strong{min-height:0;display:block;font-size:18px;line-height:1.35;margin:0!important;overflow-wrap:anywhere}
 #organizacion .route-station>small,#organizacion .route-station>em{display:none}
 #organizacion .system-detail{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
 #organizacion .system-narrative,#organizacion .system-operation{padding:24px 20px!important;min-width:0}
 #organizacion .system-id,#organizacion .operation-flow small,#organizacion .operation-capabilities>small,#organizacion .system-protects small{font-size:12px;line-height:1.5;letter-spacing:.06em}
 #organizacion .system-protects{flex-wrap:wrap}.mobile-home .cycle-control{min-height:44px;font-size:14px}
 .mobile-home .route-station:focus-visible,.mobile-nav-toggle:focus-visible{outline:3px solid #fff;outline-offset:-4px}
 .mobile-home .eyebrow,.mobile-home .hero-proof span,.mobile-home .editorial-kicker{font-size:12px;line-height:1.5;letter-spacing:.08em}
 .mobile-home .observatory-grid article>a,.article-toc a,.footer a{min-height:44px;display:inline-flex;align-items:center;padding-top:10px;padding-bottom:10px}
 .mobile-first .topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:12px 20px;gap:10px}.mobile-first .topbar .brand{line-height:1.5;max-width:100%}.mobile-first .topbar nav{display:flex;flex-wrap:wrap;gap:16px}.mobile-first .topbar nav a{min-height:44px;display:flex;align-items:center}
 .mobile-first .rail{display:block;position:static;font-size:14px}.mobile-first .rail a{min-height:44px;display:flex;align-items:center}.mobile-first .article{padding-top:40px;gap:28px}
 .mobile-atlas .shell{grid-template-columns:minmax(0,1fr)}.mobile-atlas .workspace,.mobile-atlas .mast,.mobile-atlas .mast-copy,.mobile-atlas .view,.mobile-atlas .surface{min-width:0;max-width:100%}
 .mobile-atlas .workspace{width:calc(100% - 24px)}.mobile-atlas .mast{grid-template-columns:minmax(0,1fr)}.mobile-atlas .mast-copy p{max-width:100%}
 .mobile-atlas .division-rail{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}.mobile-atlas .division{min-width:0;min-height:86px;border-bottom:1px solid var(--line)}.mobile-atlas .division b{font-size:15px}.mobile-atlas .division span{font-size:11px}.mobile-atlas .division:after{display:none}
 .mobile-atlas .modebar{display:block}.mobile-atlas .modes{display:flex;flex-wrap:wrap}.mobile-atlas .mode{min-height:44px;padding:12px;font-size:13px}.mobile-atlas .compare-launch{margin:12px 0;max-width:100%;white-space:normal;min-height:44px}
 .mobile-atlas .atlas-grid,.mobile-atlas .division-grid{grid-template-columns:minmax(0,1fr)}.mobile-atlas .metrics{grid-template-columns:minmax(0,1fr)}
 .mobile-atlas .metric-top{flex-wrap:wrap}.mobile-atlas .metric-label,.mobile-atlas .kicker{font-size:12px;line-height:1.5;letter-spacing:.05em}.mobile-atlas .metric-focus,.mobile-atlas .metric-compare,.mobile-atlas .back,.mobile-atlas .periods button{min-height:44px;font-size:13px}
 .mobile-atlas svg{max-width:100%}.mobile-atlas .summary-head h2{font-size:22px;white-space:normal;overflow:visible}.mobile-atlas .compare-stage{min-width:0;overflow:auto}.mobile-atlas .compare-toolbar,.mobile-atlas .compare-controls{flex-wrap:wrap;gap:12px}
 .mobile-treasury .topbar{height:auto;min-height:80px;flex-wrap:wrap;padding:12px 16px;gap:10px}.mobile-treasury .brand{white-space:normal;line-height:1.5;max-width:100%}.mobile-treasury .back{min-height:44px;display:flex;align-items:center;font-size:14px}
 .mobile-treasury .workspace{min-width:0;grid-template-columns:minmax(0,1fr)}.mobile-treasury .ledger,.mobile-treasury .side{min-width:0}.mobile-treasury .ledger-head{height:auto;display:flex;flex-wrap:wrap;gap:4px;padding:12px}.mobile-treasury .tabs{flex-wrap:wrap;min-width:0}.mobile-treasury .tab{min-height:44px;font-size:14px;padding:12px 8px}.mobile-treasury .add{width:100%;min-height:44px;margin:8px 0 0;white-space:normal}
 .mobile-treasury .table-wrap{overflow:visible}.mobile-treasury table.data,.mobile-atlas table.mobile-card-table{display:block;width:100%;min-width:0}
 .mobile-card-table thead,.mobile-treasury table.data thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-treasury table.data tbody,.mobile-atlas .mobile-card-table tbody{display:grid;gap:14px;padding:12px}
 .mobile-treasury table.data tr,.mobile-atlas .mobile-card-table tr{display:grid;grid-template-columns:minmax(0,1fr);border:1px solid #506157;padding:12px;background:#0d1c16}
 .mobile-treasury table.data td,.mobile-atlas .mobile-card-table td{display:grid;grid-template-columns:minmax(82px,.4fr) minmax(0,1fr);gap:8px;text-align:left;padding:10px 0;white-space:normal;overflow-wrap:anywhere;min-width:0;font-size:14px}
 .mobile-treasury table.data td:before,.mobile-atlas .mobile-card-table td:before{content:attr(data-label);font-size:12px;color:#b7c4bc;grid-column:1;grid-row:1/5}
 .mobile-treasury table.data td>*{grid-column:2}.mobile-treasury .check{width:26px;height:26px}.mobile-treasury .approve{min-height:44px;font-size:14px}.mobile-treasury .notice{font-size:13px}.mobile-treasury .form input,.mobile-treasury .form select{font-size:16px;min-height:44px}
}
@media(max-width:700px){.mobile-home .category-head{padding-bottom:40px}.mobile-home .category-art{opacity:.12}.mobile-home .category-section .category-inner{padding-top:64px;padding-bottom:64px}.mobile-home .evidence-grid h3{min-height:0}.mobile-home .stage{height:330px}.mobile-atlas .summary-head{padding:20px}.mobile-atlas .topbar{min-width:0}.mobile-first .hero{padding-top:48px}}
@media(max-width:1050px){
 .mobile-atlas>a[aria-label="Abrir conciliación financiera"]{position:static!important;display:flex;justify-content:center;margin:20px 12px;min-height:44px}
 .mobile-atlas .compare-toolbar{display:flex;flex-direction:column;align-items:stretch;min-width:0}.mobile-atlas .compare-controls{justify-content:flex-start}.mobile-atlas .compare-controls select,.mobile-atlas .compare-close{min-height:44px;font-size:14px;max-width:100%}.mobile-atlas .compare-meta{flex-wrap:wrap}
}

@media(max-width:1050px){.mobile-atlas .compare-chart{min-width:650px;max-width:none;width:650px;height:306px}.mobile-atlas .compare-chart text{font-size:13px}.mobile-atlas .compare-chart .axis-title{font-size:11px}.mobile-atlas .compare-stage{padding:16px 12px}.mobile-atlas .compare-stage:before{content:"Desliza el gráfico para consultar toda la serie →";display:block;font-size:13px;line-height:1.5;color:#c4cec8;margin-bottom:14px}.mobile-atlas .compare-chip{font-size:12px;min-height:44px}}

.mobile-division-detail{display:none!important}.workbench-enlarge{display:none}
@media(max-width:1050px){
 #organizacion .system-atlas-inner>.system-detail{display:none}
 #organizacion .mobile-division-detail:not([hidden]){display:grid!important}
 #organizacion .route-station:after{content:'+'!important}
 #organizacion .route-station[aria-expanded="true"]:after{content:'−'!important}
 #organizacion .route-station[aria-expanded="true"]{background:var(--gold);color:var(--ink)}
 #organizacion .system-route{overflow-anchor:none}
 .mobile-home .product-theatre{display:flex;flex-direction:column;min-height:0;padding:20px;gap:16px}
 .mobile-home .tour{display:contents}
 .mobile-home .tour-kicker{order:0;font-size:12px}
 .mobile-home .tour-buttons{order:1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;border:0}
 .mobile-home .tour-button{padding:12px 8px;grid-template-columns:22px 1fr;gap:6px;border:1px solid #87918a;min-height:64px}
 .mobile-home .tour-button strong{font-size:13px;line-height:1.35}.mobile-home .tour-button i{display:none}
 .mobile-home .tour-button.active{background:#101b17;color:#fff}.mobile-home .tour-button.active span{color:#e3c16e}
 .mobile-home #workbenchStage{order:2;height:auto;aspect-ratio:1440/1189;overflow:visible;margin-bottom:44px}
 .mobile-home #workbenchStage img{position:static;width:100%!important;height:100%!important;object-fit:contain!important;transform:none!important;transition:none;filter:none}
 .mobile-home #workbenchStage:after,.mobile-home #workbenchStage .focus-marker,.mobile-home #workbenchStage .focus-label{display:none}
 .workbench-enlarge{display:flex;align-items:center;min-height:44px;color:#172b23;font-size:14px;text-decoration:underline}
 .mobile-home #tourTitle{order:3;font-size:26px;line-height:1.12;margin:0}
 .mobile-home #tourBody{order:4;font-size:16px;line-height:1.6;margin:0}
 .mobile-home .tour-meta{order:5;padding-top:10px;margin:0}
}
@media(max-width:1050px){html:has(.mobile-home){overflow-anchor:none}#organizacion .route-station:not([aria-expanded="true"]){background:transparent;color:var(--white)}.mobile-home .tour-kicker{min-height:18px}}

/* Keep the mobile tour stationary while the image pans inside its viewport. */
@media(min-width:1051px){.workbench-viewport{display:contents}}
@media(max-width:1050px){
 .mobile-home #workbenchStage{aspect-ratio:auto;margin-bottom:0;background:transparent;overflow:visible}
 .mobile-home #workbenchStage .workbench-viewport{position:relative;width:100%;aspect-ratio:1440/1189;overflow:hidden;background:#fff;isolation:isolate}
 .mobile-home #workbenchStage .workbench-viewport img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:fill!important;transform:scale(2.4)!important;transform-origin:60% 16%!important;transition:transform .8s cubic-bezier(.22,.61,.36,1),transform-origin .8s cubic-bezier(.22,.61,.36,1)!important;will-change:transform}
 .mobile-home #workbenchStage[data-view="condition"] .workbench-viewport img{transform-origin:60% 40%!important}
 .mobile-home #workbenchStage[data-view="action"] .workbench-viewport img{transform-origin:100% 55%!important}
 .mobile-home #workbenchStage[data-view="custody"] .workbench-viewport img{transform-origin:64% 88%!important}
 .mobile-home #workbenchStage[data-overview="true"] .workbench-viewport img{transform:scale(1)!important}
 .mobile-home .workbench-enlarge{width:100%;border:0;background:transparent;padding:10px 0;text-align:left;cursor:pointer;font-family:inherit}
 .mobile-home .workbench-enlarge:disabled{opacity:.6;cursor:default}
}
@media(max-width:1050px) and (prefers-reduced-motion:reduce){.mobile-home #workbenchStage .workbench-viewport img{transition:none!important}}
@media(max-width:1050px){
 .mobile-home #workbenchStage .workbench-viewport img{transform:scale(1.85)!important;transform-origin:66% 12%!important}
 .mobile-home #workbenchStage[data-view="condition"] .workbench-viewport img{transform-origin:66% 42%!important}
 .mobile-home #workbenchStage[data-view="action"] .workbench-viewport img{transform:scale(2.4)!important;transform-origin:100% 55%!important}
 .mobile-home #workbenchStage[data-view="custody"] .workbench-viewport img{transform-origin:64% 86%!important}
 .mobile-home #workbenchStage[data-overview="true"] .workbench-viewport img{transform:scale(1)!important}
}
