/* ==========================================================================
   Justicia Abierta — rediseño 2026 (Figma WVSZq0NiyfjDgRWPH4wZra)
   Hoja de estilos propia sobre shaper_finance. El contenido se administra
   desde SP Page Builder: aquí solo hay estilos, asociados a clases CSS que
   se asignan a filas, columnas y addons desde el constructor.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --ja-navy: #041e42;          /* Tangaroa: títulos, menú */
  --ja-navy-deep: #0b133c;     /* Blue Zodiac */
  --ja-prussian: #002b49;
  --ja-blue: #3b82f6;          /* Dodger Blue: acentos */
  --ja-blue-link: #004775;     /* enlaces del pie */
  --ja-blue-science: #0a66c2;
  --ja-blue-curious: #3c92da;
  --ja-blue-jelly: #2d6ea4;
  --ja-green: #3a530c;         /* Forest Green: botones de acción */
  --ja-green-bright: #3cda3c;
  --ja-red: #952020;           /* Old Brick */
  --ja-red-bright: #c72b2b;

  /* Neutros (escala slate) */
  --ja-ink: #1e293b;           /* Mirage: texto fuerte */
  --ja-ink-2: #334155;         /* Pickled Bluewood */
  --ja-muted: #475569;         /* Fiord: texto secundario */
  --ja-line-strong: #cbd5e1;   /* Geyser */
  --ja-line: #e2e8f0;          /* Mystic */
  --ja-surface: #f8fafc;       /* Catskill White */
  --ja-white: #ffffff;

  /* Tipografía */
  --ja-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ja-font-text: "Source Sans 3", "Inter", system-ui, sans-serif;   /* párrafos largos (Figma) */
  --ja-fw-regular: 400;
  --ja-fw-medium: 500;
  --ja-fw-bold: 700;
  --ja-fw-black: 800;

  /* Radios */
  --ja-radius-xs: 4px;
  --ja-radius-sm: 6px;
  --ja-radius-md: 12px;
  --ja-radius-lg: 16px;
  --ja-radius-xl: 20px;
  --ja-radius-pill: 980px;

  /* Contenedores */
  --ja-w-narrow: 1000px;
  --ja-w-content: 1100px;
  --ja-w-wide: 1200px;
  --ja-w-max: 1350px;

  /* Sombras */
  --ja-shadow-sm: 0 4px 10px rgba(0, 0, 0, .10);
  --ja-shadow-md: 0 10px 30px rgba(4, 30, 66, .10);
}

/* --------------------------------------------------------------------------
   1b. Compatibilidad: el layout parcheado de Helix emite utilidades de
   Bootstrap 5 (d-none, d-lg-block, visually-hidden) pero la plantilla
   carga Bootstrap 3, que no las define.
   -------------------------------------------------------------------------- */
.d-none { display: none !important; }
@media (min-width: 992px) { .d-lg-block { display: block !important; } }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* Las listas dentro de módulos de SP Page Builder no heredan el estilo de
   menú lateral de la plantilla (.sp-module ul > li: borde y chevron) */
.sp-module .mod-sppagebuilder ul > li { border-bottom: 0; }
.sp-module .mod-sppagebuilder ul > li > a { line-height: inherit; padding: 0; }
.sp-module .mod-sppagebuilder ul > li > a::before { content: none; }

/* --------------------------------------------------------------------------
   2. Base tipográfica
   -------------------------------------------------------------------------- */
body {
  font-family: var(--ja-font);
  font-weight: var(--ja-fw-regular);
  color: var(--ja-muted);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.sppb-addon-title {
  font-family: var(--ja-font);
  color: var(--ja-navy);
  letter-spacing: -0.5px;
}
h1 { font-weight: var(--ja-fw-black); }
h2, h3 { font-weight: var(--ja-fw-black); }
h4, h5, h6 { font-weight: var(--ja-fw-bold); letter-spacing: 0; }

/* --------------------------------------------------------------------------
   3. Botones (clase asignable a addons Button de SP Page Builder)
   -------------------------------------------------------------------------- */
.ja-btn .sppb-btn,
a.ja-btn,
.sppb-btn.ja-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 0;
  border-radius: var(--ja-radius-pill);
  font-family: var(--ja-font);
  font-size: 1.3rem;
  font-weight: var(--ja-fw-bold);
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: background-color .2s ease, transform .2s ease;
}
.ja-btn--green .sppb-btn,
.sppb-btn.ja-btn--green { background: var(--ja-green); color: var(--ja-white); }
.ja-btn--green .sppb-btn:hover,
.sppb-btn.ja-btn--green:hover { background: #2c3f09; color: var(--ja-white); }

.ja-btn--navy .sppb-btn,
.sppb-btn.ja-btn--navy { background: var(--ja-navy); color: var(--ja-white); }
.ja-btn--navy .sppb-btn:hover,
.sppb-btn.ja-btn--navy:hover { background: var(--ja-prussian); color: var(--ja-white); }

.ja-btn--blue .sppb-btn,
.sppb-btn.ja-btn--blue { background: var(--ja-blue); color: var(--ja-white); }
.ja-btn--blue .sppb-btn:hover,
.sppb-btn.ja-btn--blue:hover { background: var(--ja-blue-science); color: var(--ja-white); }

/* --------------------------------------------------------------------------
   4. Utilidades de contenedor para filas de SP Page Builder
   (asignar en Fila > Avanzado > Clase CSS)
   -------------------------------------------------------------------------- */
.ja-w-narrow  > :is(.sppb-row-container, .sppb-container-inner) { max-width: var(--ja-w-narrow); margin-left: auto; margin-right: auto; }
.ja-w-content > :is(.sppb-row-container, .sppb-container-inner) { max-width: var(--ja-w-content); margin-left: auto; margin-right: auto; }
.ja-w-wide    > :is(.sppb-row-container, .sppb-container-inner) { max-width: var(--ja-w-wide); margin-left: auto; margin-right: auto; }
.ja-w-max     > :is(.sppb-row-container, .sppb-container-inner) { max-width: var(--ja-w-max); margin-left: auto; margin-right: auto; }
/* Dentro de un módulo SPPB el contenedor es .sppb-container-inner: mismo relleno lateral que .sppb-row-container */
:is(.ja-w-narrow, .ja-w-content, .ja-w-wide, .ja-w-max) > .sppb-container-inner { padding-left: 15px; padding-right: 15px; }

/* --------------------------------------------------------------------------
   5. Redes sociales (addon "Grupo de iconos" con clase ja-social-icons)
   Cada ítem lleva una clase ja-ico-* que define el color de marca.
   -------------------------------------------------------------------------- */
.ja-social-icons .sppb-icons-group-list {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 0; padding: 0; list-style: none;
}
.ja-social-icons .sppb-icons-group-list li { margin: 0; padding: 0; }
.ja-social-icons .sppb-icons-group-list li a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; margin: 0;
  border-radius: 50%;
  background: var(--ja-ico-bg, var(--ja-navy));
  color: var(--ja-white);
  font-size: 1.5rem; line-height: 1;
  transition: transform .2s ease, filter .2s ease;
}
.ja-social-icons .sppb-icons-group-list li a:hover { transform: translateY(-2px); filter: brightness(1.1); color: var(--ja-white); }
.ja-social-icons .sppb-icons-group-list li a i { font-size: inherit; color: inherit; }
.ja-ico-facebook  { --ja-ico-bg: #0a66c2; }
.ja-ico-instagram { --ja-ico-bg: linear-gradient(45deg, #febb52 0%, #ef523c 30%, #d438a3 55%, #7f43c1 80%, #4064c3 100%); }
.ja-ico-linkedin  { --ja-ico-bg: #0a66c2; }
.ja-ico-youtube   { --ja-ico-bg: #ff0000; }
.ja-ico-x         { --ja-ico-bg: #000000; }
/* El Font Awesome 4 de la plantilla redefine .fa-facebook-f con el logo redondo: forzar la "f" de FA6 */
.ja-ico-facebook i.fa-facebook-f::before { content: "\f39e"; }
.ja-ico-youtube i { font-size: 1.2rem; margin-left: 2px; }   /* ▶ del Figma */

/* Pareja de logos (Poder Judicial + Justicia Abierta) */
.ja-logos .sppb-column-addons { display: flex; align-items: center; gap: 20px; }
.ja-logos .sppb-addon-wrapper { margin: 0 !important; }
.ja-logos .ja-logo img { display: block; width: 175px; max-width: 100%; height: auto; }
.ja-logos .ja-logo--ja img { width: 176px; }

/* --------------------------------------------------------------------------
   6. Cabecera (fila Helix "Header", clase ja-header)
   Figma: 120 px de alto, logos | menú | buscador + redes.
   -------------------------------------------------------------------------- */
:root {
  --ja-chrome: #b3b3b3;        /* fondo de cabecera y pie según Figma */
  --ja-header-h: 120px;
}
#sp-header.ja-header {
  position: relative;
  z-index: 1000;                 /* los submenús deben quedar por encima del slider y del contenido */
  height: auto;
  min-height: var(--ja-header-h);
  background: var(--ja-chrome);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: none;
}
#sp-header.ja-header > .row,
#sp-header.ja-header > .container > .row {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* Figma: contenedor de 1708 px, logos | menú | herramientas */
  gap: 24px;
  max-width: 1828px;
  min-height: var(--ja-header-h);
  margin: 0 auto;
  padding: 0 60px;
}
#sp-header.ja-header > .row > [class*="col-"] { float: none; width: auto; max-width: none; padding: 0; flex: 0 0 auto; }
#sp-header.ja-header #sp-menu { flex: 0 0 auto; display: flex; justify-content: center; }
#sp-header.ja-header .sp-module { margin: 0; padding: 0; }
#sp-header.ja-header .sppb-section,
#sp-header.ja-header .sppb-row-container,
#sp-header.ja-header .sppb-container-inner { padding: 0; margin: 0; max-width: none; }
#sp-header.ja-header .sppb-row { margin: 0; }
#sp-header.ja-header [class*="sppb-col-"] { padding: 0; }

/* Menú principal */
#sp-header.ja-header .sp-megamenu-wrapper { display: flex; align-items: stretch; align-self: stretch; }
#sp-header.ja-header #sp-menu { align-self: stretch; }
#sp-header.ja-header #sp-menu > .sp-column { display: flex; align-items: stretch; }
/* Cada ítem ocupa todo el alto de la cabecera: el submenú (top: 100%) queda pegado, sin hueco que corte el hover */
#sp-header.ja-header .sp-megamenu-parent > li { display: flex; align-items: center; align-self: stretch; }
#sp-header.ja-header .sp-megamenu-parent { float: none; display: flex; align-items: stretch; gap: 19px; flex-wrap: nowrap; white-space: nowrap; justify-content: center; padding: 0 26px; }
#sp-header.ja-header .sp-megamenu-parent > li > a,
#sp-header.ja-header .sp-megamenu-parent > li > span {
  display: block;
  height: auto;
  padding: 34px 0;
  line-height: 1.25;
  font-family: var(--ja-font);
  font-size: 1.3rem;
  font-weight: var(--ja-fw-black);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ja-navy);
  border-bottom: 3px solid transparent;
}
#sp-header.ja-header .sp-megamenu-parent > li > a::before { display: none; }
#sp-header.ja-header .sp-megamenu-parent > li.sp-has-child > a::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: .5px;
  margin-left: 4px;
  vertical-align: 1px;
}
/* Figma: el ítem activo no cambia (azul marino, borde transparente); solo damos un hover discreto */
#sp-header.ja-header .sp-megamenu-parent > li.active > a { color: var(--ja-navy); border-bottom-color: transparent; }
#sp-header.ja-header .sp-megamenu-parent > li:hover > a { color: var(--ja-blue-jelly); }

/* Cabecera fija al hacer scroll (Helix añade .menu-fixed): mantener el mismo aspecto */
#sp-header.ja-header.menu-fixed { background: var(--ja-chrome); box-shadow: 0 2px 12px rgba(4, 30, 66, .12); }
#sp-header.ja-header.menu-fixed .sp-megamenu-parent > li > a { color: var(--ja-navy); }
#sp-header.ja-header.menu-fixed .sp-megamenu-parent > li:hover > a { color: var(--ja-blue-jelly); }
#sp-header.ja-header.menu-fixed #offcanvas-toggler > i { color: var(--ja-navy); }

/* Submenús */
/* Helix (menu-slide-down) fija top: 60/65px pensando en una cabecera de 65 px: aquí va pegado al ítem */
#sp-header.ja-header .sp-megamenu-parent .sp-dropdown.sp-dropdown-main {
  top: 100%; margin-top: 0; z-index: 1001;
  transform: translateY(10px); transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
#sp-header.ja-header .sp-megamenu-parent .sp-has-child:hover > .sp-dropdown.sp-dropdown-main,
#sp-header.ja-header .sp-megamenu-parent .sp-has-child:focus-within > .sp-dropdown.sp-dropdown-main {
  top: 100%; transform: none; opacity: 1; visibility: visible;
}
#sp-header.ja-header .sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: var(--ja-white);
  border-radius: var(--ja-radius-md);
  box-shadow: var(--ja-shadow-md);
  padding: 10px 0;
}
#sp-header.ja-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  display: block;
  padding: 9px 20px;
  font-size: 1.4rem;
  font-weight: var(--ja-fw-medium);
  color: var(--ja-ink);
  text-transform: none;
  letter-spacing: 0;
}
#sp-header.ja-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover,
#sp-header.ja-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a { color: #1d4ed8; background: var(--ja-surface); }

/* Menú móvil */
#sp-header.ja-header #offcanvas-toggler { line-height: 1; padding: 8px 0; }
#sp-header.ja-header #offcanvas-toggler > i { color: var(--ja-navy); font-size: 2.4rem; }

/* Herramientas: buscador + redes */
#sp-header.ja-header .ja-header__tools { display: flex; align-items: center; gap: 60px; }
#sp-header.ja-header #sp-header-right.d-lg-block { display: block !important; }
@media (max-width: 991.98px) { #sp-header.ja-header #sp-header-right.d-lg-block { display: none !important; } }

/* Buscador compacto: icono de 40 px que se despliega al enfocar */
.ja-search .mod-finder__search { position: relative; display: flex; align-items: center; flex-wrap: nowrap; }
.ja-search .mod-finder__search .form-control {
  width: 40px; height: 40px; padding: 0 0 0 40px;
  border: 1px solid transparent; border-radius: var(--ja-radius-xl);
  background: transparent; box-shadow: none;
  font-family: var(--ja-font); font-size: 1.4rem; color: var(--ja-ink);
  cursor: pointer;
  transition: width .25s ease, background-color .25s ease, border-color .25s ease;
}
.ja-search .mod-finder__search .form-control::placeholder { color: transparent; }
.ja-search .mod-finder__search .form-control:focus {
  width: 220px; padding-right: 14px; cursor: text;
  background: var(--ja-white); border-color: var(--ja-line-strong); outline: none;
}
.ja-search .mod-finder__search .form-control:focus::placeholder { color: var(--ja-muted); }
.ja-search .mod-finder__search .btn {
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; box-shadow: none;
  font-size: 0; color: var(--ja-navy);
  pointer-events: none;
}
.ja-search .mod-finder__search .btn::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free", "FontAwesome";
  font-weight: 900; font-size: 1.76rem;
}
.ja-search .mod-finder__search .form-control:focus + .btn { pointer-events: auto; }

/* Escala intermedia (el Figma solo define 1920 px). El menú nunca se parte en dos líneas. */
@media (max-width: 1699.98px) {
  #sp-header.ja-header > .row { padding: 0 24px; }
  #sp-header.ja-header .sp-megamenu-parent { gap: 12px; padding: 0; }
  #sp-header.ja-header .sp-megamenu-parent > li > a { font-size: 1.2rem; letter-spacing: .6px; }
  #sp-header.ja-header .ja-header__tools { gap: 24px; }
  .ja-logos .sppb-column-addons { gap: 12px; }
  .ja-logos .ja-logo img { width: 112px; }
  .ja-logos .ja-logo--ja img { width: 114px; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  #sp-header.ja-header > .row { padding: 0 16px; gap: 16px; }
  #sp-header.ja-header .ja-header__tools .ja-social-row { display: none; }   /* las redes siguen en el pie */
}
@media (max-width: 991.98px) {
  :root { --ja-header-h: 84px; }
  #sp-header.ja-header #sp-header-right { display: none; }
  .ja-logos .sppb-column-addons { gap: 12px; }
  .ja-logos .ja-logo img { width: 112px; }
  .ja-logos .ja-logo--ja img { width: 114px; }
  #sp-header.ja-header > .row { padding: 0 16px; gap: 12px; }
  #sp-header.ja-header > .row > #sp-logo { flex: 1 1 auto; min-width: 0; }
  #sp-header.ja-header #sp-menu { flex: 0 0 auto; }
  #sp-header.ja-header .ja-logos .sppb-column-addons { justify-content: flex-start; }
  #sp-header.ja-header .sp-megamenu-wrapper { align-items: center; }   /* centrar el botón ☰ */
}

/* --------------------------------------------------------------------------
   7. Pie de página (fila Helix "Bottom", clase ja-footer)
   -------------------------------------------------------------------------- */
#sp-bottom.ja-footer {
  padding: 30px 0;
  border-top: 0;
  background: var(--ja-chrome);
  color: var(--ja-ink-2);
}
#sp-bottom.ja-footer > .row,
#sp-bottom.ja-footer > .container > .row { max-width: 1828px; margin: 0 auto; padding: 0 106px 0 112px; }
#sp-bottom.ja-footer #sp-bottom1 { width: 100%; padding: 0; float: none; }
#sp-bottom.ja-footer .sp-module { margin: 0; }
#sp-bottom.ja-footer .sppb-section { padding: 0; margin: 0; }
#sp-bottom.ja-footer .sppb-row-container { max-width: none; padding: 0; }
#sp-bottom.ja-footer a { color: var(--ja-blue-link); }
#sp-bottom.ja-footer a:hover { color: var(--ja-navy); }

