/* Presentación compartida; no oculta columnas ni modifica datos. */
html{box-sizing:border-box;-webkit-text-size-adjust:100%;text-size-adjust:100%}
*,*::before,*::after{box-sizing:inherit}
body{min-width:0}
main,.shell{width:100%;max-width:none;padding-left:clamp(12px,2vw,40px);padding-right:clamp(12px,2vw,40px)}
header,.topbar{padding-left:clamp(16px,2vw,40px);padding-right:clamp(16px,2vw,40px)}
header,.hero,.section-head{flex-wrap:wrap}
header>*,.hero>*,.section-head>*,.grid>*,.grid-controls>*,.controls>*,.cards>*,.arrival-grid>*{min-width:0}
h1{font-size:clamp(1.5rem,3vw,2.4rem)!important;overflow-wrap:anywhere}
p,nav,label,summary,#message,#mensaje,#estado,#corte{overflow-wrap:anywhere}
nav{line-height:2}
.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr))}
.grid-controls,.controls:not(.panel){grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
.arrival-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
input,select,textarea{max-width:100%;min-width:0;font-size:16px}
input:not([type=checkbox]):not([type=radio]),select,textarea{width:100%}
button,summary,.tabs a{min-height:44px;touch-action:manipulation}
button{white-space:normal;overflow-wrap:anywhere}
.actions,.tabs{flex-wrap:wrap}
fieldset{max-width:100%;min-width:0}
pre,code{max-width:100%;overflow:auto;overflow-wrap:anywhere}
.table-wrap{width:100%;max-width:100%;max-height:70vh;max-height:70dvh;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;isolation:isolate}
.table-wrap table{border-collapse:separate;border-spacing:0;width:100%}
.table-wrap th,.table-wrap td{white-space:normal;overflow-wrap:normal}
.table-wrap thead th{position:sticky;top:0;z-index:3;background:#074875;color:white}
.table-wrap tbody tr{background:#fff}
.table-wrap tbody tr:nth-child(even){background:#ebf0f4}
.table-wrap tr>:first-child{position:sticky;left:0;z-index:2;background:inherit;min-width:90px;max-width:180px;overflow-wrap:anywhere;box-shadow:1px 0 #ccd8e0}
.table-wrap thead tr>:first-child{z-index:4;background:#074875;color:white}
.table-wrap tfoot tr{background:#052f4c;color:white}
.table-wrap:focus-visible{outline:3px solid #be8b00;outline-offset:2px}
.chat-answer{max-width:100%;overflow-x:auto}
#access,#link-panel,#mfa-panel,#recovery-panel{max-width:680px;margin-left:auto;margin-right:auto}
#operation-navigation a{padding:12px 18px}
@media(min-width:1600px){.table-wrap{max-height:76vh;max-height:76dvh}}
@media(max-width:900px){.summary-grid,.summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{gap:12px}.badge{white-space:normal}.section-head{flex-direction:column}.bonus-card{min-width:0;width:100%}}
@media(max-width:600px){
 main,.shell{margin-top:12px;padding-bottom:24px}
 header,.topbar,.hero{padding:18px 16px;gap:12px}
 .panel,.card{padding:14px;border-radius:10px}
 .grid,.grid-controls,.controls:not(.panel),.arrival-grid{grid-template-columns:minmax(0,1fr)}
 .actions,.tabs{gap:8px}
 .actions>button,.tabs>button,.tabs>a{flex:1 1 100%;width:100%}
 .table-wrap th,.table-wrap td{padding:10px 8px;font-size:14px}
 .table-wrap tr>:first-child{min-width:82px;max-width:130px}
 .table-wrap input{min-width:100px}
 #administration-content fieldset{display:block;width:100%;margin:10px 0}
 #recuperacion button{max-width:100%;margin-right:0}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Formularios breves conservan una longitud cómoda de lectura. */
main:has(>form#acceso){max-width:800px}
@media(max-width:720px){main:has(>form#acceso){width:calc(100% - 24px);margin:12px}}
