:root{--blue:#123b75;--blue2:#1c5aa6;--navy:#08264d;--gold:#d4a72c;--bg:#f5f7fb;--text:#17233a;--muted:#5f6f86;--line:#dce4ef;--shadow:0 14px 40px rgba(8,38,77,.1)}
*{box-sizing:border-box}.portal-body{min-height:100vh;margin:0;color:var(--text);background:radial-gradient(circle at 85% 5%,rgba(28,90,166,.13),transparent 28rem),var(--bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;line-height:1.55}.portal-body a{color:var(--blue2)}.portal-body :focus-visible{outline:3px solid rgba(212,167,44,.55)!important;outline-offset:2px}.portal-shell{min-height:100vh;display:grid;place-items:center;padding:clamp(18px,4vw,52px)}.portal-card{position:relative;overflow:hidden;width:min(100%,680px);padding:clamp(26px,5vw,48px);border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow);text-align:center}.portal-card:before{content:"";position:absolute;inset:0 0 auto;height:6px;background:linear-gradient(90deg,var(--blue),var(--gold))}.portal-card--form{text-align:left}.portal-card--wide{width:min(100%,1040px)}.portal-document{width:min(100%,900px)}.portal-logo{width:108px;height:108px;object-fit:contain;filter:drop-shadow(0 7px 12px rgba(8,38,77,.12))}.portal-kicker{margin:16px 0 7px;color:var(--blue2);font-size:.8rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.portal-card h1,.portal-welcome h1{margin:.2rem 0 .7rem;color:var(--navy);font-size:clamp(1.8rem,5vw,2.7rem);line-height:1.12;font-weight:800}.portal-intro{margin:12px auto 28px;max-width:520px;color:var(--muted);font-size:1.08rem}.portal-actions{display:grid;gap:12px;max-width:430px;margin:0 auto}.portal-body .btn{min-height:44px;border-radius:10px;font-weight:700}.portal-body .btn-primary{border-color:var(--blue2);background:var(--blue2);box-shadow:0 7px 16px rgba(28,90,166,.16)}.portal-body .btn-primary:hover{border-color:var(--navy);background:var(--navy);transform:translateY(-1px)}.portal-body .btn-outline-primary{border-color:var(--blue2);color:var(--blue2)}.portal-link{display:block;font-weight:700;text-align:center}.portal-notice{padding:15px 17px;border:1px solid #cfddf2;border-left:4px solid var(--blue2);border-radius:10px;background:#f0f5fc;color:#314b6e;font-size:.94rem}.portal-card:not(.portal-card--form)>.portal-notice{margin-top:28px}.portal-legal{display:flex;justify-content:center;gap:22px;margin-top:24px;font-size:.9rem}.portal-back{display:inline-flex;margin-bottom:20px;font-weight:700;text-decoration:none}.portal-form-subtitle{margin:14px 0 0;padding:12px 0 6px;border-top:1px solid var(--line);color:var(--navy);font-size:1.08rem;font-weight:800}.portal-card form{margin-top:22px}.portal-card .form-label{margin-bottom:6px;color:#263b59;font-size:.92rem;font-weight:700}.portal-card .form-control,.portal-card .form-select{min-height:46px;border:1px solid #c8d4e3;border-radius:9px}.portal-card textarea.form-control{min-height:110px}.portal-card .form-control:focus,.portal-card .form-select:focus{border-color:var(--blue2);box-shadow:0 0 0 .22rem rgba(28,90,166,.13)}.portal-card .form-text{color:var(--muted)}.portal-card .alert{border:0;border-radius:10px}.portal-document h2{margin-top:30px;color:var(--navy);font-size:1.25rem}.portal-document p{line-height:1.75}.portal-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:25px;text-align:left}.portal-steps div{padding:15px;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.portal-steps strong{display:block;color:var(--navy)}.portal-steps span{color:var(--muted);font-size:.88rem}.portal-dashboard-header{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px clamp(18px,5vw,70px);background:rgba(8,38,77,.97);color:#fff;box-shadow:0 4px 20px rgba(8,38,77,.18)}.portal-dashboard-header a{color:#fff}.portal-brand{font-weight:800;text-decoration:none}.portal-dashboard{width:min(1180px,calc(100% - 30px));margin:32px auto 70px}.portal-welcome{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:clamp(24px,4vw,36px);border:1px solid var(--line);border-radius:18px;background:linear-gradient(120deg,#fff 65%,#edf4fc);box-shadow:var(--shadow)}.portal-welcome p:last-child{margin-bottom:0;color:var(--muted)}.portal-status{padding:9px 15px;border-radius:999px;background:#e9eef5;font-weight:800;white-space:nowrap}.portal-status--activa{background:#dcf4e7;color:#11633e}.portal-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.portal-kpis article,.portal-panel-section{padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 7px 24px rgba(8,38,77,.06)}.portal-kpis strong{display:block;color:var(--blue);font-size:2rem;line-height:1.1}.portal-kpis span{display:block;margin-top:7px;color:var(--muted);font-size:.9rem}.portal-panel-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.portal-panel-action{display:block;min-height:132px;padding:22px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--navy);text-decoration:none;box-shadow:0 7px 24px rgba(8,38,77,.06);transition:.18s}.portal-panel-action:hover{border-color:#8dadd4;color:var(--blue2);box-shadow:var(--shadow);transform:translateY(-3px)}.portal-panel-action strong{display:block;margin-bottom:7px}.portal-panel-action span{color:var(--muted);font-size:.92rem}.portal-dashboard-grid{display:grid;gap:22px}.portal-panel-section h2{margin-bottom:18px;color:var(--navy);font-size:1.25rem;font-weight:800}.portal-profile-list{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}.portal-profile-list div{padding-bottom:11px;border-bottom:1px solid #e7edf5}.portal-profile-list dt{color:#708096;font-size:.75rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.portal-profile-list dd{margin:4px 0 0;font-weight:650}.portal-panel-section .table thead th{border-bottom:2px solid var(--line);color:#53647b;font-size:.78rem;text-transform:uppercase}.portal-panel-section .table td{padding-top:14px;padding-bottom:14px;vertical-align:middle}.portal-panel-section .badge{padding:.55em .75em;border-radius:999px}
@media(max-width:800px){.portal-kpis{grid-template-columns:repeat(2,1fr)}.portal-panel-actions,.portal-steps{grid-template-columns:1fr}.portal-panel-action{min-height:auto}.portal-profile-list{grid-template-columns:1fr}.portal-dashboard-header span{display:none}.portal-card--wide{padding:26px 20px}}
@media(max-width:560px){.portal-shell{padding:10px;place-items:start center}.portal-card{padding:27px 18px;border-radius:14px}.portal-logo{width:86px;height:86px}.portal-legal{flex-direction:column;gap:8px}.portal-dashboard{width:calc(100% - 20px);margin-top:18px}.portal-dashboard-header{padding:11px 12px}.portal-brand{font-size:.9rem}.portal-welcome{padding:22px;flex-direction:column;align-items:flex-start}.portal-kpis{gap:10px}.portal-kpis article,.portal-panel-section{padding:16px}.portal-kpis strong{font-size:1.6rem}.portal-card .btn-lg{width:100%}.table-responsive{border:1px solid var(--line);border-radius:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.portal-skip{position:fixed;top:-60px;left:12px;z-index:1000;padding:10px 14px;background:#fff;color:var(--navy);border-radius:8px}.portal-skip:focus{top:10px}.portal-site-header{position:sticky;top:0;z-index:100;display:flex;align-items:center;gap:28px;min-height:72px;padding:10px clamp(16px,4vw,60px);background:rgba(8,38,77,.98);box-shadow:0 5px 22px rgba(8,38,77,.2)}.portal-site-brand{display:flex;align-items:center;gap:10px;color:#fff!important;text-decoration:none}.portal-site-brand img{width:45px;height:45px;object-fit:contain;background:#fff;border-radius:50%;padding:3px}.portal-site-brand span{display:flex;flex-direction:column;line-height:1.1}.portal-site-brand small{margin-top:4px;color:#dce8f8}.portal-site-nav{display:flex;align-items:center;gap:6px;margin-left:auto}.portal-site-nav a{padding:9px 11px;border-radius:8px;color:#eaf1fa;text-decoration:none;font-size:.93rem;font-weight:650}.portal-site-nav a:hover,.portal-site-nav a.active{background:rgba(255,255,255,.13);color:#fff}.portal-site-nav a.active{box-shadow:inset 0 -2px var(--gold)}.portal-nav-exit{margin-left:6px;border:1px solid rgba(255,255,255,.4)}.portal-menu-button{display:none;margin-left:auto;border:1px solid rgba(255,255,255,.45);border-radius:8px;background:transparent;color:#fff;padding:8px 11px;font-weight:700}.portal-site-footer{display:flex;justify-content:space-between;gap:24px;padding:28px clamp(18px,5vw,70px);background:var(--navy);color:#dce8f8}.portal-site-footer div{display:flex;flex-direction:column}.portal-site-footer nav{display:flex;align-items:center;gap:18px}.portal-site-footer a{color:#fff}.portal-body>.portal-shell{min-height:calc(100vh - 172px)}
@media(max-width:800px){.portal-menu-button{display:block}.portal-site-nav{display:none;position:absolute;inset:72px 12px auto;padding:10px;flex-direction:column;align-items:stretch;background:var(--navy);border:1px solid rgba(255,255,255,.15);border-radius:12px;box-shadow:var(--shadow)}.portal-site-nav.is-open{display:flex}.portal-site-nav a{padding:12px 14px}.portal-nav-exit{margin:5px 0 0}.portal-site-footer{flex-direction:column}.portal-site-footer nav{flex-wrap:wrap}}
.portal-dashboard .portal-welcome{padding:18px 0;border:0;border-bottom:1px solid #cbd5e1;border-radius:0;background:transparent;box-shadow:none}.portal-dashboard .portal-welcome h1{font-size:1.75rem}.portal-dashboard .portal-kicker{margin-top:0}.portal-dashboard .portal-kpis{gap:0;margin:12px 0 24px;border:1px solid var(--line);border-radius:8px;background:#fff}.portal-dashboard .portal-kpis article{padding:14px 20px;border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none}.portal-dashboard .portal-kpis article:last-child{border-right:0}.portal-dashboard .portal-kpis span{margin:0 0 3px;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}.portal-dashboard .portal-kpis strong{font-size:1.2rem}.portal-dashboard .portal-panel-actions{display:flex;gap:0;margin:0 0 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.portal-dashboard .portal-panel-action{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;min-height:0;flex:1;padding:15px 18px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}.portal-dashboard .portal-panel-action:last-child{border-right:0}.portal-dashboard .portal-panel-action:hover{background:#eef4fb;transform:none;box-shadow:none}.portal-dashboard .portal-panel-action strong{margin:0}.portal-dashboard .portal-panel-action span{grid-column:1}.portal-dashboard .portal-panel-action b{grid-column:2;grid-row:1/3;align-self:center;font-size:1.2rem}
@media(max-width:800px){.portal-dashboard .portal-kpis{grid-template-columns:1fr 1fr}.portal-dashboard .portal-kpis article:nth-child(2){border-right:0}.portal-dashboard .portal-kpis article:nth-child(-n+2){border-bottom:1px solid var(--line)}.portal-dashboard .portal-panel-actions{display:block}.portal-dashboard .portal-panel-action{border-right:0;border-bottom:1px solid var(--line)}.portal-dashboard .portal-panel-action:last-child{border-bottom:0}}
.portal-dashboard .portal-dashboard-grid .portal-panel-section,.portal-dashboard>section.portal-panel-section{border:0;border-top:2px solid var(--navy);border-radius:0;background:transparent;box-shadow:none}.portal-dashboard .portal-dashboard-grid .portal-panel-section{padding:20px 0 8px}.portal-dashboard .portal-profile-list{grid-template-columns:repeat(3,1fr);gap:0 28px}.portal-dashboard .portal-profile-list div{padding:10px 0;border-bottom:1px solid var(--line)}.portal-dashboard .portal-profile-list dt{font-size:.7rem}.portal-dashboard .portal-profile-list dd{font-size:.96rem}.portal-dashboard>section.portal-panel-section{display:inline-block;width:calc(50% - 11px);min-height:132px;margin-top:26px!important;padding:18px 0;vertical-align:top}.portal-dashboard>section.portal-panel-section+section.portal-panel-section{margin-left:18px}.portal-dashboard>section.portal-panel-section h2{margin-bottom:12px;font-size:1.08rem}.portal-dashboard>section.portal-panel-section p.text-muted{margin:0;padding:13px 0;color:#64748b!important;font-size:.93rem}.portal-dashboard .portal-dashboard-grid+.portal-panel-section .table-responsive,.portal-dashboard>section.portal-panel-section .table-responsive{border:0;border-radius:0}
@media(max-width:800px){.portal-dashboard .portal-profile-list{grid-template-columns:1fr 1fr}.portal-dashboard>section.portal-panel-section{display:block;width:100%}.portal-dashboard>section.portal-panel-section+section.portal-panel-section{margin-left:0}}
@media(max-width:520px){.portal-dashboard .portal-profile-list{grid-template-columns:1fr}}
/* Panel institucional: navegación operativa lateral y contenido principal */
.portal-dashboard{display:grid;grid-template-columns:270px minmax(0,1fr);grid-template-areas:"welcome welcome" "summary profile" "actions profile" "actions history" "actions requests";column-gap:30px;align-items:start}.portal-dashboard .portal-welcome{grid-area:welcome;margin-bottom:26px;padding:0 0 18px}.portal-dashboard .portal-kpis{grid-area:summary;display:block;margin:0 0 18px;border:1px solid #d7e0eb;border-radius:10px;background:#fff;overflow:hidden}.portal-dashboard .portal-kpis article{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border:0!important;border-bottom:1px solid #e3e9f0!important}.portal-dashboard .portal-kpis article:last-child{border-bottom:0!important}.portal-dashboard .portal-kpis span{margin:0;font-size:.75rem}.portal-dashboard .portal-kpis strong{font-size:1rem;text-align:right}.portal-dashboard .portal-panel-actions{grid-area:actions;display:block;margin:0;border:1px solid #d7e0eb;border-radius:10px;background:#fff;overflow:hidden}.portal-dashboard .portal-panel-action{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;width:100%;padding:14px 15px;border:0!important;border-bottom:1px solid #e3e9f0!important;background:#fff}.portal-dashboard .portal-panel-action:last-child{border-bottom:0!important}.portal-dashboard .portal-panel-action:hover{background:#f2f6fb}.portal-dashboard .portal-panel-action strong{font-size:.92rem}.portal-dashboard .portal-panel-action span{font-size:.78rem}.portal-dashboard .portal-dashboard-grid{grid-area:profile}.portal-dashboard>section.portal-panel-section:nth-of-type(3){grid-area:history}.portal-dashboard>section.portal-panel-section:nth-of-type(4){grid-area:requests}.portal-dashboard .portal-dashboard-grid .portal-panel-section,.portal-dashboard>section.portal-panel-section{display:block;width:100%;min-height:0;margin:0 0 26px!important;padding:22px 24px;border:1px solid #d7e0eb;border-top:4px solid var(--blue);border-radius:10px;background:#fff;box-shadow:0 4px 14px rgba(8,38,77,.05)}.portal-dashboard>section.portal-panel-section+section.portal-panel-section{margin-left:0}.portal-dashboard .portal-profile-list{grid-template-columns:1fr 1fr;gap:0 30px}.portal-dashboard .portal-panel-section h2{font-size:1.15rem}.portal-dashboard .portal-panel-section p.text-muted{padding:10px 0}.portal-dashboard .portal-status{border:1px solid #b7dfca;border-radius:6px;font-size:.82rem}
@media(max-width:900px){.portal-dashboard{display:block}.portal-dashboard .portal-kpis{display:grid;grid-template-columns:1fr 1fr}.portal-dashboard .portal-kpis article:nth-child(odd){border-right:1px solid #e3e9f0!important}.portal-dashboard .portal-panel-actions{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:24px}.portal-dashboard .portal-panel-action{border-right:1px solid #e3e9f0!important;border-bottom:0!important}.portal-dashboard .portal-panel-action:last-child{border-right:0!important}}
@media(max-width:650px){.portal-dashboard .portal-panel-actions{display:block}.portal-dashboard .portal-panel-action{border-right:0!important;border-bottom:1px solid #e3e9f0!important}.portal-dashboard .portal-profile-list{grid-template-columns:1fr}.portal-dashboard .portal-dashboard-grid .portal-panel-section,.portal-dashboard>section.portal-panel-section{padding:18px}}