/* Logos */
.ja-footer__logos { padding-bottom: 17px !important; border-bottom: .5px solid rgba(4, 30, 66, .85); }
.ja-footer__logos .ja-logo img { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .10)); }

/* Columnas */
.ja-footer__cols { padding: 16px 0 !important; }
.ja-footer__about p {
  margin: 40px 0 0;
  max-width: 453px;
  font-size: 2rem;
  line-height: 1.25;
  color: var(--ja-ink-2);
}
.ja-footer__links h2,
.ja-footer__links h3 {
  margin: 18px 0 14px;
  font-size: 1.6rem;
  line-height: 1.25;
  font-weight: var(--ja-fw-bold);
  letter-spacing: 0;
  color: var(--ja-navy);
}
.ja-footer__links h3 { margin: 12px 0; color: var(--ja-blue-link); }
.ja-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#sp-bottom.ja-footer .ja-footer__links ul li a {
  padding: 0;
  font-size: 1.6rem;
  line-height: 1.25;
  text-transform: none;
  color: var(--ja-blue-link);
}
#sp-bottom.ja-footer .ja-footer__links ul li a:hover { color: var(--ja-navy); text-decoration: underline; }
.sp-module .ja-footer__contact > li { display: flex; align-items: center; gap: 14px; font-size: 1.6rem; color: var(--ja-blue-link); }
.ja-footer__contact li img { flex: 0 0 auto; }
.ja-footer__contact li > a { text-decoration: underline; word-break: break-word; line-height: 1.5; }

/* Barra inferior */
.ja-footer__bottom { padding-top: 14px !important; border-top: .5px solid var(--ja-navy); }
.ja-footer__bottom .sppb-row { align-items: center; }
.ja-footer__copy p,
.ja-footer__legal p { margin: 0; padding: 14px 0; font-size: 1.6rem; line-height: 1.5; color: var(--ja-blue-link); }
.ja-footer__legal p { text-align: right; }
.ja-footer__legal span { margin: 0 5px; }

@media (max-width: 1399.98px) {
  #sp-bottom.ja-footer > .row { padding: 0 24px; }
}
@media (max-width: 991.98px) {
  .ja-footer__about p { margin-top: 16px; max-width: none; font-size: 1.8rem; }
  .ja-footer__legal p { text-align: left; padding-top: 0; }
}


/* ==========================================================================
   8. HOME (página SPPB "Inicio") — Figma 486:1153
   Cada sección es una fila de SP Page Builder con su clase ja-*.
   ========================================================================== */
.ja-hero, .ja-principios, .ja-eje, .ja-recursos, .ja-novedades, .ja-involucrate { position: relative; }
:is(.ja-hero, .ja-principios, .ja-eje, .ja-recursos, .ja-novedades, .ja-involucrate) .sppb-addon-wrapper { margin: 0; }
:is(.ja-principios, .ja-eje, .ja-recursos, .ja-novedades, .ja-involucrate) > .sppb-row-container { position: relative; z-index: 1; }

/* Título de sección (ajuste "Título" de la fila) */
#sp-page-builder :is(.ja-principios, .ja-eje, .ja-recursos, .ja-novedades) .sppb-section-title { margin: 0 0 20px; padding: 5px 0; position: relative; }
#sp-page-builder :is(.ja-principios, .ja-eje, .ja-recursos, .ja-novedades) .sppb-title-heading {
  margin: 0; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-black);
  line-height: 1.25; letter-spacing: -1px; color: var(--ja-prussian);
}

/* Botón base de la home: anula estilos de la plantilla (sombra, colores del preset) */
:is(.ja-hero-slider, .ja-card__btn, .ja-eje__btn, .ja-rcard__btn, .ja-news, .ja-cta__btn) .sppb-btn,
.sppb-btn:is(.ja-card__btn, .ja-eje__btn, .ja-rcard__btn, .ja-cta__btn) {
  font-family: var(--ja-font); font-weight: var(--ja-fw-bold); line-height: 1.25;
  box-shadow: none; text-shadow: none; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

/* ---- 8.1 Slider (addon Carrusel, clase ja-hero-slider) ----------------------- */
.ja-hero > .sppb-container-inner, .ja-hero .sppb-row-container { max-width: none; padding: 0; }
.ja-hero .sppb-row { margin: 0; }
.ja-hero [class*="sppb-col-"] { padding: 0; }
.ja-hero-slider .sppb-carousel-inner > .sppb-item { height: 480px; }
.ja-hero-slider .sppb-item > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.ja-hero-slider .sppb-item::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--ja-hero-veil, .2)); z-index: 1; }   /* los banners ya vienen oscurecidos */
.ja-hero-slider .sppb-item.sppb-item-has-bg .sppb-carousel-item-inner {
  position: absolute; inset: 0; z-index: 2; width: auto; height: auto;
  display: flex; align-items: center;
  padding: 0 clamp(24px, 9.6vw, 185px) 64px;
}
.ja-hero-slider .sppb-item .sppb-carousel-item-inner > .sppb-carousel-caption {
  display: block; height: auto;
  position: static; inset: auto; width: 100%; max-width: 807px; padding: 0;
  text-align: left; text-shadow: none; transform: none;
}
.ja-hero-slider .sppb-carousel-text h2 {
  margin: 0 0 15px; font-family: var(--ja-font); font-size: 4.8rem; font-weight: var(--ja-fw-bold);
  line-height: 1.25; letter-spacing: -.5px; color: var(--ja-white);
}
.ja-hero-slider .sppb-carousel-text { display: block; }
.ja-hero-slider .sppb-carousel-text .sppb-carousel-content,
.ja-hero-slider .sppb-carousel-text .sppb-carousel-content p {
  margin: 0; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-regular);
  line-height: 1.25 !important; color: var(--ja-white);
}
.ja-hero-slider .sppb-carousel-text .sppb-btn {
  display: inline-block; margin-top: 28px; padding: 11.5px 26px;
  border: 0; border-radius: var(--ja-radius-pill);
  background: var(--ja-blue); color: var(--ja-white); font-size: 2rem;
  filter: drop-shadow(0 4px 7px rgba(59, 130, 246, .4));
}
.ja-hero-slider .sppb-carousel-text .sppb-btn:hover { background: var(--ja-blue-science); color: var(--ja-white); }
/* Diapositiva con el contenido a la derecha: poner clase ja-slide--right al párrafo */
.ja-hero-slider .sppb-item.sppb-item-has-bg:has(.ja-slide--right) .sppb-carousel-item-inner { justify-content: flex-end; padding: 0 clamp(24px, 5.3vw, 101px); }
.ja-hero-slider .sppb-item:has(.ja-slide--right) .sppb-carousel-caption { max-width: 762px; }
/* Flechas: cuadros de 50 px, negro al 40 % */
.ja-hero-slider .sppb-carousel-arrow {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: rgba(0, 0, 0, .4); color: var(--ja-white); font-size: 2.08rem; opacity: 1;
}
.ja-hero-slider .sppb-carousel-arrow:hover { background: rgba(0, 0, 0, .65); color: var(--ja-white); }
.ja-hero-slider .sppb-carousel-arrow.left { left: 0; right: auto; }
.ja-hero-slider .sppb-carousel-arrow.right { right: 0; left: auto; }
/* SPPB posiciona el icono en absoluto (top: 50%) y lo descentra: se centra con flex */
.ja-hero-slider .sppb-carousel-arrow { bottom: auto; text-shadow: none; line-height: 1; }
.ja-hero-slider .sppb-carousel-arrow i,
.ja-hero-slider .sppb-carousel-arrow.left i,
.ja-hero-slider .sppb-carousel-arrow.right i {
  position: static; top: auto; left: auto; right: auto; margin: 0;
  font-size: inherit; line-height: 1; color: inherit;
}

