:root {
    --ui-navy: #061923;
    --ui-blue: #075bc5;
    --ui-sky: #1597e5;
    --ui-ink: #1c2a3b;
    --ui-muted: #5f6d7d;
    --ui-canvas: #f5f7fa;
    --ui-border: #dce3ec;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
.ui-body { margin: 0; min-width: 0; min-height: 100vh; background: var(--ui-canvas); color: var(--ui-ink); font: 16px/1.5 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
.ui-body :where(h1, h2, h3, p) { margin-top: 0; overflow-wrap: anywhere; }
.ui-body a { color: var(--ui-blue); text-underline-offset: 3px; }
.ui-body button, .ui-body input { font: inherit; }
.ui-body a, .ui-body button, .ui-body input { -webkit-tap-highlight-color: transparent; }
.ui-body :focus-visible { outline: 3px solid var(--ui-sky); outline-offset: 4px; }
.ui-saltar { position: absolute; top: -100px; left: 16px; z-index: 20; padding: 12px; background: white; color: var(--ui-navy); border-radius: 6px; }
.ui-saltar:focus { top: 12px; }
.ui-icono { width: 32px; height: 32px; flex: 0 0 auto; }
.ui-marca { display: block; width: 100px; height: 100px; }
.ui-header { background: var(--ui-navy); color: white; }
.ui-header-inner { display: flex; align-items: center; gap: 16px; max-width: 1120px; min-height: 104px; padding: 22px 28px; margin: auto; }
.ui-header-marca { width: 48px; height: 48px; flex: 0 0 auto; }
.ui-header-texto { min-width: 0; flex: 1; }
.ui-wordmark { display: block; color: #bccbd5; font-size: 12px; letter-spacing: .045em; }
.ui-header h1 { font-size: 22px; line-height: 1.25; margin: 4px 0 0; font-weight: 700; }
.ui-back { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; color: white !important; text-decoration: none; border-radius: 8px; }
.ui-back .ui-icono { width: 22px; height: 22px; }
.ui-logout { margin: 0; flex-shrink: 0; }
.ui-logout button { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; background: transparent; border: 1px solid #526671; color: white; border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: 13px; }
.ui-logout .ui-icono { width: 19px; height: 19px; }
.ui-page { max-width: 1120px; margin: auto; padding: 30px 28px 32px; }
.ui-saludo { margin-bottom: 26px; }
.ui-eyebrow { display: block; color: var(--ui-muted); text-transform: uppercase; font-size: 11px; letter-spacing: .09em; font-weight: 700; margin-bottom: 6px; }
.ui-saludo h2 { font-size: 26px; line-height: 1.25; margin-bottom: 6px; }
.ui-saludo p { color: var(--ui-muted); margin-bottom: 0; font-size: 14px; }
.ui-section-title { font-size: 17px; margin: 30px 0 14px; }
.ui-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ui-module { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 164px; padding: 24px 18px; background: white; border: 1px solid var(--ui-border); border-radius: 13px; color: var(--ui-ink) !important; text-align: center; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ui-module:hover { border-color: #9ab8da; box-shadow: 0 4px 14px #06192308; }
.ui-module > .ui-icono { color: var(--ui-blue); }
.ui-module h2 { font-size: 16px; line-height: 1.3; margin: 0; }
.ui-module-description { max-width: 240px; font-size: 12px; line-height: 1.45; color: var(--ui-muted); margin: -2px 0 0; }
.ui-module-note { font-size: 11px; line-height: 1.4; color: var(--ui-blue); margin: 0; }
.ui-module--wide { grid-column: 1 / -1; min-height: 72px; flex-direction: row; padding: 18px; }
.ui-module--wide .ui-icono { width: 25px; height: 25px; }
.ui-module--wide .ui-module-description { margin: 0; }
.ui-footer { display: flex; flex-wrap: wrap; gap: 20px; border-top: 1px solid var(--ui-border); margin-top: 32px; padding-top: 16px; }
.ui-footer a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; }
.ui-footer .ui-icono { width: 17px; height: 17px; }
.ui-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 24px; border: 1px solid var(--ui-navy); border-radius: 8px; background: var(--ui-navy); color: white !important; text-decoration: none; font-weight: 700; cursor: pointer; }
.ui-button:hover { background: #15394d; }
.ui-auth-page .ui-page { max-width: 960px; padding-top: 42px; }
.ui-auth { display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; border: 1px solid var(--ui-border); border-radius: 16px; background: white; }
.ui-auth-intro { display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--ui-navy); padding: 44px 30px; color: white; text-align: center; }
.ui-auth-intro .ui-marca { width: 130px; height: 130px; margin-bottom: 24px; }
.ui-auth-intro h2 { font-size: 25px; line-height: 1.2; margin-bottom: 12px; }
.ui-auth-intro p { font-size: 14px; color: #c2d0d8; margin: 0; }
.ui-auth-form { padding: 34px; min-width: 0; }
.ui-auth-form h2 { font-size: 25px; margin-bottom: 4px; }
.ui-auth-form > p { color: var(--ui-muted); font-size: 14px; }
.ui-login-marca { display: none; }
.ui-field { margin: 22px 0; }
.ui-field > label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.ui-input { display: flex; align-items: center; border: 1px solid var(--ui-border); border-radius: 9px; background: white; padding-left: 13px; min-width: 0; }
.ui-input:focus-within { border-color: var(--ui-blue); }
.ui-input > .ui-icono { color: var(--ui-blue); width: 21px; height: 21px; }
.ui-input input { width: 100%; min-width: 0; min-height: 50px; padding: 13px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ui-ink); font-size: 16px; }
.ui-input input:focus-visible { outline-offset: -3px; }
.ui-remember { display: inline-flex; gap: 9px; align-items: center; min-height: 44px; font-size: 14px; margin-bottom: 14px; cursor: pointer; }
.ui-remember input { width: 19px; height: 19px; accent-color: var(--ui-blue); }
.ui-login-button { width: 100%; }
.ui-help { margin: 20px 0 0; font-size: 13px; line-height: 1.6; color: var(--ui-muted); }
.ui-help a { display: inline-flex; align-items: center; min-height: 44px; }
.ui-alert { padding: 13px 15px; border-radius: 8px; font-size: 14px; margin: 18px 0; overflow-wrap: anywhere; }
.ui-alert--error { background: #fff0f0; border: 1px solid #f2c7c7; color: #9b2525; }
.ui-alert--success { background: #e7f4ec; border: 1px solid #bfdcc9; color: #215b37; }
.ui-alert p:last-child { margin-bottom: 0; }
.ui-cover { background: var(--ui-navy); color: white; }
.ui-cover .ui-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; max-width: 720px; padding: 44px 24px; text-align: center; }
.ui-cover .ui-marca { width: 132px; height: 132px; margin-bottom: 28px; }
.ui-cover h1 { font-size: 22px; font-weight: 400; line-height: 1.4; margin-bottom: 0; }
.ui-cover h1 strong { display: block; font-size: 44px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.15; }
.ui-cover-rule { width: 52px; height: 4px; margin: 22px 0 28px; background: var(--ui-sky); border-radius: 4px; }
.ui-cover p { color: #d4e0e6; font-size: 15px; margin-bottom: 32px; }
.ui-cover .ui-button { width: 100%; max-width: 310px; background: var(--ui-sky); border-color: var(--ui-sky); color: var(--ui-navy) !important; }
.ui-cover .ui-button:hover { background: #65beef; }
.ui-cover small { display: block; max-width: 310px; margin-top: 24px; color: #a8bdc9; font-size: 12px; }
@media (min-width: 1000px) { .ui-modules--secundarios { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .ui-header-inner { min-height: 88px; gap: 10px; padding: 18px 16px; }
    .ui-header h1 { font-size: 19px; }
    .ui-header-marca { width: 37px; height: 37px; }
    .ui-wordmark { font-size: 10px; }
    .ui-logout button { padding: 10px; }
    .ui-logout button span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
    .ui-page { padding: 24px 16px; }
    .ui-saludo { margin-bottom: 22px; }
    .ui-saludo h2 { font-size: 24px; }
    .ui-saludo p { font-size: 13px; }
    .ui-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ui-module { min-height: 136px; padding: 21px 12px; gap: 12px; }
    .ui-module h2 { font-size: 14px; }
    .ui-module-description { display: none; }
    .ui-module--wide { min-height: 66px; }
    .ui-module--wide h2 { font-size: 14px; }
    .ui-module-note { font-size: 10px; }
    .ui-auth-page .ui-page { max-width: 430px; padding: 28px 20px 36px; }
    .ui-auth { display: block; background: transparent; border: 0; border-radius: 0; }
    .ui-auth-intro { display: none; }
    .ui-auth-form { padding: 0; }
    .ui-login-marca { display: block; width: 110px; height: 110px; margin: 10px auto 28px; color: var(--ui-navy); }
    .ui-auth-form h2 { font-size: 25px; }
    .ui-field { margin: 20px 0; }
}
@media (prefers-reduced-motion: reduce) { .ui-module { transition: none; } }
