
/* v8.0 - corrección global definitiva: títulos azul/rojo y footer con mismo degradé del header */

:root{
  --ji-uk-blue:#2457e6!important;
  --ji-uk-blue-2:#3677ff!important;
  --ji-uk-navy:#0f2b63!important;
  --ji-uk-red:#cf142b!important;
  --ji-uk-red-dark:#ad1025!important;
  --ji-uk-white:#ffffff!important;
  --ji-uk-soft:#f4f7ff!important;
  --ji-uk-line:#d8e2fb!important;
  --ji-uk-ink:#0d214a!important;

  --ji-primary:#0f2b63!important;
  --ji-secondary:#2457e6!important;
  --ji-accent:#cf142b!important;
  --ji-bg:#f4f7ff!important;
  --ji-text:#0d214a!important;
  --ji-border:#d8e2fb!important;

  --ji-v5-teal:#2457e6!important;
  --ji-v5-teal-dark:#0f2b63!important;
  --ji-v5-yellow:#cf142b!important;
  --ji-v5-orange:#cf142b!important;
  --ji-v5-purple:#2457e6!important;

  --ji-card-kicker:#2457e6!important;
  --ji-card-accent:#cf142b!important;
  --ji-independencia-yellow:#cf142b!important;
  --ji-independencia-yellow-dark:#ad1025!important;
  --ji-independencia-teal:#2457e6!important;
  --ji-independencia-teal-dark:#0f2b63!important;
}

/* Header y footer: MISMO degradé exacto */
body .ji-clean-header,
body.ji-v53-clean .ji-clean-header,
body.ji-v54-dashboard .ji-clean-header,
body .ji-footer,
body .ji-v5-footer{
  background:linear-gradient(90deg,#0f2b63 0%,#2457e6 62%,#cf142b 100%)!important;
  color:#fff!important;
}

body .ji-footer__bottom,
body .ji-v5-footer__bottom{
  background:rgba(0,0,0,.24)!important;
  color:#fff!important;
}

body .ji-footer *,
body .ji-v5-footer *,
body .ji-footer a,
body .ji-v5-footer a{
  color:#fff!important;
}

/* Títulos bicolor globales: azul + rojo. NO morado, NO amarillo/naranjo */
body .ji-block-heading__title,
body .ji-block-heading__title--bicolor,
body .ji-section__header h2,
body .ji-v5-section__title,
body .ji-page-header h1,
body .ji-article h1,
body .ji-split h2,
body #quienes-somos .ji-block-heading__title--bicolor,
body #destacados .ji-block-heading__title--bicolor,
body #tramites .ji-block-heading__title--bicolor,
body #documentos .ji-block-heading__title--bicolor,
body #noticias .ji-block-heading__title--bicolor,
body #galerias .ji-block-heading__title--bicolor,
body #directiva .ji-block-heading__title--bicolor,
body #directorio .ji-block-heading__title--bicolor{
  color:#2457e6!important;
  background:none!important;
  -webkit-text-fill-color:#2457e6!important;
  text-shadow:none!important;
}

/* Cualquier span de título debe ser rojo */
body .ji-block-heading__title span,
body .ji-block-heading__title--bicolor span,
body .ji-section__header h2 span,
body .ji-v5-section__title span,
body .ji-page-header h1 span,
body .ji-article h1 span,
body .ji-split h2 span,
body #quienes-somos .ji-block-heading__title--bicolor span,
body #destacados .ji-block-heading__title--bicolor span,
body #tramites .ji-block-heading__title--bicolor span,
body #documentos .ji-block-heading__title--bicolor span,
body #noticias .ji-block-heading__title--bicolor span,
body #galerias .ji-block-heading__title--bicolor span,
body #directiva .ji-block-heading__title--bicolor span,
body #directorio .ji-block-heading__title--bicolor span{
  color:#cf142b!important;
  background:none!important;
  -webkit-text-fill-color:#cf142b!important;
  text-shadow:none!important;
}

/* Respaldo agresivo para clases antiguas con purple/orange/yellow */
body [class*="title--bicolor"],
body [class*="section__title"]{
  color:#2457e6!important;
  -webkit-text-fill-color:#2457e6!important;
}
body [class*="title--bicolor"] span,
body [class*="section__title"] span{
  color:#cf142b!important;
  -webkit-text-fill-color:#cf142b!important;
}

/* Etiquetas/kickers: azul; botones: rojo */
body .ji-card-system__eyebrow,
body .ji-unified-card__top,
body .ji-news-card__category,
body .ji-v5-card__kicker,
body .ji-archive-card__kicker,
body .ji-person-card__role,
body .ji-tramite-card .ji-unified-card__top{
  color:#2457e6!important;
}

body .ji-btn,
body .ji-btn--news,
body .ji-clean-call,
body .ji-clean-hero__button,
body .ji-card-system__footer a,
body .ji-unified-card__footer a,
body .ji-news-card__footer a,
body .ji-events-showcase__all,
body .ji-v5-card__button,
body .ji-archive-card__button,
body .ji-person-card__button,
body .ji-short-card__button,
body .ji-cert-verify__form button{
  background:#cf142b!important;
  border-color:#cf142b!important;
  color:#fff!important;
}

body .ji-btn:hover,
body .ji-btn--news:hover,
body .ji-clean-call:hover,
body .ji-clean-hero__button:hover,
body .ji-card-system__footer a:hover,
body .ji-unified-card__footer a:hover,
body .ji-news-card__footer a:hover,
body .ji-events-showcase__all:hover,
body .ji-v5-card__button:hover,
body .ji-archive-card__button:hover,
body .ji-person-card__button:hover,
body .ji-short-card__button:hover{
  background:#ad1025!important;
  border-color:#ad1025!important;
  color:#fff!important;
}

/* Círculos de flecha dentro de botones rojos */
body .ji-btn--news span,
body .ji-card-system__footer a span,
body .ji-unified-card__footer a span,
body .ji-news-card__footer a span{
  background:#fff!important;
  color:#cf142b!important;
}

/* Footer nunca teal/verde */
body .ji-footer,
body .ji-v5-footer,
body .ji-footer__top,
body .ji-footer__grid,
body .ji-footer__main,
body .ji-footer__columns{
  background:linear-gradient(90deg,#0f2b63 0%,#2457e6 62%,#cf142b 100%)!important;
}

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