/* 3.9.25 · Inicio and navigation. Existing workspace tools retain their layout. */
#app{--workspace-accent:#176b73;--workspace-ink:#183a48;--workspace-line:#dce6e6;grid-template-columns:254px minmax(0,1fr);background:#f3f6f6}
#app main{align-self:start;margin:0 auto;background:transparent;padding:32px clamp(24px,3.2vw,52px) 42px;max-width:1530px}
#workspace-sidebar{width:auto;height:100dvh;position:sticky;top:0;padding:24px 16px 18px;background:#fff;border-right:1px solid var(--workspace-line);overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column}
#workspace-sidebar .brand.brand-official{width:auto;max-width:100%;margin:0 8px 30px;padding:0;display:block}
#workspace-sidebar .brand img{display:block;width:196px;max-width:100%;height:auto}
#workspace-sidebar .nav-label{font-size:10px;color:#829397;letter-spacing:.13em;margin:0 12px 14px}
#workspace-sidebar nav{display:flex;flex-direction:column;gap:4px;overflow:visible}
#workspace-sidebar nav button{width:100%;min-height:44px;border-radius:9px;font-size:13px;padding:11px 12px;gap:11px;white-space:normal;color:#526870;background:transparent;flex:none;text-align:left}
#workspace-sidebar nav button:hover{background:#f1f6f6;color:#194c55}
#workspace-sidebar nav button.active{color:#125a63;background:#e6f2f0;box-shadow:inset 3px 0 #17727a;font-weight:700}
#workspace-sidebar nav button svg{width:20px;height:20px;flex:none;stroke-width:1.6}
#workspace-sidebar #sidebar-list-toggle{font-size:12px;padding-left:42px;min-height:36px;background:transparent;box-shadow:none;color:#6b7f85}
#workspace-sidebar #sidebar-list-toggle>span{display:none}
#workspace-sidebar .saved-nav-count{background:#eef3f4;color:#405c66;font-size:10px}
#workspace-sidebar .sidebar-bottom{display:grid;gap:4px;margin-top:auto;padding:22px 12px 0;border-top:1px solid #e4ebeb;color:#6a7c83}
#workspace-sidebar .sidebar-bottom .small{font-size:11px;line-height:1.6}
#workspace-sidebar .account-menu-toggle{width:100%;font-size:14px;color:#25434e}
#app .page-header{margin:0 0 24px;gap:16px}
#app .page-header h1{font-size:27px;line-height:1.2;letter-spacing:-.035em;margin:0;color:#183a48}
#app .page-header #page-description{font-size:14px;margin-top:9px}
.mobile-workspace-header,.mobile-workspace-nav,#mobile-menu-close{display:none}
.workspace-svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;flex:none}
#home-section{color:var(--workspace-ink)}
.home-welcome{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 32px;border:1px solid #dae6e5;border-radius:18px;background:linear-gradient(115deg,#e4f1ed 0%,#f0f6f2 72%,#e5eee9 100%);margin-bottom:22px}
.home-welcome:after{content:'';position:absolute;right:-40px;top:-80px;width:280px;height:280px;border:1px solid #7eaaa125;border-radius:50%;box-shadow:0 0 0 38px #7eaaa110,0 0 0 76px #7eaaa10b;pointer-events:none}
.home-welcome>div{position:relative;z-index:1}.home-welcome .eyebrow{color:#4c7c73;font-size:10px;margin:0 0 10px}
.home-welcome h2{font-size:29px;line-height:1.25;letter-spacing:-.04em;margin:0 0 8px;font-weight:720}
.home-welcome p{margin:0;color:#52716e;font-size:14px;line-height:1.6}.home-welcome .primary{background:#186b72;border-color:#186b72;white-space:nowrap;position:relative;z-index:1;box-shadow:none}
.home-date-line{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:0 0 16px;color:#6c7e84;font-size:12px;min-height:32px}
.home-date-line>div{display:flex;gap:12px;align-items:center}.home-date-line button{color:#527780;display:flex;gap:7px;align-items:center;font-size:12px;padding:8px}.home-date-line svg{width:15px;height:15px}
.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}
.home-metric{display:grid;grid-template-columns:1fr auto;gap:12px;text-align:left;border:1px solid var(--workspace-line);background:#fff;border-radius:14px;padding:20px 22px;min-width:0;color:#294b56}
.home-metric:hover{border-color:#6fa6a5;box-shadow:0 4px 14px #224f5b08}.home-metric .home-metric-icon{grid-column:2;grid-row:1/3;align-self:start;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#edf5f3;color:#358174}.home-metric:nth-child(2) .home-metric-icon{background:#ecf1fa;color:#597caf}.home-metric:nth-child(3) .home-metric-icon{background:#fff4e5;color:#b68b47}
.home-metric-label{font-size:13px;font-weight:600}.home-metric strong{font-size:32px;line-height:1;font-weight:650;letter-spacing:-.04em}.home-metric small{grid-column:1/-1;color:#829398;font-size:11px;display:flex;justify-content:space-between;gap:4px}
.home-quick-actions{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 28px}.home-quick-actions button{border:1px solid #dce6e6;border-radius:8px;background:#fff;color:#3a626b;display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:12px;min-height:42px;font-weight:600}.home-quick-actions button:hover{background:#eaf3f2;border-color:#91b4b5}.home-quick-actions svg{width:17px;height:17px}
.home-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:22px;align-items:start;margin-bottom:24px}
.home-panel{min-width:0;background:#fff;border:1px solid var(--workspace-line);border-radius:15px;overflow:hidden}.home-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid #eef2f2}.home-panel-heading h2,.home-notices-heading h2{font-size:16px;letter-spacing:-.02em;margin:0 0 4px}.home-panel-heading p{font-size:11px;color:#86979b;margin:0;line-height:1.4}.home-panel-heading .text-button{font-size:11px;white-space:nowrap;color:#357a80}
.home-case-row,.home-agenda-row{width:100%;border:0;border-bottom:1px solid #eef2f2;background:#fff;color:#35535e;display:flex;align-items:center;gap:14px;padding:18px 22px;text-align:left;min-width:0}.home-case-row:last-child,.home-agenda-row:last-child{border-bottom:0}.home-case-row:hover,.home-agenda-row:hover{background:#f4f9f8}
.home-case-icon{display:grid;place-items:center;background:#f0f5f5;color:#6a9298;border-radius:10px;width:38px;height:44px;font-size:22px;flex:none}.home-case-copy{display:grid;gap:5px;min-width:0;flex:1;overflow-wrap:anywhere}.home-case-copy strong{font-size:14px;font-weight:650}.home-case-copy span{font-size:12px;color:#6d838b;line-height:1.4}.home-case-copy small{font-size:11px;color:#88989d;line-height:1.4}.home-case-row .home-star{color:#b18a37;font-size:13px;margin-left:4px}
.home-time{width:65px;flex:none;font-size:14px;font-weight:700;color:#367781;align-self:start;padding-top:2px;line-height:1.3}.home-time small{display:block;font-size:10px;font-weight:500;color:#8a9ba0;margin-top:7px}
.home-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:34px 24px;min-height:220px;color:#678087}.home-empty>span{font-size:26px;color:#7ca39c;margin-bottom:14px}.home-empty strong{font-size:14px;color:#36555e}.home-empty p{font-size:12px;line-height:1.6;max-width:280px;margin:10px 0 15px}.home-empty .secondary{font-size:12px}.home-more{font-size:11px;text-align:center;color:#6f888f}
.home-notices-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px}.home-notices-heading p{font-size:12px;color:#7e9096;margin:5px 0 0}.home-notices-heading button{color:#357a80;font-size:12px}
.home-notices-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.home-notice{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:13px;padding:21px;border:1px solid #e1e6df;background:#fcfdf9;border-radius:13px;color:#34505a;overflow-wrap:anywhere}.home-notice:hover{border-color:#8bad9d;background:#f7faf5}.home-notice-category{color:#748d67;font-size:10px;text-transform:uppercase;letter-spacing:.07em;font-weight:700}.home-notice strong{font-size:14px;line-height:1.5;font-weight:650}.home-notice>span:not(.home-notice-category){font-size:11px;color:#849080;line-height:1.5}.home-notice small{font-size:11px;font-weight:650;color:#558070;margin-top:auto;display:flex;justify-content:space-between;width:100%}.home-empty-wide{grid-column:1/-1;min-height:120px;background:#fff;border:1px solid var(--workspace-line);border-radius:14px;padding:24px}
#home-error{background:#fff5ef;border:1px solid #e6c9b9;border-radius:12px;padding:20px;color:#804c38;margin-bottom:22px}#home-error p{font-size:13px}#home-section[aria-busy=true] .home-metric strong{opacity:.45}
@media(min-width:900px){#workspace-sidebar nav button{flex-shrink:0}#workspace-sidebar .sidebar-bottom{margin-top:28px}#workspace-sidebar .brand{flex:none}}
@media(min-width:1200px){#workspace-sidebar .sidebar-bottom{margin-top:auto}.home-panel{min-height:338px}}
@media(max-width:1100px) and (min-width:900px){#app{grid-template-columns:220px minmax(0,1fr)}#app main{padding:28px 24px}.home-columns{grid-template-columns:1fr}.home-metric{padding:16px}.home-metric-icon{display:none!important}.home-welcome{padding:25px}.home-welcome .primary{font-size:12px}}
@media(max-width:899px){
 #app{display:block;min-height:100dvh}#app main{padding:22px 18px 100px;width:100%;margin:0;min-width:0}
 .mobile-workspace-header{display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;height:66px;padding:10px 18px;background:#ffffffed;backdrop-filter:blur(10px);border-bottom:1px solid #e0e9e9;z-index:30}.mobile-workspace-header img{display:block;width:133px;height:auto;max-height:45px}.mobile-workspace-header>button:first-child{background:none;border:0;padding:0}.mobile-menu-button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #e0e8e8;border-radius:9px;background:white;color:#32616d}
 #app .page-header{margin-bottom:18px;gap:12px}#app .page-header h1{font-size:24px}#app .page-header #page-description{font-size:13px}#app .page-header #new-case{font-size:12px;padding:10px 12px}
 #workspace-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(300px,88vw);height:100dvh;max-height:100dvh;z-index:101;transform:translateX(-105%);visibility:hidden;transition:transform .2s ease;padding:25px 18px;box-shadow:10px 0 35px #112d421a;border:0;overflow-y:auto}
 .navigation-open #workspace-sidebar{transform:translateX(0);visibility:visible}#workspace-sidebar .brand.brand-official{width:200px;max-width:calc(100% - 35px);margin:0 0 30px}#workspace-sidebar .brand img{width:100%;height:auto}#workspace-sidebar nav{display:flex;overflow:visible;white-space:normal}#workspace-sidebar nav button{font-size:14px;min-height:46px}#workspace-sidebar .sidebar-bottom{margin-top:24px;display:grid}#workspace-sidebar .sidebar-bottom #user-role{display:block}#workspace-sidebar .sidebar-bottom #quota-sidebar{font-size:11px}#mobile-menu-close{display:grid;position:absolute;right:12px;top:14px;width:36px;height:36px;border:0;background:#f1f5f4;border-radius:50%;place-items:center;font-size:25px;color:#57737d}
 #navigation-backdrop{position:fixed;inset:0;z-index:100;background:#0e293b70;backdrop-filter:blur(2px)}body.workspace-menu-open{overflow:hidden}.workspace-menu{z-index:130}
 .mobile-workspace-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;padding:8px 8px max(9px,env(safe-area-inset-bottom));border-top:1px solid #dce7e6;background:#fff;z-index:35;box-shadow:0 -4px 20px #21465105;gap:3px}.mobile-workspace-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;border:0;border-radius:9px;background:transparent;color:#71868c;font-size:9px;padding:6px 2px;min-height:48px;line-height:1.2}.mobile-workspace-nav button.active{background:#eaf5f1;color:#1d7376;font-weight:700}.mobile-workspace-nav svg{width:20px;height:20px}
 .home-welcome{padding:24px;display:block;margin-bottom:18px;border-radius:15px}.home-welcome h2{font-size:26px}.home-welcome p{font-size:13px}.home-welcome .primary{margin-top:18px;min-height:41px;font-size:12px}.home-welcome:after{width:200px;height:200px;right:-100px;top:-65px}
 .home-date-line{align-items:flex-start;font-size:11px;gap:8px}.home-date-line>div{gap:5px;flex:none}.home-date-line #home-updated{display:none}.home-date-line #home-date{line-height:1.6;padding-top:6px;text-transform:capitalize}.home-date-line button{padding:7px 2px}
 .home-metrics{gap:8px;margin-bottom:20px}.home-metric{padding:13px 11px;gap:10px;border-radius:11px;display:flex;flex-direction:column}.home-metric .home-metric-icon{width:29px;height:29px;border-radius:8px;order:-1}.home-metric svg{width:17px;height:17px}.home-metric-label{font-size:11px;line-height:1.4;min-height:30px}.home-metric strong{font-size:27px}.home-metric small{font-size:9px;margin-top:auto;width:100%}
 .home-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:24px}.home-quick-actions button{padding:11px 10px;font-size:11px;min-height:44px}
 .home-columns{grid-template-columns:1fr;gap:18px;margin-bottom:24px}.home-panel-heading{padding:18px}.home-panel-heading h2{font-size:15px}.home-case-row,.home-agenda-row{padding:16px 18px;gap:12px}.home-case-icon{width:33px;height:39px;font-size:20px}.home-case-copy strong{font-size:13px}.home-case-copy span{font-size:11px}.home-case-copy small{font-size:10px}
 .home-notices-heading{align-items:flex-start}.home-notices-heading h2{font-size:16px}.home-notices-heading p{font-size:11px;line-height:1.5}.home-notices-heading button{font-size:11px;white-space:nowrap}.home-notices-grid{grid-template-columns:1fr}.home-notice{padding:18px;gap:10px}.home-notice strong{font-size:13px}.home-empty{min-height:190px;padding:26px 20px}
 #cases-calendar-section{scroll-margin-top:78px}
}
@media(prefers-reduced-motion:reduce){#workspace-sidebar{transition:none}}

/* Mis Expedientes · 3.9.26 */
.case-view-picker{display:flex;gap:4px;padding:5px;background:#edf2f4;border-radius:12px;align-self:center}
.case-view-picker button{min-height:44px;border:0;border-radius:8px;background:transparent;color:#526571;padding:10px 16px;font:inherit;cursor:pointer}
.case-view-picker button[aria-pressed=true]{background:#fff;color:#124e63;box-shadow:0 2px 6px #163b5120;font-weight:700}
#results.case-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
#results.case-grid>.saved-case-group,#results.case-grid>.empty{grid-column:1/-1}
#results .saved-case{border:1px solid #dce5e8;border-radius:18px;overflow:hidden;background:white;box-shadow:0 3px 12px #173b5108;margin-bottom:0}
#results.case-list{display:grid;gap:10px}
#results.case-grid>.saved-case[open]{grid-column:1/-1}
#results .saved-case-summary{padding:22px;gap:16px;min-width:0;align-items:start}
#results.case-grid .saved-case-summary{flex-wrap:wrap}
#results.case-grid .saved-case-identity{flex:1 1 100%}
#results .saved-case-identity strong{font-size:22px;color:#103e55}
#results .saved-case-identity>span{font-size:14px;color:#425967;line-height:1.5}
.saved-case-court{font-size:12px;color:#657781;line-height:1.5;display:block;margin-top:8px;font-weight:400;overflow-wrap:anywhere}
#results .saved-case-meta{font-size:12px;gap:8px}
#results .saved-case-meta>span:first-child{background:#edf5f4;color:#25695e;border-radius:6px;padding:4px 8px;align-self:start}
#results .saved-case[open]{border-color:#9dbfc9;box-shadow:0 6px 24px #174b6210}
#results .saved-case[open]>.saved-case-summary{background:#f2f7f8;border-bottom:1px solid #dce5e8}
#results .record-actions{padding:16px;background:#f7f9fa;gap:8px;display:flex;flex-wrap:wrap}
#results .record-actions button{min-height:44px;border-radius:10px}
#results .case-card-main{padding:20px}
#results .parties{gap:16px}
#results .field-title{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:#607782}
#results .record-footer{gap:8px;line-height:1.6}
.case-list-toolbar{flex-wrap:wrap;gap:16px;align-items:end}
#group-controls{padding:18px;background:white;border:1px solid #dce5e8;border-radius:16px;margin:18px 0}
#detail-dialog{border-radius:20px}
#detail-dialog .dossier-history{border-top:1px solid #dce5e8;margin-top:24px;padding-top:20px}
#detail-actions{position:sticky;bottom:0;background:white;padding:14px 0;display:flex;flex-wrap:wrap;gap:10px}
#results .saved-case-summary:focus-visible,.case-view-picker button:focus-visible{outline:3px solid #167ba1;outline-offset:-3px}
@media(max-width:700px){#results.case-grid{grid-template-columns:minmax(0,1fr)}#results .saved-case-summary{padding:16px;flex-wrap:wrap}#results .saved-case-identity{min-width:0;flex:1 1 100%}#results .saved-case-identity strong{font-size:20px}.case-list-toolbar>label{flex:1 1 130px;min-width:0}.case-list-toolbar select{max-width:100%;width:100%}.case-view-picker{width:100%}.case-view-picker button{flex:1}#results.case-list .saved-case-court{display:none}#results.case-list .saved-case-summary{padding:12px 16px}#results.case-list .saved-case-identity>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#results .record-actions button{flex:1 1 auto}#results .parties{grid-template-columns:1fr}}

#results .saved-case-content{display:block;min-width:0}#results .saved-case-content>*{min-width:0}
#results .record-actions{flex-direction:row;width:100%;max-width:none;align-items:center;justify-content:flex-start}#results .record-actions>*{flex:0 1 auto}#results .saved-case-meta{display:flex;flex-wrap:wrap;max-width:none;text-align:left}#results .saved-case-content{padding:16px}#results .saved-case-chevron{margin-left:auto}
/* Notificaciones · 3.9.27 */
.notices-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:linear-gradient(120deg,#103e55,#236d75);color:white;padding:28px;border-radius:20px;margin-bottom:22px}.notices-hero h2{font-size:clamp(24px,3vw,34px);margin:5px 0 12px}.notices-hero p{margin:0;line-height:1.6;max-width:560px;color:#e1f0ee}.notices-hero .eyebrow{color:#a5d7cb}.notices-hero-icon{font-size:72px;color:#b9ded6}
#judicial-section .judicial-layout{grid-template-columns:minmax(0,1fr) 300px;gap:22px}#judicial-section .judicial-layout>*{min-width:0}#judicial-section .judicial-toolbar{flex-wrap:wrap;gap:12px;margin:0 0 16px}#judicial-inbox-count{font-weight:700;color:#16495e;margin-right:auto}#judicial-section .judicial-toolbar label{flex:1;min-width:150px}#judicial-section select{width:100%;min-height:44px}
.judicial-batch{display:flex;flex-wrap:wrap;gap:12px;align-items:center;background:#edf3f4;border-radius:12px;padding:14px;margin-bottom:16px;font-size:13px}#judicial-selected-count{color:#596f7b;margin-right:auto}.judicial-batch button{min-height:44px}.judicial-batch input,.judicial-notice input{width:20px;height:20px;accent-color:#236d75;flex-shrink:0}
#judicial-section .judicial-notice{padding:22px;border:1px solid #dbe6e8;border-left:4px solid #277e84;border-radius:16px;background:white;box-shadow:0 3px 10px #173b5106}.judicial-notice.is-read{border-left-color:#b6c6cb;background:#f8fafb}.judicial-notice.is-unread h2:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#277e84;margin-right:9px}.judicial-notice-top{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.judicial-notice-top .badge{margin-right:auto}.judicial-notice h2{font-size:20px;line-height:1.4;margin-top:18px}.notice-selection{font-size:12px;color:#59707c}.judicial-date-strip{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#f1f6f5;padding:14px;border-radius:10px;margin:16px 0}.judicial-date-strip span{font-size:12px;color:#58716f}.judicial-date-strip strong{display:block;font-size:14px;color:#204f4e;margin-top:5px}.notice-scope{font-size:12px;color:#617580}.judicial-notice-body{line-height:1.7}.judicial-notice details>summary{cursor:pointer;min-height:44px;color:#206578;padding:10px 0;font-weight:700}.judicial-holders{background:#eef5f7;padding:16px;border-radius:12px;gap:14px}.judicial-holders strong{overflow-wrap:anywhere}.judicial-facts dd{overflow-wrap:anywhere}
#judicial-category-choices{display:grid;gap:8px;margin:18px 0}.judicial-category-choice{display:flex;align-items:center;gap:12px;padding:10px;background:#f3f7f7;border-radius:10px;min-height:54px;font-size:13px;cursor:pointer}.judicial-category-choice input[role=switch]{appearance:none;flex:0 0 40px;width:40px;height:24px;background:#aabac2;border-radius:20px;position:relative;border:0;cursor:pointer}.judicial-category-choice input:before{content:'';position:absolute;top:3px;left:3px;background:white;border-radius:50%;height:18px;width:18px}.judicial-category-choice input:checked{background:#28796b}.judicial-category-choice input:checked:before{left:19px}.judicial-category-choice input:focus-visible{outline:3px solid #1688a5;outline-offset:3px}#judicial-section aside .panel{border-radius:16px}#judicial-section aside summary{cursor:pointer;font-weight:700;min-height:44px}#judicial-admin .judicial-admin-row{gap:12px}
@media(max-width:1000px){#judicial-section .judicial-layout{grid-template-columns:minmax(0,1fr)}#judicial-section aside{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}}
@media(max-width:600px){.notices-hero{padding:20px}.notices-hero-icon{display:none}#judicial-section aside{grid-template-columns:1fr}#judicial-section .judicial-notice{padding:16px}.judicial-batch button{flex:1}.judicial-notice-top .badge{order:-1;flex:1 1 100%}.judicial-date-strip{padding:12px;gap:10px}.judicial-holders{grid-template-columns:1fr!important}.judicial-holders>span{transform:rotate(90deg);justify-self:center}#judicial-section .pagination{flex-wrap:wrap}}
