#portalSystemV140{position:fixed;inset:0;z-index:2147483000;background:#f5f7fb;color:#153654;font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;display:flex;flex-direction:column;min-width:0;height:100dvh}
#portalSystemV140[data-active="false"]{left:-200vw;right:auto;width:100vw;visibility:hidden;pointer-events:none}
body.system-open-v140{overflow:hidden!important}
#portalSystemV140 *{box-sizing:border-box}
#portalSystemV140 [hidden]{display:none!important}
#portalSystemV140 .system-return-v140{flex:0 0 auto;padding:8px 16px;background:white;border-bottom:1px solid #dce3ed}
#portalSystemV140 button{font:inherit;cursor:pointer;border:1px solid #dce3ed;border-radius:9px;background:#fff;color:#153654;padding:8px 14px;min-height:42px}
#portalSystemV140 button:focus-visible,#portalSystemV140 input:focus-visible{outline:3px solid #e91c35;outline-offset:3px}
#portalSystemV140 #workspace{position:relative;display:flex;flex:1;min-height:0}
#portalSystemV140 #system{display:block;width:100%;height:100%;border:0;background:white}
#portalSystemV140 .cover{position:absolute;inset:0;display:grid;place-items:center;padding:24px;overflow:auto;background:#f5f7fb}
#portalSystemV140 .connection-card{max-width:460px;width:100%;padding:28px 24px;border-radius:18px;background:#fff;border:1px solid #e0e6ef;text-align:center;box-shadow:0 14px 38px #1536540b}
#portalSystemV140 .access-card{text-align:left}
#portalSystemV140 .mark{display:block;margin:auto;height:90px;width:140px;object-fit:contain}
#portalSystemV140 h1{font-size:24px;line-height:1.3;text-align:center;margin:18px 0}
#portalSystemV140 .access-place,#portalSystemV140 .access-status{text-align:center;font-size:13px;color:#4c6076}
#portalSystemV140 label{display:block;font-weight:600;margin:14px 0 6px}
#portalSystemV140 input{width:100%;min-width:0;min-height:48px;border:1px solid #becbd9;border-radius:9px;padding:10px 12px;font:inherit;color:#153654;background:#fff}
#portalSystemV140 .password-row{display:flex;gap:8px}
#portalSystemV140 .password-row input{flex:1}
#portalSystemV140 .primary{background:#e91c35;color:white;border-color:#e91c35;font-weight:600}
#portalSystemV140 #quickSubmit{width:100%;margin-top:8px}
#portalSystemV140 .access-error{color:#b51128;font-size:14px}
#portalSystemV140 .access-error:empty{display:none}
#portalSystemV140 .coverActions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
#portalSystemV140 .secondary,#portalSystemV140 .enlace-diagnostico-v92{color:#164c80;font-weight:600}
#portalSystemV140 .resume-shell{position:absolute;inset:0;z-index:2;background:#f5f7fb;overflow:hidden;pointer-events:none}
#portalSystemV140 .resume-layout{display:grid;grid-template-columns:220px 1fr;gap:28px;padding:28px;max-width:1400px;margin:auto}
#portalSystemV140 .resume-layout aside{padding:20px;background:white;border-radius:14px}
#portalSystemV140 .resume-layout i{display:block;border-radius:9px;background:#e4ebf2;height:38px;margin-bottom:16px}
#portalSystemV140 .resume-banner{height:130px;border-radius:16px;background:#e6edf4}
#portalSystemV140 .resume-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}
#portalSystemV140 .resume-cards i{height:120px;background:white;border:1px solid #e0e6ef}
@media(max-width:650px){#portalSystemV140 .resume-layout{grid-template-columns:1fr;padding:18px}#portalSystemV140 .resume-layout aside{display:none}#portalSystemV140 .resume-cards{grid-template-columns:1fr}#portalSystemV140 .resume-cards i{height:90px}#portalSystemV140 .connection-card{padding:22px 18px}}

#portalSystemV140 .system-return-v140{position:absolute;right:16px;bottom:14px;z-index:60;padding:0;background:transparent;border:0}#portalSystemV140 .system-return-v140 button{border-radius:24px;box-shadow:0 5px 18px #203b5b20;font-size:12px}


/* V153: mismo inicio cuidado en sistema independiente, PWA y sistema incrustado. */
#resumeShell.resume-shell{position:absolute;inset:0;z-index:2;background:radial-gradient(ellipse at 20% 15%,#eef4ff 0,transparent 45%),radial-gradient(ellipse at 85% 85%,#fff1f4 0,transparent 40%),#f8fafd;padding:clamp(18px,4vw,48px);overflow:auto;pointer-events:none;box-sizing:border-box}
#resumeShell.resume-shell:not([hidden]){display:grid;place-items:center}
#resumeShell[hidden]{display:none!important}
#resumeShell .resume-card-v153{width:min(760px,100%);max-width:760px;margin:auto;padding:32px;border:1px solid #e0e7f2;border-radius:26px;background:#ffffffef;text-align:left;box-shadow:0 20px 70px #243d6610;box-sizing:border-box}
#resumeShell .resume-brand-v153{display:flex;align-items:center;gap:15px;margin-bottom:27px}
#resumeShell .resume-logo-v142{display:block;width:58px;height:58px;max-width:58px;object-fit:contain;margin:0;padding:0;border-radius:14px;flex-shrink:0}
#resumeShell .resume-title-v142{margin:0;color:#173654;font:750 22px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left;letter-spacing:-.5px}
#resumeShell .resume-subtitle-v153{margin:5px 0 0;color:#8b9cb3;font:12px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}
#resumeShell .resume-heading-v153{margin:0 0 7px;color:#1f3a5a;font:700 25px/1.3 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:-.6px}
#resumeShell .resume-message-v142{margin:0;color:#7a8ea9;font:13px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left}
#resumeShell .resume-modules-v153{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:24px 0}
#resumeShell .resume-module-v153{position:relative;overflow:hidden;border:1px solid #e5ebf4;border-radius:14px;background:linear-gradient(140deg,#fff,#f9fbff);padding:16px;color:#617b9c;min-width:0}
#resumeShell .resume-module-v153:after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent,#fff9,transparent);transform:translateX(-120%);animation:psuvOpeningShimmer153 2.6s ease-in-out infinite}
#resumeShell .resume-module-v153:nth-child(2n):after{animation-delay:.2s}
#resumeShell .resume-module-v153>span{display:grid;place-items:center;width:31px;height:31px;border:1px solid #dfe9f7;border-radius:10px;background:#f0f5fd;color:#7694b7;margin-bottom:11px}
#resumeShell .resume-module-v153:nth-child(3n)>span{background:#fff2f5;border-color:#ffe0e8;color:#ce6d87}
#resumeShell .resume-module-v153 svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
#resumeShell .resume-module-v153>strong{font:600 12px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}
#resumeShell .resume-bottom-v153{display:flex;align-items:center;gap:10px;color:#90a0b5;font:11px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
#resumeShell .resume-bottom-v153 .spinner{width:16px;height:16px;border:2px solid #f6dce2;border-top-color:#ef3157;border-radius:50%;margin:0;flex-shrink:0;animation:psuvOpeningSpin153 1s linear infinite}
#resumeShell .resume-progress-v153{height:3px;background:#edf2f8;border-radius:5px;overflow:hidden;margin-top:20px}
#resumeShell .resume-progress-v153>i{display:block;width:35%;height:100%;background:linear-gradient(90deg,#ff9baf,#ee3157);border-radius:5px;animation:psuvOpeningProgress153 2.4s ease-in-out infinite}
@keyframes psuvOpeningShimmer153{to{transform:translateX(120%)}}
@keyframes psuvOpeningSpin153{to{transform:rotate(360deg)}}
@keyframes psuvOpeningProgress153{from{transform:translateX(-120%)}to{transform:translateX(400%)}}
@media(max-width:550px){#resumeShell.resume-shell{padding:18px}#resumeShell .resume-card-v153{padding:24px 20px;border-radius:22px}#resumeShell .resume-title-v142{font-size:20px}#resumeShell .resume-heading-v153{font-size:21px}#resumeShell .resume-modules-v153{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}#resumeShell .resume-module-v153{padding:13px}#resumeShell .resume-logo-v142{width:50px;height:50px;max-width:50px}#resumeShell .resume-brand-v153{gap:12px;margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){#resumeShell *{animation:none!important}#resumeShell .resume-module-v153:after{display:none}}

/* V157: el acceso web incrustado usa el mismo estado de conexión compacto. */
.pages-return{display:none}.entorno-web-v157 .pages-return:not([hidden]){display:flex}.entorno-app-v157 .pages-return,.entorno-app-v157 .login-app-info-v141,#installCard,.quick-links-v155{display:none!important}#connectionNoticeV157{position:fixed;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:100;max-width:min(460px,90vw);padding:12px 16px;background:#fff9e9;border:1px solid #ecd598;border-radius:12px;font:13px/1.5 system-ui;color:#674d17;box-shadow:0 4px 18px #15365418}#resumeShell .resume-heading-v153{font-size:22px}#resumeShell .resume-modules-v153{display:none}#resumeShell .resume-card-v153{width:min(420px,100%);padding:26px}#resumeShell .resume-brand-v153{margin-bottom:20px}

/* V158: el contenedor público no desplaza un iframe que ya tiene su barra. */
html.system-open-v140,body.system-open-v140{height:100dvh!important;min-height:0!important;overflow:hidden!important}
#portalSystemV140,#portalSystemV140 #workspace{overflow:hidden!important;min-height:0!important}
#portalSystemV140 #system{min-height:0!important;flex:1 1 0%;height:100%!important}
