/* JuzgadoLocal identity over the retained COMPIN component system. */
:root {
 --ink:#292e43; --muted:#60657b; --navy:#343251; --navy-deep:#201e37;
 --teal:#65518c; --teal-dark:#523d78; --teal-soft:#f0ebf6; --gold:#f3c77f;
 --gold-soft:#fbf1dc; --sky-soft:#eeedf6; --paper:#fcfaf6; --page-bg:#fbfaf7;
 --soft:#f3f1f6; --line:#dedbe6; --heading:#28243e; --link:#5a3f88;
 --body-copy:#4e5064; --section-guides:#f5f1f9; --section-regions:#f3f2f6;
 --header-bg:rgba(252,250,246,.97); --detail-contact-end:#f5f0fa;
 --shadow:0 12px 32px rgba(45,35,64,.08); --card-border:rgba(50,40,75,.15);
 --jpl-section-gap:clamp(2.5rem,4vw,3.5rem);
 --jpl-block-gap:clamp(1.25rem,2vw,1.75rem);
 --jpl-header-offset:110px;
}
:root[data-theme="dark"] {
 --ink:#ebe8f3; --muted:#bbb5cf; --teal-soft:#2c253e; --gold-soft:#3c3323;
 --sky-soft:#28273f; --paper:#211e30; --page-bg:#171522; --surface:#242133;
 --surface-raised:#2b263c; --surface-translucent:rgba(36,33,51,.88);
 --soft:#252235; --line:#49415c; --heading:#f6f2fc; --link:#d0b9ff;
 --body-copy:#d1cadf; --section-guides:#211c30; --section-regions:#211f30;
 --header-bg:rgba(23,21,34,.97); --detail-contact-end:#2b243c;
}
.hero,.office-hero { background:radial-gradient(ellipse at 90% 0%,rgba(189,153,222,.13),transparent 55%),linear-gradient(120deg,#211d36,#40345b); }
.site-header__inner { gap:clamp(.65rem,1.2vw,1rem); }
.site-header .brand, .header-actions { flex-shrink:0; }
.main-nav { flex-shrink:0; }
.main-nav a { white-space:nowrap; }
.header-search { display:none; flex:0 1 240px; min-width:180px; align-items:center; gap:.25rem; padding:.2rem; background:var(--surface); border:1px solid var(--line); border-radius:12px; }
.js-ready .header-search { display:flex; }
.header-search input { min-width:0; width:100%; padding:.55rem .65rem; border:0; border-radius:8px; background:transparent; color:var(--ink); font-size:.9rem; }
.header-search input::placeholder { color:var(--muted); opacity:1; }
.header-search button { display:grid; place-items:center; flex:0 0 44px; min-height:44px; padding:0; color:var(--white); background:var(--teal); border:0; border-radius:8px; cursor:pointer; }
.header-search button:hover { background:var(--teal-dark); }
.header-search-fallback { font-size:.9rem; }
:is(:target,.office-branches,.office-branch,.office-location,.transaction-hub,.home-region-group) { scroll-margin-top:var(--jpl-header-offset); }
#regiones:focus:not(:focus-visible) { outline:none; box-shadow:none; }
@media (max-width:1100px) and (min-width:961px) { .main-nav a { padding-inline:.5rem; } }
@media (max-width:960px) {
 :root { --jpl-header-offset:160px; }
 .site-header .brand { grid-column:1; grid-row:1; }
 .header-actions { grid-column:2; grid-row:1; }
 .header-search, .site-header__inner > noscript { grid-column:1 / -1; grid-row:2; width:100%; min-width:0; }
 .main-nav { grid-row:3; }
 .js-ready .main-nav { max-height:calc(100vh - 160px); max-height:calc(100dvh - 160px); }
 html:not(.js-ready) .site-header { position:static; }
}
.hero__grid { min-height:430px; }
.hero h1 { max-width:1050px; }
.hero .search-box .button { flex-basis:180px; }
.eyebrow { color:#e8d0a8; font-size:.85rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.hero-summary { color:#e0d9ed; }
.hero-shortcuts { display:flex; flex-wrap:wrap; gap:.6rem 1.1rem; align-items:center; margin-top:1.25rem; color:#e0d9ed; font-size:.9rem; }
.hero-shortcuts a { color:#f3c77f; font-weight:700; }
.section--notice,.official-channel { background:linear-gradient(125deg,#211d36,#4a3b62); }
.hero .search-box .text-link { border:0; background:transparent; padding:.35rem 0; cursor:pointer; color:var(--link); font-weight:700; }
.search-status { min-height:1.4em; margin:.4rem 0; color:var(--muted); font-size:.86rem; }
.region-jump { display:none; grid-template-columns:minmax(0,1fr) auto; gap:.75rem; max-width:720px; margin:0 0 2rem; padding:1.25rem; background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); }
.js-ready .region-jump { display:grid; }
.region-jump label { grid-column:1 / -1; color:var(--heading); font-size:.9rem; font-weight:800; }
.region-jump__control { position:relative; min-width:0; }
.region-jump__icon { position:absolute; top:50%; left:.85rem; display:grid; place-items:center; color:var(--link); transform:translateY(-50%); pointer-events:none; }
.region-jump__control::after { content:""; position:absolute; right:1rem; top:50%; width:.45rem; height:.45rem; border-right:2px solid var(--link); border-bottom:2px solid var(--link); transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.region-jump select { appearance:none; width:100%; min-height:52px; padding:.75rem 2.5rem .75rem 2.7rem; color:var(--heading); background:var(--surface-raised); border:1px solid var(--line); border-radius:10px; font:inherit; font-size:1rem; cursor:pointer; }
.region-jump select:hover { border-color:var(--teal); }
.region-jump option { color:var(--ink); background:var(--surface); }
.region-jump .button { min-height:52px; }
.region-jump p { grid-column:1 / -1; margin:0; color:var(--muted); font-size:.82rem; }
.home-region-group__heading h2 { font-size:1.25rem; }
.home-region-list { gap:.85rem; }
.home-region-list > .home-region-group { padding:0; border-radius:16px; background:var(--surface); border-color:var(--line); box-shadow:0 5px 18px rgba(45,35,64,.05); }
.home-region-list > .home-region-group[open] { border-color:var(--teal); box-shadow:var(--shadow); }
.home-region-toggle { display:block; padding:1rem 1.25rem; cursor:pointer; list-style:none; border-radius:16px; }
.home-region-toggle:hover { background:var(--soft); }
.home-region-group[open] > .home-region-toggle { border-radius:16px 16px 0 0; border-bottom:1px solid var(--line); background:var(--soft); }
.home-region-toggle::-webkit-details-marker { display:none; }
.home-region-toggle h3 { display:grid; grid-template-columns:38px minmax(0,1fr) auto 32px; align-items:center; gap:.85rem; margin:0; color:var(--heading); font-size:1.05rem; line-height:1.4; }
.home-region-symbol { display:grid; place-items:center; width:38px; height:38px; color:var(--link); background:var(--teal-soft); border-radius:11px; }
.home-region-count { padding:.3rem .65rem; color:var(--muted); background:var(--soft); border:1px solid var(--line); border-radius:20px; font-size:.76rem; font-weight:600; white-space:nowrap; }
.home-region-chevron { display:grid; place-items:center; width:32px; height:32px; color:var(--link); background:var(--soft); border-radius:50%; }
.home-region-group[open] .home-region-chevron { color:var(--white); background:var(--teal); }
.home-region-group[open] .home-region-chevron { transform:rotate(180deg); }
.home-region-group > .home-office-grid { margin:1.25rem; }
.home-region-page-link { margin:0; padding:0 1.25rem 1.25rem; font-size:.9rem; }
.office-card__compact-link h3 { margin:0; font-size:1rem; line-height:1.45; }
.court-count { display:block; color:var(--muted); font-weight:500; font-size:.78rem; margin-top:.25rem; }
.js-ready .ordinal-search-result:not(.is-search-result) { display:none; }
.contact-link { overflow-wrap:anywhere; }
.jpl-phone { display:inline-block; padding-bottom:.08em; border-bottom:4px solid var(--gold); color:var(--heading); font-size:clamp(1.4rem,3vw,2.4rem); font-weight:900; letter-spacing:-.035em; line-height:1.15; text-decoration:none; white-space:nowrap; font-variant-numeric:lining-nums tabular-nums; }
.office-action .jpl-phone { color:inherit; font-size:clamp(1.35rem,2vw,1.85rem); }
.jpl-phone--card { font-size:1.5rem; }
.source-note { color:var(--muted); font-size:.84rem; line-height:1.65; }
.phone-feature__number strong { font-size:clamp(1.5rem,3vw,2.2rem); }
.office-branch + .office-branch { margin-top:2rem; }
.office-map--embedded { min-height:0; background:var(--soft); }
.office-map--embedded .office-map__frame { display:block; width:100%; height:420px; min-height:0; border:0; }
.office-location__map-note { margin:0; padding:1rem clamp(1.25rem,3vw,2rem); color:var(--muted); font-size:.82rem; }
@media (max-width:600px) { .office-map--embedded .office-map__frame { height:340px; } }
.office-location--pending { padding:clamp(1.25rem,3vw,2rem); }
.office-location--pending .office-location__content { display:block; padding:0; }
.office-location--pending .office-location__heading { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:start; gap:1rem; }
.office-location__icon { display:grid; place-items:center; width:44px; height:44px; color:var(--link); background:var(--teal-soft); border-radius:12px; }
.office-location--pending .office-location__content h3 { margin:0 0 .5rem; font-size:clamp(1.2rem,2vw,1.55rem); line-height:1.35; }
.office-location--pending .office-location__content p { color:var(--muted); }
.office-location__notice { display:grid; grid-template-columns:21px minmax(0,1fr); align-items:start; gap:.75rem; margin:1.25rem 0 0; padding:1rem 1.1rem; font-size:.9rem; }
.office-location__notice > span { display:flex; padding-top:.2rem; }
.office-location__notice strong { display:block; margin-bottom:.25rem; }
.office-location__notice p { margin:0; line-height:1.6; }
@media (max-width:600px) {
 .office-location--pending .office-location__heading { grid-template-columns:minmax(0,1fr); gap:.75rem; }
}
.privacy-panel { position:fixed; z-index:1000; inset:auto 1rem 1rem auto; max-width:520px; max-height:85vh; overflow:auto; padding:1.5rem; background:var(--surface); border:2px solid var(--line); box-shadow:var(--shadow); border-radius:16px; }
.privacy-panel[hidden] { display:none; }
.privacy-panel h2 { font-size:1.35rem; }
.privacy-panel p { font-size:.9rem; }
.site-footer button.text-link { color:inherit; background:transparent; border:0; cursor:pointer; text-align:left; padding:0; font:inherit; }
:focus-visible { outline:3px solid #a17a36; outline-offset:4px; }
[hidden] { display:none !important; }
.commune-courts > p { margin-bottom:var(--jpl-block-gap); }
.commune-court-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,20rem),1fr)); gap:var(--jpl-block-gap); }
.region-court-card { padding:clamp(1.25rem,3vw,1.65rem); }
.region-court-card .office-card__details { gap:1rem; margin-bottom:1.25rem; }
.region-court-card .office-card__detail { grid-template-columns:42px minmax(0,1fr); align-items:start; gap:.9rem; }
.region-court-card .office-card__detail-icon { width:42px; height:42px; }
.region-court-card .office-card__detail-copy { gap:.15rem; line-height:1.55; color:var(--muted); }
.region-card-values { display:grid; gap:.65rem; list-style:none; padding:0; margin:0; }
.region-card-values li { display:flex; flex-direction:column; gap:.15rem; }
.region-card-notice { font-size:.8rem; }
.region-court-card .office-card__arrow { background:var(--surface-translucent); }
.region-court-card .office-card__link { padding-top:1rem; }
.region-index__current { display:none; }
.location-list a.is-current { border-inline-start:3px solid var(--gold); }
.location-list a.is-current .ui-icon { margin-top:.3rem; }
@media (min-width:961px) { .directory-aside { max-height:calc(100vh - 124px); overflow-y:auto; } }
@media (max-width:960px) { .region-index__current { display:block; margin-top:.35rem; font-size:.8rem; font-weight:600; line-height:1.5; color:var(--link); } }
.sibling-courts { padding:clamp(1.1rem,3vw,2rem); background:var(--teal-soft); border:1px solid var(--line); border-radius:var(--radius); }
.sibling-courts__heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem 2rem; margin-bottom:1.5rem; }
.sibling-courts__heading h2 { margin-bottom:.5rem; font-size:clamp(1.4rem,2.5vw,1.75rem); line-height:1.25; }
.sibling-courts__heading p { margin:0; color:var(--muted); font-size:.95rem; }
.sibling-courts__all { min-height:48px; max-width:100%; color:var(--link); background:var(--surface); border:1px solid var(--line); font-size:.9rem; box-shadow:none; }
.sibling-courts__all .ui-icon { flex-shrink:0; }
.sibling-courts__grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr)); gap:1rem; padding:0; margin:0; list-style:none; }
.sibling-courts__grid > li { min-width:0; margin:0; }
.sibling-court { display:grid; grid-template-columns:42px minmax(0,1fr); grid-template-rows:auto auto 1fr; gap:1rem .9rem; height:100%; padding:1.25rem; color:var(--heading); background:var(--surface); border:1px solid var(--line); border-radius:14px; text-decoration:none; box-shadow:0 4px 12px rgba(45,35,64,.04); }
.sibling-court:hover { border-color:var(--teal); box-shadow:var(--shadow); }
.sibling-court__icon { display:grid; place-items:center; width:42px; height:42px; color:var(--link); background:var(--teal-soft); border-radius:11px; }
.sibling-court h3 { align-self:center; margin:0; font-size:1.1rem; line-height:1.4; }
.sibling-court__address { grid-column:1 / -1; display:flex; align-items:flex-start; gap:.6rem; margin:0; color:var(--muted); font-size:.92rem; line-height:1.6; }
.sibling-court__address .ui-icon { flex-shrink:0; margin-top:.2rem; color:var(--link); }
.sibling-court__notice { grid-column:1 / -1; margin:0; color:var(--muted); font-size:.8rem; }
.sibling-court__action { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:.75rem; align-self:end; padding-top:.85rem; border-top:1px solid var(--line); color:var(--link); font-size:.9rem; font-weight:800; }
.sibling-court__arrow { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; background:var(--teal-soft); border-radius:50%; }
.sibling-court:is(:hover,:focus-visible) .sibling-court__arrow { color:var(--white); background:var(--teal); }
@media (max-width:600px) {
 .sibling-courts__all { width:100%; justify-content:space-between; text-align:left; }
 .sibling-court { padding:1rem; }
}

