:root{
  --ji-primary:#0F3D3E;--ji-secondary:#174C5A;--ji-accent:#B8573C;--ji-bg:#F7F5F0;--ji-text:#1F2933;--ji-border:#E2E0DA;--ji-white:#fff;--ji-radius:18px;--ji-shadow:0 18px 45px rgba(15,61,62,.08);--ji-container:1180px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ji-bg);color:var(--ji-text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.65}a{color:var(--ji-primary);text-decoration-thickness:.08em;text-underline-offset:.18em}a:hover{color:var(--ji-accent)}img{max-width:100%;height:auto;display:block}button,input,textarea,select{font:inherit}.ji-container{width:min(calc(100% - 32px),var(--ji-container));margin-inline:auto}.screen-reader-text,.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:1rem;top:1rem;z-index:99999;background:#fff;color:#000;padding:.75rem 1rem;border:2px solid #000;border-radius:8px}.ji-topbar{background:var(--ji-primary);color:#fff;font-size:.9rem}.ji-topbar__inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.ji-site-header{background:rgba(255,255,255,.96);position:sticky;top:0;z-index:1000;box-shadow:0 1px 0 rgba(0,0,0,.06);backdrop-filter:blur(10px)}.ji-header__inner{display:flex;align-items:center;justify-content:space-between;min-height:82px;gap:2rem}.ji-branding__text{font-weight:800;font-size:1.15rem;text-decoration:none;color:var(--ji-primary)}.custom-logo{max-height:70px;width:auto}.ji-main-nav ul{display:flex;list-style:none;margin:0;padding:0;gap:.25rem;align-items:center}.ji-main-nav a{display:block;padding:.75rem .9rem;border-radius:999px;text-decoration:none;color:var(--ji-text);font-weight:650}.ji-main-nav a:hover,.ji-main-nav .current-menu-item>a{background:rgba(15,61,62,.08);color:var(--ji-primary)}.ji-menu-toggle{display:none;background:transparent;border:0;padding:.6rem;border-radius:8px}.ji-menu-toggle span:not(.screen-reader-text){display:block;width:28px;height:2px;background:var(--ji-primary);margin:6px 0}.ji-hero{background:linear-gradient(135deg,var(--ji-primary),var(--ji-secondary));background-size:cover;background-position:center;color:#fff;padding:clamp(4rem,8vw,7.5rem) 0}.ji-hero__content{max-width:760px}.ji-hero h1{font-size:clamp(2.2rem,6vw,4.6rem);line-height:1.03;margin:.4rem 0 1rem;letter-spacing:-.04em}.ji-hero p{font-size:1.18rem;max-width:680px}.ji-kicker{text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:800;color:var(--ji-accent);margin:0 0 .45rem}.ji-hero .ji-kicker{color:#ffd7c8}.ji-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.6rem}.ji-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:.78rem 1.15rem;background:var(--ji-primary);color:#fff!important;border-radius:999px;text-decoration:none;font-weight:800;border:2px solid var(--ji-primary);box-shadow:0 8px 20px rgba(15,61,62,.16)}.ji-btn:hover{background:var(--ji-accent);border-color:var(--ji-accent);color:#fff!important}.ji-btn--light{background:#fff;border-color:#fff;color:var(--ji-primary)!important}.ji-btn--outline-light{background:transparent;border-color:rgba(255,255,255,.8);color:#fff!important}.ji-section{padding:clamp(3rem,6vw,5.5rem) 0}.ji-section--muted{background:#fff}.ji-section__header{max-width:760px;margin-bottom:2rem}.ji-section__header h2,.ji-split h2,.ji-page-header h1,.ji-article h1{font-size:clamp(1.8rem,4vw,3rem);line-height:1.1;margin:.2rem 0 .75rem;letter-spacing:-.03em;color:var(--ji-primary)}.ji-section__header--row{display:flex;align-items:end;justify-content:space-between;gap:1rem;max-width:none}.ji-grid{display:grid;gap:1.25rem}.ji-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}.ji-card,.ji-service-card,.ji-event-item{background:#fff;border:1px solid var(--ji-border);border-radius:var(--ji-radius);overflow:hidden;box-shadow:var(--ji-shadow)}.ji-section--muted .ji-card,.ji-section--muted .ji-service-card{background:var(--ji-bg)}.ji-card__image img{aspect-ratio:16/10;object-fit:cover;width:100%}.ji-card__body,.ji-service-card{padding:1.4rem}.ji-card h3,.ji-service-card h3,.ji-event-item h3{font-size:1.25rem;line-height:1.2;margin:.2rem 0 .65rem;color:var(--ji-primary)}.ji-card h3 a,.ji-event-item h3 a{text-decoration:none;color:inherit}.ji-card p,.ji-service-card p{margin:.3rem 0 0}.ji-card--featured{border-top:5px solid var(--ji-accent)}.ji-link{font-weight:800;text-decoration:none;color:var(--ji-primary);display:inline-flex;margin-top:.9rem}.ji-link:after{content:" →";white-space:pre}.ji-service-card{min-height:180px}.ji-event-list{display:grid;gap:.85rem}.ji-event-item{display:grid;grid-template-columns:110px 1fr;gap:1rem;align-items:center;padding:1rem}.ji-event-date{background:var(--ji-primary);color:#fff;border-radius:14px;min-height:76px;display:flex;align-items:center;justify-content:center;text-align:center;font-weight:900;text-transform:uppercase}.ji-event-meta{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}.ji-event-meta span{background:#fff;border:1px solid var(--ji-border);border-radius:999px;padding:.35rem .7rem}.ji-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.ji-gallery-card{position:relative;min-height:220px;border-radius:var(--ji-radius);overflow:hidden;background:var(--ji-primary);color:#fff;text-decoration:none;display:flex;align-items:end;padding:1rem;box-shadow:var(--ji-shadow)}.ji-gallery-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.ji-gallery-card:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.62),rgba(0,0,0,.05));z-index:1}.ji-gallery-card strong,.ji-gallery-card span{position:relative;z-index:2;color:#fff}.ji-split{display:grid;grid-template-columns:1fr 1.4fr;gap:2rem;align-items:start}.ji-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.ji-link-grid a{background:#fff;border:1px solid var(--ji-border);border-radius:14px;padding:1rem;text-decoration:none;font-weight:750}.ji-content-area{padding:3rem 0 5rem}.ji-article{max-width:860px;margin-inline:auto}.ji-featured{border-radius:var(--ji-radius);margin:1.5rem 0;box-shadow:var(--ji-shadow)}.ji-entry-content{font-size:1.05rem}.ji-footer{background:var(--ji-primary);color:#fff;margin-top:0}.ji-footer a{color:#fff}.ji-footer__grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;padding:3rem 0}.ji-footer h2,.ji-footer h3{margin-top:0}.ji-footer__bottom{background:rgba(0,0,0,.18);padding:1rem 0;font-size:.92rem}.ji-socials{display:flex;gap:1rem;flex-wrap:wrap}.navigation.pagination{margin-top:2rem}.nav-links{display:flex;gap:.5rem;flex-wrap:wrap}.page-numbers{padding:.45rem .7rem;background:#fff;border:1px solid var(--ji-border);border-radius:8px;text-decoration:none}.page-numbers.current{background:var(--ji-primary);color:#fff}*:focus-visible{outline:3px solid var(--ji-accent);outline-offset:3px}
.ji-badge{display:inline-flex;align-items:center;gap:.35rem;background:rgba(15,61,62,.10);color:var(--ji-primary);border:1px solid rgba(15,61,62,.16);border-radius:999px;padding:.25rem .65rem;font-size:.78rem;font-weight:850;margin-bottom:.65rem}.ji-badge--no_disponible,.ji-badge--suspendido{background:#fff0f0;color:#8a1f1f;border-color:#ffd6d6}.ji-badge--presencial{background:#fff7e8;color:#7a4b00;border-color:#ffe0a8}.ji-badge--municipalidad{background:#eef6ff;color:#104d7a;border-color:#cfe8ff}.ji-badge--proximamente{background:#f3f0ff;color:#42308a;border-color:#ded6ff}.ji-mini-actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center;margin-top:.5rem}.ji-link--small{font-size:.9rem;margin-top:0}.ji-compact-list{list-style:none;margin:.85rem 0 0;padding:0;font-size:.92rem}.ji-compact-list li{margin:.25rem 0}.ji-detail-box{background:#fff;border:1px solid var(--ji-border);border-radius:var(--ji-radius);padding:1.4rem;margin:1.2rem 0;box-shadow:var(--ji-shadow)}.ji-definition-list{display:grid;grid-template-columns:180px 1fr;gap:.6rem 1rem;margin:0}.ji-definition-list dt{font-weight:850;color:var(--ji-primary)}.ji-definition-list dd{margin:0}.ji-form-embed{margin-top:2rem;padding:1.3rem;background:#fff;border:1px solid var(--ji-border);border-radius:var(--ji-radius)}.ji-person-card .ji-card__image img{aspect-ratio:1/1;object-fit:cover}.ji-search-filters{display:flex;gap:.5rem;flex-wrap:wrap;margin:1rem 0 2rem}.ji-search-filters a{background:#fff;border:1px solid var(--ji-border);border-radius:999px;padding:.45rem .75rem;text-decoration:none;font-weight:750}@media(max-width:560px){.ji-definition-list{grid-template-columns:1fr}.ji-definition-list dt{margin-top:.5rem}}

/* Cartelera visual tipo municipal, compacta y navegable */
.ji-events-showcase{background:linear-gradient(135deg,#3f4d59 0%,#34424d 100%);color:#fff;overflow:hidden}.ji-events-showcase .ji-kicker{color:#5ce7f6}.ji-events-showcase .ji-section__header h2{color:#55ddeb}.ji-events-showcase .ji-section__header p{color:rgba(255,255,255,.82)}.ji-events-showcase__all{display:inline-flex;align-items:center;justify-content:center;background:#58ddea;color:#062b34!important;border-radius:999px;padding:.72rem 1.15rem;text-decoration:none;font-weight:900;white-space:nowrap}.ji-events-showcase__all:after{content:"  ›";font-size:1.25em;line-height:0}.ji-events-carousel{position:relative;margin-top:1.2rem}.ji-events-carousel__track{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(250px,1fr);gap:1.8rem;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:inline mandatory;scroll-behavior:smooth;padding:.3rem .1rem 1.3rem;scrollbar-width:none}.ji-events-carousel__track::-webkit-scrollbar{display:none}.ji-event-tile{position:relative;scroll-snap-align:start;min-height:390px;background:rgba(10,24,31,.56);border:1px solid rgba(255,255,255,.08);box-shadow:0 18px 35px rgba(0,0,0,.18);padding:1.25rem;border-radius:0;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.ji-event-tile:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 0%,rgba(85,221,235,.11),transparent 42%);pointer-events:none}.ji-event-tile__link{position:relative;z-index:1;display:flex;flex-direction:column;min-height:300px;text-decoration:none;color:#fff!important}.ji-event-tile__date{display:flex;align-items:flex-end;gap:.35rem;color:rgba(255,255,255,.15);line-height:.8;text-transform:uppercase;letter-spacing:-.04em;margin:-.55rem 0 1.2rem}.ji-event-tile__date strong{font-size:5.2rem;font-weight:950}.ji-event-tile__date span{font-size:1.35rem;font-weight:900;color:rgba(255,255,255,.24);letter-spacing:-.04em;margin-bottom:.55rem}.ji-event-tile h3{color:#fff;font-size:1.38rem;line-height:1.23;margin:0 0 .8rem;letter-spacing:-.025em}.ji-event-tile p{color:rgba(255,255,255,.58);font-weight:650;line-height:1.18;margin:0 0 1rem}.ji-event-tile__badges{display:flex;gap:.35rem;flex-wrap:wrap;margin-bottom:.8rem}.ji-event-tile__badge{display:inline-flex;border:1px solid rgba(85,221,235,.36);color:#55ddeb;border-radius:999px;padding:.2rem .55rem;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em}.ji-event-tile__badge--soft{color:rgba(255,255,255,.72);border-color:rgba(255,255,255,.18)}.ji-event-tile__meta{display:grid;gap:.18rem;color:rgba(255,255,255,.76);font-size:.88rem;font-weight:800;margin-top:auto}.ji-event-tile__actions{position:relative;z-index:2;display:flex;gap:.55rem;justify-content:flex-end;align-items:center;flex-wrap:wrap}.ji-event-tile__actions a{display:inline-flex;align-items:center;gap:.35rem;border:1px solid #55ddeb;border-radius:999px;color:#55ddeb!important;text-decoration:none;font-weight:900;padding:.42rem .72rem;background:rgba(0,0,0,.08)}.ji-event-tile__actions a:hover{background:#55ddeb;color:#062b34!important}.ji-events-carousel__arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:44px;height:64px;border:0;background:transparent;color:#fff;font-size:4rem;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;text-shadow:0 2px 12px rgba(0,0,0,.28)}.ji-events-carousel__arrow--prev{left:-2.2rem}.ji-events-carousel__arrow--next{right:-2.2rem}.ji-events-carousel__arrow:hover{color:#55ddeb}.ji-events-carousel__arrow:disabled{opacity:.25;cursor:default}.ji-events-carousel__track:focus-visible{outline:3px solid #55ddeb;outline-offset:6px}@media(min-width:1020px){.ji-events-carousel__track{grid-auto-columns:calc((100% - 5.4rem)/4)}}@media(max-width:900px){.ji-events-showcase__header{align-items:flex-start}.ji-events-carousel__arrow{display:none}.ji-events-carousel__track{grid-auto-columns:minmax(245px,78vw);gap:1rem}.ji-event-tile{min-height:360px}.ji-event-tile__date strong{font-size:4.3rem}.ji-event-tile__date span{font-size:1.05rem}}@media(max-width:560px){.ji-events-showcase__all{width:100%;margin-top:.6rem}.ji-event-tile{min-height:335px;padding:1rem}.ji-event-tile h3{font-size:1.2rem}.ji-event-tile__date strong{font-size:3.8rem}}

/* --- Visual refresh: portada estilo municipal + noticias estilo Lo Barnechea --- */
.ji-topbar{background:#232733}
.ji-topbar a{color:#fff}
.ji-site-header{background:#49c7dc}
.ji-header__inner{min-height:60px}
.ji-main-nav a{color:#173d4a;font-weight:700;border-radius:0;padding:1rem .95rem}
.ji-main-nav a:hover,.ji-main-nav .current-menu-item>a{background:rgba(255,255,255,.18);color:#173d4a}
.ji-branding__text{color:#fff;font-size:1.35rem}
.custom-logo{max-height:56px}

.ji-home-hero{background:#ece6e0;padding:0 0 1rem}
.ji-home-hero__grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(320px,.7fr);gap:0;align-items:stretch}
.ji-home-hero__main{min-height:620px;background:linear-gradient(135deg,#f3ece6,#ede5df);background-size:cover;background-position:center;position:relative;overflow:hidden}
.ji-home-hero__main:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.22))}
.ji-home-hero__overlay{position:relative;z-index:2;padding:clamp(2rem,4vw,3rem);display:flex;flex-direction:column;justify-content:flex-end;min-height:620px;max-width:720px;color:#fff;background:linear-gradient(90deg,rgba(35,39,51,.28),rgba(35,39,51,.02))}
.ji-home-hero__eyebrow{display:inline-block;margin:0 0 .5rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;background:#ff7b63;color:#fff;padding:.35rem .7rem;border-radius:6px;font-size:.82rem;max-width:max-content}
.ji-home-hero h1{font-size:clamp(2.6rem,6vw,5rem);line-height:.98;letter-spacing:-.05em;margin:0 0 .9rem;text-shadow:0 2px 12px rgba(0,0,0,.16)}
.ji-home-hero__lead{font-size:1.12rem;max-width:680px;margin:0 0 1rem;text-shadow:0 1px 4px rgba(0,0,0,.2)}
.ji-home-hero__panel{background:#2e3540;color:#fff;padding:2rem 1.25rem;position:relative;overflow:hidden}
.ji-home-hero__panel:before,.ji-home-hero__panel:after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}
.ji-home-hero__panel:before{width:180px;height:180px;right:-80px;bottom:-80px}
.ji-home-hero__panel:after{width:12px;height:12px;right:62px;bottom:120px;box-shadow:-26px 0 0 rgba(255,255,255,.12),-52px 0 0 rgba(255,255,255,.12),0 -26px 0 rgba(255,255,255,.12),-26px -26px 0 rgba(255,255,255,.12),-52px -26px 0 rgba(255,255,255,.12),0 -52px 0 rgba(255,255,255,.12),-26px -52px 0 rgba(255,255,255,.12),-52px -52px 0 rgba(255,255,255,.12)}
.ji-home-hero__panel h2{margin:0 0 1rem;font-size:2.1rem;line-height:1.05;color:#fff;text-align:center}
.ji-hero-search{position:relative;margin-bottom:1.35rem}
.ji-hero-search input{width:100%;height:52px;border-radius:999px;border:0;padding:0 3.2rem 0 1rem;font-size:1rem;color:#1f2933}
.ji-hero-search button{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:999px;border:0;background:#49c7dc;color:#173d4a;font-size:1.2rem;font-weight:800;cursor:pointer}
.ji-hero-pills{display:flex;flex-wrap:wrap;gap:.7rem;position:relative;z-index:2}
.ji-hero-pills a{display:inline-flex;align-items:center;justify-content:center;padding:.65rem .95rem;border-radius:999px;border:2px solid #49c7dc;color:#49c7dc;text-decoration:none;font-weight:700;line-height:1.1;background:transparent}
.ji-hero-pills a:hover{background:#49c7dc;color:#173d4a}
.ji-home-shortcuts{margin-top:0}
.ji-home-shortcuts__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;background:#49c7dc}
.ji-shortcut{position:relative;display:flex;align-items:center;gap:1rem;min-height:140px;padding:1.6rem 1.6rem 1.6rem 1.8rem;color:#fff;text-decoration:none;border-right:1px solid rgba(255,255,255,.22)}
.ji-shortcut:last-child{border-right:0}
.ji-shortcut__text{font-size:2rem;line-height:1.05;font-weight:500;max-width:260px}
.ji-shortcut__icon{width:46px;height:46px;flex:none;position:relative;display:inline-block}
.ji-shortcut--1 .ji-shortcut__icon:before{content:"";position:absolute;inset:4px;border-radius:10px;border:4px solid #fff;border-top-color:transparent;transform:rotate(45deg)}
.ji-shortcut--2 .ji-shortcut__icon:before{content:"";position:absolute;inset:2px;border:3px solid #fff;border-radius:10px}.ji-shortcut--2 .ji-shortcut__icon:after{content:"";position:absolute;left:9px;right:9px;top:16px;height:3px;background:#fff;box-shadow:0 11px 0 #fff}
.ji-shortcut--3 .ji-shortcut__icon:before{content:"";position:absolute;width:40px;height:40px;border:4px solid #fff;border-radius:50%;left:0;top:0}.ji-shortcut--3 .ji-shortcut__icon:after{content:"";position:absolute;width:18px;height:4px;background:#fff;right:-2px;bottom:6px;transform:rotate(45deg);border-radius:3px}
.ji-shortcut:hover{background:#35bfd6}

.ji-news-section{background:#dfe3e7;padding:2rem 0 3rem}
.ji-news-section__title{display:block;background:#49c7dc;color:#fff;font-size:clamp(2rem,4vw,3.2rem);font-weight:800;line-height:1;padding:1.25rem 1.5rem;margin-bottom:2rem}
.ji-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}
.ji-news-card{display:flex;flex-direction:column;background:#49c7dc;min-height:100%;box-shadow:0 2px 0 rgba(0,0,0,.04)}
.ji-news-card__category{padding:1rem 1.25rem;color:#4b5568;font-weight:700;font-size:1.05rem}
.ji-news-card__image img{width:100%;aspect-ratio:4/2.1;object-fit:cover}
.ji-news-card__body{padding:1rem 1.25rem 1.25rem;color:#4b5568;flex:1}
.ji-news-card__body h3{margin:0 0 .8rem;font-size:1.08rem;line-height:1.28;color:#4b5568}
.ji-news-card__body h3 a{color:inherit;text-decoration:none}
.ji-news-card__body p{margin:0;font-size:1rem;line-height:1.42}
.ji-news-card__footer{padding:1rem 1.25rem;border-top:1px solid rgba(255,255,255,.14);display:flex;justify-content:flex-end}
.ji-news-card__footer a,.ji-btn--news{display:inline-flex;align-items:center;gap:.4rem;color:#fff!important;background:transparent;border:0;box-shadow:none;text-decoration:none;font-weight:800;font-size:1rem}
.ji-news-card__footer a span,.ji-btn--news span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#fff;color:#49c7dc;font-size:1rem}
.ji-news-section__cta{display:flex;justify-content:center;margin-top:2.2rem}
.ji-btn--news{padding:.85rem 1.3rem;border-radius:999px;background:#49c7dc;color:#fff!important}

@media (max-width: 1180px){
  .ji-home-hero__grid{grid-template-columns:1fr}
  .ji-home-hero__panel{padding:1.5rem}
  .ji-home-hero__main,.ji-home-hero__overlay{min-height:460px}
}
@media (max-width: 920px){
  .ji-site-header{background:#fff}
  .ji-main-nav{background:#49c7dc}
  .ji-home-shortcuts__grid,.ji-news-grid{grid-template-columns:1fr}
  .ji-shortcut{border-right:0;border-bottom:1px solid rgba(255,255,255,.22);min-height:110px}
  .ji-shortcut:last-child{border-bottom:0}
  .ji-shortcut__text{font-size:1.5rem;max-width:none}
}
@media (max-width: 560px){
  .ji-home-hero__main,.ji-home-hero__overlay{min-height:320px}
  .ji-home-hero__overlay{padding:1.25rem}
  .ji-home-hero h1{font-size:2.3rem}
  .ji-home-hero__panel h2{font-size:1.7rem}
  .ji-news-section__title{padding:1rem 1.1rem}
  .ji-news-card__category,.ji-news-card__body,.ji-news-card__footer{padding-left:1rem;padding-right:1rem}
}

/* --- v1.6 systemic municipal look & feel --- */
body{background:#eef1f4;color:#44546a}
a{color:#2d4353}
.ji-section{padding:2.4rem 0 3rem}
.ji-block-section{background:#e3e7eb}
.ji-block-section--muted{background:#d8dde2}
.ji-block-heading{margin-bottom:1.6rem}
.ji-block-heading--row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.ji-block-heading__title{display:block;background:#49c7dc;color:#fff;font-size:clamp(1.7rem,4vw,2.9rem);font-weight:800;line-height:1;padding:1.1rem 1.4rem;margin-bottom:.9rem}
.ji-block-heading__text p{margin:0;color:#55657a;font-size:1rem}
.ji-block-heading__cta{margin-left:auto}
.ji-section__header h2,.ji-split h2,.ji-page-header h1,.ji-article h1{color:#fff}
.ji-unified-grid{align-items:stretch}
.ji-unified-card{display:flex;flex-direction:column;background:#49c7dc;color:#4b5568;min-height:100%;box-shadow:0 1px 0 rgba(0,0,0,.06)}
.ji-unified-card__top{padding:1rem 1.25rem;color:#4b5568;font-weight:700;font-size:1.05rem}
.ji-unified-card__image img,.ji-unified-card__image{display:block;width:100%}.ji-unified-card__image img{aspect-ratio:4/2.1;object-fit:cover}
.ji-unified-card__body{padding:1rem 1.25rem 1.25rem;flex:1}.ji-unified-card__body h3{margin:0 0 .8rem;font-size:1.1rem;line-height:1.28;color:#4b5568}.ji-unified-card__body h3 a{color:inherit;text-decoration:none}.ji-unified-card__body p{margin:.1rem 0 0;line-height:1.45}.ji-unified-card__meta{margin:0 0 .45rem;font-size:.92rem;color:#607084}.ji-unified-card__footer{padding:1rem 1.25rem;border-top:1px solid rgba(255,255,255,.16);display:flex;justify-content:flex-end;margin-top:auto}.ji-unified-card__footer a{display:inline-flex;align-items:center;gap:.4rem;text-decoration:none;color:#fff;font-weight:800}.ji-unified-card__footer a span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#fff;color:#49c7dc;font-size:1rem}
.ji-unified-card--person .ji-unified-card__image img{aspect-ratio:4/3}
.ji-unified-card--service .ji-badge{margin-bottom:.85rem}

.ji-compact-list{padding-left:1rem;margin:.75rem 0 0}.ji-compact-list li{margin:.28rem 0}
.ji-badge{display:inline-flex;align-items:center;border-radius:999px;padding:.3rem .7rem;font-size:.84rem;font-weight:800;background:#fff;color:#355565;border:1px solid rgba(0,0,0,.08)}

.ji-events-showcase{background:#495663;color:#fff}.ji-events-showcase__header h2,.ji-events-showcase__header p,.ji-events-showcase__all{color:#fff}.ji-events-showcase__header .ji-kicker{color:#49c7dc}.ji-events-showcase__all{font-weight:800;text-decoration:none}
.ji-event-tile{background:#2d3a45;color:#fff}.ji-event-tile__link{text-decoration:none;color:inherit}.ji-event-tile__date strong{font-size:4.2rem;line-height:.9;color:rgba(255,255,255,.18)}.ji-event-tile__date span{text-transform:uppercase;font-size:1rem;color:rgba(255,255,255,.45)}.ji-event-tile__badge{background:transparent;border:1px solid #49c7dc;color:#49c7dc}.ji-event-tile__badge--soft{border-color:rgba(255,255,255,.3);color:rgba(255,255,255,.7)}.ji-event-tile h3,.ji-event-tile p,.ji-event-tile__meta span,.ji-event-tile__actions a{color:#fff}.ji-event-tile__actions a:first-child{font-weight:800}

.ji-gallery-grid--refresh{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2rem}.ji-gallery-card--refresh{min-height:320px;padding:1rem 1rem 1.25rem;text-decoration:none;position:relative;display:flex;flex-direction:column;justify-content:flex-end}.ji-gallery-card--refresh img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.ji-gallery-card--refresh:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(38,50,56,.85),rgba(38,50,56,.18))}.ji-gallery-card__label,.ji-gallery-card--refresh strong,.ji-gallery-card--refresh em{position:relative;z-index:2;color:#fff;font-style:normal}.ji-gallery-card__label{display:inline-flex;align-self:flex-start;background:#49c7dc;padding:.45rem .7rem;border-radius:999px;font-weight:800;font-size:.82rem;margin-bottom:auto}.ji-gallery-card--refresh strong{font-size:1.45rem;line-height:1.15;margin-top:1rem}.ji-gallery-card--refresh em{margin-top:.7rem;font-weight:800;display:inline-flex;gap:.4rem;align-items:center}

.ji-footer{background:#2e3540;color:#fff}.ji-footer__topband{height:12px;background:#49c7dc}.ji-footer__grid{padding:2.6rem 0}.ji-footer__bottom{background:#232733}

.ji-interior-shell{padding:0 0 3rem}.ji-interior-hero{background:#2e3540;color:#fff;margin:0 0 1.5rem}.ji-interior-hero__content{padding:2rem 1.6rem}.ji-interior-hero h1{margin:.35rem 0 0;font-size:clamp(2rem,4vw,3.4rem);line-height:1.02;color:#fff}.ji-interior-hero p{max-width:860px}.ji-content-panel{background:#e3e7eb;padding:1.5rem}.ji-content-panel--single,.ji-content-panel--page{padding:0}.ji-content-panel__inner{padding:1.5rem;background:#fff}.ji-content-panel__inner .ji-btn--news{margin-top:1rem}.ji-featured{width:100%;border-radius:0;margin:0 0 1.25rem;box-shadow:none}.ji-entry-content{color:#334155}.ji-detail-box{background:#dfe9ec;border-left:6px solid #49c7dc;padding:1rem 1.15rem;margin:0 0 1.25rem}.ji-definition-list{display:grid;grid-template-columns:180px 1fr;gap:.55rem 1rem}.ji-definition-list dt{font-weight:800;color:#3d5560}.ji-definition-list dd{margin:0}.ji-search-filters{display:flex;flex-wrap:wrap;gap:.7rem;margin-bottom:1.25rem}.ji-search-filters a{display:inline-flex;padding:.65rem .9rem;border-radius:999px;background:#49c7dc;color:#fff;text-decoration:none;font-weight:700}

.ji-article h1{color:#2f3947}
.ji-btn{box-shadow:none}.ji-btn--light{color:#2e3540!important}.ji-btn--outline-light:hover{background:#49c7dc;border-color:#49c7dc}.ji-link-grid a{background:#fff}

/* --- v1.7 header, mega menu, full width hero, section backgrounds and refined interactions --- */
:root{--ji-cyan:#49c7dc;--ji-dark:#252833;--ji-panel:#303942;--ji-ink:#435063}
.ji-site-header--municipal{position:sticky;top:0;z-index:3000;background:transparent;box-shadow:0 2px 16px rgba(0,0,0,.08)}
.ji-topbar{background:var(--ji-dark);color:#dbe5ea}
.ji-topbar__inner{min-height:44px;display:flex;justify-content:space-between;align-items:center;gap:1rem}
.ji-topbar__brandline{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;font-size:.88rem}
.ji-topbar__brandline span+span:before{content:"::: ";opacity:.45;margin-right:.35rem}
.ji-topbar__links{display:flex;gap:.85rem;align-items:center;flex-wrap:wrap}
.ji-topbar__links a{color:#dbe5ea;text-decoration:none;font-size:.88rem;font-weight:650}
.ji-topbar__links a:hover{color:var(--ji-cyan)}
.ji-mainbar{background:var(--ji-cyan)}
.ji-header__inner{min-height:58px}
.ji-branding__text{display:inline-flex;align-items:center;gap:.65rem;color:#fff;text-decoration:none;font-size:1.05rem;font-weight:800}
.ji-branding__mark{width:42px;height:42px;border-radius:10px;background:rgba(255,255,255,.22);display:inline-flex;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.65);font-size:.9rem;letter-spacing:-.05em}
.ji-main-nav--mega ul{gap:0}
.ji-main-nav--mega li{position:relative}
.ji-main-nav--mega a{border-radius:0;color:#163f4b;padding:1.05rem 1rem;transition:background .2s ease,color .2s ease,transform .2s ease}
.ji-main-nav--mega>ul>li>a:hover,.ji-main-nav--mega>ul>li:focus-within>a,.ji-main-nav--mega .current-menu-item>a{background:rgba(255,255,255,.22)}
.ji-main-nav--mega .menu-item-has-children>a:after{content:"";display:inline-block;width:.46rem;height:.46rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:.55rem;margin-bottom:.18rem}
.ji-main-nav--mega .sub-menu{position:absolute;left:0;top:100%;width:min(680px,calc(100vw - 2rem));display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;background:#303942;padding:1rem;border-radius:0 0 18px 18px;box-shadow:0 20px 45px rgba(0,0,0,.22);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;list-style:none;margin:0}
.ji-main-nav--mega li:hover>.sub-menu,.ji-main-nav--mega li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.ji-main-nav--mega .sub-menu a{display:flex;align-items:center;gap:.65rem;min-height:52px;border:1px solid rgba(73,199,220,.55);border-radius:999px;color:var(--ji-cyan);padding:.75rem .95rem;background:transparent}
.ji-main-nav--mega .sub-menu a:before{content:"";width:22px;height:22px;border:2px solid currentColor;border-radius:50%;box-shadow:inset -6px -6px 0 rgba(73,199,220,.16);flex:none}
.ji-main-nav--mega .sub-menu a:hover{background:var(--ji-cyan);color:#163f4b;transform:translateX(2px)}
.ji-home-hero{padding:0;background:#e6ebef}
.ji-home-hero__grid{width:100%;display:grid;grid-template-columns:minmax(0,3fr) minmax(340px,1fr);gap:0}
.ji-home-hero__main{min-height:650px}
.ji-home-hero__overlay{min-height:650px;padding-left:max(2rem,calc((100vw - var(--ji-container))/2 + 1rem));padding-right:2rem;background:linear-gradient(90deg,rgba(37,40,51,.28),rgba(37,40,51,.04))}
.ji-home-hero__panel{min-height:650px;padding:2rem max(1.25rem,calc((100vw - var(--ji-container))/2 + 1rem)) 2rem 1.25rem}
.ji-home-shortcuts{width:100%}
.ji-home-shortcuts__grid{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.ji-shortcut{transition:background .2s ease,transform .2s ease}
.ji-shortcut:hover{transform:translateY(-2px)}
.ji-shortcut__icon{filter:drop-shadow(0 6px 10px rgba(0,0,0,.12))}
.ji-hero-pills a,.ji-btn,.ji-news-card,.ji-unified-card,.ji-event-tile,.ji-gallery-card--refresh{transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease}
.ji-hero-pills a:hover,.ji-btn:hover,.ji-news-card:hover,.ji-unified-card:hover,.ji-event-tile:hover,.ji-gallery-card--refresh:hover{transform:translateY(-3px)}
.ji-news-card:hover,.ji-unified-card:hover,.ji-event-tile:hover,.ji-gallery-card--refresh:hover{box-shadow:0 20px 40px rgba(37,40,51,.16)}
.ji-has-section-bg{position:relative;overflow:hidden;background:transparent!important}
.ji-has-section-bg:before{content:"";position:absolute;inset:-26px;background-image:var(--ji-section-bg);background-size:cover;background-position:center;filter:blur(var(--ji-section-blur));transform:scale(1.06);z-index:0}
.ji-has-section-bg:after{content:"";position:absolute;inset:0;background:rgba(37,40,51,var(--ji-section-overlay));z-index:1}
.ji-has-section-bg>.ji-container,.ji-has-section-bg .ji-events-showcase__inner{position:relative;z-index:2}
.ji-has-section-bg .ji-block-heading__text p,.ji-has-section-bg .ji-events-showcase__header p{color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.2)}
.ji-has-section-bg .ji-block-heading__title{box-shadow:0 14px 35px rgba(0,0,0,.14)}
.ji-event-tile__actions a span,.ji-news-card__footer a span,.ji-unified-card__footer a span,.ji-btn--news span{transition:transform .18s ease}
.ji-event-tile__actions a:hover span,.ji-news-card__footer a:hover span,.ji-unified-card__footer a:hover span,.ji-btn--news:hover span{transform:translateX(3px)}
.ji-events-carousel__arrow{transition:background .18s ease,transform .18s ease}
.ji-events-carousel__arrow:hover{background:var(--ji-cyan);color:#163f4b;transform:translateY(-50%) scale(1.06)}
@media (max-width:1180px){
  .ji-home-hero__grid{grid-template-columns:1fr}
  .ji-home-hero__main,.ji-home-hero__overlay,.ji-home-hero__panel{min-height:auto}
  .ji-home-hero__overlay{min-height:460px;padding-left:2rem}
  .ji-home-hero__panel{padding:1.5rem 2rem}
}
@media (max-width:920px){
  .ji-topbar__links{display:none}
  .ji-site-header--municipal .ji-mainbar{background:#fff}
  .ji-menu-toggle span:not(.screen-reader-text){background:#163f4b}
  .ji-main-nav--mega{background:#303942}
  .ji-main-nav--mega a{color:#fff}
  .ji-main-nav--mega .sub-menu{position:static;width:100%;display:none!important;opacity:1;visibility:visible;transform:none;box-shadow:none;border-radius:14px;margin:.25rem 0 .5rem;background:rgba(0,0,0,.18);grid-template-columns:1fr}
  .ji-main-nav--mega li.is-submenu-open>.sub-menu,.ji-main-nav--mega li:focus-within>.sub-menu{display:grid!important}
  .ji-main-nav--mega .menu-item-has-children>a{display:flex;justify-content:space-between;align-items:center}
  .ji-home-shortcuts__grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .ji-hero-pills a,.ji-btn,.ji-news-card,.ji-unified-card,.ji-event-tile,.ji-gallery-card--refresh,.ji-main-nav--mega a{transition:none!important}
}

/* --- v1.8 requested refinements: simple top menu, modal search, 404 collage, accessibility icon --- */
.ji-site-header--municipal .ji-mainbar{background:#49c7dc}
.ji-main-nav--mega>ul>li>a{background:transparent!important;border-radius:0;color:#153945;padding:.95rem .9rem;font-weight:500}
.ji-main-nav--mega>ul>li+li>a:before{content:"|";display:inline-block;margin-right:1rem;color:rgba(21,57,69,.55);font-weight:400}
.ji-main-nav--mega>ul>li>a:hover{color:#0b2d38;text-decoration:underline;text-underline-offset:.25em}
.ji-main-nav--mega .sub-menu{border-top:4px solid #49c7dc}
.ji-topbar__links a,.ji-top-search-trigger{background:transparent;border:0;color:#dbe5ea;text-decoration:none;font-size:.88rem;font-weight:650;cursor:pointer;padding:0}
.ji-topbar__links a:hover,.ji-top-search-trigger:hover{color:#49c7dc}
.ji-top-search-trigger:after{content:"⌕";font-size:1.25rem;margin-left:.45rem;vertical-align:-.08em;color:#49c7dc}
.ji-search-open{overflow:hidden}
.ji-search-modal[hidden]{display:none}
.ji-search-modal{position:fixed;inset:0;z-index:5000;display:flex;align-items:flex-start;justify-content:center;padding-top:34px}
.ji-search-modal__overlay{position:absolute;inset:0;background:rgba(0,0,0,.68)}
.ji-search-modal__dialog{position:relative;z-index:1;width:min(1500px,calc(100vw - 80px));background:#fff;color:#6b7280;box-shadow:0 20px 70px rgba(0,0,0,.32)}
.ji-search-modal__bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #d9dee4;padding:1.25rem 1.6rem}
.ji-search-modal__bar form{display:flex;align-items:center;gap:1rem;width:100%;max-width:360px}
.ji-search-modal__bar input{height:44px;border:0;background:transparent;width:100%;outline:0;font-size:1rem;color:#374151}
.ji-search-modal__submit{border:0;background:transparent;color:#3587c6;font-size:1.8rem;cursor:pointer;line-height:1}
.ji-search-modal__close{width:34px;height:34px;border:0;background:transparent;position:relative;cursor:pointer}
.ji-search-modal__close:before{content:"";position:absolute;left:8px;right:8px;top:16px;height:3px;background:#1f2937}
.ji-search-modal__body{padding:1.6rem 1.6rem 3.6rem}
.ji-search-modal__body h2{font-size:1.65rem;font-weight:500;color:#6b7280;margin:0 0 1.7rem}
.ji-search-modal__pills{display:flex;gap:.65rem;flex-wrap:wrap}
.ji-search-modal__pills a{display:inline-flex;align-items:center;min-height:36px;border:1.6px solid #37c8e0;border-radius:999px;padding:.45rem .8rem;color:#9aa0a6;text-decoration:none;font-weight:600;background:#fff}
.ji-search-modal__pills a:hover{background:#37c8e0;color:#fff}
.ji-accessibility{position:fixed;right:22px;bottom:22px;z-index:4000}
.ji-accessibility__toggle{width:72px;height:72px;border-radius:50%;border:4px solid #fff;background:#2f4cf4;box-shadow:0 10px 28px rgba(47,76,244,.25);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ji-accessibility__icon{position:relative;width:42px;height:42px;border:3px solid #fff;border-radius:50%;display:block}
.ji-accessibility__head{position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;left:50%;top:8px;transform:translateX(-50%)}
.ji-accessibility__arms{position:absolute;left:9px;right:9px;top:19px;height:3px;background:#fff;border-radius:3px}
.ji-accessibility__body{position:absolute;left:50%;top:16px;width:3px;height:18px;background:#fff;border-radius:3px;transform:translateX(-50%)}
.ji-accessibility__body:before,.ji-accessibility__body:after{content:"";position:absolute;width:3px;height:13px;background:#fff;border-radius:3px;top:12px;transform-origin:top}
.ji-accessibility__body:before{left:-5px;transform:rotate(28deg)}
.ji-accessibility__body:after{right:-5px;transform:rotate(-28deg)}
.ji-accessibility__panel{position:absolute;right:0;bottom:84px;background:#fff;border-radius:18px;padding:.8rem;box-shadow:0 18px 50px rgba(0,0,0,.22);display:grid;gap:.45rem;min-width:220px}
.ji-accessibility__panel button{border:1px solid #d9dee4;background:#fff;border-radius:999px;padding:.55rem .8rem;text-align:left;cursor:pointer;font-weight:700;color:#26323c}
.ji-accessibility__panel button:hover{background:#49c7dc;color:#fff}
.ji-404-page{background:#fff;min-height:calc(100vh - 120px);display:flex;align-items:center}
.ji-404-wrap{display:grid;grid-template-columns:minmax(420px,1.1fr) minmax(320px,.9fr);gap:clamp(2rem,7vw,7rem);align-items:center;padding:2rem 0 4rem}
.ji-404-collage{position:relative;min-height:560px}
.ji-404-photo{position:absolute;margin:0;overflow:hidden;background:#eef1f4}
.ji-404-photo img{width:100%;height:100%;object-fit:cover}
.ji-404-photo--1{width:52%;height:70%;left:38%;top:0}
.ji-404-photo--2{width:40%;height:40%;left:0;bottom:3%}
.ji-404-photo--3{width:17%;height:20%;left:20%;top:29%}
.ji-404-photo--4{width:18%;height:22%;left:38%;bottom:7%}
.ji-404-content h1{font-size:clamp(4.5rem,9vw,6.5rem);line-height:1;margin:0 0 1.25rem;color:#172247;letter-spacing:-.06em}
.ji-404-content p{font-size:clamp(1.35rem,2.2vw,1.85rem);color:#263a68;margin:0 0 2rem;line-height:1.25}
.ji-404-button{display:inline-flex;min-height:58px;align-items:center;justify-content:center;background:#4d7df4;color:#fff!important;border-radius:22px;padding:.9rem 2.2rem;text-decoration:none;font-size:1.1rem;font-weight:800}
.ji-404-button:hover{background:#2f4cf4;transform:translateY(-2px)}
@media (max-width:920px){
  .ji-main-nav--mega>ul>li+li>a:before{display:none}
  .ji-search-modal{padding-top:0;align-items:flex-start}
  .ji-search-modal__dialog{width:100vw}
  .ji-404-wrap{grid-template-columns:1fr;text-align:center}
  .ji-404-collage{min-height:390px;order:1}
  .ji-404-content{order:2}
}
@media (max-width:560px){
  .ji-search-modal__bar{padding:1rem}
  .ji-search-modal__body{padding:1.2rem 1rem 2rem}
  .ji-accessibility__toggle{width:62px;height:62px}
  .ji-accessibility__icon{width:36px;height:36px}
  .ji-404-collage{min-height:310px}
  .ji-404-photo--1{width:62%;left:32%}
  .ji-404-photo--2{width:48%}
}

/* --- v1.9 corrections: accessibility, compact hero, menu uppercase, pills layout --- */
a:hover{text-decoration:none!important}
.ji-main-nav--mega>ul>li>a{
  text-transform:uppercase;
  letter-spacing:.015em;
  font-weight:600;
  text-decoration:none!important;
}
.ji-main-nav--mega>ul>li>a:hover{
  text-decoration:none!important;
  color:#0b2d38;
}
.ji-topbar__links a,
.ji-top-search-trigger{
  text-transform:uppercase;
  letter-spacing:.04em;
}
.ji-home-hero__main,
.ji-home-hero__overlay,
.ji-home-hero__panel{
  min-height:clamp(420px, calc(100vh - 210px), 560px)!important;
}
.ji-home-hero h1{
  font-size:clamp(2rem,4.8vw,4.25rem)!important;
  line-height:1!important;
}
.ji-home-hero__lead{
  font-size:1.02rem!important;
  max-width:620px;
}
.ji-home-hero__overlay{
  padding-top:1.6rem!important;
  padding-bottom:1.6rem!important;
}
.ji-home-hero__panel{
  padding-top:1.25rem!important;
  padding-bottom:1.25rem!important;
}
.ji-home-hero__panel h2{
  font-size:clamp(1.55rem,2.2vw,2rem)!important;
  margin-bottom:.85rem!important;
}
.ji-hero-search{
  margin-bottom:1rem!important;
}
.ji-hero-pills{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.58rem!important;
}
.ji-hero-pills a{
  width:100%;
  min-height:38px;
  justify-content:center;
  text-align:center;
  padding:.52rem .65rem!important;
  font-size:.92rem;
}
.ji-home-shortcuts .ji-shortcut{
  min-height:110px!important;
}
.ji-shortcut__text{
  font-size:clamp(1.15rem,2vw,1.55rem)!important;
}
.ji-accessibility__panel[hidden]{display:none!important}
.ji-accessibility:not(.is-open) .ji-accessibility__panel{display:none!important}
.ji-accessibility.is-open .ji-accessibility__panel{display:grid!important}
.ji-high-contrast body,
html.ji-high-contrast body{background:#000!important;color:#fff!important}
.ji-high-contrast a,
html.ji-high-contrast a{color:#ffff00!important}
.ji-high-contrast .ji-card,
.ji-high-contrast .ji-unified-card,
.ji-high-contrast .ji-news-card,
.ji-high-contrast .ji-service-card,
.ji-high-contrast .ji-content-panel,
.ji-high-contrast .ji-content-panel__inner{background:#111!important;color:#fff!important;border-color:#fff!important}
.ji-underline-links a{text-decoration:underline!important;text-underline-offset:.18em}
.ji-reduce-motion *,
html.ji-reduce-motion *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media (max-width:1180px){
  .ji-home-hero__main,
  .ji-home-hero__overlay,
  .ji-home-hero__panel{
    min-height:auto!important;
  }
  .ji-home-hero__overlay{min-height:360px!important}
}
@media (max-width:560px){
  .ji-hero-pills{grid-template-columns:1fr}
  .ji-home-hero__overlay{min-height:320px!important}
}

/* --- v2.0 Lo Barnechea fidelity reset: clean header, image hero, right pills, visible shortcuts --- */
.ji-site-header--lb{position:sticky;top:0;z-index:3000;box-shadow:none;background:transparent}
.ji-site-header--lb .ji-topbar{background:#25262d;color:#dbe1e7}
.ji-site-header--lb .ji-topbar__inner{min-height:70px;display:flex;justify-content:space-between;align-items:center}
.ji-branding--top .custom-logo{max-height:54px;width:auto}
.ji-branding--top .ji-branding__text{color:#fff;font-size:1.35rem}
.ji-site-header--lb .ji-topbar__links{display:flex;gap:.85rem;align-items:center;margin-left:auto}
.ji-site-header--lb .ji-topbar__links a{color:#dbe1e7;text-decoration:none!important;text-transform:none;letter-spacing:0;font-weight:500}
.ji-site-header--lb .ji-topbar__links a:not(:first-child):before{content:"::: ";opacity:.35;margin-right:.35rem}
.ji-top-search-trigger{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;cursor:pointer}
.ji-top-search-trigger:after{content:"⌕";font-size:1.65rem;color:#49c7dc;margin:0}
.ji-site-header--lb .ji-mainbar{background:#49c7dc}
.ji-mainbar__inner{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:1rem}
.ji-site-header--lb .ji-main-nav--mega>ul{display:flex;align-items:center;gap:0}
.ji-site-header--lb .ji-main-nav--mega>ul>li>a{color:#143f4b!important;background:transparent!important;text-transform:none!important;letter-spacing:0!important;font-weight:500!important;font-size:1.03rem;padding:.95rem 1rem;text-decoration:none!important}
.ji-site-header--lb .ji-main-nav--mega>ul>li+li>a:before{display:none!important}
.ji-site-header--lb .ji-main-nav--mega>ul>li>a:hover{background:rgba(255,255,255,.12)!important;color:#0d303b!important;text-decoration:none!important}
.ji-mainbar__actions{display:flex;align-items:center;gap:1.25rem;white-space:nowrap;margin-left:auto}
.ji-mainbar__action{display:inline-flex;align-items:center;gap:.45rem;color:#143f4b!important;text-decoration:none!important;font-weight:700}
.ji-mainbar__action:before{content:"";width:34px;height:34px;border:3px solid #44606b;border-radius:8px;display:inline-block;opacity:.8}
.ji-mainbar__action--phone:before{border-radius:50%}
.ji-menu-toggle{display:none}

.ji-home-hero--lb{background:#dce2e7;padding:0}
.ji-home-hero--lb .ji-home-hero__grid{width:100%;display:grid;grid-template-columns:minmax(0,3.25fr) minmax(360px,.95fr);gap:0}
.ji-home-hero--lb .ji-home-hero__main{min-height:clamp(430px,calc(100vh - 230px),590px)!important;background-size:cover;background-position:center;background-color:#f6eee8;position:relative}
.ji-home-hero--lb .ji-home-hero__main:before{display:none!important}
.ji-home-hero--lb .ji-home-hero__overlay{display:none!important}
.ji-home-hero__fallback{position:absolute;left:max(2rem,calc((100vw - var(--ji-container))/2 + 1rem));bottom:3rem;max-width:640px;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.ji-home-hero__fallback h1{font-size:clamp(2.3rem,4.5vw,4rem);line-height:1;margin:.4rem 0}
.ji-home-hero__fallback p{font-size:1.05rem}
.ji-home-hero--lb .ji-home-hero__panel{min-height:clamp(430px,calc(100vh - 230px),590px)!important;background:#303942!important;padding:1.35rem 1.45rem 1.2rem!important;color:#fff;overflow:hidden}
.ji-home-hero--lb .ji-home-hero__panel h2{font-size:clamp(1.75rem,2.3vw,2.35rem)!important;line-height:1.05;margin:0 0 1rem!important;color:#fff;text-align:center}
.ji-home-hero--lb .ji-hero-search{margin:0 0 1rem!important}
.ji-home-hero--lb .ji-hero-search input{height:50px;border-radius:999px;padding-left:1rem}
.ji-home-hero--lb .ji-hero-search button{background:#fff;color:#2e83bd;right:6px;width:42px;height:42px}
.ji-home-hero--lb .ji-hero-pills{display:flex!important;flex-wrap:wrap;gap:.55rem .5rem!important;align-items:flex-start}
.ji-home-hero--lb .ji-hero-pills a{width:auto!important;min-width:0!important;min-height:0!important;display:inline-flex;flex:0 1 auto;justify-content:center;text-align:center;border:1.5px solid #37c8e0;border-radius:999px;color:#37c8e0;background:transparent;padding:.45rem .72rem!important;font-size:.95rem;line-height:1.1;font-weight:700;text-decoration:none!important;transform:none!important}
.ji-home-hero--lb .ji-hero-pills a:hover{background:#37c8e0;color:#153945}
.ji-home-shortcuts{background:#49c7dc}
.ji-home-shortcuts__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
.ji-home-shortcuts .ji-shortcut{min-height:116px!important;display:flex;align-items:center;justify-content:space-between;padding:1.4rem max(1.5rem,calc((100vw - var(--ji-container))/6));background:#49c7dc;color:#fff;text-decoration:none!important;border-right:1px solid rgba(255,255,255,.24);transform:none!important}
.ji-home-shortcuts .ji-shortcut:nth-child(2){background:#28b2c9}
.ji-home-shortcuts .ji-shortcut:nth-child(3){background:#2297ad}
.ji-shortcut__text{font-size:clamp(1.35rem,2vw,1.75rem)!important;line-height:1.05;color:#fff;font-weight:500;max-width:290px}
.ji-shortcut__icon{width:58px;height:58px;opacity:.96}
.ji-accessibility{right:24px;bottom:24px}
.ji-accessibility__toggle{background:#d06a43!important;width:72px;height:72px}

@media (max-width:1180px){
  .ji-site-header--lb .ji-topbar__links a:nth-child(2),
  .ji-site-header--lb .ji-topbar__links a:nth-child(3){display:none}
  .ji-mainbar__actions{display:none}
  .ji-home-hero--lb .ji-home-hero__grid{grid-template-columns:1fr}
  .ji-home-hero--lb .ji-home-hero__main{min-height:380px!important}
  .ji-home-hero--lb .ji-home-hero__panel{min-height:auto!important}
}
@media (max-width:920px){
  .ji-menu-toggle{display:block}
  .ji-site-header--lb .ji-topbar__inner{min-height:58px}
  .ji-site-header--lb .ji-main-nav--mega{position:absolute;left:0;right:0;top:100%;background:#303942;display:none}
  .ji-site-header--lb .ji-main-nav--mega.is-open{display:block}
  .ji-site-header--lb .ji-main-nav--mega>ul{display:block;padding:.75rem}
  .ji-site-header--lb .ji-main-nav--mega>ul>li>a{display:block;color:#fff!important}
  .ji-home-shortcuts__grid{grid-template-columns:1fr}
  .ji-home-shortcuts .ji-shortcut{min-height:88px!important;padding:1rem 1.25rem}
}
@media (max-width:560px){
  .ji-home-hero--lb .ji-home-hero__main{min-height:300px!important}
  .ji-home-hero__fallback{left:1rem;right:1rem;bottom:1.5rem}
  .ji-home-hero__fallback h1{font-size:2rem}
  .ji-home-hero--lb .ji-home-hero__panel{padding:1.15rem!important}
  .ji-home-hero--lb .ji-hero-pills a{font-size:.88rem}
}

/* --- v2.1 compact above-the-fold hero + admin-panel support --- */
.ji-home-hero--lb .ji-home-hero__main,
.ji-home-hero--lb .ji-home-hero__panel{
  min-height:clamp(330px, calc(100vh - 300px), 470px)!important;
}
.ji-home-hero--lb .ji-home-hero__panel{
  padding:1.1rem 1.35rem .95rem!important;
}
.ji-home-hero--lb .ji-home-hero__panel h2{
  font-size:clamp(1.5rem,2vw,2rem)!important;
  margin-bottom:.75rem!important;
}
.ji-home-hero--lb .ji-hero-search input{height:44px!important}
.ji-home-hero--lb .ji-hero-search button{width:36px!important;height:36px!important}
.ji-home-hero--lb .ji-hero-pills{gap:.45rem!important}
.ji-home-hero--lb .ji-hero-pills a{
  font-size:.86rem!important;
  padding:.36rem .62rem!important;
  max-width:100%;
}
.ji-home-shortcuts .ji-shortcut{
  min-height:92px!important;
  padding-top:1rem!important;
  padding-bottom:1rem!important;
}
.ji-shortcut__text{font-size:clamp(1.05rem,1.6vw,1.35rem)!important}
.ji-shortcut__icon{width:46px!important;height:46px!important}
.ji-site-header--lb .ji-topbar__inner{min-height:56px!important}
.ji-mainbar__inner{min-height:48px!important}
.ji-site-header--lb .ji-main-nav--mega>ul>li>a{padding:.72rem .86rem!important}
.ji-mainbar__action:before{width:28px!important;height:28px!important}
@media (max-width:1180px){
  .ji-home-hero--lb .ji-home-hero__main{min-height:300px!important}
}
@media (max-width:560px){
  .ji-home-hero--lb .ji-home-hero__main{min-height:240px!important}
}

/* --- v2.2 consolidated panel, ordered home, hero carousel, menu rules, back-to-top --- */
.ji-site-header--lb .ji-main-nav--mega>ul>li>a,
.ji-main-nav--mega>ul>li>a{
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
  font-weight:700!important;
  text-decoration:none!important;
}
.ji-site-header--lb .ji-main-nav--mega>ul>li+li>a:before,
.ji-main-nav--mega>ul>li+li>a:before{
  content:"|"!important;
  display:inline-block!important;
  margin-right:1rem!important;
  color:rgba(21,57,69,.55)!important;
  font-weight:400!important;
}
.ji-site-header--lb .ji-main-nav--mega>ul>li>a:hover,
.ji-main-nav--mega>ul>li>a:hover,
a:hover{
  text-decoration:none!important;
}
.ji-hero-slider{position:relative;overflow:hidden}
.ji-hero-slider__track,.ji-hero-slide{position:absolute;inset:0}
.ji-hero-slide{opacity:0;visibility:hidden;background-size:cover;background-position:center;transition:opacity .45s ease,visibility .45s ease}
.ji-hero-slide.is-active{opacity:1;visibility:visible}
.ji-hero-slide__content{position:absolute;left:max(2rem,calc((100vw - var(--ji-container))/2 + 1rem));bottom:clamp(1.25rem,4vw,3rem);max-width:720px;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.38)}
.ji-hero-slide__content h1{font-size:clamp(2rem,4.2vw,4.1rem);line-height:1;margin:.35rem 0 .65rem;color:#fff}
.ji-hero-slide__content p{font-size:1.05rem;max-width:640px}
.ji-hero-slider__arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:8;width:48px;height:64px;border:0;background:rgba(37,40,51,.55);color:#fff;font-size:2.2rem;cursor:pointer}
.ji-hero-slider__arrow:hover{background:#49c7dc;color:#143f4b}
.ji-hero-slider__arrow--prev{left:0}
.ji-hero-slider__arrow--next{right:0}
.ji-hero-height--compacto{min-height:clamp(330px, calc(100vh - 300px), 470px)!important}
.ji-hero-height--medio{min-height:clamp(390px, calc(100vh - 250px), 560px)!important}
.ji-hero-height--alto{min-height:clamp(460px, calc(100vh - 200px), 650px)!important}
.ji-back-to-top{position:fixed;right:22px;bottom:104px;z-index:3999;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.55rem .85rem;border-radius:999px;background:#303942;color:#fff!important;text-decoration:none!important;font-weight:800;box-shadow:0 10px 26px rgba(0,0,0,.18)}
.ji-back-to-top:hover{background:#49c7dc;color:#143f4b!important}
@media (max-width:920px){
  .ji-site-header--lb .ji-main-nav--mega>ul>li+li>a:before,
  .ji-main-nav--mega>ul>li+li>a:before{display:none!important}
  .ji-hero-slide__content{left:1.25rem;right:1.25rem}
  .ji-hero-slider__arrow{width:38px;height:52px}
}

/* --- v2.6 refinement: clean menu, minimal back-to-top, accessibility positioning --- */
.ji-site-header--lb .ji-mainbar{
  overflow:hidden;
}
.ji-mainbar__inner{
  min-height:54px!important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
}
.ji-site-header--lb .ji-main-nav--mega{
  flex:1 1 auto;
  min-width:0;
}
.ji-site-header--lb .ji-main-nav--mega>ul{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:0;
  margin:0;
  padding:0;
}
.ji-site-header--lb .ji-main-nav--mega>ul>li>a,
.ji-main-nav--mega>ul>li>a{
  white-space:nowrap;
  text-transform:uppercase!important;
  letter-spacing:.015em!important;
  font-size:clamp(.82rem,1vw,.98rem)!important;
  font-weight:800!important;
  padding:.72rem .55rem!important;
  text-decoration:none!important;
}
.ji-site-header--lb .ji-main-nav--mega>ul>li+li>a:before,
.ji-main-nav--mega>ul>li+li>a:before{
  content:"|"!important;
  display:inline-block!important;
  margin:0 .72rem 0 .25rem!important;
  color:rgba(21,57,69,.52)!important;
  font-weight:400!important;
}
.ji-site-header--lb .ji-main-nav--mega>ul>li>a:hover,
.ji-main-nav--mega>ul>li>a:hover,
.ji-topbar__links a:hover,
a:hover{
  text-decoration:none!important;
}
.ji-mainbar__actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:.9rem!important;
  margin-left:.75rem!important;
  white-space:nowrap;
}
.ji-mainbar__action{
  font-size:.9rem!important;
  font-weight:800!important;
  gap:.25rem!important;
  text-decoration:none!important;
}
.ji-mainbar__action:before{
  display:none!important;
  content:none!important;
}
@media (max-width:1320px){
  .ji-mainbar__actions{display:none!important;}
}
@media (max-width:920px){
  .ji-site-header--lb .ji-main-nav--mega>ul>li+li>a:before,
  .ji-main-nav--mega>ul>li+li>a:before{display:none!important;}
}
.ji-back-to-top{
  right:24px!important;
  bottom:24px!important;
  z-index:3999!important;
  width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  border-radius:50%!important;
  background:#303942!important;
  color:#fff!important;
  font-size:1.35rem!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 8px 22px rgba(0,0,0,.18)!important;
}
.ji-back-to-top:hover{
  background:#49c7dc!important;
  color:#143f4b!important;
  transform:translateY(-2px);
}
.ji-accessibility{
  right:22px!important;
  bottom:78px!important;
  z-index:4000!important;
}
.ji-accessibility__toggle{
  width:58px!important;
  height:58px!important;
  border-width:3px!important;
}
.ji-accessibility__icon{
  width:34px!important;
  height:34px!important;
}
.ji-accessibility__head{top:6px!important}
.ji-accessibility__arms{top:15px!important;left:7px!important;right:7px!important}
.ji-accessibility__body{top:13px!important;height:15px!important}
.ji-accessibility__panel{
  bottom:68px!important;
}

/* --- v2.7 accessibility top-right, configurable pills, normalized cards --- */
.ji-accessibility{
  right:22px!important;
  top:92px!important;
  bottom:auto!important;
  z-index:4500!important;
}
.admin-bar .ji-accessibility{
  top:124px!important;
}
.ji-accessibility__panel{
  top:68px!important;
  bottom:auto!important;
  right:0!important;
}
.ji-back-to-top{
  right:24px!important;
  bottom:24px!important;
}
.ji-unified-card__image,
.ji-news-card__image{
  display:block;
  width:100%;
  overflow:hidden;
  background:#d9e0e5;
}
.ji-unified-card__image img,
.ji-news-card__image img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
  transition:transform .25s ease;
}
.ji-unified-card__image{
  aspect-ratio: 16 / 9;
}
.ji-news-card__image{
  aspect-ratio: 16 / 8.5;
}
.ji-unified-card:hover .ji-unified-card__image img,
.ji-news-card:hover .ji-news-card__image img{
  transform:scale(1.035);
}
.ji-news-card{min-height:100%;}
.ji-news-card__body{min-height:220px;}
.ji-news-card__category{min-height:58px;display:flex;align-items:center;}
.ji-grid--3 > *, .ji-news-grid > *{min-width:0;}
.ji-unified-card__body h3, .ji-news-card__body h3{overflow-wrap:anywhere;}
@media (max-width:920px){.ji-accessibility{top:84px!important}.admin-bar .ji-accessibility{top:130px!important}}

/* --- v2.8 Identidad Independencia: colores, sticky shadow, 404 shadows, invertir colores --- */
:root{
  --ji-independencia-teal:#1f7a75;
  --ji-independencia-teal-dark:#176a66;
  --ji-independencia-teal-soft:#e7f4f2;
  --ji-independencia-yellow:#f5bd3d;
  --ji-independencia-yellow-dark:#dea42a;
  --ji-independencia-ink:#0f4d4a;
  --ji-independencia-shadow:0 12px 28px rgba(0,0,0,.22);
}
.ji-site-header,
.ji-site-header--lb,
.ji-site-header--municipal{
  position:sticky!important;
  top:0!important;
  z-index:5000!important;
  box-shadow:var(--ji-independencia-shadow)!important;
}
.admin-bar .ji-site-header,
.admin-bar .ji-site-header--lb,
.admin-bar .ji-site-header--municipal{
  top:32px!important;
}
.ji-site-header--lb .ji-topbar,
.ji-topbar{
  background:var(--ji-independencia-teal)!important;
  color:#fff!important;
}
.ji-site-header--lb .ji-topbar__links a,
.ji-topbar__links a,
.ji-top-search-trigger{
  color:#fff!important;
}
.ji-top-search-trigger:after{
  color:#fff!important;
}
.ji-site-header--lb .ji-mainbar,
.ji-mainbar,
.ji-site-header--municipal .ji-mainbar{
  background:#fff!important;
  color:var(--ji-independencia-ink)!important;
}
.ji-site-header--lb .ji-main-nav--mega>ul>li>a,
.ji-main-nav--mega>ul>li>a{
  color:var(--ji-independencia-ink)!important;
}
.ji-site-header--lb .ji-main-nav--mega>ul>li>a:hover,
.ji-main-nav--mega>ul>li>a:hover{
  color:var(--ji-independencia-teal-dark)!important;
  background:transparent!important;
}
.ji-site-header--lb .ji-main-nav--mega>ul>li+li>a:before,
.ji-main-nav--mega>ul>li+li>a:before{
  color:var(--ji-independencia-teal)!important;
  opacity:.75;
}
.ji-mainbar__action{
  color:var(--ji-independencia-ink)!important;
}
.ji-mainbar__action:last-child,
.ji-mainbar__action--phone,
.ji-btn--news,
.ji-404-button{
  background:var(--ji-independencia-yellow)!important;
  color:#fff!important;
}
.ji-mainbar__action:last-child:hover,
.ji-mainbar__action--phone:hover,
.ji-btn--news:hover,
.ji-404-button:hover{
  background:var(--ji-independencia-yellow-dark)!important;
  color:#fff!important;
}
.ji-home-hero--lb .ji-home-hero__panel,
.ji-home-hero__panel{
  background:#23343f!important;
}
.ji-home-hero--lb .ji-hero-pills a,
.ji-hero-pills a,
.ji-search-modal__pills a{
  border-color:var(--ji-independencia-yellow)!important;
  color:var(--ji-independencia-yellow)!important;
}
.ji-home-hero--lb .ji-hero-pills a:hover,
.ji-hero-pills a:hover,
.ji-search-modal__pills a:hover{
  background:var(--ji-independencia-yellow)!important;
  color:#23343f!important;
}
.ji-home-shortcuts,
.ji-home-shortcuts .ji-shortcut{
  background:var(--ji-independencia-teal)!important;
}
.ji-home-shortcuts .ji-shortcut:nth-child(2){
  background:#238781!important;
}
.ji-home-shortcuts .ji-shortcut:nth-child(3){
  background:#176a66!important;
}
.ji-block-heading__title,
.ji-news-section__title,
.ji-news-card,
.ji-unified-card{
  background:#2a938d!important;
}
.ji-news-section,
.ji-block-section,
.ji-content-panel{
  background:#eef3f2!important;
}
.ji-news-card__footer a span,
.ji-unified-card__footer a span{
  color:#2a938d!important;
}
.ji-events-showcase,
.ji-footer{
  background:var(--ji-independencia-teal)!important;
}
.ji-footer__topband,
.ji-footer__bottom{
  background:var(--ji-independencia-teal-dark)!important;
}
.ji-accessibility__toggle{
  background:var(--ji-independencia-yellow)!important;
}
.ji-back-to-top{
  background:var(--ji-independencia-teal)!important;
}
.ji-back-to-top:hover{
  background:var(--ji-independencia-yellow)!important;
  color:#fff!important;
}
.ji-404-photo{
  box-shadow:var(--ji-independencia-shadow)!important;
}
.ji-404-photo img{
  display:block;
}
.ji-search-modal__submit{
  color:var(--ji-independencia-teal)!important;
}
.ji-search-modal__dialog{
  box-shadow:var(--ji-independencia-shadow)!important;
}
html.ji-invert-colors{
  filter:invert(1) hue-rotate(180deg);
}
html.ji-invert-colors img,
html.ji-invert-colors video,
html.ji-invert-colors iframe,
html.ji-invert-colors .ji-404-photo{
  filter:invert(1) hue-rotate(180deg);
}
@media (max-width:782px){
  .admin-bar .ji-site-header,
  .admin-bar .ji-site-header--lb,
  .admin-bar .ji-site-header--municipal{
    top:46px!important;
  }
}

/* --- v2.9 legibilidad de cards y títulos tipo Independencia --- */
:root{
  --ji-card-teal:#319a96;
  --ji-card-teal-dark:#278481;
  --ji-card-copy:#31465d;
  --ji-card-title:#4e4b7d;
  --ji-card-kicker:#8a4eb2;
  --ji-card-accent:#ef9440;
  --ji-card-line:rgba(255,255,255,.22);
}

/* Encabezados de sección inspirados en Independencia */
.ji-section-heading,
.ji-block-heading,
.ji-news-section__header{
  margin-bottom:1.35rem;
}
.ji-block-heading__title,
.ji-news-section__title,
.ji-section-heading__title{
  display:block;
  width:100%;
  margin:0 0 .9rem;
  padding:1rem 1.35rem;
  background:var(--ji-independencia-teal);
  color:#fff!important;
  font-size:clamp(2rem,3vw,3.35rem);
  font-weight:900;
  line-height:1.05;
  letter-spacing:-.02em;
}
.ji-block-heading__subtitle,
.ji-news-section__intro,
.ji-section-heading__intro{
  color:#4e5f73!important;
  font-size:1.05rem;
  line-height:1.65;
  max-width:780px;
  margin:.1rem 0 0;
}

/* Cards más legibles */
.ji-unified-card,
.ji-news-card{
  background:var(--ji-card-teal)!important;
  border:0!important;
  box-shadow:none!important;
  color:var(--ji-card-copy)!important;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.ji-unified-card__top,
.ji-news-card__category{
  color:var(--ji-card-kicker)!important;
  font-weight:700!important;
  font-size:1rem!important;
  line-height:1.25!important;
  padding:1rem 1.3rem .55rem!important;
  background:transparent!important;
  border:0!important;
}
.ji-unified-card__body,
.ji-news-card__body{
  padding:1.1rem 1.35rem 1.15rem!important;
  color:var(--ji-card-copy)!important;
}
.ji-unified-card__meta,
.ji-news-card__meta{
  color:rgba(49,70,93,.85)!important;
  font-size:.92rem!important;
}
.ji-unified-card__body h3,
.ji-news-card__body h3{
  margin:0 0 .75rem!important;
  font-size:clamp(1.5rem,2vw,1.9rem)!important;
  line-height:1.16!important;
  font-weight:800!important;
}
.ji-unified-card__body h3 a,
.ji-news-card__body h3 a,
.ji-unified-card__body h3,
.ji-news-card__body h3{
  color:var(--ji-card-title)!important;
  text-decoration:none!important;
}
.ji-unified-card__body p,
.ji-news-card__body p{
  color:var(--ji-card-copy)!important;
  font-size:1.05rem!important;
  line-height:1.6!important;
}
.ji-unified-card__footer,
.ji-news-card__footer{
  margin-top:auto;
  border-top:1px solid var(--ji-card-line)!important;
  padding:.9rem 1.35rem 1rem!important;
  background:transparent!important;
}
.ji-unified-card__footer a,
.ji-news-card__footer a{
  display:flex!important;
  justify-content:flex-end;
  align-items:center;
  gap:.6rem;
  color:#fff!important;
  font-weight:800!important;
  font-size:1.05rem!important;
  text-decoration:none!important;
}
.ji-unified-card__footer a span,
.ji-news-card__footer a span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:2rem;
  height:2rem;
  border-radius:999px;
  background:#fff!important;
  color:var(--ji-card-teal)!important;
  font-size:1.05rem;
  line-height:1;
}
.ji-unified-card:hover,
.ji-news-card:hover{
  background:var(--ji-card-teal-dark)!important;
}
.ji-unified-card:hover .ji-unified-card__body h3 a,
.ji-news-card:hover .ji-news-card__body h3 a{
  color:#403c69!important;
}
.ji-unified-card:hover .ji-unified-card__footer a span,
.ji-news-card:hover .ji-news-card__footer a span{
  color:var(--ji-card-teal-dark)!important;
}

/* Sección trámites con título bicolor posible si se usa span */
.ji-tramites-section .ji-block-heading__title span,
.ji-section-title--accent span,
.ji-news-section__title span{
  color:var(--ji-card-accent)!important;
}

/* Afinar imágenes para que no opaquen legibilidad */
.ji-unified-card__image,
.ji-news-card__image{
  background:#c5dddd!important;
}
.ji-unified-card__image img,
.ji-news-card__image img{
  filter:saturate(.96) contrast(1.02);
}

/* Grid un poco más respirado */
.ji-grid--3,
.ji-news-grid{
  gap:1.3rem!important;
}

@media (max-width:768px){
  .ji-block-heading__title,
  .ji-news-section__title,
  .ji-section-heading__title{
    padding:.95rem 1rem;
    font-size:2.05rem!important;
  }
  .ji-unified-card__body h3,
  .ji-news-card__body h3{
    font-size:1.4rem!important;
  }
  .ji-unified-card__body,
  .ji-news-card__body{
    padding:1rem 1rem 1.05rem!important;
  }
}


/* --- v3.0 Independencia cards and bicolor titles --- */
.ji-block-heading__title--bicolor,
.ji-news-section__title.ji-block-heading__title--bicolor,
.ji-section-heading__title.ji-block-heading__title--bicolor{
  background:transparent!important;
  color:#8e49aa!important;
  padding:0!important;
  font-size:clamp(2.2rem,4vw,3.45rem)!important;
  line-height:1.05!important;
  font-weight:900!important;
  letter-spacing:-.03em!important;
  box-shadow:none!important;
}
.ji-block-heading__title--bicolor span,
.ji-news-section__title.ji-block-heading__title--bicolor span,
.ji-section-heading__title.ji-block-heading__title--bicolor span{
  color:#ef9440!important;
}
.ji-block-section--muted,
#tramites.ji-block-section--muted{
  background:#f4f4f4!important;
}

/* Trámites estilo Independencia */
.ji-unified-card--independencia-service{
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  min-height:0!important;
}
.ji-unified-card--independencia-service .ji-unified-card__top{
  padding:0 2.6rem .15rem!important;
  color:#a150b1!important;
  font-size:1.05rem!important;
  font-weight:500!important;
  line-height:1.05!important;
}
.ji-unified-card--independencia-service .ji-unified-card__body{
  padding:.1rem 2.6rem 1.25rem!important;
}
.ji-unified-card--independencia-service .ji-unified-card__body h3{
  color:#8e49aa!important;
  font-size:1.7rem!important;
  line-height:1.02!important;
  font-weight:900!important;
  margin:0 0 .65rem!important;
  max-width:12ch;
}
.ji-unified-card--independencia-service .ji-unified-card__body p{
  color:#5a5f73!important;
  font-size:1.02rem!important;
  line-height:1.5!important;
  max-width:38ch;
  margin:0!important;
}
.ji-unified-card--independencia-service .ji-unified-card__footer{
  border-top:0!important;
  padding:0 1rem 0!important;
}
.ji-unified-card--independencia-service .ji-unified-card__footer a{
  width:100%;
  justify-content:center!important;
  border-radius:0 0 1.45rem 1.45rem!important;
  padding:1.05rem 1rem!important;
  background:#9d4aa8!important;
  color:#fff!important;
  font-size:1.05rem!important;
  font-weight:900!important;
  letter-spacing:.02em;
  text-transform:uppercase;
}
.ji-unified-card--independencia-service .ji-unified-card__footer a span{display:none!important}
.ji-unified-grid .ji-unified-card--independencia-service:nth-child(2n) .ji-unified-card__footer a{
  background:#10b5b3!important;
}
.ji-unified-card--independencia-service:hover,
.ji-unified-card--independencia-service:hover .ji-unified-card__footer a{
  transform:none!important;
  box-shadow:none!important;
}

/* Destacados estilo Independencia teal legible */
.ji-unified-card--independencia-feature,
#destacados .ji-unified-card{
  background:#319a96!important;
  color:#42556f!important;
  border:0!important;
  box-shadow:none!important;
}
.ji-unified-card--independencia-feature .ji-unified-card__top,
#destacados .ji-unified-card__top{
  color:#6d4479!important;
  font-size:1rem!important;
  font-weight:700!important;
  padding:1.15rem 1.35rem .5rem!important;
}
.ji-unified-card--independencia-feature .ji-unified-card__body,
#destacados .ji-unified-card__body{
  padding:1rem 1.35rem 1.3rem!important;
}
.ji-unified-card--independencia-feature .ji-unified-card__body h3,
#destacados .ji-unified-card__body h3{
  color:#495a7d!important;
  font-size:1.12rem!important;
  line-height:1.32!important;
  font-weight:800!important;
  margin:0 0 .85rem!important;
}
.ji-unified-card--independencia-feature .ji-unified-card__body p,
#destacados .ji-unified-card__body p{
  color:#4a5e73!important;
  font-size:1.02rem!important;
  line-height:1.55!important;
}
.ji-unified-card--independencia-feature .ji-unified-card__footer,
#destacados .ji-unified-card__footer{
  border-top:1px solid rgba(255,255,255,.16)!important;
  padding:1rem 1.35rem 1.05rem!important;
}
.ji-unified-card--independencia-feature .ji-unified-card__footer a,
#destacados .ji-unified-card__footer a{
  justify-content:flex-end!important;
  color:#fff!important;
  font-weight:800!important;
}
.ji-unified-card--independencia-feature .ji-unified-card__footer a span,
#destacados .ji-unified-card__footer a span{
  display:inline-flex!important;
  width:2rem!important;height:2rem!important;border-radius:999px!important;
  background:#fff!important;color:#319a96!important;
}

/* Keep regular news style readable like Independencia */
.ji-news-card{
  background:#49c3ce!important;
  color:#465a72!important;
  box-shadow:none!important;
}
.ji-news-card__category{color:#66507a!important;font-weight:700!important}
.ji-news-card__body h3,.ji-news-card__body h3 a{color:#4f587b!important;font-size:1.15rem!important;line-height:1.3!important}
.ji-news-card__body p{color:#4a5c71!important;line-height:1.55!important}
.ji-news-card__footer{border-top:1px solid rgba(255,255,255,.16)!important}

@media (max-width: 768px){
  .ji-unified-card--independencia-service .ji-unified-card__top{padding-left:1rem!important;padding-right:1rem!important}
  .ji-unified-card--independencia-service .ji-unified-card__body{padding:0 1rem 1rem!important}
  .ji-unified-card--independencia-service .ji-unified-card__body h3{font-size:1.42rem!important;max-width:none}
  .ji-unified-card--independencia-service .ji-unified-card__footer{padding:0!important}
}


/* --- v3.1 finish remaining sections: titles + gallery/directiva cards --- */
.ji-news-section__title.ji-block-heading__title--bicolor,
.ji-events-showcase__header h2.ji-block-heading__title--bicolor,
#galerias .ji-block-heading__title--bicolor,
#directiva .ji-block-heading__title--bicolor,
#destacados .ji-block-heading__title--bicolor,
#tramites .ji-block-heading__title--bicolor{
  display:block!important;
  background:transparent!important;
  color:#8e49aa!important;
  font-size:clamp(2.15rem,4vw,3.35rem)!important;
  font-weight:900!important;
  line-height:1.05!important;
  padding:0!important;
  margin:0 0 .7rem!important;
  box-shadow:none!important;
}
.ji-news-section__title.ji-block-heading__title--bicolor span,
.ji-events-showcase__header h2.ji-block-heading__title--bicolor span,
#galerias .ji-block-heading__title--bicolor span,
#directiva .ji-block-heading__title--bicolor span,
#destacados .ji-block-heading__title--bicolor span,
#tramites .ji-block-heading__title--bicolor span{color:#ef9440!important}

/* News and event section intros aligned */
.ji-events-showcase__header p:last-child,
.ji-news-section .ji-block-heading__text p,
#galerias .ji-block-heading__text p,
#directiva .ji-block-heading__text p{
  color:#5a6378!important;
}

/* Gallery cards refreshed */
.ji-gallery-grid--refresh{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.35rem!important;
}
.ji-gallery-card--independencia{
  position:relative;
  min-height:330px;
  border-radius:0!important;
  overflow:hidden;
  text-decoration:none!important;
  box-shadow:none!important;
  background:#2d6d77!important;
}
.ji-gallery-card--independencia img{
  width:100%;height:100%;object-fit:cover;display:block;
  filter:brightness(.58) saturate(.92);
}
.ji-gallery-card--independencia:before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(17,30,42,.15) 0%, rgba(22,36,48,.28) 32%, rgba(15,34,46,.72) 100%);
}
.ji-gallery-card--independencia .ji-gallery-card__label{
  position:absolute;top:14px;left:14px;z-index:2;
  display:inline-flex;align-items:center;
  padding:.3rem .55rem;border-radius:999px;
  background:#2ec4da!important;color:#fff!important;
  font-size:.72rem!important;font-weight:800!important;
}
.ji-gallery-card--independencia strong{
  position:absolute;left:18px;right:18px;bottom:40px;z-index:2;
  color:#fff!important;font-size:1.28rem!important;line-height:1.15!important;font-weight:800!important;
  text-shadow:0 1px 5px rgba(0,0,0,.28);
}
.ji-gallery-card--independencia em{
  position:absolute;right:16px;bottom:14px;z-index:2;
  color:#fff!important;font-style:normal!important;font-weight:800!important;font-size:.95rem!important;
}
.ji-gallery-card--independencia em span{
  display:inline-flex;align-items:center;justify-content:center;
  width:1.8rem;height:1.8rem;margin-left:.3rem;border-radius:999px;
  background:#fff;color:#2d6d77;font-style:normal;
}
.ji-gallery-card--independencia:hover{transform:translateY(-3px)}

/* Directiva cards refreshed */
.ji-unified-card--independencia-person{
  background:#319a96!important;
  box-shadow:none!important;border:0!important;
}
.ji-unified-card--independencia-person .ji-unified-card__top{
  color:#8d49aa!important;font-size:1rem!important;font-weight:700!important;
  padding:1rem 1.2rem .55rem!important;
}
.ji-unified-card--independencia-person .ji-unified-card__image{
  aspect-ratio:4/3;overflow:hidden;background:#cfe0e0;
}
.ji-unified-card--independencia-person .ji-unified-card__image img{
  width:100%;height:100%;object-fit:cover;
}
.ji-unified-card--independencia-person .ji-unified-card__body{
  padding:1rem 1.2rem 1.2rem!important;
}
.ji-unified-card--independencia-person .ji-unified-card__body h3{
  color:#4f5d86!important;font-size:1.6rem!important;line-height:1.1!important;font-weight:800!important;margin:0 0 .5rem!important;
}
.ji-unified-card--independencia-person .ji-unified-card__body p{
  color:#526377!important;font-size:1rem!important;line-height:1.45!important;
}
.ji-unified-card--independencia-person .ji-unified-card__footer{
  border-top:1px solid rgba(255,255,255,.16)!important;padding:.95rem 1.2rem 1rem!important;
}
.ji-unified-card--independencia-person .ji-unified-card__footer a{
  justify-content:flex-end!important;color:#fff!important;font-weight:800!important;
}
.ji-unified-card--independencia-person .ji-unified-card__footer a span{
  width:1.9rem;height:1.9rem;border-radius:999px;background:#fff;color:#319a96!important;
}

/* Event header and buttons consistent */
.ji-events-showcase__header .ji-kicker{color:#8e49aa!important;font-weight:700!important}
.ji-events-showcase__all,
.ji-btn--news{
  background:#f5bd3d!important;color:#fff!important;border-radius:999px!important;
  padding:.72rem 1.1rem!important;font-weight:800!important;text-decoration:none!important;
}
.ji-events-showcase__all:hover,.ji-btn--news:hover{background:#dea42a!important}

/* Ensure rows titles not old bars if bicolor class exists */
.ji-block-heading--row .ji-block-heading__title--bicolor{margin-bottom:0!important}

@media (max-width: 980px){
  .ji-gallery-grid--refresh{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 640px){
  .ji-gallery-grid--refresh{grid-template-columns:1fr;}
  .ji-gallery-card--independencia{min-height:280px;}
}


/* --- v3.2 strict system unification --- */
.ji-block-heading--strict{margin-bottom:1.4rem!important}
.ji-block-heading--strict .ji-block-heading__text p,
.ji-block-heading--strict p:last-child,
.ji-news-section .ji-block-heading__text p,
.ji-events-showcase__header p:last-child{
  margin:.25rem 0 0!important;
  max-width:760px!important;
  color:#5f677a!important;
  font-size:1.02rem!important;
  line-height:1.6!important;
}
.ji-block-heading--row.ji-block-heading--strict,
.ji-events-showcase__header.ji-block-heading--strict{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:1rem!important;
}
.ji-kicker--strict{color:#8e49aa!important;font-weight:700!important;margin:0 0 .35rem!important}

/* Unified strict content cards */
.ji-unified-card--strict-content,
.ji-unified-card--strict-media,
.ji-news-card--strict,
#destacados .ji-unified-card,
#galerias .ji-unified-card,
#directiva .ji-unified-card{
  background:#319a96!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.ji-unified-card--strict-content .ji-unified-card__top,
.ji-unified-card--strict-media .ji-unified-card__top,
.ji-news-card--strict .ji-news-card__category,
#destacados .ji-unified-card__top,
#galerias .ji-unified-card__top,
#directiva .ji-unified-card__top{
  color:#7f4f8f!important;
  font-weight:700!important;
  font-size:1rem!important;
  padding:1.05rem 1.25rem .45rem!important;
  background:transparent!important;
  border:0!important;
  min-height:0!important;
}
.ji-unified-card--strict-content .ji-unified-card__body,
.ji-unified-card--strict-media .ji-unified-card__body,
.ji-news-card--strict .ji-news-card__body,
#destacados .ji-unified-card__body,
#galerias .ji-unified-card__body,
#directiva .ji-unified-card__body{
  padding:.9rem 1.25rem 1.2rem!important;
}
.ji-unified-card--strict-content .ji-unified-card__body h3,
.ji-unified-card--strict-media .ji-unified-card__body h3,
.ji-news-card--strict .ji-news-card__body h3,
.ji-unified-card--strict-content .ji-unified-card__body h3 a,
.ji-unified-card--strict-media .ji-unified-card__body h3 a,
.ji-news-card--strict .ji-news-card__body h3 a,
#destacados .ji-unified-card__body h3,
#galerias .ji-unified-card__body h3,
#directiva .ji-unified-card__body h3{
  color:#4d5d86!important;
  font-weight:800!important;
  font-size:1.22rem!important;
  line-height:1.28!important;
  margin:0 0 .7rem!important;
  text-decoration:none!important;
}
.ji-unified-card--strict-content .ji-unified-card__body p,
.ji-unified-card--strict-media .ji-unified-card__body p,
.ji-news-card--strict .ji-news-card__body p,
#destacados .ji-unified-card__body p,
#galerias .ji-unified-card__body p,
#directiva .ji-unified-card__body p{
  color:#51657a!important;
  font-size:1rem!important;
  line-height:1.58!important;
  margin:0!important;
}
.ji-unified-card--strict-media .ji-unified-card__image,
.ji-news-card--strict .ji-news-card__image,
#galerias .ji-unified-card__image,
#directiva .ji-unified-card__image{
  order:-1;
  aspect-ratio:16/10!important;
  overflow:hidden!important;
  background:#d4dddd!important;
}
.ji-unified-card--strict-media .ji-unified-card__image img,
.ji-news-card--strict .ji-news-card__image img,
#galerias .ji-unified-card__image img,
#directiva .ji-unified-card__image img{
  width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;
}
.ji-unified-card--strict-content .ji-unified-card__footer,
.ji-unified-card--strict-media .ji-unified-card__footer,
.ji-news-card--strict .ji-news-card__footer,
#destacados .ji-unified-card__footer,
#galerias .ji-unified-card__footer,
#directiva .ji-unified-card__footer{
  margin-top:auto!important;
  border-top:1px solid rgba(255,255,255,.14)!important;
  padding:.95rem 1.25rem 1rem!important;
  background:transparent!important;
}
.ji-unified-card--strict-content .ji-unified-card__footer a,
.ji-unified-card--strict-media .ji-unified-card__footer a,
.ji-news-card--strict .ji-news-card__footer a,
#destacados .ji-unified-card__footer a,
#galerias .ji-unified-card__footer a,
#directiva .ji-unified-card__footer a{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:.5rem!important;
  color:#fff!important;font-weight:800!important;font-size:1rem!important;text-decoration:none!important;
}
.ji-unified-card--strict-content .ji-unified-card__footer a span,
.ji-unified-card--strict-media .ji-unified-card__footer a span,
.ji-news-card--strict .ji-news-card__footer a span,
#destacados .ji-unified-card__footer a span,
#galerias .ji-unified-card__footer a span,
#directiva .ji-unified-card__footer a span{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:1.95rem!important;height:1.95rem!important;border-radius:999px!important;
  background:#fff!important;color:#319a96!important;
}

/* Keep service cards distinct but aligned */
#tramites .ji-unified-card--independencia-service{
  padding-top:.2rem!important;
}
#tramites .ji-unified-card--independencia-service .ji-unified-card__body h3{
  min-height:3.9em;
}
#tramites .ji-unified-grid{gap:1.55rem!important}

/* Events visual cleanup */
.ji-events-showcase{background:#eef1f1!important}
.ji-events-showcase__header h2.ji-block-heading__title--bicolor{margin:0 0 .35rem!important}
.ji-event-tile{
  background:#2c333e!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.ji-event-tile__content h3{font-size:1.45rem!important;line-height:1.18!important}
.ji-event-tile__badge:first-child{background:#f5bd3d!important;color:#23343f!important}
.ji-event-tile__actions a:first-child{color:#fff!important;font-weight:800!important}
.ji-event-tile__actions a:last-child{color:#f5bd3d!important}

/* Buttons unified */
.ji-btn--news,
.ji-events-showcase__all{
  display:inline-flex!important;align-items:center!important;gap:.45rem!important;
  padding:.75rem 1.15rem!important;border-radius:999px!important;background:#f5bd3d!important;color:#fff!important;
  font-size:.95rem!important;font-weight:800!important;line-height:1!important;text-decoration:none!important;
  white-space:nowrap!important;
}
.ji-btn--news span,.ji-events-showcase__all span{display:inline-flex}

/* News section title wrapper spacing fix */
#noticias .ji-block-heading{margin-bottom:1.25rem!important}
#noticias .ji-news-grid{margin-top:0!important}

@media (max-width: 980px){
  .ji-block-heading--row.ji-block-heading--strict,
  .ji-events-showcase__header.ji-block-heading--strict{align-items:flex-start!important;flex-direction:column!important}
}


/* --- v3.3 truly rebuilt card system --- */
.ji-grid.ji-unified-grid,
.ji-news-grid{gap:1.5rem!important}
.ji-card-system{
  display:flex!important;
  flex-direction:column!important;
  min-height:100%!important;
  background:#ffffff!important;
  border:1px solid #e3e8eb!important;
  border-radius:0!important;
  overflow:hidden!important;
  box-shadow:0 10px 28px rgba(13,35,52,.08)!important;
}
.ji-card-system__image{
  display:block!important;
  width:100%!important;
  aspect-ratio: 16/9!important;
  overflow:hidden!important;
  background:#d8e3e2!important;
}
.ji-card-system__image img{
  width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;
}
.ji-card-system__body{
  flex:1 1 auto!important;
  padding:1rem 1.15rem 1.15rem!important;
  background:#ffffff!important;
}
.ji-card-system__eyebrow{
  color:#a54ab0!important;
  font-weight:700!important;
  font-size:.98rem!important;
  line-height:1.2!important;
  margin:0 0 .75rem!important;
  padding:0!important;
  background:none!important;
}
.ji-card-system__body h3,
.ji-card-system__body h3 a{
  color:#4f5f85!important;
  font-size:1.18rem!important;
  font-weight:800!important;
  line-height:1.26!important;
  margin:0 0 .7rem!important;
  text-decoration:none!important;
}
.ji-card-system__body p{
  color:#5f6777!important;
  font-size:1rem!important;
  line-height:1.6!important;
  margin:0!important;
}
.ji-card-system__footer{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:.45rem!important;
  padding:1rem 1.15rem!important;
  border-top:1px solid #edf0f2!important;
  background:#ffffff!important;
  margin-top:auto!important;
}
.ji-card-system__footer a{
  display:flex!important;align-items:center!important;gap:.45rem!important;
  color:#0f4d4a!important;
  font-weight:800!important;
  font-size:1rem!important;
  text-decoration:none!important;
}
.ji-card-system__footer a span{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:2rem!important;height:2rem!important;border-radius:999px!important;
  background:#f5bd3d!important;color:#ffffff!important;
}
.ji-card-system:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(13,35,52,.12)!important}

/* section-specific accents */
.ji-card-system--feature .ji-card-system__image{aspect-ratio: 16/8.7!important}
.ji-card-system--gallery .ji-card-system__image,
.ji-card-system--news .ji-card-system__image{aspect-ratio: 16/9.2!important}
.ji-card-system--person .ji-card-system__image{aspect-ratio: 4/3!important}
.ji-card-system--feature .ji-card-system__body,
.ji-card-system--feature .ji-card-system__footer{border-left:6px solid #319a96!important}
.ji-card-system--gallery .ji-card-system__body,
.ji-card-system--gallery .ji-card-system__footer{border-left:6px solid #2d6d77!important}
.ji-card-system--news .ji-card-system__body,
.ji-card-system--news .ji-card-system__footer{border-left:6px solid #c55f3b!important}
.ji-card-system--person .ji-card-system__body,
.ji-card-system--person .ji-card-system__footer{border-left:6px solid #3b7aa3!important}
.ji-card-system--person .ji-card-system__eyebrow{color:#8e49aa!important}

/* prevent old styles from bleeding */
.ji-card-system .ji-unified-card__top,
.ji-card-system .ji-unified-card__body,
.ji-card-system .ji-unified-card__footer,
.ji-card-system .ji-news-card__category,
.ji-card-system .ji-news-card__body,
.ji-card-system .ji-news-card__footer{all:unset}

/* keep bicolor headings and stronger consistency */
.ji-block-heading__title--bicolor{font-size:clamp(2.25rem,4vw,3.5rem)!important}
.ji-block-heading__title--bicolor span{color:#ef9440!important}

@media (max-width:768px){
  .ji-card-system__body{padding:.95rem 1rem 1rem!important}
  .ji-card-system__footer{padding:.9rem 1rem!important}
  .ji-card-system__body h3,.ji-card-system__body h3 a{font-size:1.1rem!important}
}


/* --- v3.4 fixes: white cards, readable hover, directiva without image, smaller trámite titles --- */
#tramites,
#directiva{background:#ffffff!important;}
#tramites .ji-unified-card--independencia-service,
#directiva .ji-card-system--person,
#destacados .ji-card-system,
#galerias .ji-card-system,
#noticias .ji-card-system{
  background:#ffffff!important;
}

/* Hover: keep legibility */
.ji-card-system:hover,
#tramites .ji-unified-card--independencia-service:hover{
  background:#ffffff!important;
  transform:translateY(-3px)!important;
  box-shadow:0 14px 34px rgba(13,35,52,.12)!important;
}
.ji-card-system:hover .ji-card-system__body,
.ji-card-system:hover .ji-card-system__footer,
.ji-card-system:hover .ji-card-system__eyebrow,
.ji-card-system:hover .ji-card-system__body h3,
.ji-card-system:hover .ji-card-system__body h3 a,
.ji-card-system:hover .ji-card-system__body p,
#tramites .ji-unified-card--independencia-service:hover .ji-unified-card__top,
#tramites .ji-unified-card--independencia-service:hover .ji-unified-card__body h3,
#tramites .ji-unified-card--independencia-service:hover .ji-unified-card__body p{
  color:inherit!important;
}

/* Directiva without image */
#directiva .ji-grid{align-items:stretch!important}
#directiva .ji-card-system--person{
  min-height:100%!important;
}
#directiva .ji-card-system--person .ji-card-system__image{display:none!important;}
#directiva .ji-card-system--person .ji-card-system__body,
#directiva .ji-card-system--person .ji-card-system__footer{
  border-left:6px solid #3b7aa3!important;
}
#directiva .ji-card-system--person .ji-card-system__eyebrow{
  margin:0!important;
  padding:1rem 1.15rem .35rem!important;
}
#directiva .ji-card-system--person .ji-card-system__body{
  padding:.55rem 1.15rem 1.2rem!important;
}
#directiva .ji-card-system--person .ji-card-system__body h3,
#directiva .ji-card-system--person .ji-card-system__body h3 a{
  font-size:1.15rem!important;
  line-height:1.25!important;
  margin:0 0 .55rem!important;
}
#directiva .ji-card-system--person .ji-card-system__body p{
  font-size:.98rem!important;
}

/* Smaller titles in Principales Trámites */
#tramites .ji-unified-card--independencia-service .ji-unified-card__body{
  padding:.1rem 1.5rem 1rem!important;
}
#tramites .ji-unified-card--independencia-service .ji-unified-card__top{
  padding:0 1.5rem .15rem!important;
}
#tramites .ji-unified-card--independencia-service .ji-unified-card__body h3{
  font-size:1.08rem!important;
  line-height:1.12!important;
  margin:0 0 .7rem!important;
  max-width:none!important;
  min-height:auto!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
}
#tramites .ji-unified-card--independencia-service .ji-unified-card__body p{
  font-size:.98rem!important;
  line-height:1.5!important;
}
#tramites .ji-unified-card--independencia-service .ji-unified-card__footer a{
  font-size:.98rem!important;
  border-radius:0 0 1.2rem 1.2rem!important;
}

/* White body for all rebuilt cards */
.ji-card-system__body,
.ji-card-system__footer{background:#ffffff!important;}
.ji-card-system__body h3,
.ji-card-system__body h3 a{color:#4f5f85!important;}
.ji-card-system__body p{color:#5f6777!important;}
.ji-card-system__eyebrow{color:#a54ab0!important;}

@media (max-width:768px){
  #tramites .ji-unified-card--independencia-service .ji-unified-card__body,
  #tramites .ji-unified-card--independencia-service .ji-unified-card__top{padding-left:1rem!important;padding-right:1rem!important;}
  #tramites .ji-unified-card--independencia-service .ji-unified-card__body h3{font-size:1rem!important;}
}


/* --- v3.5 headings match Directiva --- */
#tramites .ji-block-heading__title--bicolor,
#noticias .ji-block-heading__title--bicolor{
  color:#8e49aa!important;
}
#tramites .ji-block-heading__title--bicolor span,
#noticias .ji-block-heading__title--bicolor span{
  color:#ef9440!important;
}
#tramites .ji-block-heading__text p,
#noticias .ji-block-heading__text p{
  color:#5a6378!important;
}


/* --- v3.6 section background parity with Directiva --- */
#directiva,
#tramites,
#noticias{
  background:#ffffff!important;
}
#directiva .ji-container,
#tramites .ji-container,
#noticias .ji-container{
  background:transparent!important;
}
#tramites.ji-block-section--muted,
#noticias.ji-block-section--muted,
#tramites.ji-section,
#noticias.ji-section{
  background:#ffffff!important;
}
#tramites .ji-block-heading,
#noticias .ji-block-heading,
#directiva .ji-block-heading{
  background:transparent!important;
}


/* --- v3.7 legal independence + external links --- */
.ji-independence-notice{
  background:#fff7e3!important;
  color:#3f4755!important;
  border-bottom:1px solid #f1d58b!important;
  font-size:.92rem!important;
}
.ji-independence-notice .ji-container{
  padding:.6rem 1rem!important;
  display:flex!important;
  gap:.45rem!important;
  flex-wrap:wrap!important;
}
.ji-independence-notice strong{color:#0f4d4a!important}

.ji-footer-legal{
  background:#f8faf9!important;
  border-top:1px solid rgba(255,255,255,.18)!important;
  color:#334155!important;
  padding:1.25rem 0!important;
}
.ji-footer-legal h3{
  margin:0 0 .45rem!important;
  color:#0f4d4a!important;
  font-size:1.25rem!important;
}
.ji-footer-legal p{
  margin:.35rem 0!important;
  max-width:980px!important;
  line-height:1.55!important;
}

.ji-tramite-group-title{
  margin:1.35rem 0 .85rem!important;
  color:#0f4d4a!important;
  font-size:1.35rem!important;
  font-weight:900!important;
}
.ji-tramite-group-title--external{color:#8e49aa!important}
.ji-tramite-group-note{
  color:#5a6378!important;
  margin:-.45rem 0 1rem!important;
}
.ji-tramite-card--external .ji-unified-card__top{
  color:#8e49aa!important;
}
.ji-tramite-card--external .ji-unified-card__footer a{
  background:#f5bd3d!important;
  color:#23343f!important;
}
.ji-tramite-card--external .ji-unified-card__body{
  border-left:5px solid #f5bd3d!important;
}
.ji-tramite-card--own .ji-unified-card__body{
  border-left:5px solid #10b5b3!important;
}

.ji-external-link-modal[hidden]{display:none!important}
.ji-external-link-modal{
  position:fixed!important;
  inset:0!important;
  z-index:9000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:1rem!important;
}
.ji-external-link-modal__overlay{
  position:absolute!important;
  inset:0!important;
  background:rgba(0,0,0,.62)!important;
}
.ji-external-link-modal__dialog{
  position:relative!important;
  z-index:1!important;
  width:min(560px,100%)!important;
  background:#fff!important;
  color:#334155!important;
  border-radius:18px!important;
  padding:1.5rem!important;
  box-shadow:0 22px 60px rgba(0,0,0,.28)!important;
}
.ji-external-link-modal__dialog h2{
  margin:0 0 .7rem!important;
  color:#0f4d4a!important;
  font-size:1.55rem!important;
}
.ji-external-link-modal__dialog p{
  line-height:1.55!important;
}
.ji-external-link-modal__count strong{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:2rem!important;
  height:2rem!important;
  border-radius:999px!important;
  background:#f5bd3d!important;
  color:#23343f!important;
}
.ji-external-link-modal__actions{
  display:flex!important;
  gap:.75rem!important;
  justify-content:flex-end!important;
  flex-wrap:wrap!important;
  margin-top:1rem!important;
}
.ji-btn--outline{
  border:2px solid #0f4d4a!important;
  background:#fff!important;
  color:#0f4d4a!important;
  border-radius:999px!important;
  padding:.75rem 1rem!important;
  font-weight:800!important;
}


/* --- v3.8 footer legal moved into main column --- */
.ji-footer__legal-main h2{
  color:#fff!important;
  margin-bottom:1rem!important;
}
.ji-footer__legal-main p{
  max-width:560px!important;
  line-height:1.65!important;
}
.ji-footer__legal-main strong{
  color:#fff!important;
}
.ji-footer__grid{
  align-items:start!important;
}
@media (min-width: 900px){
  .ji-footer__grid{
    grid-template-columns:1.35fr .7fr .85fr!important;
  }
}


/* --- v3.9 sticky utilities and clean notice --- */
.ji-independence-notice .ji-container{
  display:block!important;
}
.ji-independence-notice strong{
  display:none!important;
}
.ji-back-to-top{
  background:#f5bd3d!important;
  color:#23343f!important;
  border:2px solid rgba(255,255,255,.55)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.22)!important;
}
.ji-back-to-top:hover{
  background:#1f7a75!important;
  color:#ffffff!important;
}
.ji-accessibility{
  position:fixed!important;
  top:14px!important;
  right:18px!important;
  bottom:auto!important;
  z-index:99999!important;
}
.admin-bar .ji-accessibility{
  top:46px!important;
}
.ji-accessibility__toggle{
  background:#f5bd3d!important;
  color:#23343f!important;
  box-shadow:0 10px 26px rgba(0,0,0,.22)!important;
}
.ji-accessibility__panel{
  top:68px!important;
  right:0!important;
  bottom:auto!important;
}
.ji-site-header,
.ji-site-header--lb,
.ji-site-header--municipal{
  z-index:8000!important;
}
@media (max-width:782px){
  .admin-bar .ji-accessibility{
    top:58px!important;
  }
  .ji-accessibility{
    right:12px!important;
    top:10px!important;
  }
}


/* --- v4.0 accessibility font scaling site-wide --- */
:root{
  --ji-accessibility-font-scale:1;
}
html.ji-font-scaled body{
  font-size:calc(16px * var(--ji-accessibility-font-scale))!important;
}
html.ji-font-scaled p,
html.ji-font-scaled li,
html.ji-font-scaled a,
html.ji-font-scaled button,
html.ji-font-scaled input,
html.ji-font-scaled textarea,
html.ji-font-scaled select,
html.ji-font-scaled label,
html.ji-font-scaled span,
html.ji-font-scaled small,
html.ji-font-scaled strong,
html.ji-font-scaled em,
html.ji-font-scaled td,
html.ji-font-scaled th{
  font-size:calc(1em * var(--ji-accessibility-font-scale))!important;
}
html.ji-font-scaled h1{
  font-size:calc(clamp(2.35rem, 5vw, 4.6rem) * var(--ji-accessibility-font-scale))!important;
}
html.ji-font-scaled h2,
html.ji-font-scaled .ji-block-heading__title--bicolor,
html.ji-font-scaled .ji-news-section__title{
  font-size:calc(clamp(2.05rem, 4vw, 3.5rem) * var(--ji-accessibility-font-scale))!important;
}
html.ji-font-scaled h3,
html.ji-font-scaled .ji-card-system__body h3,
html.ji-font-scaled .ji-unified-card__body h3{
  font-size:calc(1.18rem * var(--ji-accessibility-font-scale))!important;
}
html.ji-font-scaled .ji-main-nav--mega>ul>li>a{
  font-size:calc(.98rem * var(--ji-accessibility-font-scale))!important;
}
html.ji-font-scaled .ji-accessibility,
html.ji-font-scaled .ji-accessibility *,
html.ji-font-scaled .ji-back-to-top{
  font-size:initial!important;
}
html.ji-font-scaled .ji-accessibility__panel button{
  font-size:.95rem!important;
}


/* --- v4.1 panel synchronization fixes --- */
.ji-branding__logo img{max-height:54px;width:auto;display:block}
.ji-theme-panel textarea.regular-text{width:min(620px,100%);min-height:90px}


/* --- v4.2 panel behavior, header actions, backgrounds and external modal fixes --- */
.ji-mainbar__actions{
  gap:.65rem!important;
}
.ji-mainbar__separator{
  color:#1f7a75!important;
  opacity:.75!important;
  font-weight:800!important;
}
.ji-mainbar__action--phone{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#f5bd3d!important;
  color:#ffffff!important;
  border-radius:999px!important;
  padding:.55rem .95rem!important;
  line-height:1!important;
  font-weight:900!important;
}
.ji-mainbar__action--phone:hover{
  background:#dea42a!important;
  color:#ffffff!important;
}
.ji-mainbar__action--portal,
.ji-mainbar__action--tramites{
  text-decoration:none!important;
}
.ji-has-section-bg{
  background-color:#f8faf9!important;
}
.ji-has-section-bg:before{
  background:rgba(255,255,255,.18);
}
.ji-external-link-modal__dialog{
  border-top:6px solid #f5bd3d!important;
}


/* --- v4.3 directiva readability + search modal over sticky header --- */

/* Directiva detail/header readability */
.single-ji_directiva .ji-page-header,
.single-ji_directiva .ji-hero,
.post-type-archive-ji_directiva .ji-page-header,
.ji-directiva-single .ji-page-header{
  background:#ffffff!important;
  color:#0f2f3f!important;
}
.single-ji_directiva .ji-page-header *,
.single-ji_directiva .ji-hero *,
.post-type-archive-ji_directiva .ji-page-header *,
.ji-directiva-single .ji-page-header *{
  color:#0f2f3f!important;
  opacity:1!important;
}
.single-ji_directiva .ji-page-header .ji-kicker,
.single-ji_directiva .ji-hero .ji-kicker,
.post-type-archive-ji_directiva .ji-page-header .ji-kicker{
  color:#c65f3d!important;
  opacity:1!important;
}
.single-ji_directiva h1,
.single-ji_directiva .ji-page-header h1,
.single-ji_directiva .ji-hero h1{
  color:#0f2f3f!important;
  opacity:1!important;
  text-shadow:none!important;
}
.single-ji_directiva .ji-article,
.single-ji_directiva .ji-content,
.single-ji_directiva main{
  color:#102f4a!important;
}

/* Generic safeguard for dark page headers with low opacity text */
.ji-page-header h1,
.ji-hero h1{
  opacity:1!important;
}

/* Search modal must sit above sticky header and start below viewport edge */
.ji-search-modal{
  position:fixed!important;
  inset:0!important;
  z-index:120000!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:center!important;
  padding:clamp(72px, 9vh, 112px) 1rem 1rem!important;
}
.ji-search-modal[hidden]{
  display:none!important;
}
.ji-search-modal__overlay{
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  background:rgba(0,0,0,.68)!important;
}
.ji-search-modal__dialog{
  position:relative!important;
  z-index:1!important;
  width:min(1180px, calc(100vw - 2rem))!important;
  max-height:calc(100vh - 120px)!important;
  overflow:auto!important;
  margin:0 auto!important;
  background:#fff!important;
  box-shadow:0 24px 70px rgba(0,0,0,.32)!important;
}
html.ji-search-open,
body.ji-search-open{
  overflow:hidden!important;
}
.ji-site-header,
.ji-site-header--lb,
.ji-site-header--municipal{
  z-index:8000!important;
}
.ji-accessibility{
  z-index:130000!important;
}
.ji-external-link-modal{
  z-index:125000!important;
}

/* Better contrast when modal darkens page */
.ji-search-modal__pills a{
  color:#f5a900!important;
  border-color:#f5a900!important;
}
.ji-search-modal__pills a:hover{
  background:#f5bd3d!important;
  color:#0f2f3f!important;
}

@media (max-width: 782px){
  .ji-search-modal{
    padding-top:88px!important;
  }
  .ji-search-modal__dialog{
    max-height:calc(100vh - 104px)!important;
  }
}

/* --- v4.4 readability fix for all interior heroes --- */
.ji-interior-hero{
  background:#2e3540!important;
  color:#ffffff!important;
}
.ji-interior-hero .ji-interior-hero__content,
.ji-interior-hero .ji-interior-hero__content *{
  color:#ffffff!important;
  opacity:1!important;
  text-shadow:none!important;
}
.ji-interior-hero .ji-kicker{
  color:#ff8f6a!important;
}
.ji-interior-hero h1,
.ji-interior-hero__content h1,
.ji-interior-hero__content .entry-title,
.single .ji-interior-hero h1,
.page .ji-interior-hero h1,
.archive .ji-interior-hero h1,
.search .ji-interior-hero h1,
.post-type-archive .ji-interior-hero h1{
  color:#ffffff!important;
  opacity:1!important;
  text-shadow:none!important;
}
.ji-interior-hero p,
.ji-interior-hero .archive-description,
.ji-interior-hero .archive-description p,
.ji-interior-hero .entry-subtitle{
  color:rgba(255,255,255,.94)!important;
}
/* override generic article heading rule inside dark headers */
.ji-article > .ji-interior-hero h1,
.ji-content-panel > .ji-interior-hero h1{
  color:#ffffff!important;
}


/* ==========================================================
   v5.0 limpieza visual institucional
   Objetivo: menos ruido, más aire, mayor elegancia y coherencia.
   ========================================================== */

/* Base cromática más contenida */
:root{
  --ji-v5-teal:#1f7a75;
  --ji-v5-teal-dark:#176a66;
  --ji-v5-yellow:#f5bd3d;
  --ji-v5-orange:#ef9440;
  --ji-v5-purple:#8e49aa;
  --ji-v5-ink:#12344a;
  --ji-v5-muted:#5f6b7a;
  --ji-v5-soft:#f5f8f7;
  --ji-v5-line:#e2e8ea;
  --ji-v5-shadow:0 14px 34px rgba(16, 45, 62, .10);
}

body{
  background:#f4f7f6!important;
  color:var(--ji-v5-ink)!important;
}

/* Header más bajo, limpio y con menor ruido */
.ji-site-header,
.ji-site-header--lb,
.ji-site-header--municipal{
  box-shadow:0 10px 26px rgba(0,0,0,.16)!important;
  background:#fff!important;
}

.ji-topbar{
  background:var(--ji-v5-teal)!important;
}

.ji-topbar__inner{
  min-height:56px!important;
  gap:1rem!important;
}

.ji-branding--top .ji-branding__text,
.ji-branding__text{
  gap:.65rem!important;
  font-size:1rem!important;
  line-height:1.1!important;
  max-width:360px!important;
}

.ji-branding__mark{
  width:42px!important;
  height:42px!important;
  border-radius:10px!important;
  font-size:.9rem!important;
  border:2px solid rgba(255,255,255,.7)!important;
}

.ji-branding__text span:last-child{
  font-size:clamp(1.05rem,1.5vw,1.35rem)!important;
  font-weight:850!important;
  line-height:1.15!important;
}

.ji-topbar__links{
  gap:.65rem!important;
  opacity:.96!important;
}

.ji-topbar__links a{
  font-size:.82rem!important;
  font-weight:700!important;
  color:#fff!important;
  opacity:.92!important;
}

.ji-topbar__links a:hover{
  opacity:1!important;
  color:#fff!important;
}

.ji-topbar__links a + a:before{
  content:"·";
  margin-right:.65rem;
  opacity:.45;
}

/* El buscador queda discreto */
.ji-top-search-trigger{
  width:34px!important;
  height:34px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
}

/* Barra principal más institucional */
.ji-mainbar{
  background:#fff!important;
  border-bottom:1px solid var(--ji-v5-line)!important;
}

.ji-mainbar__inner{
  min-height:48px!important;
}

.ji-main-nav--mega>ul>li>a,
.ji-main-nav a{
  color:#0e3e3c!important;
  font-size:.86rem!important;
  font-weight:800!important;
  letter-spacing:.025em!important;
  padding:.58rem .45rem!important;
  border-radius:0!important;
  background:transparent!important;
}

.ji-main-nav--mega>ul>li>a:hover,
.ji-main-nav .current-menu-item>a{
  color:var(--ji-v5-teal)!important;
  background:transparent!important;
}

.ji-main-nav--mega>ul>li+li>a:before{
  margin:0 .75rem 0 .25rem!important;
  color:rgba(31,122,117,.55)!important;
  font-weight:500!important;
}

/* Accesos del header: menos dashboard, más CTA */
.ji-mainbar__actions{
  gap:.75rem!important;
  align-items:center!important;
}

.ji-mainbar__action--portal,
.ji-mainbar__action--tramites{
  color:#0e3e3c!important;
  font-size:.84rem!important;
  font-weight:800!important;
}

.ji-mainbar__separator{
  color:rgba(31,122,117,.65)!important;
  font-weight:600!important;
}

.ji-mainbar__action--phone{
  background:var(--ji-v5-yellow)!important;
  color:#fff!important;
  border-radius:999px!important;
  padding:.55rem 1rem!important;
  font-size:.86rem!important;
  min-height:36px!important;
  box-shadow:none!important;
}

/* Aviso institucional más fino */
.ji-independence-notice{
  background:#fff8e8!important;
  border-bottom:1px solid #f2d897!important;
  color:#3f4856!important;
  font-size:.86rem!important;
}

.ji-independence-notice .ji-container{
  padding:.45rem 1rem!important;
  line-height:1.35!important;
}

/* Hero principal: más aire, menos dureza */
.ji-home-hero,
.ji-home-hero--lb{
  background:#fff!important;
}

.ji-home-hero__media,
.ji-home-hero__visual,
.ji-hero-slider{
  min-height:clamp(380px, 58vh, 560px)!important;
}

.ji-home-hero__panel{
  background:#25313c!important;
}

.ji-home-hero__title,
.ji-hero-slide h1{
  font-weight:900!important;
  letter-spacing:-.045em!important;
}

.ji-hero-pills a{
  border-color:rgba(245,189,61,.88)!important;
  color:var(--ji-v5-yellow)!important;
  font-size:.88rem!important;
  padding:.45rem .75rem!important;
}

/* Accesos inferiores más livianos */
.ji-home-shortcuts .ji-shortcut{
  min-height:90px!important;
  padding:1.15rem 1.35rem!important;
}

.ji-home-shortcuts .ji-shortcut h3,
.ji-shortcut__title{
  font-size:clamp(1.1rem,1.65vw,1.35rem)!important;
  line-height:1.15!important;
}

/* Secciones: más aire y fondos controlados */
.ji-section,
.ji-block-section,
.ji-news-section,
.ji-events-showcase{
  padding:clamp(3.4rem, 6vw, 5.2rem) 0!important;
}

#tramites,
#noticias,
#directiva,
#destacados,
#galerias{
  background:#fff!important;
}

#eventos,
.ji-events-showcase{
  background:#f3f7f6!important;
}

.ji-block-heading--strict,
.ji-block-heading,
.ji-news-section__header{
  margin-bottom:1.65rem!important;
}

.ji-block-heading__title--bicolor,
.ji-news-section__title.ji-block-heading__title--bicolor{
  font-size:clamp(2.1rem, 4.4vw, 3.7rem)!important;
  line-height:.98!important;
  letter-spacing:-.055em!important;
  margin-bottom:.55rem!important;
}

.ji-block-heading__title--bicolor{
  color:var(--ji-v5-purple)!important;
}

.ji-block-heading__title--bicolor span{
  color:var(--ji-v5-orange)!important;
}

.ji-block-heading__text p,
.ji-news-section__intro,
.ji-events-showcase__header p:last-child{
  color:var(--ji-v5-muted)!important;
  font-size:.98rem!important;
  line-height:1.6!important;
}

/* Sistema único de cards: blanco, imagen cuando corresponde, CTA limpio */
.ji-card-system,
.ji-news-card,
.ji-unified-card:not(.ji-unified-card--independencia-service),
#destacados .ji-unified-card,
#galerias .ji-unified-card,
#directiva .ji-unified-card{
  background:#fff!important;
  border:1px solid var(--ji-v5-line)!important;
  box-shadow:var(--ji-v5-shadow)!important;
  border-radius:0!important;
  overflow:hidden!important;
}

.ji-card-system__body,
.ji-news-card__body,
.ji-unified-card__body{
  background:#fff!important;
  padding:1.15rem 1.25rem 1.2rem!important;
}

.ji-card-system__eyebrow,
.ji-news-card__category,
.ji-unified-card__top{
  color:var(--ji-v5-purple)!important;
  font-size:.82rem!important;
  font-weight:850!important;
  text-transform:none!important;
  letter-spacing:0!important;
  padding:1.05rem 1.25rem .15rem!important;
  background:#fff!important;
}

.ji-card-system__body h3,
.ji-card-system__body h3 a,
.ji-news-card__body h3,
.ji-news-card__body h3 a,
.ji-unified-card__body h3,
.ji-unified-card__body h3 a{
  color:#405579!important;
  font-size:1.08rem!important;
  line-height:1.28!important;
  font-weight:850!important;
  text-decoration:none!important;
}

.ji-card-system__body p,
.ji-news-card__body p,
.ji-unified-card__body p{
  color:#5d6b79!important;
  font-size:.96rem!important;
  line-height:1.58!important;
}

.ji-card-system__footer,
.ji-news-card__footer,
.ji-unified-card__footer{
  border-top:1px solid var(--ji-v5-line)!important;
  background:#fff!important;
  padding:.9rem 1.25rem 1rem!important;
}

.ji-card-system__footer a,
.ji-news-card__footer a,
.ji-unified-card__footer a{
  color:#0f4d4a!important;
  font-size:.92rem!important;
  font-weight:850!important;
  text-decoration:none!important;
}

.ji-card-system__footer a span,
.ji-news-card__footer a span,
.ji-unified-card__footer a span{
  background:var(--ji-v5-yellow)!important;
  color:#fff!important;
  width:1.85rem!important;
  height:1.85rem!important;
}

/* Hover sobrio: no cambia a colores ilegibles */
.ji-card-system:hover,
.ji-news-card:hover,
.ji-unified-card:hover{
  background:#fff!important;
  transform:translateY(-3px)!important;
  box-shadow:0 18px 42px rgba(16,45,62,.14)!important;
}

.ji-card-system:hover *,
.ji-news-card:hover *,
.ji-unified-card:hover *{
  opacity:1!important;
}

/* Trámites: más sobrios, menos cartel */
#tramites .ji-unified-card--independencia-service{
  background:#fff!important;
  border:1px solid var(--ji-v5-line)!important;
  box-shadow:var(--ji-v5-shadow)!important;
  padding-top:0!important;
}

#tramites .ji-unified-card--independencia-service .ji-unified-card__top{
  padding:1rem 1.15rem .25rem!important;
  color:var(--ji-v5-purple)!important;
  font-size:.82rem!important;
  font-weight:800!important;
}

#tramites .ji-unified-card--independencia-service .ji-unified-card__body{
  padding:.3rem 1.15rem 1.05rem!important;
  border-left:0!important;
}

#tramites .ji-unified-card--independencia-service .ji-unified-card__body h3{
  color:#405579!important;
  font-size:1.02rem!important;
  line-height:1.18!important;
  font-weight:850!important;
  margin-bottom:.6rem!important;
}

#tramites .ji-unified-card--independencia-service .ji-unified-card__body p{
  color:#5d6b79!important;
  font-size:.93rem!important;
  line-height:1.5!important;
}

#tramites .ji-unified-card--independencia-service .ji-unified-card__footer{
  border-top:1px solid var(--ji-v5-line)!important;
  background:#fff!important;
  padding:.85rem 1rem 1rem!important;
}

#tramites .ji-unified-card--independencia-service .ji-unified-card__footer a{
  border-radius:999px!important;
  background:var(--ji-v5-yellow)!important;
  color:#fff!important;
  min-height:38px!important;
  padding:.65rem .9rem!important;
  font-size:.82rem!important;
}

/* Directiva sin sensación de tarjeta pesada */
#directiva .ji-card-system--person,
#directiva .ji-unified-card{
  border-left:4px solid #3b7aa3!important;
}

#directiva .ji-card-system__body h3,
#directiva .ji-unified-card__body h3{
  font-size:1.08rem!important;
}

/* Botones amarillos solo para acciones importantes */
.ji-btn--news,
.ji-events-showcase__all,
.ji-mainbar__action--phone,
.ji-404-button{
  background:var(--ji-v5-yellow)!important;
  color:#fff!important;
  border-radius:999px!important;
  box-shadow:none!important;
  border:0!important;
}

.ji-btn--news:hover,
.ji-events-showcase__all:hover,
.ji-mainbar__action--phone:hover,
.ji-404-button:hover{
  background:#dea42a!important;
  color:#fff!important;
}

/* Interiores: cabeceras elegantes y legibles */
.ji-interior-shell{
  background:#f4f7f6!important;
}

.ji-interior-hero{
  background:#26313d!important;
  color:#fff!important;
  margin-bottom:1.75rem!important;
}

.ji-interior-hero__content{
  padding:2.4rem 1.8rem!important;
}

.ji-interior-hero h1{
  color:#fff!important;
  opacity:1!important;
  font-size:clamp(2rem, 4.4vw, 3.8rem)!important;
  letter-spacing:-.055em!important;
}

.ji-interior-hero .ji-kicker{
  color:#ff8f6a!important;
}

/* Modal de búsqueda: más fino, menos invasivo */
.ji-search-modal__dialog{
  border-radius:0!important;
  box-shadow:0 28px 70px rgba(0,0,0,.28)!important;
}

.ji-search-modal__pills a{
  border-color:var(--ji-v5-yellow)!important;
  color:#d69b17!important;
  font-size:.9rem!important;
}

/* Footer más institucional */
.ji-footer{
  background:var(--ji-v5-teal)!important;
}

.ji-footer__topband,
.ji-footer__bottom{
  background:var(--ji-v5-teal-dark)!important;
}

.ji-footer__grid{
  gap:2.2rem!important;
}

.ji-footer h2,
.ji-footer h3{
  font-weight:850!important;
}

.ji-footer p,
.ji-footer a,
.ji-footer li{
  font-size:.95rem!important;
  line-height:1.6!important;
}

/* Accesibilidad y back-to-top con menor presencia */
.ji-accessibility__toggle{
  width:54px!important;
  height:54px!important;
  background:var(--ji-v5-yellow)!important;
}

.ji-back-to-top{
  width:40px!important;
  height:40px!important;
  background:var(--ji-v5-yellow)!important;
  color:#23343f!important;
}

/* Responsive: simplificar más */
@media (max-width: 1160px){
  .ji-topbar__links a{
    font-size:.78rem!important;
  }
}

@media (max-width: 980px){
  .ji-topbar__links{
    display:none!important;
  }
  .ji-branding__text{
    max-width:none!important;
  }
  .ji-mainbar__actions{
    display:none!important;
  }
  .ji-mainbar__inner{
    min-height:54px!important;
  }
}

@media (max-width: 768px){
  .ji-block-heading__title--bicolor{
    font-size:clamp(2rem, 11vw, 3rem)!important;
  }
  .ji-section,
  .ji-block-section,
  .ji-news-section,
  .ji-events-showcase{
    padding:3rem 0!important;
  }
}
