
/*
 * v5.1 CLEAN LAYER
 * This file is intentionally loaded last to override legacy accumulated CSS.
 */

/* Global restraint */
html body.ji-theme{
  background:#f6f8f7!important;
  color:#14384f!important;
}

/* HEADER: compact, municipal, less crowded */
body.ji-theme .ji-site-header{
  background:#ffffff!important;
  box-shadow:0 10px 24px rgba(0,0,0,.13)!important;
  border:0!important;
}

body.ji-theme .ji-topbar{
  background:#1f7a75!important;
  min-height:58px!important;
}

body.ji-theme .ji-topbar__inner{
  min-height:58px!important;
  align-items:center!important;
}

body.ji-theme .ji-branding__text{
  color:#ffffff!important;
  font-size:1rem!important;
  max-width:360px!important;
  line-height:1.15!important;
}

body.ji-theme .ji-branding__mark{
  width:42px!important;
  height:42px!important;
  border-radius:10px!important;
  border:2px solid rgba(255,255,255,.7)!important;
  background:rgba(255,255,255,.12)!important;
}

body.ji-theme .ji-branding__text span:last-child{
  font-size:1.25rem!important;
  font-weight:850!important;
  line-height:1.1!important;
}

body.ji-theme .ji-topbar__links{
  gap:.55rem!important;
}

body.ji-theme .ji-topbar__links a{
  color:#ffffff!important;
  font-size:.78rem!important;
  font-weight:700!important;
  opacity:.92!important;
  text-decoration:none!important;
}

body.ji-theme .ji-topbar__links a + a:before{
  content:"·";
  margin:0 .55rem 0 0;
  opacity:.45;
}

body.ji-theme .ji-mainbar{
  background:#ffffff!important;
  border-bottom:1px solid #dfe7e6!important;
}

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

body.ji-theme .ji-main-nav--mega>ul>li>a,
body.ji-theme .ji-main-nav a{
  padding:.5rem .42rem!important;
  color:#0f3d3e!important;
  font-size:.84rem!important;
  font-weight:850!important;
  letter-spacing:.025em!important;
  background:transparent!important;
  border-radius:0!important;
  text-decoration:none!important;
}

body.ji-theme .ji-main-nav--mega>ul>li>a:hover,
body.ji-theme .ji-main-nav .current-menu-item>a{
  color:#1f7a75!important;
  background:transparent!important;
}

body.ji-theme .ji-mainbar__actions{
  gap:.65rem!important;
}

body.ji-theme .ji-mainbar__action--portal,
body.ji-theme .ji-mainbar__action--tramites{
  color:#0f3d3e!important;
  font-size:.83rem!important;
  font-weight:850!important;
  text-decoration:none!important;
}

body.ji-theme .ji-mainbar__separator{
  color:#1f7a75!important;
}

body.ji-theme .ji-mainbar__action--phone{
  background:#f5bd3d!important;
  color:#ffffff!important;
  border-radius:999px!important;
  padding:.55rem 1rem!important;
  min-height:36px!important;
  line-height:1!important;
  box-shadow:none!important;
  text-decoration:none!important;
}

/* legal strip, quieter */
body.ji-theme .ji-independence-notice{
  background:#fff8e5!important;
  color:#3f4856!important;
  border-bottom:1px solid #f0d58b!important;
  font-size:.84rem!important;
}
body.ji-theme .ji-independence-notice .ji-container{
  padding:.4rem 1rem!important;
}

/* HOME HERO: reduce dashboard feeling */
body.ji-theme .ji-home-hero--lb{
  background:#ffffff!important;
}
body.ji-theme .ji-home-hero__panel{
  background:#25313c!important;
}
body.ji-theme .ji-hero-pills a{
  border-color:#f5bd3d!important;
  color:#f5bd3d!important;
  padding:.42rem .7rem!important;
  font-size:.86rem!important;
}
body.ji-theme .ji-home-shortcuts .ji-shortcut{
  min-height:86px!important;
  padding:1rem 1.25rem!important;
}

/* SECTION BACKGROUNDS */
body.ji-theme #destacados,
body.ji-theme #tramites,
body.ji-theme #noticias,
body.ji-theme #galerias,
body.ji-theme #directiva{
  background:#ffffff!important;
}

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

