

/* ==========================================================================
   v8.2 HARD FIX - footer gradient full width + card buttons blue
   This block is intentionally appended to main.css to defeat older cache/order.
   ========================================================================== */

:root{
  --ji-uk-blue:#2457e6!important;
  --ji-uk-navy:#0f2b63!important;
  --ji-uk-red:#cf142b!important;
  --ji-uk-red-dark:#ad1025!important;
  --ji-uk-white:#ffffff!important;
}

/* FOOTER: same exact gradient as header, full viewport width */
html body footer#contacto.ji-footer,
html body footer.ji-footer,
html body .ji-footer,
html body .ji-v5-footer{
  position:relative!important;
  left:50%!important;
  right:50%!important;
  width:100vw!important;
  max-width:100vw!important;
  margin-left:-50vw!important;
  margin-right:-50vw!important;
  padding:0!important;
  background:#0f2b63!important;
  background-image:linear-gradient(90deg,#0f2b63 0%,#2457e6 62%,#cf142b 100%)!important;
  color:#fff!important;
  overflow:hidden!important;
}

/* absolutely remove inherited teal blocks inside footer */
html body footer#contacto.ji-footer::before,
html body footer#contacto.ji-footer::after,
html body footer.ji-footer::before,
html body footer.ji-footer::after{
  display:none!important;
  content:none!important;
}

html body footer#contacto.ji-footer .ji-footer__topband,
html body footer#contacto.ji-footer .ji-footer__grid,
html body footer#contacto.ji-footer .ji-footer__legal-main,
html body footer#contacto.ji-footer .ji-footer__bottom,
html body footer#contacto.ji-footer .ji-container,
html body footer.ji-footer .ji-footer__topband,
html body footer.ji-footer .ji-footer__grid,
html body footer.ji-footer .ji-footer__legal-main,
html body footer.ji-footer .ji-container{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
}

html body footer#contacto.ji-footer .ji-footer__topband,
html body footer.ji-footer .ji-footer__topband{
  height:0!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
}

html body footer#contacto.ji-footer .ji-footer__grid,
html body footer.ji-footer .ji-footer__grid{
  width:min(calc(100% - 32px),var(--ji-container,1180px))!important;
  max-width:var(--ji-container,1180px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-top:3.5rem!important;
  padding-bottom:3.5rem!important;
}

html body footer#contacto.ji-footer .ji-footer__bottom,
html body footer.ji-footer .ji-footer__bottom{
  width:100%!important;
  max-width:none!important;
  background:rgba(0,0,0,.24)!important;
  background-image:none!important;
  color:#fff!important;
  padding:1rem 0!important;
  margin:0!important;
}

html body footer#contacto.ji-footer .ji-footer__bottom .ji-container,
html body footer.ji-footer .ji-footer__bottom .ji-container{
  width:min(calc(100% - 32px),var(--ji-container,1180px))!important;
  max-width:var(--ji-container,1180px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

html body footer#contacto.ji-footer,
html body footer#contacto.ji-footer h1,
html body footer#contacto.ji-footer h2,
html body footer#contacto.ji-footer h3,
html body footer#contacto.ji-footer p,
html body footer#contacto.ji-footer li,
html body footer#contacto.ji-footer a,
html body footer#contacto.ji-footer strong,
html body footer#contacto.ji-footer span,
html body footer.ji-footer,
html body footer.ji-footer h1,
html body footer.ji-footer h2,
html body footer.ji-footer h3,
html body footer.ji-footer p,
html body footer.ji-footer li,
html body footer.ji-footer a,
html body footer.ji-footer strong,
html body footer.ji-footer span{
  color:#fff!important;
}

/* CARD BUTTONS: no yellow. All internal card buttons are blue. */
html body #tramites .ji-unified-card__footer a,
html body #quienes-somos .ji-unified-card__footer a,
html body #documentos .ji-unified-card__footer a,
html body #directorio .ji-unified-card__footer a,
html body #destacados .ji-card-system__footer a,
html body #noticias .ji-card-system__footer a,
html body #galerias .ji-card-system__footer a,
html body #directiva .ji-card-system__footer a,
html body .ji-tramite-card .ji-unified-card__footer a,
html body .ji-document-card .ji-unified-card__footer a,
html body .ji-about-card .ji-unified-card__footer a,
html body .ji-directory-card .ji-unified-card__footer a,
html body .ji-card-system__footer a,
html body .ji-unified-card__footer a{
  background:#2457e6!important;
  background-image:none!important;
  border:2px solid #2457e6!important;
  color:#fff!important;
  box-shadow:none!important;
}

html body #tramites .ji-unified-card__footer a:hover,
html body #quienes-somos .ji-unified-card__footer a:hover,
html body #documentos .ji-unified-card__footer a:hover,
html body #directorio .ji-unified-card__footer a:hover,
html body #destacados .ji-card-system__footer a:hover,
html body #noticias .ji-card-system__footer a:hover,
html body #galerias .ji-card-system__footer a:hover,
html body #directiva .ji-card-system__footer a:hover,
html body .ji-card-system__footer a:hover,
html body .ji-unified-card__footer a:hover{
  background:#0f2b63!important;
  background-image:none!important;
  border-color:#0f2b63!important;
  color:#fff!important;
}

/* button arrow circles */
html body .ji-card-system__footer a span,
html body .ji-unified-card__footer a span{
  background:#fff!important;
  color:#2457e6!important;
}

/* keep section-level CTAs red */
html body .ji-block-heading__cta .ji-btn,
html body .ji-block-heading__cta .ji-btn--news,
html body .ji-news-section__cta .ji-btn,
html body .ji-news-section__cta .ji-btn--news,
html body .ji-clean-call,
html body .ji-cert-verify__form button,
html body .ji-cert-action--primary{
  background:#cf142b!important;
  background-image:none!important;
  border-color:#cf142b!important;
  color:#fff!important;
}
