/**
 * Header Fixed Runtime Final V428
 * Contrato: 6 bloques / 2 filas + dos slots contextuales permanentes.
 * Ningún asset puede redimensionar el Header.
 */
:root{--jcx428-max:1024px;--jcx428-row1:82px;--jcx428-row2:68px;--jcx428-side:72px;--jcx428-edge-img:31px;--jcx428-juco-img:50px;--jcx428-sofi-box:68px;--jcx428-search-h:36px;--jcx428-jc-w:160px;--jcx428-ctx-w:340px;--jcx428-brand-gap:14px}
.jcx-header428,.jcx-header428 *{box-sizing:border-box}
.jcx-header428{position:fixed;z-index:10040;top:0;left:0;right:0;background:#fff;border-bottom:1px solid #e2e7ed;box-shadow:0 3px 14px rgba(16,43,75,.055);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.admin-bar .jcx-header428{top:32px}
.jcx-header428__shell{display:grid;grid-template-columns:var(--jcx428-side) minmax(0,1fr) var(--jcx428-side);grid-template-rows:var(--jcx428-row1) var(--jcx428-row2);width:min(100%,var(--jcx428-max));height:calc(var(--jcx428-row1) + var(--jcx428-row2));margin:0 auto;background:#fff;overflow:hidden}
.jcx-header428__cell{position:relative;min-width:0;min-height:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;margin:0;padding:0}
.jcx-header428__cell--menu{grid-column:1;grid-row:1}.jcx-header428__cell--identity{grid-column:2;grid-row:1}.jcx-header428__cell--profile{grid-column:3;grid-row:1}.jcx-header428__cell--juco{grid-column:1;grid-row:2;align-items:flex-end}.jcx-header428__cell--search{grid-column:2;grid-row:2;padding:0 4px}.jcx-header428__cell--sofi{grid-column:3;grid-row:2;align-items:flex-end}
.jcx-header428__edge-button{display:grid;place-items:center;width:var(--jcx428-side);height:var(--jcx428-row1);margin:0;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer;text-decoration:none;overflow:hidden}
.jcx-header428__edge-button img{display:block!important;width:var(--jcx428-edge-img)!important;height:var(--jcx428-edge-img)!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.jcx-header428__identity{display:grid;grid-template-columns:var(--jcx428-jc-w) var(--jcx428-ctx-w);gap:var(--jcx428-brand-gap);align-items:center;justify-content:center;width:100%;height:100%;min-width:0;overflow:hidden}
.jcx-header428__brand{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;overflow:hidden}
.jcx-header428__brand img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important}
.jcx-header428__brand--jc img{max-width:150px!important;max-height:70px!important;transform:none!important}
/* Dos slots SIEMPRE presentes. Single sólo hace que A abarque las dos columnas; B sigue existiendo pero vacío. */
.jcx-header428__context-slots{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr;gap:7px;width:100%;height:100%;min-width:0;overflow:hidden}
.jcx-header428__context-slot{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;overflow:hidden;text-decoration:none}
.jcx-header428__context-slot img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:66px!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;transform:scale(var(--jcx428-slot-scale,1))!important;transform-origin:center center!important}
.jcx-header428__context-slots.has-two .jcx-header428__context-slot img{max-width:108px!important;max-height:62px!important}
.jcx-header428__context-slots.has-one .jcx-header428__context-slot--a{grid-column:1 / -1}
.jcx-header428__context-slot.is-empty{visibility:hidden!important;pointer-events:none!important}
.jcx-header428__assistant-avatar{display:grid;place-items:end center;margin:0;padding:0;border:0;background:transparent;box-shadow:none;cursor:pointer;text-decoration:none;overflow:hidden}
.jcx-header428__assistant-avatar--juco{width:var(--jcx428-side);height:var(--jcx428-row2)}
.jcx-header428__assistant-avatar--juco img{display:block!important;width:var(--jcx428-juco-img)!important;height:var(--jcx428-juco-img)!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center bottom!important;transform:none!important}
.jcx-header428__assistant-avatar--sofi{width:var(--jcx428-side);height:var(--jcx428-row2)}
/* Normalización óptica fija del PNG de Sofi: agranda sólo el contenido visible, no la celda. */
.jcx-header428__assistant-avatar--sofi img{display:block!important;width:var(--jcx428-sofi-box)!important;height:var(--jcx428-sofi-box)!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center bottom!important;transform:scale(1.48)!important;transform-origin:center bottom!important}
.jcx-header428__search{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:8px;width:100%;height:var(--jcx428-search-h);padding:0 14px;margin:0;border:1px solid #cfd8e3;border-radius:999px;background:#fff;box-shadow:0 1px 4px rgba(20,45,72,.06);overflow:hidden}
.jcx-header428__search:focus-within{border-color:#9ebce4;box-shadow:0 0 0 3px rgba(23,105,224,.08)}
.jcx-header428__search svg{display:block;width:18px;height:18px;fill:none;stroke:#425971;stroke-width:2}
.jcx-header428__search input{display:block;width:100%;min-width:0;height:calc(var(--jcx428-search-h) - 4px);padding:0!important;margin:0!important;border:0!important;outline:0!important;background:transparent!important;color:#1f3449!important;font-size:13px!important;font-weight:650!important;line-height:1!important;box-shadow:none!important}
.jcx-header428__search input::placeholder{color:#455a70!important;opacity:1!important}
.jcx-header428-spacer{display:block;width:100%;height:calc(var(--jcx428-row1) + var(--jcx428-row2));min-height:calc(var(--jcx428-row1) + var(--jcx428-row2));margin:0;padding:0}
.jcx-header428__backdrop{position:fixed;inset:0;z-index:10041;display:none;border:0;background:rgba(8,20,34,.36)}
.jcx-header428__drawer{position:fixed;z-index:10042;top:0;bottom:0;left:0;width:min(330px,88vw);padding:14px;background:#fff;box-shadow:20px 0 50px rgba(5,20,40,.18);transform:translateX(-105%);transition:transform .2s ease;overflow:auto}
.admin-bar .jcx-header428__drawer{top:32px}.jcx-header428.is-menu-open .jcx-header428__drawer{transform:translateX(0)}.jcx-header428.is-menu-open .jcx-header428__backdrop{display:block}
.jcx-header428__drawer-head{display:flex;align-items:center;justify-content:space-between;padding:6px 4px 12px;border-bottom:1px solid #e8edf3}.jcx-header428__drawer-head button{width:38px;height:38px;border:0;border-radius:50%;background:#f2f5f8;font-size:26px}
.jcx-header428__drawer-nav{display:grid;gap:4px;padding:10px 0}.jcx-header428__drawer-nav a{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:8px;padding:10px 8px;border-radius:9px;color:#23384d;text-decoration:none}.jcx-header428__drawer-nav a:hover{background:#f3f7fb}
.jcx-header428__drawer-account{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;border-top:1px solid #e8edf3}.jcx-header428__drawer-account a{text-align:center;padding:9px;border-radius:9px;background:#eef5ff;font-weight:700}
.jcx-header428-onboarding,.jcx-header428-tour{position:fixed;z-index:10060}.jcx-header428-onboarding[hidden],.jcx-header428-tour[hidden]{display:none!important}
.jcx-header428-onboarding{right:18px;top:150px;display:grid;grid-template-columns:54px 1fr 30px;gap:10px;align-items:center;width:min(420px,calc(100vw - 24px));padding:12px;background:#fff;border:1px solid #dfe7ef;border-radius:14px;box-shadow:0 16px 42px rgba(10,30,55,.18)}.jcx-header428-onboarding>img{width:54px;height:54px;object-fit:contain}.jcx-header428-onboarding p{margin:2px 0 8px;font-size:12px}.jcx-header428-onboarding button,.jcx-header428-tour button{border:0;border-radius:8px;padding:7px 10px;cursor:pointer}.jcx-header428-onboarding .is-primary,.jcx-header428-tour .is-primary{background:#1769e0;color:#fff}
.jcx-header428-tour{inset:0;display:grid;place-items:center;padding:20px;background:rgba(8,20,34,.18);pointer-events:none}.jcx-header428-tour__card{pointer-events:auto;width:min(430px,100%);padding:14px;background:#fff;border-radius:16px;box-shadow:0 18px 50px rgba(8,20,34,.22)}.jcx-header428-tour__head{display:grid;grid-template-columns:42px 1fr 34px;align-items:center;gap:8px}.jcx-header428-tour__head img{width:42px;height:42px;object-fit:contain}.jcx-header428-tour__card p{font-size:13px}.jcx-header428-tour__foot{display:flex;align-items:center;justify-content:space-between;gap:10px}.jcx-header428-tour-target{outline:3px solid rgba(23,105,224,.35);outline-offset:4px;border-radius:12px}
@media (min-width:561px) and (max-width:900px){:root{--jcx428-row1:76px;--jcx428-row2:66px;--jcx428-side:66px;--jcx428-edge-img:29px;--jcx428-juco-img:45px;--jcx428-sofi-box:66px;--jcx428-search-h:35px;--jcx428-jc-w:140px;--jcx428-ctx-w:190px;--jcx428-brand-gap:12px}.jcx-header428__brand--jc img{max-width:124px!important;max-height:66px!important}.jcx-header428__context-slot img{max-height:62px!important}.jcx-header428__context-slots.has-two .jcx-header428__context-slot img{max-width:90px!important;max-height:56px!important}}
@media (max-width:560px){:root{--jcx428-row1:74px;--jcx428-row2:64px;--jcx428-side:58px;--jcx428-edge-img:28px;--jcx428-juco-img:42px;--jcx428-sofi-box:64px;--jcx428-search-h:34px;--jcx428-jc-w:92px;--jcx428-ctx-w:144px;--jcx428-brand-gap:8px}.jcx-header428__shell{width:100%}.jcx-header428__brand--jc img{max-width:90px!important;max-height:64px!important}.jcx-header428__context-slot img{max-height:58px!important}.jcx-header428__context-slots.has-two .jcx-header428__context-slot img{max-width:68px!important;max-height:52px!important}.jcx-header428__cell--search{padding-inline:2px}.jcx-header428__search{padding-inline:10px;grid-template-columns:18px minmax(0,1fr);gap:7px}.jcx-header428__search input{font-size:12px!important}.jcx-header428-onboarding{right:8px;top:138px}}
@media screen and (max-width:782px){.admin-bar .jcx-header428{top:46px}.admin-bar .jcx-header428__drawer{top:46px}}
body.cjrd-mini-app .jcx-header428{display:none!important}body.cjrd-mini-app .jcx-header428-spacer{display:none!important}