/* TITLES: more refined */
body.ji-theme .ji-block-heading__title--bicolor,
body.ji-theme .ji-news-section__title.ji-block-heading__title--bicolor{
  color:#8e49aa!important;
  font-size:clamp(2.05rem,4vw,3.45rem)!important;
  line-height:1!important;
  letter-spacing:-.055em!important;
  margin:0 0 .55rem!important;
  padding:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ji-theme .ji-block-heading__title--bicolor span,
body.ji-theme .ji-news-section__title.ji-block-heading__title--bicolor span{
  color:#ef9440!important;
}
body.ji-theme .ji-block-heading__text p,
body.ji-theme .ji-events-showcase__header p:last-child{
  color:#5f6b7a!important;
  font-size:.98rem!important;
}

/* CARDS: clean and consistent */
body.ji-theme .ji-card-system,
body.ji-theme .ji-news-card,
body.ji-theme .ji-unified-card,
body.ji-theme #destacados .ji-unified-card,
body.ji-theme #galerias .ji-unified-card,
body.ji-theme #directiva .ji-unified-card{
  background:#ffffff!important;
  border:1px solid #e2e8ea!important;
  border-radius:0!important;
  box-shadow:0 12px 30px rgba(16,45,62,.09)!important;
  overflow:hidden!important;
  transform:none;
}

body.ji-theme .ji-card-system__body,
body.ji-theme .ji-news-card__body,
body.ji-theme .ji-unified-card__body{
  background:#ffffff!important;
  padding:1.1rem 1.2rem!important;
}

body.ji-theme .ji-card-system__eyebrow,
body.ji-theme .ji-news-card__category,
body.ji-theme .ji-unified-card__top{
  background:#ffffff!important;
  color:#8e49aa!important;
  padding:1rem 1.2rem .2rem!important;
  font-size:.82rem!important;
  font-weight:850!important;
  letter-spacing:0!important;
}

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

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

body.ji-theme .ji-card-system__footer,
body.ji-theme .ji-news-card__footer,
body.ji-theme .ji-unified-card__footer{
  background:#ffffff!important;
  border-top:1px solid #e2e8ea!important;
  padding:.85rem 1.2rem!important;
}

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

body.ji-theme .ji-card-system__footer a span,
body.ji-theme .ji-news-card__footer a span,
body.ji-theme .ji-unified-card__footer a span{
  background:#f5bd3d!important;
  color:#ffffff!important;
}

body.ji-theme .ji-card-system:hover,
body.ji-theme .ji-news-card:hover,
body.ji-theme .ji-unified-card:hover{
  background:#ffffff!important;
  transform:translateY(-3px)!important;
  box-shadow:0 18px 42px rgba(16,45,62,.14)!important;
}

/* Trámites: cleaner, no giant purple blocks */
body.ji-theme #tramites .ji-unified-card--independencia-service{
  background:#ffffff!important;
  border:1px solid #e2e8ea!important;
  box-shadow:0 12px 30px rgba(16,45,62,.09)!important;
}
body.ji-theme #tramites .ji-unified-card--independencia-service .ji-unified-card__top{
  color:#8e49aa!important;
  font-size:.82rem!important;
  padding:1rem 1.1rem .2rem!important;
}
body.ji-theme #tramites .ji-unified-card--independencia-service .ji-unified-card__body{
  padding:.25rem 1.1rem 1rem!important;
  border-left:0!important;
}
body.ji-theme #tramites .ji-unified-card--independencia-service .ji-unified-card__body h3{
  color:#405579!important;
  font-size:1rem!important;
  line-height:1.18!important;
}
body.ji-theme #tramites .ji-unified-card--independencia-service .ji-unified-card__footer a{
  background:#f5bd3d!important;
  color:#ffffff!important;
  border-radius:999px!important;
  font-size:.82rem!important;
  min-height:38px!important;
}

/* Interior pages readability */
body.ji-theme .ji-interior-hero{
  background:#26313d!important;
  color:#ffffff!important;
}
body.ji-theme .ji-interior-hero h1,
body.ji-theme .ji-interior-hero *{
  opacity:1!important;
}
body.ji-theme .ji-interior-hero h1{
  color:#ffffff!important;
}
body.ji-theme .ji-interior-hero .ji-kicker{
  color:#ff8f6a!important;
}

/* Footer */
body.ji-theme .ji-footer{
  background:#1f7a75!important;
}
body.ji-theme .ji-footer__topband,
body.ji-theme .ji-footer__bottom{
  background:#176a66!important;
}

/* Accessibility / utilities */
body.ji-theme .ji-accessibility__toggle,
body.ji-theme .ji-back-to-top{
  background:#f5bd3d!important;
  color:#23343f!important;
}

/* responsive simplification */
@media (max-width:980px){
  body.ji-theme .ji-topbar__links,
  body.ji-theme .ji-mainbar__actions{
    display:none!important;
  }
}