/* Shared vertical spacing for the adapted templates, including optional blocks. */
.section-heading { row-gap:1rem; }
.section-heading h2, .section-heading p { margin-bottom:0; }
.section--embedded > h2 { margin-bottom:1.5rem; }
.office-shell--body > :is(.sibling-courts,.before-visit,.transaction-hub,.faq-section,.section--embedded) { margin-block:var(--jpl-section-gap) 0; }
.office-shell--body > .section--embedded { padding-block:0; }
.office-detail-grid { gap:var(--jpl-block-gap); }
.office-branch > :is(.detail-card,.office-location) { margin-top:var(--jpl-block-gap); }
.office-branch > .official-note { margin-block:var(--jpl-block-gap) 0; }
.detail-card h4 { margin-block:1.5rem .65rem; }
.detail-card > :last-child { margin-bottom:0; }
.detail-list dd > p { margin-block:.75rem 0; }
.scoped-channels { padding:clamp(1rem,3vw,2rem); background:var(--teal-soft); box-shadow:none; }
.scoped-channels__heading { margin-bottom:1.5rem; }
.scoped-channels__heading h3 { margin:0 0 .6rem; font-size:clamp(1.3rem,2.4vw,1.6rem); line-height:1.3; }
.scoped-channels__heading p { max-width:76ch; margin:0; color:var(--muted); font-size:.95rem; line-height:1.65; }
.channel-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr)); align-items:stretch; gap:1rem; margin:0; padding:0; list-style:none; }
.channel-grid > li { min-width:0; margin:0; padding:0; }
.channel-card { display:flex; flex-direction:column; gap:1rem; min-width:0; height:100%; padding:clamp(1rem,2.5vw,1.5rem); background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 4px 14px rgba(45,35,64,.035); }
.channel-card__heading { display:grid; grid-template-columns:42px minmax(0,1fr); align-items:start; gap:.85rem; }
.channel-card__icon { display:grid; place-items:center; width:42px; height:42px; color:var(--link); background:var(--teal-soft); border-radius:12px; }
.channel-card--phone .channel-card__icon { color:var(--heading); background:var(--gold-soft); }
.channel-card--hours .channel-card__icon { background:var(--sky-soft); }
.channel-card__type { display:block; color:var(--muted); font-size:.76rem; font-weight:650; line-height:1.5; }
.scoped-channels .channel-card__heading h4 { margin:.15rem 0 0; color:var(--heading); font-size:1.08rem; font-weight:800; line-height:1.4; overflow-wrap:anywhere; }
.channel-card__value { min-width:0; }
.channel-card__email { display:flex; align-items:center; min-height:44px; padding-block:.4rem; color:var(--link); font-size:clamp(1rem,2vw,1.15rem); font-weight:750; line-height:1.5; overflow-wrap:anywhere; text-decoration-thickness:1px; text-underline-offset:4px; }
.channel-card__phones { display:flex; flex-direction:column; align-items:flex-start; gap:.6rem; }
.channel-card .channel-card__phone { display:inline-flex; align-items:center; min-height:44px; max-width:100%; font-size:clamp(1.25rem,3vw,1.65rem); }
.channel-card .channel-card__extension { display:table; margin:.75rem 0 0; padding:.25rem .65rem; color:var(--heading); background:var(--gold-soft); border-radius:7px; font-size:.85rem; font-weight:750; }
.channel-card .channel-card__schedule { margin:0; padding:.85rem 1rem; color:var(--heading); background:var(--soft); border-radius:10px; font-size:1rem; font-weight:750; line-height:1.65; overflow-wrap:anywhere; }
.channel-card__details { min-width:0; }
.channel-card .channel-card__scope { max-width:80ch; margin:0; color:var(--body-copy); font-size:.92rem; font-weight:400; line-height:1.7; overflow-wrap:anywhere; }
.channel-card .channel-card__date { margin:.65rem 0 0; color:var(--muted); font-size:.8rem; }
.channel-card__footer { margin-top:auto; padding-top:.85rem; border-top:1px solid var(--line); }
.channel-card__instructions { display:inline-flex; align-items:center; justify-content:space-between; gap:.75rem; min-height:44px; max-width:100%; padding:.55rem .85rem; color:var(--link); background:var(--soft); border:1px solid var(--line); border-radius:9px; font-size:.86rem; font-weight:750; line-height:1.5; text-decoration:none; }
.channel-card__instructions .ui-icon { flex-shrink:0; }
.channel-card__instructions:hover { color:var(--heading); border-color:var(--teal); text-decoration:underline; text-underline-offset:3px; }
@media (max-width:480px) {
 .scoped-channels__heading { margin-bottom:1.1rem; }
 .channel-card__heading { grid-template-columns:36px minmax(0,1fr); gap:.65rem; }
 .channel-card__icon { width:36px; height:36px; border-radius:10px; }
 .scoped-channels .channel-card__heading h4 { font-size:1rem; }
 .channel-card__instructions { width:100%; }
}
.guide-card { row-gap:.85rem; }
.guide-card > :is(h3,p) { margin:0; }
.guide-card > .text-link { padding-top:.35rem; }
.transaction-hub > .guide-grid + p { margin-top:var(--jpl-block-gap); }
.transaction-hub > p > .text-link { color:var(--gold); }
.guide-shell > .directory-cta { margin-top:var(--jpl-section-gap); }
.guide-content > .official-note:first-child { margin-block:0 var(--jpl-block-gap); }
.guide-content > .sources { margin-top:var(--jpl-block-gap); }
.guide-aside > .aside-card + .aside-card { margin-top:var(--jpl-block-gap); }
.site-footer__grid { row-gap:2.5rem; }
.site-footer button.text-link { margin-top:.25rem; padding-block:.4rem; }
@media (max-width:680px) { .hero .search-box .button { flex-basis:auto; } }
@media (max-width:600px) {
 .privacy-panel { inset:auto .5rem .5rem; max-width:none; }
 .office-hero__actions { min-width:0; }
 .region-jump { grid-template-columns:minmax(0,1fr); padding:1rem; }
 .home-region-toggle { padding:1rem; }
 .home-region-toggle h3 { grid-template-columns:36px minmax(0,1fr) 32px; gap:.45rem .65rem; font-size:1rem; }
 .home-region-symbol { grid-column:1; grid-row:1 / 3; width:36px; height:36px; }
 .home-region-name { grid-column:2; grid-row:1; }
 .home-region-count { grid-column:2; grid-row:2; justify-self:start; font-size:.72rem; }
 .home-region-chevron { grid-column:3; grid-row:1 / 3; }
 .home-region-group > .home-office-grid { margin:1rem; }
 .home-region-page-link { padding:0 1rem 1rem; }
}