/* ---- 8.2 Principios ------------------------------------------------------------- */
.ja-principios::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 109, 144, 0) 0%, rgba(17, 110, 144, .2) 100%);
}
.ja-principios .sppb-row { margin: 0 -14px; }
.ja-principios .sppb-row > [class*="sppb-col-"] { padding: 5px 14px !important; display: flex; }
.ja-card {
  display: flex; flex-direction: column; width: 100%; min-height: 389px; overflow: hidden;
  background: var(--ja-white); border: 1px solid #dce5ea; border-radius: 22px;
  box-shadow: 0 14px 32px rgba(8, 35, 59, .12);
}
.ja-card > .sppb-column-addons { display: flex; flex-direction: column; flex: 1 1 auto; }
:is(.ja-card__img, .ja-eje__img, .ja-cta__img) .sppb-addon-single-image-container { display: block; width: 100%; }
.ja-card .ja-card__img img { display: block; width: 100%; height: 189px; object-fit: cover; }
.ja-card__body { padding: 22px 22px 0 24px; }
.ja-card__body h3 {
  margin: 0 0 8px; font-family: var(--ja-font); font-size: 2.1rem; font-weight: var(--ja-fw-bold);
  line-height: 1.25; letter-spacing: 0; color: #0b2042;
}
.ja-card__body .sppb-addon-content p { margin: 0; font-family: var(--ja-font); font-size: 1.2rem; line-height: 1.6rem; color: var(--ja-muted); }
.ja-card .sppb-addon-wrapper:has(.ja-card__btn) { margin-top: auto; padding: 16px 0 20px; text-align: center; }
.sppb-btn.ja-card__btn {
  padding: 7px 24px 8.5px; border: 1px solid #0b2042; border-radius: var(--ja-radius-xs);
  background: transparent; color: #0b2042; font-size: 1.4rem; letter-spacing: 1px;
}
.sppb-btn.ja-card__btn:hover { background: #0b2042; color: var(--ja-white); }

/* ---- 8.3 Iniciativas institucionales ------------------------------------------------ */
.ja-eje { background: var(--ja-surface); }
#sp-page-builder .ja-eje .sppb-section-title { margin-bottom: 30px; }
.ja-eje--green { --ja-accent: #3a530c; --ja-accent-2: #3cda3c; }
.ja-eje--red   { --ja-accent: #952020; --ja-accent-2: #c72b2b; }
.ja-eje--blue  { --ja-accent: #2d6ea4; --ja-accent-2: #3c92da; }
.ja-eje--slate { --ja-accent: #354d6a; --ja-accent-2: #47668d; }
.ja-eje > .sppb-row-container > .sppb-row {
  align-items: center; margin: 0; padding: 40px 22px;
  background: var(--ja-white); border: 1px solid var(--ja-line); border-radius: var(--ja-radius-lg);
  box-shadow: 0 10px 15px rgba(0, 0, 0, .02);
}
.ja-eje .sppb-row > [class*="sppb-col-"] { padding: 0 17.5px !important; }
.ja-eje__num span,
.ja-eje__num .sppb-addon-content {
  font-family: var(--ja-font); font-size: 5.2rem; font-weight: var(--ja-fw-black); line-height: 1.1; color: var(--ja-accent);
}
.ja-eje__info h3 {
  position: relative; margin: 0 0 12px; padding-bottom: 8px;
  font-family: var(--ja-font); font-size: 2.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25;
  letter-spacing: 0; color: var(--ja-prussian);
}
.ja-eje__info h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--ja-accent-2); }
.ja-eje__info p { margin: 0 0 12px; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5; color: var(--ja-muted); }
.sppb-btn.ja-eje__btn {
  padding: 8px 20px; border: 2px solid var(--ja-accent); border-radius: var(--ja-radius-pill);
  background: transparent; color: var(--ja-accent); font-size: 1.4rem; letter-spacing: 0;
}
.sppb-btn.ja-eje__btn:hover { background: var(--ja-accent); color: var(--ja-white); }
.ja-eje__img .sppb-addon-single-image-container { display: block; overflow: hidden; border: 1px solid var(--ja-line-strong); border-radius: var(--ja-radius-md); }
.ja-eje__img img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform .4s ease; }
.ja-eje__img a:hover img { transform: scale(1.04); }

/* ---- 8.4 Recursos ------------------------------------------------------------------ */
#sp-page-builder :is(.ja-recursos, .ja-novedades) .sppb-section-title { margin-bottom: 40px; }
#sp-page-builder :is(.ja-recursos, .ja-novedades) .sppb-title-heading { color: var(--ja-white); }
:is(.ja-recursos, .ja-novedades) .sppb-title-heading::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 8px; background: var(--ja-white); }
.ja-novedades .sppb-title-heading::after { background: var(--ja-blue); }
#sp-page-builder .ja-recursos .sppb-title-subheading { position: absolute; right: 0; bottom: 5px; width: 144px; margin: 0; line-height: 1.25; }
.ja-recursos .sppb-title-subheading a { font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); line-height: 1.25; color: #fdfdfd; }
.ja-recursos .sppb-title-subheading a:hover { color: var(--ja-white); text-decoration: underline; }
.ja-recursos .sppb-row { margin: 0 -12px; }
.ja-recursos .sppb-row > [class*="sppb-col-"] { padding: 0 12px 24px !important; display: flex; }
.ja-rcard {
  display: flex; flex-direction: column; width: 100%; min-height: 380px; padding: 30px 22px;
  border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--ja-radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15); overflow: hidden;
}
.ja-rcard > .sppb-column-addons { display: flex; flex-direction: column; flex: 1 1 auto; }
.ja-rcard--1 { background: linear-gradient(180deg, rgba(246, 224, 155, .45) 0%, rgba(92, 130, 93, .5) 100%), rgba(0, 0, 0, .64); }
.ja-rcard--2 { background: linear-gradient(180deg, rgba(144, 205, 244, .45) 0%, rgba(44, 82, 130, .55) 100%), rgba(0, 0, 0, .65); }
.ja-rcard--3 { background: linear-gradient(180deg, rgba(226, 211, 243, .45) 0%, rgba(106, 88, 145, .55) 100%), rgba(0, 0, 0, .65); }
.ja-rcard--4 { background: linear-gradient(180deg, rgba(246, 173, 155, .45) 0%, rgba(116, 66, 66, .55) 100%), rgba(0, 0, 0, .65); }
.ja-rcard--5 { background: linear-gradient(180deg, var(--ja-ink) 0%, var(--ja-navy-deep) 100%); border-color: rgba(59, 130, 246, .4); }
.ja-rcard__body :is(h3, h4) {
  margin: 0 0 11px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold);
  line-height: 1.25; letter-spacing: -.3px; color: var(--ja-surface);
}
.ja-rcard__body p { margin: 0; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.ja-rcard .sppb-addon-wrapper:has(.ja-rcard__btn) { margin-top: auto; padding-top: 20px; }
.sppb-btn.ja-rcard__btn {
  padding: 7px 24px 8.5px; border: 1px solid var(--ja-white); border-radius: var(--ja-radius-xs);
  background: transparent; color: var(--ja-white); font-size: 1.4rem; letter-spacing: 1px;
}
.sppb-btn.ja-rcard__btn:hover { background: var(--ja-white); color: var(--ja-navy); }

/* ---- 8.5 Novedades (addon Artículos, clase ja-news) ------------------------------ */
.ja-news > .sppb-addon-content { text-align: center; }
.ja-news .sppb-row { margin: 0 52px; text-align: left; }
/* Carrusel (lo monta js/justicia-abierta.js): 3 tarjetas visibles + flechas ← → del Figma */
.ja-news__viewport { position: relative; padding: 0 52px; }
.ja-news .ja-news__viewport > .ja-news__track {
  display: flex; flex-wrap: nowrap; margin: 0; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 4px 0 30px;                       /* deja ver la sombra de las tarjetas */
}
.ja-news__track::-webkit-scrollbar { display: none; }
.ja-news .ja-news__track > .sppb-addon-article-layout { flex: 0 0 33.3333%; max-width: 33.3333%; scroll-snap-align: start; }
.ja-news__arrow {
  position: absolute; top: calc(50% - 15px); transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 60px; padding: 0; border: 0; background: transparent;
  font-family: var(--ja-font); font-size: 3.2rem; line-height: 1; color: var(--ja-white); cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.ja-news__arrow--prev { left: 0; }
.ja-news__arrow--next { right: 0; }
.ja-news__arrow:hover { opacity: .75; }
.ja-news__arrow:disabled { opacity: .3; cursor: default; }
.ja-news .ja-news__date { margin: 0 0 5px; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25 !important; color: var(--ja-navy-deep); }
.ja-news .ja-news__intro { margin: 0; padding: 0; font: inherit; line-height: inherit !important; letter-spacing: inherit; color: inherit; }   /* <p> del resumen: mismo aspecto que el div */
.ja-news .sppb-addon-article-layout { padding: 0 12px 24px !important; display: flex; }
.ja-news .sppb-addon-article {
  position: relative; display: flex; flex-direction: column; width: 100%; margin: 0; overflow: hidden;
  background: var(--ja-white); border: 1px solid var(--ja-line-strong); border-radius: var(--ja-radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}
.ja-news .sppb-article-img-wrap { display: block; background: var(--ja-ink); }
.ja-news .sppb-article-img-wrap img { display: block; width: 100%; height: 180px; object-fit: cover; }
.ja-news .sppb-article-info-wrap { display: flex; flex-direction: column; flex: 1 1 auto; padding: 23px 24px 24px; }
.ja-news .sppb-article-info-wrap h3 { margin: 0 0 7px; font-family: var(--ja-font); font-size: 1.6rem; line-height: 1.25; letter-spacing: 0; }
.ja-news .sppb-article-info-wrap h3 a { font-weight: var(--ja-fw-bold); color: var(--ja-prussian); }
.ja-news .sppb-article-info-wrap h3 a:hover { color: var(--ja-blue-jelly); }
/* La fecha se muestra como etiqueta sobre la foto */
.ja-news .sppb-article-meta { position: absolute; top: 12px; right: 12px; margin: 0; }
.ja-news .sppb-meta-date {
  display: inline-block; padding: 4.5px 10px 4.7px; border-radius: var(--ja-radius-xs);
  background: var(--ja-navy-deep); color: var(--ja-white);
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25;
}
/* SP Page Builder pinta la fecha en gris (#888) con un selector más específico: texto blanco como en el diseño */
.ja-news .sppb-article-meta > time.sppb-meta-date { color: var(--ja-white); }
.ja-news .sppb-article-introtext { margin: 5px 0 24px; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5; color: var(--ja-muted); }
.ja-news .sppb-readmore {
  align-self: flex-start; margin-top: auto; padding: 7px 18px;
  border-radius: var(--ja-radius-pill); background: var(--ja-green); color: var(--ja-white);
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: .5px;
}
.ja-news .sppb-readmore:hover { background: #2c3f09; color: var(--ja-white); }
.ja-news .sppb-addon-content > .sppb-btn {
  margin-top: 16px; padding: 11.5px 26px; border: 0; border-radius: var(--ja-radius-pill);
  background: #053077; color: var(--ja-white); font-size: 1.6rem;
  filter: drop-shadow(0 4px 7px rgba(59, 130, 246, .4));
}
.ja-news .sppb-addon-content > .sppb-btn:hover { background: var(--ja-navy); color: var(--ja-white); }

/* ---- 8.6 ¡Involúcrate! --------------------------------------------------------------- */
.ja-involucrate .sppb-row { align-items: center; margin: 0 -20px; }
.ja-involucrate > :is(.sppb-row-container, .sppb-container-inner) { padding-left: 20px; padding-right: 20px; position: relative; z-index: 1; }
.ja-involucrate .sppb-row > [class*="sppb-col-"] { padding: 0 20px !important; }
.ja-cta__body h2 {
  margin: 0 0 15px; font-family: var(--ja-font); font-size: 4rem; font-weight: var(--ja-fw-black);
  line-height: 1.25; letter-spacing: 0; color: var(--ja-white);
}
.ja-cta__body .ja-cta__lead { margin: 0 0 15px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); line-height: 1.25; color: var(--ja-line); }
.ja-cta__body .ja-cta__note { margin: 0 0 15px; padding: 10px 0; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); line-height: 1.25; color: var(--ja-line); }
.sppb-btn.ja-cta__btn {
  padding: 10px 24px; border: 2px solid var(--ja-white); border-radius: 0;
  background: transparent; color: var(--ja-white); font-size: 1.6rem; letter-spacing: 1px;
}
.sppb-btn.ja-cta__btn:hover { background: var(--ja-white); color: #006e97; }
.ja-cta__img img {
  display: block; width: 100%; max-width: 400px; height: 280px; margin-left: auto; object-fit: cover;
  border-radius: var(--ja-radius-sm); box-shadow: 0 10px 25px rgba(0, 0, 0, .4);
}

/* ---- 8.7 Home responsive --------------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .ja-hero-slider .sppb-carousel-text h2 { font-size: 4rem; }
  .ja-hero-slider .sppb-carousel-text .sppb-carousel-content, .ja-hero-slider .sppb-carousel-text .sppb-carousel-content p { font-size: 2.4rem; }
  .ja-news .sppb-row { margin: 0; }
}
@media (max-width: 991.98px) {
  .ja-hero-slider .sppb-carousel-inner > .sppb-item { height: 420px; }
  .ja-hero-slider .sppb-item.sppb-item-has-bg .sppb-carousel-item-inner { padding: 0 72px 32px; }
  .ja-hero-slider .sppb-item.sppb-item-has-bg:has(.ja-slide--right) .sppb-carousel-item-inner { justify-content: flex-start; padding: 0 72px 32px; }
  .ja-hero-slider .sppb-carousel-text h2 { font-size: 3.2rem; }
  .ja-hero-slider .sppb-carousel-text .sppb-carousel-content, .ja-hero-slider .sppb-carousel-text .sppb-carousel-content p { font-size: 2rem; }
  .ja-hero-slider .sppb-carousel-text .sppb-btn { font-size: 1.7rem; margin-top: 20px; }
  .ja-eje > .sppb-row-container > .sppb-row { padding: 28px 8px; row-gap: 20px; }
  .ja-eje__num span, .ja-eje__num .sppb-addon-content { font-size: 4rem; }
  .ja-cta__img img { margin: 32px 0 0; max-width: none; }
  .ja-news .ja-news__track > .sppb-addon-article-layout { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767.98px) {
  .ja-hero-slider .sppb-carousel-inner > .sppb-item { height: 440px; }
  .ja-hero-slider .sppb-item.sppb-item-has-bg .sppb-carousel-item-inner,
  .ja-hero-slider .sppb-item.sppb-item-has-bg:has(.ja-slide--right) .sppb-carousel-item-inner { padding: 0 20px 24px; align-items: flex-end; }
  .ja-hero-slider .sppb-carousel-text h2 { font-size: 2.8rem; }
  .ja-hero-slider .sppb-carousel-text .sppb-carousel-content, .ja-hero-slider .sppb-carousel-text .sppb-carousel-content p { font-size: 1.7rem; }
  .ja-hero-slider .sppb-carousel-arrow { top: 40%; width: 40px; height: 40px; font-size: 1.6rem; }
  :is(.ja-principios, .ja-eje, .ja-recursos, .ja-novedades) .sppb-title-heading { font-size: 2.6rem; }
  #sp-page-builder .ja-recursos .sppb-title-subheading { position: static; width: auto; margin-top: 8px; }
  .ja-cta__body h2 { font-size: 3.2rem; }
  .ja-card { min-height: 0; }
  .ja-news__viewport { padding: 0 36px; }
  .ja-news__arrow { width: 36px; font-size: 2.6rem; }
  .ja-news .ja-news__track > .sppb-addon-article-layout { flex: 0 0 100%; max-width: 100%; }
}

/* --------------------------------------------------------------------------
   9. El "CSS personalizado" de la plantilla (Helix > Código personalizado)
   impone p { line-height: 2.85rem !important }. Devolvemos a cada componente
   el interlineado del Figma.
   -------------------------------------------------------------------------- */
.ja-card__body p { line-height: 1.6rem !important; }
#sp-page-builder .ja-recursos .sppb-title-subheading { line-height: 1.25 !important; }
:is(.ja-eje__info, .ja-rcard__body) p,
.ja-footer__contact li > a,
:is(.ja-footer__copy, .ja-footer__legal) p { line-height: 1.5 !important; }
:is(.ja-cta__body, .ja-footer__about) p,
.ja-hero-slider .sppb-carousel-content p { line-height: 1.25 !important; }

/* --------------------------------------------------------------------------
   10. Páginas de SP Page Builder a todo el ancho: las filas Helix "fluidas"
   no tienen .container, y el .row de Bootstrap 3 (margin: 0 -15px) hacía la
   página 30 px más ancha que la ventana (se cortaban, p. ej., las flechas del slider).
   -------------------------------------------------------------------------- */
.com-sppagebuilder #sp-main-body > .row,
.com-sppagebuilder #sp-page-title > .row { margin-left: 0; margin-right: 0; }
.com-sppagebuilder #sp-main-body > .row > #sp-component,
.com-sppagebuilder #sp-page-title > .row > #sp-title { padding-left: 0; padding-right: 0; }

/* ==========================================================================
   11. PÁGINAS INTERNAS — componentes reutilizables (Figma: Acerca de Nosotros,
   Transparencia, Participación, Colaboración, Inclusión…)
   ========================================================================== */
:is(.ja-page-banner, .ja-split, .ja-prose-row, .ja-timeline, .ja-cta-holder) .sppb-addon-wrapper { margin: 0; }
.ja-w-page > .sppb-row-container { max-width: 1440px; padding-left: 20px; padding-right: 20px; }
/* Solo el contenedor de la fila que aloja el módulo (no el CTA anidado dentro) */
.ja-cta-holder > :is(.sppb-container-inner, .sppb-row-container) { max-width: none; padding: 0; }
.ja-cta-holder > :is(.sppb-container-inner, .sppb-row-container) > .sppb-row { margin: 0; }
.ja-cta-holder > :is(.sppb-container-inner, .sppb-row-container) > .sppb-row > [class*="sppb-col-"] { padding: 0 !important; }

/* Banner de título (fila con imagen de fondo; el título es un bloque de texto) */
.ja-page-banner { min-height: 340px; display: flex; align-items: flex-end; border-top: 1px solid rgba(255, 255, 255, .1); background-color: #0065a1; }
.ja-page-banner > .sppb-row-container { width: 100%; }
.ja-page-banner__title h1 {
  margin: 0; padding: 0 0 40px; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-black);
  line-height: 1.25; letter-spacing: 0; color: var(--ja-white);
}

/* Texto de página: títulos azules con subrayado y párrafos Source Sans */
.ja-prose .ja-heading,
.ja-prose h3 {
  position: relative; margin: 0 0 25px; padding-bottom: 8px;
  font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-bold); line-height: 1.25;
  letter-spacing: 0; color: #2b5292;
}
.ja-prose .ja-heading::after,
.ja-prose h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 35px; height: 3px; background: #2b5292; }
.ja-prose p {
  margin: 0 0 24px; font-family: var(--ja-font-text); font-size: 1.6rem; font-weight: 500;
  line-height: 1.5 !important; color: #666;
}
.ja-prose p:last-child { margin-bottom: 0; }
.ja-prose--justify p, .ja-prose p.ja-justify { text-align: justify; }
.ja-prose a { color: #005691; text-decoration: underline; }
.ja-prose a:hover { color: var(--ja-navy); }

/* Foto circular + texto */
.ja-split .sppb-row { align-items: center; margin: 0 -35px; }
.ja-split .sppb-row > [class*="sppb-col-"] { padding: 0 35px !important; }
.ja-circle .sppb-addon-single-image-container { display: block; }
.ja-circle img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; }
.ja-circle--md img { max-width: 402px; }
.ja-circle--lg img { max-width: 504px; }
.ja-focus-60 img { object-position: 60% 50%; }
.ja-focus-70 img { object-position: 70% 50%; }

/* Botón de contorno azul (píldora) */
.sppb-btn.ja-btn-outline {
  margin-top: 22px; padding: 6px 22px; border: 2px solid #005691; border-radius: 50px;
  background: var(--ja-white); color: #005691; box-shadow: none;
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25;
  letter-spacing: .3px; text-transform: uppercase;
}
.sppb-btn.ja-btn-outline:hover { background: #005691; color: var(--ja-white); }
.ja-split .sppb-addon-wrapper:has(.ja-btn-outline--end) { text-align: right; }

/* Línea de tiempo (3 hitos alternados sobre la línea ondulada) */
.ja-timeline > .sppb-row-container { min-height: 591px; }
.ja-timeline .sppb-row { position: relative; min-height: 591px; }
/* Línea que une los nodos: la dibuja js/justicia-abierta.js */
.ja-timeline__line { position: absolute; top: 0; left: 0; z-index: 0; overflow: visible; pointer-events: none; }
.ja-timeline .sppb-row > [class*="sppb-col-"] { position: relative; z-index: 1; }
.ja-timeline .sppb-row { align-items: stretch; margin: 0 -12px; }
.ja-timeline .sppb-row > [class*="sppb-col-"] { padding: 0 12px !important; display: flex; }
.ja-timeline .sppb-column { width: 100%; display: flex; }
.ja-timeline .sppb-column-addons { width: 100%; display: flex; flex-direction: column; }
.ja-hito { display: flex; flex-direction: column; align-items: center; height: 100%; }
.ja-hito > .sppb-addon-content { display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; }
.ja-hito--top > .sppb-addon-content { justify-content: center; padding-bottom: 128px; }
.ja-hito--bottom > .sppb-addon-content { justify-content: center; padding-top: 128px; }
.ja-hito--teal-dark { --ja-hito: #0d5c6b; --ja-hito-chip-bg: #f0fdfa; --ja-hito-chip-bd: #99f6e4; --ja-hito-chip-tx: #134e4a; }
.ja-hito--teal      { --ja-hito: #319795; --ja-hito-chip-bg: #f0fdfa; --ja-hito-chip-bd: #99f6e4; --ja-hito-chip-tx: #134e4a; }
.ja-hito--green     { --ja-hito: #68d391; --ja-hito-chip-bg: #ecfdf5; --ja-hito-chip-bd: #a7f3d0; --ja-hito-chip-tx: #064e3b; }
.ja-hito__card {
  width: 100%; padding: 28px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 24px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -15px rgba(13, 92, 107, .08), 0 4px 6px -2px rgba(0, 0, 0, .02);
}
.ja-hito--top .ja-hito__card { margin-bottom: 24px; }
.ja-hito--bottom .ja-hito__card { margin-top: 24px; }
.ja-hito__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.ja-hito__chip {
  padding: 4px 12px; border: 1px solid var(--ja-hito-chip-bd); border-radius: 9999px; background: var(--ja-hito-chip-bg);
  font-family: var(--ja-font); font-size: 1.2rem; font-weight: var(--ja-fw-bold); line-height: 1.6rem; color: var(--ja-hito-chip-tx);
}
.ja-hito__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ja-hito); }
.ja-hito__card p { margin: 0; font-family: var(--ja-font); font-size: 1.4rem; line-height: 2.275rem !important; color: var(--ja-ink-2); }
.ja-hito__node { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ja-hito--bottom .ja-hito__node { flex-direction: column-reverse; }
.ja-hito__ring {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 6px solid var(--ja-hito); border-radius: 50%; background: var(--ja-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.ja-hito__ring::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ja-hito); }
.ja-hito__label {
  padding: 2px 10px; border: 1px solid #f1f5f9; border-radius: 6px; background: rgba(255, 255, 255, .9);
  font-family: var(--ja-font); font-size: 1.2rem; font-weight: var(--ja-fw-bold); line-height: 1.6rem;
  letter-spacing: .6px; text-transform: uppercase; color: #64748b;
}

@media (max-width: 991.98px) {
  .ja-page-banner { min-height: 220px; }
  .ja-split .sppb-row { margin: 0; }
  .ja-split .sppb-row > [class*="sppb-col-"] { padding: 0 !important; }
  .ja-split .ja-split__media { margin-bottom: 32px; }
  .ja-circle img { max-width: 320px; margin: 0 auto; }
  .ja-split .sppb-addon-wrapper:has(.ja-btn-outline--end) { text-align: left; }
  .ja-timeline__line { display: none; }
  .ja-timeline > .sppb-row-container { min-height: 0; }
  .ja-hito--top > .sppb-addon-content, .ja-hito--bottom > .sppb-addon-content { padding: 0 0 24px; }
  .ja-hito--bottom .ja-hito__node { flex-direction: column; }
  .ja-hito--bottom > .sppb-addon-content { flex-direction: column-reverse; justify-content: flex-end; }
  .ja-hito__node { display: none; }
  .ja-hito .ja-hito__card { margin: 0; }
}
@media (max-width: 767.98px) {
  .ja-page-banner__title h1 { font-size: 2.6rem; padding-bottom: 28px; }
  .ja-prose .ja-heading, .ja-prose h3 { font-size: 2.6rem; }
}
/* Las páginas rediseñadas traen su propio banner: se oculta el título de página antiguo de Helix */
body:has(.ja-page-banner) #sp-page-title { display: none; }

/* ---- 11.2 Banner con ruta de navegación -------------------------------------------- */
.ja-page-banner.ja-w-page .ja-page-banner__title h1 { padding-bottom: 14px; }
.ja-crumbs { padding-bottom: 40px; }
.ja-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ja-crumbs li { display: flex; align-items: center; gap: 12px; margin: 0; font-family: "Open Sans", var(--ja-font); font-size: 1.5rem; line-height: 1.35; color: var(--ja-white); }
.ja-crumbs li + li::before {
  content: "\f054"; font-family: "Font Awesome 6 Free", "FontAwesome"; font-weight: 900; font-size: 1rem; color: var(--ja-white);
}
.ja-crumbs li[aria-current] { font-weight: 600; }
.ja-crumbs a { color: var(--ja-white); }
.ja-crumbs a:hover { color: var(--ja-white); text-decoration: underline; }

/* ---- 11.3 Introducción (texto de 20 px) y acentos ---------------------------------- */
.ja-accent-blue  { --ja-accent: #2b5292; }
.ja-accent-green { --ja-accent: #2e8b3e; }
.ja-accent-wine  { --ja-accent: #5d1822; }
.ja-prose .ja-heading::after { background: var(--ja-accent, #2b5292); }
.ja-prose--lead p { font-size: 2rem; }
.ja-prose--lead p strong { font-weight: var(--ja-fw-bold); }
.ja-quote { margin: 14px 0 0; padding: 24px; border: 0; border-radius: 8px; background: #eef6ef; }
.ja-prose .ja-quote p { margin: 0; font-size: 2rem; font-style: italic; font-weight: 500; color: #344a5e; }
.ja-center-note p { margin: 0; text-align: center; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); line-height: 1.5 !important; color: #2b5292; }
.ja-circle--sm img { max-width: 306px; }

/* ---- 11.4 Tarjetas de ejes ------------------------------------------------------------ */
.ja-ejes .sppb-row { margin: 0 -14.5px; row-gap: 22px; }
.ja-ejes .sppb-row > [class*="sppb-col-"] { padding: 0 14.5px !important; display: flex; }
.ja-ejes--lg.ja-accent-blue .sppb-row { margin: 0 -17px; }
.ja-ejes--lg.ja-accent-blue .sppb-row > [class*="sppb-col-"],
.ja-ejes--sm .sppb-row > [class*="sppb-col-"] { padding: 0 17px !important; }
.ja-eje-card {
  width: 100%; padding: 24px; overflow: hidden;
  background: #f5f8fb; border-top: 7px solid var(--ja-accent); border-radius: 8px;
}
.ja-eje-card__body h4 { margin: 0 0 10px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-black); line-height: 1.25; letter-spacing: 0; color: var(--ja-navy); }
.ja-eje-card__body p { margin: 0; font-family: var(--ja-font-text); font-size: 2rem; line-height: 1.5 !important; color: #344a5e; }
.ja-ejes--md .ja-eje-card__body h4 { margin-bottom: 24px; }
.ja-ejes--md .ja-eje-card__body p { font-size: 1.6rem; }
.ja-ejes--sm .ja-eje-card__body h4 { margin-bottom: 12px; font-size: 1.6rem; }
.ja-ejes--sm .ja-eje-card__body p { font-size: 1.4rem; }
.ja-ejes.ja-accent-green .ja-eje-card__body h4,
.ja-ejes.ja-accent-wine .ja-eje-card__body h4 { margin-bottom: 24px; }

/* ---- 11.5 Vídeo y botón sólido ------------------------------------------------------ */
.ja-video { overflow: hidden; border-radius: 8px; background: #000; }
.ja-video video { display: block; width: 100%; max-height: 680px; background: #000; }
.ja-btn-row .sppb-addon-wrapper:has(.ja-btn-solid--center) { text-align: center; }
.sppb-btn.ja-btn-solid {
  display: inline-flex; align-items: center; justify-content: center; min-width: min(544px, 100%); min-height: 57px;
  padding: 6px 22px; border: 0; border-radius: 50px; background: #2b5292; color: var(--ja-white); box-shadow: none;
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: .3px; text-transform: uppercase;
}
.sppb-btn.ja-btn-solid:hover { background: var(--ja-navy); color: var(--ja-white); }

/* ---- 11.6 Tarjetas de enlace ("Enlaces Importantes") ----------------------------------- */
#sp-page-builder .ja-links .sppb-section-title { margin: 0 0 38px; text-align: center; }
#sp-page-builder .ja-links .sppb-title-heading { margin: 0; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-bold); line-height: 1.25; color: #2b5292; }
.ja-links .sppb-row { margin: 0 -14px; row-gap: 28px; }
.ja-links .sppb-row > [class*="sppb-col-"] { padding: 5px 14px !important; display: flex; }
.ja-link-card { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 22px; background: var(--ja-white); box-shadow: 0 14px 32px rgba(8, 35, 59, .12); }
.ja-link-card .sppb-addon-wrapper { margin: 0; }
.ja-link-card__img .sppb-addon-single-image-container { display: block; }
.ja-link-card__img img { display: block; width: 100%; height: 150px; object-fit: cover; transition: transform .4s ease; }
.ja-link-card:hover .ja-link-card__img img { transform: scale(1.04); }
.ja-link-card__body { display: flex; align-items: center; justify-content: center; min-height: 73px; padding: 12px 22px 12px 24px; }
.ja-link-card__body h4 { margin: 0; text-align: center; font-family: var(--ja-font); font-size: 2.1rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; }
.ja-link-card__body h4 a { color: #0b2042; }
.ja-link-card__body h4 a:hover { color: #2b5292; }

@media (max-width: 991.98px) {
  .ja-ejes .sppb-row > [class*="sppb-col-"] { flex: 0 0 100%; max-width: 100%; }
  .ja-prose--lead p, .ja-prose .ja-quote p, .ja-eje-card__body p { font-size: 1.7rem; }
}

/* ==========================================================================
   12. INICIATIVAS, PLAN DE ACCIÓN y páginas de LECTURA
   ========================================================================== */
.ja-accent-red   { --ja-accent: #952020; --ja-cap-bg: #fdece8; --ja-cap-bd: #c62828; --ja-cap-tx: #952020; }
.ja-accent-cyan  { --ja-accent: #0093c9; --ja-cap-bg: #b0deee; --ja-cap-bd: #1565c0; --ja-cap-tx: #0d47a1; }
.ja-accent-navy  { --ja-accent: #0065a1; --ja-cap-bg: #e6eef5; --ja-cap-bd: #0065a1; --ja-cap-tx: #0065a1; }
.ja-accent-olive { --ja-accent: #3a530c; --ja-cap-bg: #e8f5e9; --ja-cap-bd: #2e7d32; --ja-cap-tx: #1b5e20; }
.ja-ini__body.ja-accent-green, .ja-rel__accent.ja-accent-green { --ja-accent: #3a530c; }
:is(.ja-ini, .ja-checklist-row, .ja-chips-row, .ja-figure, .ja-article, .ja-related) .sppb-addon-wrapper { margin: 0; }
.ja-w-ini > .sppb-row-container { max-width: 1140px; padding-left: 20px; padding-right: 20px; }

/* Botón cuadrado de contorno (VER PROYECTO, LEER INICIATIVA, VOLVER…) */
.sppb-btn.ja-btn-square {
  padding: 7.5px 24px 8px; border: 2px solid #2b5292; border-radius: 0; background: transparent; box-shadow: none;
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: .5px;
  text-transform: uppercase; color: #2b5292; white-space: pre;
}
.sppb-btn.ja-btn-square:hover { background: #2b5292; color: var(--ja-white); }

/* ---- 12.1 Filas de iniciativa ---------------------------------------------------------- */
.ja-ini .sppb-row { margin: 0 -20px; align-items: flex-start; }
.ja-ini .sppb-row > [class*="sppb-col-"] { padding: 0 20px !important; }
.ja-ini__title {
  position: relative; display: flex; gap: 10px; align-items: baseline; margin: 0 0 17px; padding-bottom: 12px;
  font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-black); line-height: 1.25; letter-spacing: 0; color: var(--ja-accent);
}
.ja-ini__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 35px; height: 4px; background: var(--ja-accent); }
.ja-ini__body p { margin: 0 0 22px; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5 !important; color: #333; }
.ja-ini__img .sppb-addon-single-image-container { display: block; }
.ja-ini__img img { display: block; width: 100%; max-width: 380px; height: 180px; object-fit: cover; border-radius: 12px 12px 75px 12px; }
.ja-ini__panel { min-height: 450px; padding: 35px 30px; border-radius: 12px; background: #efefef; }
.ja-ini__panel-title h3 { margin: 0 0 10px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; color: var(--ja-accent); }
.ja-accent-green.ja-ini__panel { padding: 40px 35px; border-radius: 4px; }
.ja-ini__projects h3 { margin: 0 0 25px; font-family: var(--ja-font); font-size: 2.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; color: #2b5292; }
.ja-ini__projects h4 { margin: 0 0 18px; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; color: #3a530c; }
.ja-ini__projects p { margin: 0 0 22px; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5 !important; color: #4a5568; }

/* ---- 12.2 Carrusel de tarjetas apiladas (addon Carrusel, clase ja-stack) -------------------- */
.ja-stack { position: relative; padding: 40px 16% 56px 0; }
.ja-stack .sppb-carousel-inner { position: relative; overflow: visible; }
.ja-stack .sppb-carousel-inner::before,
.ja-stack .sppb-carousel-inner::after {
  content: ""; position: absolute; z-index: 0; height: 100%; border: 1px solid var(--ja-line); border-radius: 8px;
  background: linear-gradient(180deg, var(--ja-white) 0 68%, var(--ja-cap-bg, #f1f5f9) 68% 100%);
}
.ja-stack .sppb-carousel-inner::before { top: -12px; left: 5.5%; right: -4%; opacity: .95; box-shadow: -4px 6px 16px rgba(0, 0, 0, .08); }
.ja-stack .sppb-carousel-inner::after  { top: -25px; left: 11%; right: -8%; opacity: .85; box-shadow: -2px 4px 10px rgba(0, 0, 0, .05); z-index: -1; }
.ja-stack .sppb-carousel-inner > .sppb-item {
  position: relative; z-index: 1; overflow: hidden; border: 1px solid var(--ja-line); border-radius: 8px;
  background: var(--ja-white); box-shadow: -6px 10px 22px rgba(0, 0, 0, .12);
}
.ja-stack .sppb-item > img { display: block; position: static; width: 100%; height: 175px; object-fit: cover; }
.ja-stack .sppb-item.sppb-item-has-bg .sppb-carousel-item-inner { position: static; width: auto; height: auto; padding: 0; }
.ja-stack .sppb-carousel-item-inner > .sppb-carousel-caption { position: static; display: block; height: auto; padding: 0; text-align: left; text-shadow: none; }
.ja-stack .sppb-carousel-text { display: block; min-height: 80px; padding: 15px 16px; border-top: 3px solid var(--ja-cap-bd); background: var(--ja-cap-bg); }
.ja-stack .sppb-carousel-text h2 { margin: 0; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; color: var(--ja-cap-tx); }
/* Toda la tarjeta enlaza (el botón «Ver» del addon cubre la tarjeta) */
.ja-stack .sppb-carousel-text .sppb-btn { position: absolute; inset: 0; z-index: 2; margin: 0; padding: 0; border: 0; opacity: 0; font-size: 0; }
/* Flechas abajo a la izquierda (← →) */
.ja-stack .sppb-carousel-arrow {
  position: absolute; top: auto; bottom: 0; width: 20px; height: 22px; padding: 0; background: none; opacity: 1;
  font-size: 2.08rem; color: #333; text-shadow: none; line-height: 1;
}
.ja-stack .sppb-carousel-arrow.left { left: 0; right: auto; }
.ja-stack .sppb-carousel-arrow.right { left: 40px; right: auto; }
.ja-stack .sppb-carousel-arrow i { position: static; margin: 0; font-size: 0; }
.ja-stack .sppb-carousel-arrow.left i::before { content: "\f060"; font-size: 2.08rem; }
.ja-stack .sppb-carousel-arrow.right i::before { content: "\f061"; font-size: 2.08rem; }
.ja-stack .sppb-carousel-arrow:hover { color: var(--ja-accent); }

/* ---- 12.3 Plan de Acción: lista con checks y oficinas -------------------------------------- */
.ja-checklist { max-width: 1305px; margin: 0 auto; padding: 30px 27px 64px 34px; border-radius: 31px; background: #f3f6f9; }
.ja-checklist h3, .ja-checklist > .sppb-addon-content > p:first-child { margin: 0 0 32px; font-family: var(--ja-font); font-size: 2.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25 !important; letter-spacing: 0; color: var(--ja-navy); }
.ja-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 0; padding: 0; list-style: none; }
.ja-checks li {
  display: flex; align-items: center; gap: 19px; min-height: 76px; padding: 14px 32px; border-radius: 12px; background: var(--ja-white);
  font-family: var(--ja-font-text); font-size: 2rem; font-weight: 500; line-height: 1.5; color: #666;
}
.ja-checks li::before { content: "\f00c"; flex: 0 0 auto; align-self: flex-start; margin-top: 6px; font-family: "Font Awesome 6 Free", "FontAwesome"; font-weight: 900; font-size: 1.2rem; color: #2b5292; }
.ja-chips__title { margin: 0 0 45px; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-bold); line-height: 1.25 !important; letter-spacing: 0; color: #2b5292; }
.ja-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 17px 23px; max-width: 1198px; margin: 0 auto; padding: 0; list-style: none; }
.ja-chips li {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 22px; border: 2px solid #9f9f9f; border-radius: 50px;
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: .3px; text-transform: uppercase; color: #005691;
}
.ja-plan-note p { margin: 0; max-width: 832px; font-family: var(--ja-font-text); font-size: 2rem; font-weight: 500; line-height: 1.5 !important; color: #666; }

/* ---- 12.4 Banner con antetítulo, foto destacada y lectura con índice ------------------------- */
.ja-page-banner--kicker .ja-page-banner__title h1 { padding-bottom: 11px; line-height: 1.12; }
.ja-page-banner__kicker { margin: 0 0 14px; font-family: "Open Sans", var(--ja-font); font-size: 1.4rem; font-weight: 600; line-height: 1.3 !important; text-transform: uppercase; color: var(--ja-white); }
.ja-page-banner--kicker .ja-crumbs { padding-bottom: 56px; }
.ja-figure__img .sppb-addon-single-image-container { display: block; }
.ja-figure__img img { display: block; width: 100%; height: 627px; object-fit: cover; border-radius: 12px 12px 75px 12px; }
.ja-figure__caption p { margin: 14px 0 0; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.4 !important; color: #64748b; }
.ja-article .sppb-row { margin: 0 -35px; align-items: flex-start; }
.ja-article .sppb-row > [class*="sppb-col-"] { padding: 0 35px !important; }
.ja-article__aside { position: sticky; top: 140px; }
.ja-toc { padding-top: 8px; }
.ja-toc__label { margin: 0 0 24px; font-family: var(--ja-font); font-size: 1.5rem; font-weight: var(--ja-fw-bold); line-height: 1.3 !important; text-transform: uppercase; color: var(--ja-navy); }
.ja-toc__list { display: flex; flex-direction: column; gap: 20px; margin: 0 0 24px; padding: 0 0 0 20px; border-left: 1px solid #d8e0e5; list-style: none; }
.ja-toc__list a { font-family: var(--ja-font); font-size: 1.6rem; line-height: 1.5; color: var(--ja-ink-2); }
.ja-toc__list li:first-child a, .ja-toc__list a:hover { font-weight: 600; color: var(--ja-blue-science); }
.ja-toc__note { margin: 0; font-family: var(--ja-font); font-size: 1.6rem; line-height: 1.5 !important; color: #64748b; }
.ja-toc__note::before { content: ""; display: block; width: 40px; height: 3px; margin-bottom: 24px; background: #3a530c; }
.ja-article__body h2 { margin: 46px 0 20px; scroll-margin-top: 140px; font-family: var(--ja-font); font-size: 3rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; color: var(--ja-navy); }
.ja-article__body h2:first-child { margin-top: 0; }
.ja-article__body p { margin: 0 0 20px; font-family: var(--ja-font-text); font-size: 2rem; line-height: 1.65 !important; color: #333; }
.ja-article__sub { display: flex; align-items: center; gap: 12px; margin: 28px 0 10px; font-family: "Open Sans", var(--ja-font); font-size: 2.3rem; font-weight: var(--ja-fw-bold); line-height: 1.3; letter-spacing: 0; color: var(--ja-navy); }
.ja-article__sub::before { content: ""; width: 4px; height: 22px; background: #3a530c; }
.ja-article__main .sppb-addon-wrapper:has(.ja-article__back) { margin-top: 26px; padding-top: 30px; border-top: 1px solid #d8e0e5; }

/* ---- 12.5 Otras iniciativas (relacionadas) ---------------------------------------------------- */
.ja-related { background: #f8f9fa; }
#sp-page-builder .ja-related .sppb-section-title { margin: 0 0 34px; }
#sp-page-builder .ja-related .sppb-title-heading { margin: 0 0 10px; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-black); line-height: 1.25; color: var(--ja-navy); }
#sp-page-builder .ja-related .sppb-title-subheading { font-family: var(--ja-font-text); font-size: 2rem; line-height: 1.3 !important; color: var(--ja-ink-2); }
.ja-related .sppb-row { margin: 0 -15px; }
.ja-related .sppb-row > [class*="sppb-col-"] { padding: 0 15px !important; display: flex; }
.ja-rel { display: flex; flex-direction: column; width: 100%; }
.ja-rel > .sppb-column-addons { display: flex; flex-direction: column; flex: 1 1 auto; }
.ja-rel__img .sppb-addon-single-image-container { display: block; }
.ja-rel__img img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 12px 12px 50px 12px; }
.ja-rel__body { flex: 1 1 auto; min-height: 260px; padding-top: 20px; }
.ja-rel__accent { display: block; width: 35px; height: 3px; margin-bottom: 14px; background: var(--ja-accent); }
.ja-rel__body h3 { margin: 0 0 14px; font-family: var(--ja-font); font-size: 2.2rem; font-weight: var(--ja-fw-bold); line-height: 1.3; letter-spacing: 0; color: var(--ja-navy); }
.ja-rel__body p { margin: 0; font-family: var(--ja-font-text); font-size: 1.8rem; line-height: 1.5 !important; color: var(--ja-ink-2); }
.ja-rel .sppb-addon-wrapper:has(.ja-rel__btn) { margin-top: auto; }
.sppb-btn.ja-rel__btn { font-size: 1.3rem; }

@media (max-width: 991.98px) {
  .ja-ini .sppb-row > [class*="sppb-col-"] + [class*="sppb-col-"] { margin-top: 32px; }
  .ja-checks { grid-template-columns: 1fr; }
  .ja-checks li, .ja-plan-note p { font-size: 1.7rem; }
  .ja-figure__img img { height: 360px; }
  .ja-article__aside { position: static; margin-bottom: 32px; }
  .ja-article__body p { font-size: 1.8rem; }
  .ja-rel__body { min-height: 0; padding-bottom: 20px; }
}

/* ==========================================================================
   13. CATÁLOGOS DE RECURSOS (tarjetas pintadas por js/justicia-abierta.js)
   ========================================================================== */
:root { --ja-cat-ink: #0a3a60; --ja-cat-blue: #005691; --ja-cat-line: #d8e2e8; }
.ja-w-cat > .sppb-row-container { max-width: 1440px; padding-left: 20px; padding-right: 20px; }
:is(.ja-cat-head-row, .ja-filter-row, .ja-group-row, .ja-res-row, .ja-feature-row, .ja-tools, .ja-info-row, .ja-w-cat) .sppb-addon-wrapper { margin: 0; }
.ja-res .sppb-addon-content > .sppb-row { display: none; }          /* evita el parpadeo antes de que actúe el JS */
.ja-cards { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ja-cards--pub { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ja-cards--doc, .ja-cards--blog, .ja-cards--feature, .ja-cards--news-feature, .ja-cards--blog-feature { grid-template-columns: 1fr; }
.ja-cards--doc { gap: 0; overflow: hidden; border: 1px solid var(--ja-cat-line); border-radius: 12px; }
.ja-cards--mat { gap: 20px; }
.ja-empty { grid-column: 1 / -1; margin: 0; padding: 40px 0; text-align: center; font-family: var(--ja-font-text); font-size: 1.8rem; color: var(--ja-muted); }
.ja-noimg { display: block; background: linear-gradient(135deg, #e6eef5, #cbd5e1); }
.ja-k { margin: 0; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.5 !important; color: var(--ja-k, var(--ja-cat-blue)); }

/* Encabezado del catálogo + chips de secciones */
.ja-cat-head__title { margin: 0 0 12px; padding-bottom: 12px; position: relative; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-black); line-height: 1.25; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-cat-head__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 35px; height: 3px; background: var(--ja-cat-blue); }
.ja-cat-head__sub { margin: 0; font-family: var(--ja-font-text); font-size: 1.8rem; line-height: 1.5 !important; color: var(--ja-muted); }
.ja-chipnav ul { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.ja-chipnav a, .ja-formats__chip {
  display: inline-block; padding: 12px 20px; border: 1px solid var(--ja-cat-line); border-radius: 50px; background: var(--ja-white);
  font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); line-height: 1.2; color: var(--ja-cat-blue);
}
.ja-chipnav a:hover, .ja-chipnav a[aria-current] { border-color: var(--ja-cat-blue); background: var(--ja-cat-blue); color: var(--ja-white); }

/* Caja de búsqueda */
.ja-filter { padding: 32px; border: 1px solid var(--ja-cat-line); border-radius: 12px; background: var(--ja-white); box-shadow: 0 6px 10px rgba(4, 30, 66, .05); }
.ja-filter__row { display: flex; align-items: flex-end; gap: 20px; }
.ja-filter__field { flex: 1 1 auto; }
.ja-filter__field--sel { flex: 0 0 240px; }
.ja-filter label { display: flex; flex-direction: column; gap: 8px; margin: 0; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.5; color: var(--ja-muted); }
.ja-filter__input { position: relative; display: block; }
.ja-filter__input::before { content: "\f002"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: "Font Awesome 6 Free", "FontAwesome"; font-weight: 900; font-size: 1.6rem; color: var(--ja-muted); }
.ja-filter input, .ja-filter select, .ja-aside__search, .ja-doc-bar select {
  width: 100%; height: 50px; margin: 0; padding: 0 16px; border: 1px solid var(--ja-cat-line); border-radius: 6px; background: var(--ja-white);
  box-shadow: none; font-family: var(--ja-font-text); font-size: 1.7rem; font-weight: 400; color: var(--ja-ink);
}
.ja-filter__input input { padding-left: 46px; }
.ja-filter input:focus, .ja-filter select:focus, .ja-aside__search:focus { outline: 2px solid rgba(0, 86, 145, .25); border-color: var(--ja-cat-blue); }
.ja-filter__btn { flex: 0 0 150px; height: 46px; border: 0; border-radius: var(--ja-radius-pill); background: var(--ja-cat-blue); color: var(--ja-white);
  font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); filter: drop-shadow(0 4px 7px rgba(59, 130, 246, .4)); cursor: pointer; }
.ja-filter__btn:hover { background: var(--ja-navy); }
.ja-filter__foot { display: flex; justify-content: space-between; gap: 24px; margin-top: 20px; font-family: var(--ja-font-text); font-size: 1.6rem; color: var(--ja-muted); }
.ja-filter__clear { padding: 0; border: 0; background: none; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); color: var(--ja-cat-blue); cursor: pointer; }

/* Títulos de bloque y grupos del hub */
.ja-list-title { margin: 0 0 24px; font-family: var(--ja-font); font-size: 2.4rem; font-weight: var(--ja-fw-black); line-height: 1.25; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-res-main .ja-list-title { padding-bottom: 12px; position: relative; }
.ja-res-main .ja-list-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 35px; height: 3px; background: var(--ja-cat-blue); }
.ja-group__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; padding-bottom: 10px; position: relative; }
.ja-group__head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 35px; height: 2px; background: var(--ja-cat-blue); }
.ja-group__head h3 { margin: 0; font-family: var(--ja-font); font-size: 2.4rem; font-weight: var(--ja-fw-black); line-height: 1.25; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-group__more { font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: var(--ja-cat-blue); }
.ja-group-row .ja-cards { margin-top: 8px; }

/* Tarjeta de recurso (hub y publicaciones) */
.ja-rc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ja-cat-line); border-radius: 12px; background: var(--ja-white); box-shadow: 0 4px 4px rgba(0, 0, 0, .25); }
.ja-cards--pub .ja-rc { box-shadow: 0 4px 6px rgba(0, 0, 0, .12); }
.ja-rc__img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.ja-rc__media { display: block; overflow: hidden; }
.ja-rc:hover .ja-rc__img { transform: scale(1.03); }
.ja-rc__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 14px; padding: 24px; }
.ja-rc__title { margin: 0; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-black); line-height: 1.25; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-rc__text, .ja-rc__text p { margin: 0; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5 !important; color: var(--ja-muted); }
.ja-rc__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); }
.ja-rc__actions a { color: var(--ja-cat-blue); }
.ja-rc__actions a:hover { color: var(--ja-navy); text-decoration: underline; }

/* Videos */
.ja-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 30px; height: 30px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(217, 4, 41, .9); }
.ja-play::before { content: "\f04b"; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%); font-family: "Font Awesome 6 Free", "FontAwesome"; font-weight: 900; font-size: 1.2rem; color: var(--ja-white); }
.ja-play--lg { width: 62px; height: 42px; border-radius: 10px; background: #e1251b; }
.ja-play--lg::before { font-size: 1.8rem; }
.ja-vc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ja-line); border-radius: 12px; background: var(--ja-white); }
.ja-vc__media { position: relative; display: block; overflow: hidden; background: #1a202c; }
.ja-vc__img { display: block; width: 100%; height: 242px; object-fit: cover; transition: transform .4s ease; }
.ja-vc:hover .ja-vc__img { transform: scale(1.04); }
.ja-vc__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 24px 24px; }
.ja-vc__title { margin: 0; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); line-height: 1.35; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-vc__meta { margin: 0 0 4px; font-family: var(--ja-font-text); font-size: 1.4rem; line-height: 1.4 !important; color: var(--ja-muted); }
.ja-vc .ja-pill { margin-top: auto; }
.ja-fv { display: grid; grid-template-columns: minmax(0, 850px) minmax(0, 1fr); align-items: center; gap: 32px; }
.ja-fv__media { position: relative; display: block; overflow: hidden; border-radius: 12px; }
.ja-fv__img { display: block; width: 100%; height: 430px; object-fit: cover; }
.ja-fv__body { display: flex; flex-direction: column; gap: 16px; }
.ja-fv__title { margin: 0; font-family: var(--ja-font); font-size: 3rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-fv__meta, .ja-fv__text, .ja-fv__text p { margin: 0; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.6 !important; color: var(--ja-muted); }

/* Píldoras (botones de contorno) */
.ja-pill, .sppb-btn.ja-btn-pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 22px; border: 2px solid var(--ja-cat-blue); border-radius: 50px;
  background: var(--ja-white); box-shadow: none; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25;
  letter-spacing: .3px; text-transform: uppercase; color: var(--ja-cat-blue);
}
.ja-pill:hover, .sppb-btn.ja-btn-pill:hover { background: var(--ja-cat-blue); color: var(--ja-white); }
.ja-pill--sm { min-height: 32px; padding: 4px 14px; border-width: 1px; font-size: 1.2rem; }
.ja-pill--solid { border-color: var(--ja-cat-blue); background: var(--ja-cat-blue); color: var(--ja-white); }
.ja-pill--solid:is(:hover, :focus) { border-color: var(--ja-navy); background: var(--ja-navy); color: var(--ja-white); }

/* Documentos: lista con filtros laterales */
.ja-res-row--aside .sppb-row, .ja-res-row--blog .sppb-row { margin: 0 -20px; align-items: flex-start; }
.ja-res-row--aside .sppb-row > [class*="sppb-col-"], .ja-res-row--blog .sppb-row > [class*="sppb-col-"] { padding: 0 20px !important; }
.ja-aside__label { margin: 0 0 10px; font-family: var(--ja-font); font-size: 1.8rem; font-weight: var(--ja-fw-bold); line-height: 1.3 !important; color: var(--ja-cat-ink); }
.ja-aside__search { height: 46px; font-size: 1.6rem; }
.ja-aside__block { margin-bottom: 24px; }
.ja-aside__sub { margin: 0 0 12px; font-family: var(--ja-font); font-size: 1.2rem; font-weight: var(--ja-fw-bold); line-height: 1.3 !important; color: var(--ja-cat-blue); }
.sp-module .ja-aside__list > li, .ja-aside__list > li { border: 0; }
.ja-aside__list { display: flex; flex-direction: column; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.ja-aside__list a { display: block; padding: 6px 0 6px 40px; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.3; color: var(--ja-ink-2); }
.ja-res-aside--right .ja-aside__list a { padding-left: 0; }
.ja-aside__list a:hover, .ja-aside__list a.is-active { color: var(--ja-cat-blue); }
.ja-aside__list a.is-active::after { content: " ✕"; font-size: 1.1rem; }
.ja-aside__card { padding: 16px 12px; border-radius: 6px; background: #dfe3e8; }
.ja-aside__card h4 { margin: 0 0 8px; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); line-height: 1.3; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-aside__card p { margin: 0; font-family: var(--ja-font); font-size: 1.3rem; line-height: 1.35 !important; color: var(--ja-ink-2); }
.ja-aside__card a { color: var(--ja-cat-blue); text-decoration: underline; }
.ja-aside__cta { padding: 20px; border-radius: 8px; background: #e5f1fb; }
.ja-aside__cta :is(h2, h3, h4) { margin: 0 0 10px; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-aside__cta p { margin: 0 0 14px; font-family: var(--ja-font); font-size: 1.3rem; line-height: 1.35 !important; color: var(--ja-ink-2); }
.ja-aside__cta .ja-pill { min-height: 34px; padding: 4px 18px; text-transform: none; letter-spacing: 0; }
.ja-doc-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-family: var(--ja-font); font-size: 1.3rem; color: var(--ja-ink-2); }
.ja-doc-bar__sort { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.3rem; font-weight: var(--ja-fw-bold); color: var(--ja-cat-blue); }
.ja-doc-bar select { width: 170px; height: 42px; font-size: 1.5rem; }
.ja-dr { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 13px; background: var(--ja-white); }
.ja-dr:nth-child(even) { background: #dfe3e8; }
.ja-dr__title { margin: 0; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-medium); line-height: 1.35; letter-spacing: 0; }
.ja-dr__title a { color: var(--ja-cat-blue); }
.ja-dr__type { margin: 2px 0 0; font-family: var(--ja-font); font-size: 1.2rem; line-height: 1.3 !important; color: #4f5b6b; }
.ja-dr__actions { display: flex; flex: 0 0 auto; gap: 6px; }

/* Material informativo: tarjetas de color */
.ja-formats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ja-formats__label { margin-right: 6px; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); color: var(--ja-cat-ink); }
.ja-formats__chip { padding: 8px 16px; font-size: 1.3rem; color: var(--ja-ink-2); cursor: pointer; }
.ja-formats__chip.is-active, .ja-formats__chip:hover { border-color: #333; background: #333; color: var(--ja-white); }
.ja-mt { display: flex; flex-direction: column; align-items: flex-start; min-height: 224px; padding: 16px 24px 16px 14px; border-radius: 8px; background: var(--ja-mt, #00224d); color: var(--ja-white); }
.ja-mt--verde { --ja-mt: #3a530c; --ja-mt-chip: #2c3f09; }
.ja-mt--pizarra { --ja-mt: #445e75; --ja-mt-chip: #60778c; }
.ja-mt--azul { --ja-mt: #124373; --ja-mt-chip: #2c5b8c; }
.ja-mt--verde-oscuro { --ja-mt: #2e3f11; --ja-mt-chip: #4a6620; }
.ja-mt--vino { --ja-mt: #5b1822; --ja-mt-chip: #7f2533; }
.ja-mt--cafe { --ja-mt: #765439; --ja-mt-chip: #8d6e55; }
.ja-mt--marino { --ja-mt: #00224d; --ja-mt-chip: #10386e; }
.ja-mt__chip { min-width: 102px; margin-bottom: 26px; padding: 3px 16px; border-radius: 50px; background: var(--ja-mt-chip, rgba(255, 255, 255, .2)); text-align: center;
  font-family: var(--ja-font); font-size: 1.2rem; font-weight: var(--ja-fw-bold); letter-spacing: .5px; text-transform: uppercase; }
.ja-mt__title { margin: 0 0 24px; max-width: 220px; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.3; letter-spacing: 0; color: var(--ja-white); }
.ja-mt__text, .ja-mt__text p { margin: 0 0 22px; font-family: var(--ja-font-text); font-size: 1.3rem; line-height: 1.5 !important; color: #ffffff; }
.ja-mt__btn { display: inline-flex; align-items: center; justify-content: center; margin-top: auto; padding: 6px 14px; line-height: 1.2; border: 1px solid var(--ja-white); border-radius: 2px; font-family: var(--ja-font); font-size: 1.2rem; font-weight: var(--ja-fw-bold); letter-spacing: .5px; color: var(--ja-white); }
.ja-mt__btn:hover { background: var(--ja-white); color: var(--ja-mt); }
@media (min-width: 1200px) {
  .ja-cards--mat .ja-mt { min-height: 390px; padding: 28px 42px 28px 24px; }
  .ja-mt__chip { font-size: 1.2rem; padding: 6px 20px; min-width: 178px; margin-bottom: 44px; }
  .ja-mt__title { max-width: 380px; font-size: 2.2rem; margin-bottom: 40px; }
  .ja-mt__text, .ja-mt__text p { font-size: 1.7rem; margin-bottom: 38px; }
  .ja-mt__btn { min-width: 142px; padding: 11px 24px; font-size: 1.4rem; }
}

/* Blog */
.ja-bf { overflow: hidden; margin-bottom: 40px; border-radius: 20px; background: var(--ja-white); box-shadow: 0 10px 30px rgba(4, 30, 66, .12); }
.ja-bf__img { display: block; width: 100%; height: 460px; object-fit: cover; }
.ja-bf__body { padding: 40px 50px; }
.ja-bf__title { margin: 8px 0 12px; font-family: var(--ja-font); font-size: 3.4rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; }
.ja-bf__title a, .ja-br__title a { color: #2b5292; }
.ja-bf__text, .ja-bf__text p { margin: 0 0 12px; font-family: var(--ja-font); font-size: 2rem; line-height: 1.4 !important; color: var(--ja-ink-2); }
.ja-bf__meta, .ja-br__meta { margin: 0; font-family: var(--ja-font); font-size: 1.3rem; line-height: 1.4 !important; color: var(--ja-muted); }
.ja-br { display: grid; grid-template-columns: 311px minmax(0, 1fr); align-items: center; gap: 28px; padding: 20px 0 30px; border-bottom: 2px solid #d9d9d9; }
.ja-br__img { display: block; width: 100%; height: 209px; object-fit: cover; border-radius: 28px; }
.ja-br__title { margin: 6px 0 10px; font-family: var(--ja-font); font-size: 2.6rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; }
.ja-br__text, .ja-br__text p { margin: 0 0 10px; font-family: var(--ja-font); font-size: 1.6rem; line-height: 1.4 !important; color: var(--ja-ink-2); }
.ja-res-aside--right .ja-aside { position: sticky; top: 140px; }

/* Novedades */
.ja-nf { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--ja-line); border-radius: 12px; background: var(--ja-white); }
.ja-nf__img { display: block; width: 100%; height: 420px; object-fit: cover; }
.ja-nf__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 40px; }
.ja-nf__title { margin: 0; font-family: var(--ja-font); font-size: 2.8rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; }
.ja-nf__title a { color: var(--ja-cat-ink); }
.ja-nf__date { margin: 0; font-family: var(--ja-font); font-size: 1.4rem; color: var(--ja-ink-2); }
.ja-nf__text, .ja-nf__text p { margin: 0; font-family: var(--ja-font-text); font-size: 1.7rem; line-height: 1.5 !important; color: var(--ja-muted); }
.ja-btn-navy { display: inline-block; margin-top: 8px; padding: 12px 38px; border-radius: 50px; background: var(--ja-cat-blue); box-shadow: 0 4px 7px rgba(59, 130, 246, .4);
  font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); color: var(--ja-white); }
.ja-btn-navy:is(:hover, :focus) { background: var(--ja-navy); color: var(--ja-white); }
.ja-nc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ja-line-strong); border-radius: 12px; background: var(--ja-white); box-shadow: 0 10px 25px rgba(0, 0, 0, .15); }
.ja-nc__media { position: relative; display: block; }
.ja-nc__img { display: block; width: 100%; height: 180px; object-fit: cover; }
.ja-nc__badge { position: absolute; top: 12px; right: 12px; padding: 4.5px 10px; border-radius: 4px; background: var(--ja-navy-deep); font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: var(--ja-white); }
.ja-nc__body { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; padding: 23px 24px 24px; }
.ja-nc__title { margin: 0 0 7px; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; }
.ja-nc__title a { color: var(--ja-prussian); }
.ja-nc__date { margin: 0 0 5px; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: var(--ja-navy-deep); }
.ja-nc__text, .ja-nc__text p { margin: 0 0 24px; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5 !important; color: var(--ja-muted); }
.ja-nc__btn { margin-top: auto; padding: 7px 18px; border-radius: 50px; background: var(--ja-green); font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); letter-spacing: .5px; color: var(--ja-white); }
.ja-nc__btn:is(:hover, :focus) { background: #2c3f09; color: var(--ja-white); }
/* Texto centrado en la altura táctil de 44 px, como los botones del inicio */
.ja-nc__btn, .ja-btn-navy { display: inline-flex; align-items: center; justify-content: center; line-height: 1.25 !important; }
.ja-nc__btn { align-self: flex-start; }

/* Paginación */
.ja-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 40px; }
.ja-pager button { padding: 0; border: 0; background: none; font-family: var(--ja-font); font-size: 1.6rem; color: #607588; cursor: pointer; }
.ja-pager button:disabled { opacity: .45; cursor: default; }
.ja-pager .ja-pager__n { width: 40px; height: 40px; border-radius: 50%; }
.ja-pager .ja-pager__n.is-active { background: var(--ja-cat-blue); font-weight: var(--ja-fw-bold); color: var(--ja-white); }

/* Herramientas digitales e informes */
.ja-tools .sppb-row { margin: 0 -12px; }
.ja-tools .sppb-row > [class*="sppb-col-"] { padding: 0 12px 24px !important; display: flex; }
.ja-tool { width: 100%; overflow: hidden; border: 1px solid var(--ja-cat-line); border-radius: 12px; background: var(--ja-white); }
.ja-tool__img .sppb-addon-single-image-container { display: block; }
.ja-tool__img img { display: block; width: 100%; height: 220px; object-fit: cover; }
.ja-tool__body { padding: 28px 28px 16px; }
.ja-tool__body h4 { margin: 0; font-family: var(--ja-font); font-size: 2.2rem; font-weight: var(--ja-fw-black); line-height: 1.25; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-tool .sppb-addon-wrapper:has(.ja-btn-pill) { padding: 0 28px 28px; }
.ja-info-box { padding: 32px; border: 1px solid var(--ja-cat-line); border-radius: 12px; background: var(--ja-white); box-shadow: 0 6px 10px rgba(4, 30, 66, .05); }
.ja-info-box h3 { margin: 0 0 20px; font-family: var(--ja-font); font-size: 2.4rem; font-weight: var(--ja-fw-black); line-height: 1.25; letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-info-box p { margin: 0 0 20px; font-family: var(--ja-font-text); font-size: 1.8rem; line-height: 1.5 !important; color: var(--ja-muted); }
.ja-info-box__btns { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 1199.98px) {
  .ja-cards--pub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ja-fv, .ja-nf { grid-template-columns: 1fr; }
  .ja-fv__img, .ja-nf__img { height: 360px; }
}
@media (max-width: 991.98px) {
  .ja-cards, .ja-cards--pub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ja-filter__row { flex-wrap: wrap; }
  .ja-filter__field, .ja-filter__field--sel { flex: 1 1 100%; }
  .ja-br { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  .ja-br__img { height: 140px; border-radius: 18px; }
  .ja-res-aside { margin-bottom: 32px; }
  .ja-res-aside--right { margin: 32px 0 0; }
}
@media (max-width: 767.98px) {
  .ja-cards, .ja-cards--pub { grid-template-columns: 1fr; }
  .ja-dr { flex-direction: column; align-items: flex-start; }
  .ja-br { grid-template-columns: 1fr; }
  .ja-br__img { height: 200px; }
  .ja-bf__img { height: 260px; }
  .ja-bf__body { padding: 24px; }
  .ja-bf__title { font-size: 2.6rem; }
}
.ja-feature-row + .ja-res-row { padding-top: 16px !important; }
.ja-tool__img img[src*="observatorio"] { object-fit: contain; padding: 20px; }

/* ==========================================================================
   14. LECTURA DE NOVEDADES Y BLOG (html/com_content/article/default_ja.php)
   ========================================================================== */
body:has(.ja-article-page) #sp-main-body { padding: 0; }
body:has(.ja-article-page) #sp-main-body > .row { margin: 0; }
body:has(.ja-article-page) #sp-component { padding: 0; }
.ja-page-banner--article { display: flex; align-items: flex-end; min-height: 340px; background-size: cover; background-position: center; }
.ja-page-banner__inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.ja-page-banner--article h1 { margin: 0; padding-bottom: 11px; max-width: 1100px; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-black); line-height: 1.15; letter-spacing: 0; color: var(--ja-white); }
.ja-page-banner--article .ja-crumbs { padding-bottom: 48px; }
.ja-read { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; max-width: 1584px; margin: 0 auto; padding: 48px 188px 32px; }
.ja-read__back { margin-bottom: 28px; text-transform: uppercase; }
.ja-read__lead, .ja-read__lead p { margin: 0 0 32px; font-family: var(--ja-font-text); font-size: 2.4rem; font-weight: 500; line-height: 1.35 !important; color: var(--ja-cat-ink); }
.ja-read__figure { margin: 0 0 32px; }
.ja-read__figure img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 12px; }
.ja-read__figure figcaption { margin-top: 12px; font-family: var(--ja-font-text); font-size: 1.4rem; color: var(--ja-cat-ink); }
.ja-read__body p { margin: 0 0 22px; font-family: var(--ja-font-text); font-size: 1.9rem; line-height: 1.6 !important; color: var(--ja-cat-ink); }
.ja-read__body blockquote { margin: 32px 0; padding: 4px 0 4px 18px; border-left: 3px solid #952020; }
.ja-read__body blockquote p { margin: 0 0 18px; font-family: var(--ja-font); font-size: 3rem; font-weight: var(--ja-fw-bold); line-height: 1.25 !important; color: var(--ja-cat-ink); }
.ja-read__body blockquote cite { font-family: var(--ja-font); font-size: 1.9rem; font-style: normal; color: var(--ja-cat-ink); }
.ja-read__box { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 40px 0 0; padding: 32px 30px; border-radius: 8px; background: #efefef; }
.ja-read__box p { margin: 0; font-family: var(--ja-font); font-size: 1.8rem; font-weight: var(--ja-fw-bold); line-height: 1.3 !important; color: var(--ja-cat-ink); }
.ja-read__box .ja-pill { text-transform: none; letter-spacing: 0; }
.ja-read__share { display: flex; align-items: center; gap: 24px; margin-top: 48px; }
.ja-read__share > span { font-family: var(--ja-font); font-size: 2.2rem; font-weight: var(--ja-fw-medium); color: var(--ja-cat-ink); }
.ja-share { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ja-share a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ja-ico-bg); color: var(--ja-white); font-size: 1.4rem; }
.ja-copy { cursor: pointer; text-transform: none; letter-spacing: 0; }
.ja-copy.is-done::after { content: " ✓"; }
.ja-read__aside { padding-top: 4px; }
.ja-read__aside .ja-aside__list a { padding-left: 0; }
.ja-read__aside .ja-aside__cta { position: sticky; top: 140px; }
.ja-read__more { max-width: 1584px; margin: 0 auto; padding: 0 188px 80px; }
.ja-read__more h2 { margin: 0 0 32px; font-family: var(--ja-font); font-size: 3.4rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-read__more .ja-nc__badge { padding: 6px 8px; font-size: 1.2rem; }
@media (max-width: 1399.98px) {
  .ja-read { padding-left: 40px; padding-right: 40px; gap: 40px; }
  .ja-read__more { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 991.98px) {
  .ja-read { grid-template-columns: 1fr; padding: 32px 20px; }
  .ja-read__more { padding: 0 20px 60px; }
  .ja-read__lead, .ja-read__lead p { font-size: 2rem; }
  .ja-read__body blockquote p { font-size: 2.4rem; }
  .ja-read__box { flex-direction: column; align-items: flex-start; }
  .ja-read__share { flex-wrap: wrap; }
}
body:has(.ja-article-page) #sp-main-body > .container { width: 100%; max-width: none; padding: 0; }
body:has(.ja-article-page) #sp-main-body > .container > .row { margin: 0; }

/* ==========================================================================
   15. CONTACTO
   ========================================================================== */
:is(.ja-channels, .ja-form-row, .ja-visit, .ja-faq-row) .sppb-addon-wrapper { margin: 0; }
.ja-page-banner--lead .ja-page-banner__title h1 { padding-bottom: 8px; }
.ja-page-banner__lead { margin: 0 0 14px; font-family: var(--ja-font-text); font-size: 1.8rem; line-height: 1.4 !important; color: var(--ja-white); }
.ja-page-banner--lead .ja-crumbs { padding-bottom: 32px; }
.ja-channels .sppb-row { margin: 0 -12px; }
.ja-channels .sppb-row > [class*="sppb-col-"] { padding: 0 12px 24px !important; display: flex; }
/* Las tres tarjetas a la misma altura aunque una tenga más texto */
.ja-channels .sppb-column, .ja-channels .sppb-column-addons, .ja-channels .sppb-addon-wrapper, .ja-channels .sppb-addon-wrapper > .clearfix { width: 100%; height: 100%; }
.ja-channel p:last-child { margin-bottom: 0; }
.ja-channel { width: 100%; height: 100%; padding: 28px; border: 1px solid var(--ja-cat-line); border-radius: 12px; background: var(--ja-white); box-shadow: 0 6px 10px rgba(4, 30, 66, .05); }
.ja-channel__ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: #e5f1fb; color: var(--ja-cat-blue); font-size: 1.6rem; }
.ja-channel h3 { margin: 0 0 12px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-channel p { margin: 0 0 14px; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5 !important; color: var(--ja-muted); }
.ja-channel a { font-family: var(--ja-font); font-size: 1.5rem; font-weight: var(--ja-fw-bold); color: var(--ja-cat-ink); word-break: break-word; }
.ja-form-row .sppb-row { margin: 0 -12px; align-items: flex-start; }
.ja-form-row .sppb-row > [class*="sppb-col-"] { padding: 0 12px !important; }
.ja-form-card { padding: 36px; border: 1px solid var(--ja-cat-line); border-radius: 12px; background: var(--ja-white); box-shadow: 0 6px 10px rgba(4, 30, 66, .05); }
.ja-form-head h2 { margin: 0 0 8px; font-family: var(--ja-font); font-size: 2.6rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-form-head p, .ja-form-note p { margin: 0 0 24px; font-family: var(--ja-font-text); font-size: 1.5rem; line-height: 1.5 !important; color: var(--ja-muted); }
.ja-form-note p { margin: -46px 0 0; max-width: 55%; font-size: 1.3rem; }
.ja-form .sppb-form-group label { margin-bottom: 8px; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: var(--ja-cat-ink); }
.ja-form .sppb-form-control { height: 50px; padding: 0 16px; border: 1px solid var(--ja-cat-line); border-radius: 6px; box-shadow: none; font-family: var(--ja-font-text); font-size: 1.6rem; color: var(--ja-ink); }
.ja-form textarea.sppb-form-control { height: 130px; padding: 14px 16px; }
.ja-form .sppb-form-control:focus { border-color: var(--ja-cat-blue); box-shadow: 0 0 0 3px rgba(0, 86, 145, .15); }
.ja-form .sppb-form-check-label { font-family: var(--ja-font-text); font-size: 1.4rem; color: var(--ja-ink-2); }
.ja-form .sppb-form-builder-btn { text-align: right; }
.ja-form .sppb-form-builder-btn .sppb-btn { padding: 12px 28px; border: 0; border-radius: 50px; background: var(--ja-cat-blue); box-shadow: none;
  font-family: var(--ja-font); font-size: 1.5rem; font-weight: var(--ja-fw-bold); letter-spacing: .5px; color: var(--ja-white);
}
.ja-form .sppb-form-builder-btn .sppb-btn:hover { background: var(--ja-navy); color: var(--ja-white); }
.ja-info-card { margin-bottom: 20px; padding: 28px; border-radius: 12px; background: #e5f1fb; }
.ja-info-card h3 { margin: 0 0 20px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-info-list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ja-info-list li { display: flex; gap: 12px; font-family: var(--ja-font-text); font-size: 1.5rem; line-height: 1.45; color: var(--ja-ink-2); }
.ja-info-list i { margin-top: 3px; color: var(--ja-cat-ink); }
.ja-info-list strong { display: block; font-family: var(--ja-font); font-size: 1.4rem; color: var(--ja-cat-ink); }
.ja-note-card { margin-bottom: 20px; padding: 22px 24px; border: 1px solid var(--ja-cat-line); border-radius: 12px; background: var(--ja-white); }
.ja-note-card :is(h3, h4) { margin: 0 0 8px; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-note-card p { margin: 0; font-family: var(--ja-font-text); font-size: 1.4rem; line-height: 1.45 !important; color: var(--ja-ink-2); }
.ja-status-card p { margin: 0; padding: 14px 18px; border-radius: 8px; background: #ecfdf5; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.4 !important; color: #047857; }
.ja-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #10b981; }
.ja-visit-head, .ja-visit, .ja-faq-row { background: #eef4f8; }
.ja-visit > .sppb-row-container > .sppb-row { margin: 0; overflow: hidden; border-radius: 12px; background: var(--ja-white); box-shadow: 0 6px 16px rgba(4, 30, 66, .06); }
.ja-visit .sppb-row > [class*="sppb-col-"] { padding: 0 !important; }
.ja-visit__info { padding: 40px; }
.ja-visit__info h3 { margin: 0 0 14px; font-family: var(--ja-font); font-size: 2.2rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-visit__info p { margin: 0 0 18px; font-family: var(--ja-font-text); font-size: 1.7rem; line-height: 1.5 !important; color: var(--ja-ink-2); }
.ja-visit__info .ja-visit__note { font-size: 1.4rem; color: var(--ja-muted); }
.ja-visit__map iframe { display: block; width: 100%; height: 340px; border: 0; background: #e6eef5; }
.ja-faq .sppb-panel { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--ja-cat-line); border-radius: 8px; background: var(--ja-white); }
.ja-faq .sppb-panel-heading { padding: 18px 22px; background: var(--ja-white); }
.ja-faq .sppb-panel-title { margin: 0; font-family: var(--ja-font); font-size: 1.6rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: var(--ja-cat-ink); }
.ja-faq .sppb-panel-body { padding: 0 22px 18px; border: 0; }
.ja-faq .sppb-panel-body p { margin: 0; font-family: var(--ja-font-text); font-size: 1.5rem; line-height: 1.5 !important; color: var(--ja-ink-2); }
@media (max-width: 991.98px) {
  .ja-form-aside { margin-top: 24px; }
  .ja-form-note p { margin-top: 12px; max-width: none; }
  .ja-form .sppb-form-builder-btn .sppb-btn { width: 100%; }
}
.ja-form form > .sppb-row, .ja-form .sppb-form-builder-field-group, .ja-form .sppb-form-step-fields { row-gap: 4px; }
.ja-form .sppb-form-group { padding-right: 12px; margin-bottom: 18px; }
.ja-form select.sppb-form-control {
  height: 50px !important; padding: 0 40px 0 16px !important; border: 1px solid var(--ja-cat-line) !important; border-radius: 6px !important;
  background: var(--ja-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23475569' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center !important;
  -webkit-appearance: none; appearance: none; font-family: var(--ja-font-text) !important; font-size: 1.6rem !important; color: var(--ja-muted) !important;
}
.ja-info-list li, .ja-info-list li span { line-height: 1.45 !important; }

/* ==========================================================================
   16. MÓVIL Y TABLETA: margen lateral uniforme de 24 px en todas las secciones.
   Causa del contenido pegado al borde: .sppb-row trae margin: 0 -15px y el CSS
   personalizado de la plantilla anula el padding de las columnas, así que el
   contenido se salía 15 px del contenedor. En pantallas apiladas se neutralizan
   ambos y el espacio entre bloques pasa a ser vertical (row-gap).
   ========================================================================== */
@media (max-width: 991.98px) {
  :root { --ja-gutter: 24px; }
  #sp-page-builder .page-content > .sppb-section > :is(.sppb-row-container, .sppb-container-inner),
  .mod-sppagebuilder .page-content > .sppb-section > :is(.sppb-row-container, .sppb-container-inner) {
    max-width: none; padding-left: var(--ja-gutter) !important; padding-right: var(--ja-gutter) !important;
  }
  /* Tablet: columnas lado a lado con 24 px entre ellas (margen negativo compensado, dentro del contenedor) */
  #sp-page-builder .sppb-section .sppb-row,
  .mod-sppagebuilder .sppb-section .sppb-row { margin-left: -12px !important; margin-right: -12px !important; row-gap: 24px; }
  #sp-page-builder .sppb-section .sppb-row > [class*="sppb-col-"],
  .mod-sppagebuilder .sppb-section .sppb-row > [class*="sppb-col-"] { padding-left: 12px !important; padding-right: 12px !important; }
  /* Blog y Documentos: la barra lateral pasa a ir debajo / encima del listado a ancho completo */
  :is(.ja-res-row--blog, .ja-res-row--aside) .sppb-row > [class*="sppb-col-"] { flex: 0 0 100% !important; max-width: 100% !important; }
  .ja-res-aside--right { margin-top: 8px; }
  .ja-bf__img { height: 380px; }

  /* El slider y el bloque compartido ocupan todo el ancho, con el texto dentro del margen */
  #sp-page-builder .page-content > .ja-hero > :is(.sppb-row-container, .sppb-container-inner),
  #sp-page-builder .page-content > .ja-cta-holder > :is(.sppb-row-container, .sppb-container-inner) { padding-left: 0 !important; padding-right: 0 !important; }
  .ja-hero-slider .sppb-item.sppb-item-has-bg .sppb-carousel-item-inner,
  .ja-hero-slider .sppb-item.sppb-item-has-bg:has(.ja-slide--right) .sppb-carousel-item-inner { padding-left: 64px; padding-right: 64px; }

  /* Tarjetas con fondo propio: aire interior cómodo */
  .ja-eje > .sppb-row-container > .sppb-row { padding: 28px 24px; }
  .ja-ini__panel, .ja-checklist, .ja-filter, .ja-form-card, .ja-info-box { padding: 24px; }
  .ja-card__body { padding: 20px 20px 0; }

  /* Banners de título y vista de lectura */
  .ja-page-banner__inner, .ja-read, .ja-read__more { padding-left: var(--ja-gutter); padding-right: var(--ja-gutter); }

  /* Texto justificado en pantallas estrechas deja huecos: se alinea a la izquierda */
  .ja-prose--justify p, .ja-prose p.ja-justify { text-align: left; }
}
@media (max-width: 767.98px) {
  /* Móvil: todo apilado, sin desplazamiento lateral */
  #sp-page-builder .sppb-section .sppb-row,
  .mod-sppagebuilder .sppb-section .sppb-row { margin-left: 0 !important; margin-right: 0 !important; }
  #sp-page-builder .sppb-section .sppb-row > [class*="sppb-col-"],
  .mod-sppagebuilder .sppb-section .sppb-row > [class*="sppb-col-"] { padding-left: 0 !important; padding-right: 0 !important; }
  .ja-bf__img { height: 260px; }
  .ja-hero-slider .sppb-item.sppb-item-has-bg .sppb-carousel-item-inner,
  .ja-hero-slider .sppb-item.sppb-item-has-bg:has(.ja-slide--right) .sppb-carousel-item-inner { padding: 0 56px 32px; }
  .ja-hero-slider .sppb-carousel-arrow { width: 40px; height: 40px; }
  .ja-split .ja-split__media { margin-bottom: 8px; }
  .ja-circle img { max-width: 260px; }
  #sp-bottom.ja-footer > .row { padding: 0 24px; }
  /* Secciones de Recursos: cuadrícula de 2 columnas, todas visibles */
  .ja-chipnav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
  .ja-chipnav a { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 44px;
    padding: 8px 10px; font-size: 1.4rem; line-height: 1.2; text-align: center; }
  .ja-formats { gap: 6px; }
  .ja-formats__label { flex: 0 0 100%; margin-bottom: 2px; }
}
@media (max-width: 767.98px) {
  .ja-filter__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .ja-filter__clear { white-space: nowrap; }
  .ja-filter__btn { flex: 1 1 100%; }
}
@media (max-width: 767.98px) {
  .ja-bf__text, .ja-bf__text p { font-size: 1.6rem; }
  .ja-br__title { font-size: 2.2rem; }
}
/* Listas de una columna (blog, destacados, documentos) se mantienen así en tablet */
@media (max-width: 991.98px) {
  .ja-cards:is(.ja-cards--doc, .ja-cards--blog, .ja-cards--feature, .ja-cards--news-feature, .ja-cards--blog-feature) { grid-template-columns: 1fr; }
}
.ja-channel a { display: inline-block; line-height: 1.4 !important; overflow-wrap: anywhere; }

/* Menú: el CSS personalizado heredado pinta «li.active > a:focus» en rojo y añade
   padding 0 7px !important. Se anulan en la cabecera; el foco solo se marca con teclado. */
#sp-header.ja-header .sp-megamenu-parent li > a:is(:focus, :active),
#sp-header.ja-header .sp-megamenu-parent li.active > a:is(:focus, :hover, :active) { background: transparent !important; color: var(--ja-navy); }
#sp-header.ja-header .sp-megamenu-parent > li > a,
#sp-header.ja-header .sp-megamenu-parent > li > span { padding-left: 0 !important; padding-right: 0 !important; }
#sp-header.ja-header .sp-megamenu-parent a:focus:not(:focus-visible) { outline: none; }
#sp-header.ja-header .sp-megamenu-parent a:focus-visible { outline: 2px solid var(--ja-blue); outline-offset: 4px; border-radius: 4px; }
#sp-header.ja-header .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:is(:focus, :active) { background: var(--ja-surface) !important; color: #1d4ed8; }

/* ==========================================================================
   17. ACCESIBILIDAD (fase 2026-10, mismos criterios que CEIJ)
   ========================================================================== */
:root { --ja-foco: #0a66c2; --ja-tactil-min: 44px; }

/* Foco visible — WCAG 2.4.7. Solo con teclado (:focus-visible), el ratón no lo ve. */
:focus-visible { outline: 3px solid var(--ja-foco) !important; outline-offset: 3px; border-radius: 4px; }
/* Sobre fondos oscuros o de color el azul no se distingue: se invierte a blanco */
:is(.ja-hero, .ja-recursos, .ja-novedades, .ja-involucrate, .ja-page-banner, .ja-mt, .ja-rcard, .ja-footer__bottom) :focus-visible,
.ja-mt:focus-visible, .ja-rcard:focus-visible { outline-color: var(--ja-white) !important; }
/* …salvo dentro de las tarjetas blancas de esas secciones (Novedades del inicio): ahí vuelve el azul */
.ja-novedades .sppb-addon-article :focus-visible, .ja-novedades .sppb-addon-article:focus-visible { outline-color: var(--ja-foco) !important; }
/* Sobre el gris #b3b3b3 de cabecera y pie el azul da 2,71:1; este da 4,64:1 (WCAG 1.4.11) */
:is(#sp-header.ja-header, #sp-bottom.ja-footer) :focus-visible { outline-color: #004775 !important; }
/* Los textos con tabindex reciben el mismo foco que los enlaces (3 px continuo) */

/* Enlace para saltar al contenido — WCAG 2.4.1 */
.ja-saltar {
  position: absolute; left: -9999px; top: 0; z-index: 10000;
  padding: 14px 22px; background: var(--ja-navy); color: var(--ja-white) !important;
  font-family: var(--ja-font); font-size: 1rem; font-weight: var(--ja-fw-bold); border-radius: 0 0 8px 0;
}
.ja-saltar { transition: none !important; }
.ja-saltar:focus { left: 0; }
#sp-main-body:focus { outline: none; }

/* Objetivos táctiles mínimos — WCAG 2.5.8 */
.sppb-btn, .ja-pill, .ja-btn-navy, .ja-nc__btn, .ja-filter__btn, .ja-pager button, .ja-news__arrow,
.ja-chipnav a, .ja-formats__chip, #offcanvas-toggler, .close-offcanvas, .offcanvas-menu-toggler,
.ja-mt__btn, .ja-rc__actions a {
  min-height: var(--ja-tactil-min);
}
/* Con la altura mínima el texto quedaba arriba: se centra vertical y horizontalmente */
.sppb-btn:not(.sppb-btn-block) { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.sppb-btn.sppb-btn-block { display: flex; align-items: center; justify-content: center; }
/* Iconos sociales: 30 px visibles (Figma) con área pulsable de 44 px por una capa invisible */
.ja-social-icons .sppb-icons-group-list li a, .ja-share a { position: relative; min-height: 0; min-width: 0; }
.ja-social-icons .sppb-icons-group-list li a::after, .ja-share a::after { content: ""; position: absolute; inset: -7px; }
.ja-rc__actions a { display: inline-flex; align-items: center; }
.ja-pager .ja-pager__n { min-width: var(--ja-tactil-min); }

/* Menú abierto por teclado (ja-a11y.js añade .ja-abierto con el foco) */
#sp-header.ja-header .sp-megamenu-parent .sp-has-child.ja-abierto > .sp-dropdown.sp-dropdown-main { display: block; opacity: 1; visibility: visible; top: 100%; transform: none; }

/* Rótulos convertidos en encabezados: las etiquetas envueltas no generan caja */
.ja-rotulo-encabezado { display: contents; margin: 0; font: inherit; color: inherit; }

/* Movimiento reducido — WCAG 2.3.3 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Solo para lectores de pantalla */
.ja-solo-lector { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Contraste mínimo 4,5:1 (WCAG 1.4.3): botones sobre azul del Figma (#3b82f6 = 3,68:1) */
.ja-hero-slider .sppb-carousel-text .sppb-btn,
:is(.ja-btn--blue .sppb-btn, .sppb-btn.ja-btn--blue) { background: #196cf4; border-color: #196cf4; }

/* Redimensionamiento (WCAG 1.4.4): Bootstrap 3 fija html { font-size: 10px } en absoluto y
   anula el tamaño de letra elegido en el navegador. 62.5% da los mismos 10 px por defecto
   pero respeta la preferencia del usuario; todos los tamaños de esta hoja van en rem. */
html { font-size: 62.5%; }
body { font-size: 1.6rem; }
/* Enlaces dentro de texto: subrayados, no solo por color (WCAG 1.4.1) */
.sppb-form-check-label a, .ja-prose a, .ja-read__body a, .ja-aside__card a, .ja-cat-head__sub a { text-decoration: underline; }
/* Panel móvil: botón cerrar como círculo de 44 px y foco blanco sobre el fondo oscuro */
.offcanvas-menu .close-offcanvas { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.offcanvas-menu .close-offcanvas i { line-height: 1; }
.offcanvas-menu :focus-visible { outline-color: var(--ja-white) !important; }

/* ==========================================================================
   18. Contacto por Visforms: mismo HTML y aspecto que el formulario del diseño
   ========================================================================== */
.ja-form .ja-vf { display: flex; flex-wrap: wrap; }
.ja-form .ja-vf .sppb-form-group { width: 100%; }
@media (min-width: 768px) { .ja-form .ja-vf .sppb-form-group.ja-vf__half { width: 50%; } }
.ja-form .ja-vf .sppb-form-check, .ja-form .ja-vf .sppb-form-builder-btn { width: 100%; }
.ja-form .ja-vf .sppb-form-control { width: 100%; }
.ja-vf-ok { margin: 0 0 24px; padding: 14px 18px; border: 1px solid #b7dfc0; border-left: 4px solid var(--ja-green); border-radius: 8px; background: #edf8f0; font-family: var(--ja-font-text); font-size: 1.5rem; line-height: 1.5; color: #1b4d2a; }
.ja-vf-ok:focus { outline: none; }
/* El botón ancho del móvil se alinea con el borde derecho de los campos */
.ja-form .ja-vf .sppb-form-builder-btn, .ja-form .ja-vf .sppb-form-check { padding-right: 12px; }

/* Altos de los banners según las versiones del diseño (ver js/ja-banners.js):
   tableta 800×420 y móvil 402×420 (slider) / 402×220 (banners internos) */
@media (min-width: 576px) and (max-width: 991.98px) {
  .ja-page-banner, .ja-page-banner--article { min-height: 420px; }
}
@media (max-width: 575.98px) {
  .ja-hero-slider .sppb-carousel-inner > .sppb-item { height: 420px; }
  .ja-page-banner, .ja-page-banner--article { min-height: 220px; }
}

/* Contraste en contenido heredado (WCAG 1.4.3): el cian #00b1df viene escrito en línea en módulos
   y páginas antiguas (2,51:1 sobre blanco); se lleva al cian del rediseño #007e9d (4,70:1). */
[style*="color: #00b1df" i]:not([style*="background-color: #00b1df" i]),
[style*="color:#00b1df" i]:not([style*="background-color:#00b1df" i]) { color: #007e9d !important; }
/* Botón «Limpiar» (filtros de etiquetas): blanco sobre #d9534f daba 3,96:1; #c9302c da 5,33:1 */
.btn.btn-secondary { background-color: #c9302c !important; border-color: #c9302c !important; color: #fff !important; }

/* ==========================================================================
   19. Ajustes del Figma del 23/10/2026 (correcciones de diseño de Conamaj)
   ========================================================================== */
/* Pie: textos en #00203B (7,9:1 sobre el gris #B3B3B3) */
#sp-bottom.ja-footer, #sp-bottom.ja-footer a, #sp-bottom.ja-footer p,
#sp-bottom.ja-footer .ja-footer__links ul li a, .sp-module .ja-footer__contact > li,
.ja-footer__links h3, .ja-footer__copy p, .ja-footer__legal p { color: #00203b !important; }
:is(#sp-header.ja-header, #sp-bottom.ja-footer) :focus-visible { outline-color: #00203b !important; }
/* Iniciativas: «Labor Comunitaria» en #00203B y «Proyectos Especiales» en el verde #3A530C */
.ja-accent-cyan .ja-ini__panel-title h3, .ja-accent-cyan .ja-ini__panel-title [role="heading"] { color: #00203b; }

/* ==========================================================================
   20. «¿Qué es Justicia Abierta?» (Figma 830:3017): Concepto · Principios · Política · Comisión · Antecedentes
   ========================================================================== */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.ja-qja-sec { background: var(--ja-white); }
.ja-qja-sec--gris { background: #f5f6f7; }
[id="concepto"], [id="principios"], [id="politica"], [id="comision"], [id="antecedentes"] { scroll-margin-top: 90px; }
.ja-qja-sec .sppb-addon-wrapper { margin: 0; }

/* Navegación interna (botones de píldora bajo el banner) */
.ja-qja__navrow { border-bottom: 1px solid #e5e7eb; background: var(--ja-white); }
.ja-qja__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 16px 12px; list-style: none; }
.ja-qja__nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #1f4e8c; border-radius: 50px;
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: #1f4e8c; text-decoration: none; }
.ja-qja__nav a:hover, .ja-qja__nav a[aria-current] { background: #1f4e8c; color: var(--ja-white); }

/* Encabezado numerado de cada bloque */
.ja-qja__kicker { margin: 0 0 6px; font-family: var(--ja-font); font-size: 1.3rem; font-weight: var(--ja-fw-bold); letter-spacing: 1.5px; text-transform: uppercase; color: #1f4e8c; }
.ja-qja__title { margin: 0; padding-bottom: 14px; position: relative; font-family: var(--ja-font); font-size: 3.6rem; font-weight: var(--ja-fw-black); line-height: 1.15; letter-spacing: -.3px; color: #0b2042; }
.ja-qja__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 42px; height: 3px; background: #1f4e8c; }

/* Texto + foto */
.ja-qja__split .sppb-row { align-items: flex-start; }
.ja-qja__split .sppb-row > [class*="sppb-col-"] { padding: 0 24px !important; }
.ja-qja__lead { margin: 0 0 22px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); line-height: 1.4 !important; color: #0b2042; }
.ja-qja__sub { margin: 0 0 14px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); color: #1f4e8c; }
.ja-qja__prose p { margin: 0 0 16px; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.6 !important; color: #1e293b; }
.ja-qja__prose--ancho { max-width: 880px; }
.ja-qja__img img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px 12px 75px 12px; }
.ja-qja__split--right .ja-qja__media { padding-top: 36px; }
.sppb-btn.ja-qja__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px; padding: 0 22px; border: 0; border-radius: 50px;
  background: #1f4e8c; font-family: var(--ja-font); font-size: 1.3rem; font-weight: var(--ja-fw-bold); letter-spacing: .3px; color: var(--ja-white); }
.sppb-btn.ja-qja__btn:hover { background: #0b2042; color: var(--ja-white); }

/* Principios: 4 tarjetas con borde de color a la izquierda */
.ja-qja__principios .sppb-row > [class*="sppb-col-"] { padding: 0 14px 24px !important; display: flex; }
.ja-qja__pcard { width: 100%; padding: 30px 26px; border-radius: 18px; border-left: 7px solid var(--ja-p); background: var(--ja-white); box-shadow: 0 6px 16px rgba(4, 30, 66, .07); }
.ja-qja__pcard--blue { --ja-p: #1f5aa6; } .ja-qja__pcard--green { --ja-p: #2f6b1f; } .ja-qja__pcard--red { --ja-p: #9b1c1f; } .ja-qja__pcard--navy { --ja-p: #1a4f99; }
.ja-qja__pcard > .sppb-column-addons { display: flex; flex-direction: column; height: 100%; }
.ja-qja__num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%;
  background: color-mix(in srgb, var(--ja-p) 10%, white); font-family: var(--ja-font); font-size: 1.8rem; font-weight: var(--ja-fw-black); color: var(--ja-p); }
.ja-qja__pcard-body h3 { margin: 0 0 22px; font-family: var(--ja-font); font-size: 2.4rem; font-weight: var(--ja-fw-black); letter-spacing: 0; color: var(--ja-p); }
.ja-qja__pcard .sppb-addon-wrapper:has(.ja-qja__pbtn) { margin-top: auto; }
.sppb-btn.ja-qja__pbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1.5px solid #1f4e8c; border-radius: 50px; background: transparent;
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: #1f4e8c; }
.sppb-btn.ja-qja__pbtn:hover { background: #1f4e8c; color: var(--ja-white); }

/* Comisión: recuadro oscuro con el enlace a la organización de sociedad civil */
.ja-qja__box { padding: 34px 40px; border-radius: 20px; background: #0f1d3d; }
.ja-qja__box > .sppb-addon-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.ja-qja__box p { margin: 0; max-width: 1140px; font-family: var(--ja-font); font-size: 2.2rem; font-weight: var(--ja-fw-bold); line-height: 1.4 !important; color: var(--ja-white); }
.ja-qja__boxbtn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 54px; padding: 0 32px; border-radius: 50px; background: var(--ja-white);
  font-family: var(--ja-font); font-size: 1.5rem; font-weight: var(--ja-fw-bold); color: #1f4e8c !important; text-decoration: none !important; text-align: center; }
.ja-qja__boxbtn:hover { background: #dbe5f3; }
.ja-qja__box :focus-visible { outline-color: var(--ja-white) !important; }

/* Línea de tiempo «El devenir de una Justicia abierta» */
.ja-tl { padding: 10px 0 0; }
.ja-tl__pre { margin: 0; font-family: var(--ja-font); font-size: 1.8rem; font-weight: var(--ja-fw-bold); color: #475569; }
.ja-tl__title { margin: 0 0 40px; padding-bottom: 12px; position: relative; font-family: var(--ja-font); font-size: 3.2rem; font-weight: var(--ja-fw-black); color: #1f4e8c; }
.ja-tl__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; background: #1f4e8c; }
.ja-tl--lavanda { --ja-tl: #8a93c9; } .ja-tl--durazno { --ja-tl: #f2c68c; } .ja-tl--verde { --ja-tl: #72bf4a; } .ja-tl--lima { --ja-tl: #cddf6b; }
.ja-tl--celeste { --ja-tl: #66add1; } .ja-tl--turquesa { --ja-tl: #4bb3a6; } .ja-tl--amarillo { --ja-tl: #f0dc4a; } .ja-tl--rosa { --ja-tl: #f2bcd5; }
.ja-tl--morado { --ja-tl: #a990c8; } .ja-tl--salmon { --ja-tl: #ef8f80; }
.ja-tl__list { margin: 0; padding: 0; list-style: none; }
.ja-tl__card { padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--ja-tl) 70%, white); border-top: 4px solid var(--ja-tl); border-radius: 10px; background: var(--ja-white);
  box-shadow: 0 4px 10px rgba(4, 30, 66, .05); }
.ja-tl__card h4 { margin: 0 0 4px; font-family: var(--ja-font); font-size: 1.5rem; font-weight: var(--ja-fw-bold); line-height: 1.25; color: #0b2042; }
.ja-tl__card p { margin: 0 0 10px; font-family: var(--ja-font-text); font-size: 1.3rem; line-height: 1.45 !important; color: #334155; }
.ja-tl__card p:last-child { margin-bottom: 0; }
.ja-tl__year { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border: 4px solid var(--ja-white); border-radius: 50%;
  background: var(--ja-tl); box-shadow: 0 3px 8px rgba(4, 30, 66, .18); font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-black); color: #0b2042; }

/* Escritorio: dos filas de 7 años; tarjetas alternadas arriba y abajo de la línea punteada */
@media (min-width: 992px) {
  .ja-tl__list { display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 14px; row-gap: 0; }
  .ja-tl__item { position: relative; display: grid; grid-template-rows: 190px 76px 190px; justify-items: center; }
  .ja-tl__year { grid-row: 2; position: relative; z-index: 1; }
  .ja-tl__item::before { content: ""; position: absolute; left: -7px; right: -7px; top: calc(190px + 38px); border-top: 2px dashed #9aa6bd; }
  .ja-tl__item:nth-child(7n+1)::before { left: 50%; } .ja-tl__item:nth-child(7n)::before, .ja-tl__item:last-child::before { right: 50%; }
  .ja-tl__card { position: relative; width: calc(100% + 60px); max-width: 230px; }
  .ja-tl__item--arriba .ja-tl__card { grid-row: 1; align-self: end; margin-bottom: 16px; }
  .ja-tl__item--abajo .ja-tl__card { grid-row: 3; align-self: start; margin-top: 16px; }
  .ja-tl__item--arriba .ja-tl__card::after, .ja-tl__item--abajo .ja-tl__card::after { content: ""; position: absolute; left: 50%; width: 2px; height: 16px; background: #9aa6bd; }
  .ja-tl__item--arriba .ja-tl__card::after { top: 100%; } .ja-tl__item--abajo .ja-tl__card::after { bottom: 100%; }
}
/* Tableta y móvil: lista vertical con el año a la izquierda */
@media (max-width: 991.98px) {
  .ja-tl__list { position: relative; padding-left: 4px; }
  .ja-tl__list::before { content: ""; position: absolute; left: 41px; top: 0; bottom: 0; border-left: 2px dashed #9aa6bd; }
  .ja-tl__item { position: relative; display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
  .ja-tl__year { order: -1; flex: 0 0 auto; position: relative; z-index: 1; }
  .ja-tl__card { flex: 1 1 auto; }
  .ja-qja__box > .sppb-addon-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ja-qja__title { font-size: 3rem; }
}
@media (max-width: 767.98px) {
  .ja-qja__split .sppb-row > [class*="sppb-col-"] { padding: 0 !important; }
  .ja-qja__split--right .ja-qja__media { padding-top: 24px; }
  .ja-qja__media { order: 2; }
  .ja-qja__lead { font-size: 1.8rem; }
}
@media (max-width: 767.98px) {
  .ja-qja__box { padding: 24px 22px; }
  .ja-qja__box p { font-size: 1.8rem; }
  .ja-qja__boxbtn { min-height: 48px; padding: 0 20px; font-size: 1.4rem; white-space: nowrap; }
}

/* ==========================================================================
   21. Iniciativas: Modelo de Juzgados Abiertos, Otras iniciativas y sus páginas (Figma 23-10-2026)
   ========================================================================== */
.ja-oi-row .sppb-addon-wrapper { margin: 0; }
.ja-oi__img img { display: block; width: 100%; max-height: 470px; object-fit: cover; border-radius: 16px 16px 90px 16px; }
.ja-oi p { margin: 0 0 18px; font-family: var(--ja-font-text); font-size: 1.7rem; line-height: 1.65 !important; color: #1e293b; }
.ja-oi__h2 { margin: 28px 0 18px; font-family: var(--ja-font); font-size: 2.2rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: #0b2042; }
/* Principios presentes */
.ja-oi__principios { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 22px; }
.ja-oi__plabel { font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: #0b2042; }
.ja-oi__principios ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ja-oi__chip { padding: 4px 12px; border-radius: 50px; font-family: var(--ja-font); font-size: 1.3rem; font-weight: var(--ja-fw-bold); }
.ja-oi__chip--transparencia { background: #e3ecf8; color: #1f4e8c; }
.ja-oi__chip--participacion { background: #e6f0dc; color: #3a530c; }
.ja-oi__chip--colaboracion { background: #f8e3e3; color: #9b1c1f; }
.ja-oi__chip--inclusion { background: #ece5f5; color: #5b3d8a; }
/* Recuadro «Para más información» */
.ja-oi__mas { margin: 26px 0 30px; padding: 20px 24px; border-radius: 12px; background: #f1f3f2; }
.ja-oi__mas p { margin: 0 0 12px; font-size: 1.5rem; }
.ja-oi__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ja-oi__btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border: 1.5px solid #1f4e8c; border-radius: 50px; background: #1f4e8c;
  font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: var(--ja-white) !important; text-decoration: none !important; }
.ja-oi__btn:hover { background: #0b2042; border-color: #0b2042; }
.ja-oi__btn--sec { background: transparent; color: #1f4e8c !important; }
.ja-oi__btn--sec:hover { background: #1f4e8c; color: var(--ja-white) !important; }
/* Navegación entre iniciativas */
.ja-oi__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.ja-oi__back, .ja-oi__next { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 50px; font-family: var(--ja-font);
  font-size: 1.4rem; font-weight: var(--ja-fw-bold); text-decoration: none !important; }
.ja-oi__back { border: 1.5px solid #1f4e8c; color: #1f4e8c !important; }
.ja-oi__back:hover { background: #1f4e8c; color: var(--ja-white) !important; }
.ja-oi__next { background: #1f4e8c; color: var(--ja-white) !important; }
.ja-oi__next:hover { background: #0b2042; }
/* Modelo: acciones con check, cita y publicación */
.ja-oi__checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.ja-oi__checks li { position: relative; padding: 16px 18px 16px 52px; border-radius: 12px; background: #eef2ea; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.45; color: #1e293b; }
.ja-oi__checks li::before { content: "✓"; position: absolute; left: 16px; top: 15px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: #3a530c; font-size: 1.4rem; font-weight: 700; color: var(--ja-white); }
.ja-oi__quote { margin: 0 0 24px; padding: 20px 24px; border-left: 5px solid #3a530c; border-radius: 12px; background: #f1f3f2; }
.ja-oi__quote p { margin: 0; font-size: 1.7rem; }
.ja-oi__pub { display: flex; align-items: center; gap: 22px; margin: 6px 0 30px; padding: 20px; border-radius: 14px; background: #f1f3f2; }
.ja-oi__pubimg img { display: block; width: 130px; border-radius: 6px; box-shadow: 0 4px 10px rgba(4, 30, 66, .15); }
.ja-oi__pubkicker { margin: 0 0 4px !important; font-family: var(--ja-font) !important; font-size: 1.2rem !important; font-weight: var(--ja-fw-bold); letter-spacing: 1px; text-transform: uppercase; color: #3a530c !important; }
.ja-oi__pubtitle { margin: 0 0 6px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); letter-spacing: 0; color: #0b2042; }
.ja-oi__pubfile { margin: 0 0 12px !important; font-size: 1.4rem !important; color: #475569 !important; }
/* Estado Abierto: documentos */
.ja-oi__docs { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 10px; }
.ja-oi__docs a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 16px; border: 1px solid #dfe3e8; border-radius: 10px; background: var(--ja-white);
  font-family: var(--ja-font-text); font-size: 1.6rem; color: #1e293b !important; text-decoration: none !important; }
.ja-oi__docs a:hover { border-color: #1f4e8c; }
.ja-oi__pdf { flex: 0 0 auto; padding: 3px 7px; border-radius: 4px; background: #f8e3e3; font-family: var(--ja-font); font-size: 1.1rem; font-weight: var(--ja-fw-bold); color: #9b1c1f; }
/* Otras iniciativas: filtros y tarjetas */
.ja-oi__filtros ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; padding: 0; list-style: none; }
.ja-oi__filtro { min-height: 44px; padding: 0 18px; border: 1.5px solid #1f4e8c; border-radius: 50px; background: var(--ja-white); font-family: var(--ja-font);
  font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: #1f4e8c; cursor: pointer; }
.ja-oi__filtro[aria-pressed="true"], .ja-oi__filtro:hover { background: #1f4e8c; color: var(--ja-white); }
.ja-oi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; align-items: start; }
.ja-oi-card { padding: 26px 24px; border: 1px solid #e2e8f0; border-radius: 14px; background: var(--ja-white); box-shadow: 0 6px 14px rgba(4, 30, 66, .06); }
.ja-oi-card[hidden] { display: none; }
.ja-oi-card__num { display: block; margin-bottom: 8px; font-family: var(--ja-font); font-size: 2.8rem; font-weight: var(--ja-fw-black); color: #3a530c; }
.ja-oi-card__title { margin: 0 0 10px; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); line-height: 1.25; letter-spacing: 0; color: #0b2042; }
.ja-oi .ja-oi-card__p { margin: 0 0 12px; font-size: 1.5rem; color: #475569; }
.ja-oi-card__link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--ja-font); font-size: 1.5rem; font-weight: var(--ja-fw-bold); color: #1f4e8c !important; text-decoration: none !important; }
.ja-oi-card__link:hover { text-decoration: underline !important; }
@media (max-width: 991.98px) { .ja-oi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767.98px) {
  .ja-oi-grid, .ja-oi__checks { grid-template-columns: 1fr; }
  .ja-oi__pub { flex-direction: column; align-items: flex-start; }
  .ja-oi__img img { border-radius: 12px 12px 50px 12px; }
}
.ja-oi__img .sppb-addon-content, .ja-oi__img .sppb-addon-single-image-container { display: block; width: 100%; }
.ja-oi__img img { width: 100% !important; height: 470px; }
@media (max-width: 767.98px) { .ja-oi__img img { height: 240px; } }

/* ==========================================================================
   22. RECURSOS CON PORTADA (Publicaciones, Documentos de interés, Material informativo)
   ========================================================================== */
.ja-intro-cat { margin: 0 0 24px; font-family: var(--ja-font); font-size: 1.8rem; font-weight: var(--ja-fw-bold); line-height: 1.4 !important; color: var(--ja-navy); }
.ja-cards--cover { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 32px; }
.ja-cv { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ja-cv__media { display: block; position: relative; width: 100%; overflow: hidden; border-radius: 8px; background: #f1f5f9; box-shadow: 0 6px 14px rgba(4, 30, 66, .16); }
.ja-cv__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; transition: transform .4s ease; }
.ja-cv--video .ja-cv__img { aspect-ratio: 16 / 9; object-position: center; }
.ja-cv:hover .ja-cv__img { transform: scale(1.03); }
.ja-cv__title { margin: 6px 0 0; font-family: var(--ja-font); font-size: 1.8rem; font-weight: var(--ja-fw-bold); line-height: 1.3; letter-spacing: 0; color: var(--ja-navy); }
.ja-cv__btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 20px; border: 2px solid var(--ja-cat-blue); border-radius: 50px;
  background: var(--ja-white); font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); line-height: 1.2; color: var(--ja-cat-blue);
}
.ja-cv__btn:hover, .ja-cv__btn:focus-visible { background: var(--ja-cat-blue); color: var(--ja-white); }
.ja-cv-group { margin: 56px 0 24px; }
.ja-cards--cover-video { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 1199px) { .ja-cards--cover { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) { .ja-cards--cover { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; } }
@media (max-width: 575px) {
  .ja-cards--cover, .ja-cards--cover-video { grid-template-columns: 1fr; gap: 40px; }
  .ja-cards--cover .ja-cv__media { max-width: 300px; }
  .ja-cv__title { font-size: 1.7rem; }
}
.ja-w-cat.ja-w-ini > .sppb-row-container { max-width: 1140px; }
.ja-qja__prose a, .ja-qja__lead a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   23. PRINCIPIOS: tarjetas de enlace a sitios (texto de Conamaj, revisión 22-10-2026)
   ========================================================================== */
.ja-sitios-box { --ja-sit: #2d6ea4; }
.ja-sitios-box.ja-accent-green { --ja-sit: #3a530c; }
.ja-sitios { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 420px)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ja-sitios > li { margin: 0; }
.ja-sitio {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px 64px 28px 28px;
  border: 1px solid #d8e2e8; border-top: 7px solid var(--ja-sit); border-radius: 12px; background: #f4f7fa;
  box-shadow: 0 6px 14px rgba(4, 30, 66, .08); text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease;
}
.ja-sitio:hover, .ja-sitio:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(4, 30, 66, .16); }
.ja-sitio__icon {
  position: absolute; top: 24px; right: 24px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ja-sit); font-size: 1.8rem; font-weight: 700; line-height: 1; color: #fff;
}
.ja-sitio__name { font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); line-height: 1.3; color: var(--ja-navy); }
.ja-sitio__desc { font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5; color: #1e293b; }
.ja-sitio__url { margin-top: auto; font-family: var(--ja-font); font-size: 1.4rem; font-weight: var(--ja-fw-bold); color: var(--ja-sit); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 575px) { .ja-sitio { padding: 24px 58px 24px 20px; } .ja-sitio__name { font-size: 1.8rem; } }

/* ==========================================================================
   24. MAPA DEL SITIO (hallazgo DTI 22-10-2026): módulo de menú 268
   ========================================================================== */
.ja-mapa__menu.nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.ja-mapa__menu.nav::before, .ja-mapa__menu.nav::after { display: none; }
.ja-mapa__menu.nav > li { float: none; margin: 0; padding: 24px; border: 1px solid #d8e2e8; border-top: 7px solid #2d6ea4; border-radius: 12px; background: #f4f7fa; }
.ja-mapa__menu.nav > li > a { display: inline; padding: 0; background: none; font-family: var(--ja-font); font-size: 2rem; font-weight: var(--ja-fw-bold); line-height: 1.3; color: var(--ja-navy); }
.ja-mapa__menu ul { margin: 14px 0 0; padding: 0 0 0 18px; list-style: disc; }
.ja-mapa__menu ul li { margin: 0 0 8px; color: #2d6ea4; }
.ja-mapa__menu ul a { padding: 0; font-family: var(--ja-font-text); font-size: 1.6rem; line-height: 1.5; color: #1f4e8c; text-decoration: underline; text-underline-offset: 2px; }
.ja-mapa__menu a:hover, .ja-mapa__menu a:focus-visible { background: none; color: var(--ja-navy); text-decoration: underline; }

/* ==========================================================================
   25. NIVEL DE ENCABEZADO CORREGIDO SIN CAMBIAR EL ASPECTO (hallazgos DTI 22-10-2026)
   La etiqueta cambia (h2/h3/h4…) pero se conserva el estilo que tenía el elemento.
   ========================================================================== */
h2.ja-como-parrafo { margin: 0 0 10px; padding: 0; font-family: inherit; font-size: inherit; font-weight: 400; line-height: 28.5px !important; color: inherit; letter-spacing: normal; text-transform: none; }
h3.ja-como-h2 { margin: 20px 0 10px; font-size: 3rem; font-weight: var(--ja-fw-black); line-height: 1.1; letter-spacing: -0.5px; }
h4.ja-como-h3 { margin: 20px 0 10px; font-size: 2.4rem; font-weight: var(--ja-fw-black); line-height: 1.1; letter-spacing: -0.5px; }
h5.ja-como-h4 { margin: 10px 0; font-size: 1.8rem; font-weight: var(--ja-fw-bold); line-height: 1.1; letter-spacing: 0; }

/* Fila del <h1> de la portada (solo lectores de pantalla): no ocupa espacio */
.ja-h1-portada-row { height: 0; margin: 0 !important; padding: 0 !important; overflow: hidden; }
.ja-h1-portada-row .sppb-addon-wrapper { margin: 0 !important; }
