/* =========================================================
   Sistema de diseño JEP — jep-ds.css v0.1.1
   · Variables --jep-* globales (no pintan nada por sí solas).
   · Componentes solo dentro de un contenedor .jep-ds (activación por página).
   · Texto mínimo 16px (Res. 1519 de 2020, Anexo 1).
   · Cargar desde la Style Library. Requiere Roboto (300–900) y
     Roboto Slab (400, 700, 900) cargadas en la página maestra.
   ========================================================= */

/* ---------- Color, espaciado, radios y sombras ---------- */
:root {
  --jep-navy-950: #0b121f;
  --jep-navy-800: #133e65;
  --jep-navy-600: #255280;
  --jep-blue-500: #007cae;
  --jep-slate-500: #476e91;
  --jep-teal-700: #135977;
  --jep-olive-700: #5f6e30;
  --jep-lime-400: #98c438;
  --jep-yellow-300: #f3e81d;
  --jep-gold-400: #e6b962;
  --jep-surface-0: #ffffff;
  --jep-surface-50: #f4f6f8;
  --jep-line-200: #d7dfe6;
  --jep-ink: var(--jep-navy-950);
  --jep-ink-muted: var(--jep-slate-500);
  --jep-link: var(--jep-blue-500);
  --jep-focus: var(--jep-blue-500);
  --jep-space-1: 4px;
  --jep-space-2: 8px;
  --jep-space-3: 12px;
  --jep-space-4: 16px;
  --jep-space-5: 20px;
  --jep-space-6: 24px;
  --jep-space-8: 32px;
  --jep-space-12: 48px;
  --jep-space-16: 64px;
  --jep-radius-sm: 4px;
  --jep-radius-md: 10px;
  --jep-radius-pill: 999px;
  --jep-shadow-sm: 0 4px 12px rgba(11,18,31,0.09);
  --jep-shadow-md: 0 6px 20px rgba(11,18,31,0.18);
  --jep-shadow-lg: 0 12px 32px rgba(11,18,31,0.28);
}

/* ---------- Tipografía y ajustes globales ---------- */

:root {
  --jep-font-sans: Roboto, Arial, sans-serif;
  --jep-font-slab: "Roboto Slab", Georgia, serif;

  --jep-fs-minimo: 1rem;        /* 16px — piso legal */
  --jep-fs-texto: 1.125rem;     /* 18px */
  --jep-fs-destacado: 1.25rem;  /* 20px */
  --jep-fs-subtitulo: 1.5rem;   /* 24px */
  --jep-fs-seccion: 1.75rem;    /* 28px */
  --jep-fs-titulo: 2.25rem;     /* 36px */
  --jep-fs-hero: clamp(2.5rem, 5vw, 3.5rem);

  --jep-fw-fino: 300;
  --jep-fw-normal: 400;
  --jep-fw-medio: 500;
  --jep-fw-semi: 600;
  --jep-fw-negrita: 700;
  --jep-fw-black: 900;

  --jep-lh-titulo: 1.2;
  --jep-lh-texto: 1.5;
  --jep-ls-etiqueta: 0.04em;

  --jep-pad-card: var(--jep-space-6);

  --jep-max-width: 1140px;      /* ancho máximo del contenido */
}

/* Densidad: cambia el padding, nunca la letra */
.jep-ds.jep-density-compact,
.jep-ds .jep-density-compact { --jep-pad-card: var(--jep-space-4); }

.jep-ds {
  font-family: var(--jep-font-sans);
  font-size: var(--jep-fs-texto);
  line-height: var(--jep-lh-texto);
  color: var(--jep-ink);
}

.jep-ds *:focus-visible {
  outline: 3px solid var(--jep-focus);
  outline-offset: 2px;
}

/* ---------- Títulos de página ---------- */
.jep-ds .jep-page-title {
  font-family: var(--jep-font-sans);
  font-size: var(--jep-fs-titulo);
  font-weight: var(--jep-fw-negrita);
  line-height: var(--jep-lh-titulo);
  color: var(--jep-navy-800);
  text-align: center;
  margin: 0 0 var(--jep-space-6);
}
.jep-ds .jep-lead {
  font-size: var(--jep-fs-destacado);
  font-weight: var(--jep-fw-fino);
  line-height: var(--jep-lh-texto);
  color: var(--jep-ink);
}

/* ---------- Botón ---------- */
.jep-ds .jep-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--jep-space-2);
  min-height: 48px;
  padding: 4px var(--jep-space-8);
  font-family: var(--jep-font-sans);
  font-size: var(--jep-fs-minimo);
  font-weight: var(--jep-fw-negrita);
  letter-spacing: var(--jep-ls-etiqueta);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.jep-ds .jep-btn--primary { background: var(--jep-navy-800); color: var(--jep-surface-0); }
.jep-ds .jep-btn--primary:hover { background: var(--jep-navy-600); }
.jep-ds .jep-btn--secondary { background: var(--jep-surface-0); color: var(--jep-navy-800); border-color: var(--jep-navy-800); }
.jep-ds .jep-btn--secondary:hover { background: var(--jep-surface-50); }
.jep-ds .jep-btn--link { background: transparent; color: var(--jep-link); padding-inline: 0; min-height: 0; text-transform: none; letter-spacing: 0; }
.jep-ds .jep-btn--link:hover { text-decoration: underline; }
/* Verdes (consulta y divulgación) */
.jep-ds .jep-btn--green { background: var(--jep-olive-700); color: var(--jep-surface-0); border-color: var(--jep-olive-700); }
.jep-ds .jep-btn--green:hover { background: var(--jep-navy-800); border-color: var(--jep-navy-800); }
.jep-ds .jep-btn--green-outline { background: transparent; color: var(--jep-olive-700); border-color: var(--jep-olive-700); }
.jep-ds .jep-btn--green-outline:hover { background: var(--jep-olive-700); color: var(--jep-surface-0); }
/* Sobre fondo oscuro (navy-950 / navy-800) */
.jep-ds .jep-btn--green-dark { background: transparent; color: var(--jep-lime-400); border-color: var(--jep-lime-400); }
.jep-ds .jep-btn--green-dark:hover { background: var(--jep-lime-400); color: var(--jep-navy-950); }

/* Un solo tipo de botón: rectangular. --servicio y --consulta quedan como alias obsoletos (no cambian nada). */
.jep-ds .jep-btn--servicio,
.jep-ds .jep-btn--consulta { border-radius: 0; }
.jep-ds .jep-btn--sm { min-height: 38px; padding: 2px var(--jep-space-6); }
.jep-ds .jep-btn.is-disabled,
.jep-ds .jep-btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

/* ---------- Etiqueta ---------- */
.jep-ds .jep-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: var(--jep-fs-minimo);
  font-weight: var(--jep-fw-negrita);
  letter-spacing: var(--jep-ls-etiqueta);
  text-transform: uppercase;
  line-height: 1.4;
  border-radius: var(--jep-radius-sm);
  background: var(--jep-lime-400);
  color: var(--jep-navy-950);
}
.jep-ds .jep-tag--olive { background: var(--jep-olive-700); color: var(--jep-surface-0); }
.jep-ds .jep-tag--teal { background: var(--jep-teal-700);  color: var(--jep-surface-0); }
.jep-ds .jep-tag--navy { background: var(--jep-navy-800);  color: var(--jep-surface-0); }

/* ---------- Chip / filtro ---------- */
.jep-ds .jep-chips {
  display: flex;
  gap: var(--jep-space-2);
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: var(--jep-space-1);
}
.jep-ds .jep-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--jep-space-2);
  min-height: 36px;
  padding: 4px var(--jep-space-4);
  font-size: var(--jep-fs-minimo);
  font-weight: var(--jep-fw-medio);
  color: var(--jep-navy-800);
  background: var(--jep-surface-0);
  border: 1.5px solid var(--jep-slate-500);
  border-radius: 0;
  cursor: pointer;
}
.jep-ds .jep-chip:hover { background: var(--jep-surface-50); }
.jep-ds .jep-chip.is-active { background: var(--jep-navy-800); border-color: var(--jep-navy-800); color: var(--jep-surface-0); }
.jep-ds .jep-chip-count { font-weight: var(--jep-fw-negrita); }

/* ---------- Tarjeta ---------- */
.jep-ds .jep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--jep-space-6);
}
.jep-ds .jep-card {
  display: flex;
  flex-direction: column;
  background: var(--jep-surface-0);
  border: 1px solid var(--jep-line-200);
  border-radius: var(--jep-radius-md);
  box-shadow: var(--jep-shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
.jep-ds .jep-card:hover { box-shadow: var(--jep-shadow-md); transform: translateY(-2px); }
.jep-ds .jep-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--jep-navy-800); }
.jep-ds .jep-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jep-ds .jep-card-media .jep-tag { position: absolute; top: var(--jep-space-3); left: var(--jep-space-3); }
.jep-ds .jep-card-body { display: flex; flex-direction: column; gap: var(--jep-space-2); padding: var(--jep-pad-card); }
.jep-ds .jep-card-meta { font-size: var(--jep-fs-minimo); font-weight: var(--jep-fw-medio); color: var(--jep-ink-muted); }
.jep-ds .jep-card-title {
  margin: 0;
  font-size: var(--jep-fs-destacado);
  font-weight: var(--jep-fw-semi);
  line-height: 1.25;
  color: var(--jep-navy-800);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jep-ds .jep-card-text {
  margin: 0;
  font-size: var(--jep-fs-minimo);
  line-height: var(--jep-lh-texto);
  color: var(--jep-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jep-ds .jep-card--soft { background: var(--jep-surface-50); border-color: transparent; box-shadow: none; }
.jep-ds .jep-card--soft:hover { box-shadow: var(--jep-shadow-sm); }
.jep-ds .jep-card--horizontal { flex-direction: row; }
.jep-ds .jep-card--horizontal .jep-card-media { flex: 0 0 120px; aspect-ratio: auto; }
.jep-ds .jep-card--featured { flex-direction: row; min-height: 320px; }
.jep-ds .jep-card--featured .jep-card-media { flex: 1 1 55%; aspect-ratio: auto; }
.jep-ds .jep-card--featured .jep-card-body { flex: 1 1 45%; justify-content: center; background: var(--jep-navy-800); color: var(--jep-surface-0); padding: var(--jep-space-8); }
.jep-ds .jep-card--featured .jep-card-title { color: var(--jep-surface-0); font-family: var(--jep-font-slab); font-size: var(--jep-fs-subtitulo); font-weight: var(--jep-fw-negrita); }
.jep-ds .jep-card--featured .jep-card-text,
.jep-ds .jep-card--featured .jep-card-meta { color: var(--jep-surface-0); }
@media (max-width: 640px) {
  .jep-ds .jep-card--featured { flex-direction: column; }
}

/* ---------- Acordeón ---------- */
.jep-ds .jep-accordion { display: flex; flex-direction: column; gap: var(--jep-space-2); }
.jep-ds .jep-accordion-item { border: 1px solid var(--jep-line-200); border-radius: var(--jep-radius-md); background: var(--jep-surface-0); overflow: hidden; }
.jep-ds .jep-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jep-space-4);
  width: 100%;
  padding: var(--jep-space-4) var(--jep-space-6);
  font-size: var(--jep-fs-texto);
  font-weight: var(--jep-fw-semi);
  color: var(--jep-navy-800);
  cursor: pointer;
  text-align: left;
}
.jep-ds .jep-accordion-header::after { content: "+"; font-size: var(--jep-fs-subtitulo); font-weight: var(--jep-fw-normal); line-height: 1; }
.jep-ds .jep-accordion-item.is-open .jep-accordion-header { background: var(--jep-navy-600); color: var(--jep-surface-0); }
.jep-ds .jep-accordion-item.is-open .jep-accordion-header::after { content: "−"; }
.jep-ds .jep-accordion-content { display: none; padding: var(--jep-space-4) var(--jep-space-6) var(--jep-space-6); }
.jep-ds .jep-accordion-item.is-open .jep-accordion-content { display: block; }
.jep-ds .jep-accordion--nested .jep-accordion-header { font-size: var(--jep-fs-minimo); padding: var(--jep-space-3) var(--jep-space-4); }

/* ---------- Pestañas ---------- */
.jep-ds .jep-tabs { display: flex; gap: var(--jep-space-1); border-bottom: 2px solid var(--jep-line-200); overflow-x: auto; }
.jep-ds .jep-tab {
  flex: 0 0 auto;
  padding: var(--jep-space-3) var(--jep-space-4);
  font-size: var(--jep-fs-minimo);
  font-weight: var(--jep-fw-semi);
  color: var(--jep-ink-muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}
.jep-ds .jep-tab:hover { color: var(--jep-navy-800); }
.jep-ds .jep-tab.is-active { color: var(--jep-navy-800); border-bottom-color: var(--jep-blue-500); }
.jep-ds .jep-tab-panel { padding: var(--jep-space-6) 0; }
.jep-ds .jep-tab-panel.is-hidden { display: none; }

/* ---------- Hero ---------- */
.jep-ds .jep-hero {
  position: relative;
  padding: var(--jep-space-16) var(--jep-space-8);
  background: var(--jep-navy-800);
  color: var(--jep-surface-0);
  overflow: hidden;
}
.jep-ds .jep-hero-media { position: absolute; inset: 0; }
.jep-ds .jep-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.jep-ds .jep-hero-media::after { content: ""; position: absolute; inset: 0; background: rgba(11, 18, 31, .72); }
.jep-ds .jep-hero-inner { position: relative; max-width: var(--jep-max-width); margin: 0 auto; }
.jep-ds .jep-hero-eyebrow { font-size: var(--jep-fs-minimo); font-weight: var(--jep-fw-negrita); letter-spacing: var(--jep-ls-etiqueta); text-transform: uppercase; color: var(--jep-lime-400); }
.jep-ds .jep-hero-title { margin: var(--jep-space-2) 0 var(--jep-space-4); font-family: var(--jep-font-slab); font-size: var(--jep-fs-hero); font-weight: var(--jep-fw-black); line-height: 1.1; }
.jep-ds .jep-hero-title em { font-family: var(--jep-font-sans); font-style: normal; font-weight: var(--jep-fw-fino); color: var(--jep-gold-400); }
.jep-ds .jep-hero-lead { margin: 0; font-size: var(--jep-fs-destacado); font-weight: var(--jep-fw-normal); }

/* ---------- Cifras ---------- */
.jep-ds .jep-stats { display: flex; flex-wrap: wrap; gap: var(--jep-space-8); }
.jep-ds .jep-stat { display: flex; flex-direction: column; gap: var(--jep-space-1); }
.jep-ds .jep-stat-num { font-family: var(--jep-font-slab); font-size: var(--jep-fs-titulo); font-weight: var(--jep-fw-black); line-height: 1; color: var(--jep-gold-400); }
.jep-ds .jep-stat-label { font-size: var(--jep-fs-minimo); font-weight: var(--jep-fw-medio); text-transform: uppercase; letter-spacing: var(--jep-ls-etiqueta); }

/* ---------- Selector de vista ---------- */
.jep-ds .jep-view-toggle { display: inline-flex; gap: var(--jep-space-2); align-items: center; }
.jep-ds .jep-view-toggle .jep-chip { min-height: 32px; }

/* ---------- Utilidades de accesibilidad ---------- */
.jep-ds .jep-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Miga de pan ---------- */
.jep-ds .jep-breadcrumb { font-size: var(--jep-fs-minimo); line-height: 1.4; }
.jep-ds .jep-breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--jep-space-1) var(--jep-space-2); margin: 0; padding: 0; list-style: none; }
.jep-ds .jep-breadcrumb-item { display: inline-flex; align-items: center; gap: var(--jep-space-2); color: var(--jep-ink-muted); font-weight: var(--jep-fw-medio); }
.jep-ds .jep-breadcrumb-item + .jep-breadcrumb-item::before { content: "/"; color: var(--jep-slate-500); font-weight: var(--jep-fw-normal); }
.jep-ds .jep-breadcrumb-item a { color: var(--jep-link); text-decoration: none; }
.jep-ds .jep-breadcrumb-item a:hover { text-decoration: underline; }
.jep-ds .jep-breadcrumb-item[aria-current="page"] { color: var(--jep-ink); font-weight: var(--jep-fw-semi); }
@media (max-width: 640px) {
  .jep-ds .jep-breadcrumb-item:not(:nth-last-child(-n+2)) { display: none; }
  .jep-ds .jep-breadcrumb-item:nth-last-child(2)::before { content: "← "; }
}

/* ---------- Fecha de actualización ---------- */
.jep-ds .jep-updated {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--jep-space-2) var(--jep-space-4);
  margin-top: var(--jep-space-12);
  padding-top: var(--jep-space-4);
  border-top: 1px solid var(--jep-line-200);
  font-size: var(--jep-fs-minimo);
  color: var(--jep-ink-muted);
}
.jep-ds .jep-updated-item { display: inline-flex; align-items: center; gap: var(--jep-space-2); }
.jep-ds .jep-updated-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.jep-ds .jep-updated-label { font-weight: var(--jep-fw-medio); }
.jep-ds .jep-updated time,
.jep-ds .jep-updated-value { font-weight: var(--jep-fw-negrita); color: var(--jep-ink); }

/* ---------- Sección de contenido ---------- */
.jep-ds .jep-section { margin-top: var(--jep-space-12); }
.jep-ds .jep-section-title {
  margin: 0 0 var(--jep-space-4);
  font-family: var(--jep-font-sans);
  font-size: var(--jep-fs-seccion);
  font-weight: var(--jep-fw-negrita);
  line-height: var(--jep-lh-titulo);
  color: var(--jep-navy-800);
}
.jep-ds .jep-section-subtitle { margin: var(--jep-space-6) 0 var(--jep-space-4); font-size: var(--jep-fs-destacado); font-weight: var(--jep-fw-semi); color: var(--jep-navy-800); }
.jep-ds .jep-section p { margin: 0 0 var(--jep-space-4); }

/* ---------- Canales de atención ---------- */
.jep-ds .jep-channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--jep-space-4); margin: 0; padding: 0; list-style: none; }
.jep-ds .jep-channel {
  display: flex; gap: var(--jep-space-3); align-items: flex-start;
  padding: var(--jep-space-4);
  background: var(--jep-surface-0);
  border: 1px solid var(--jep-line-200);
  border-radius: var(--jep-radius-md);
}
.jep-ds .jep-channel-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--jep-radius-pill); background: var(--jep-navy-800); color: var(--jep-surface-0); }
.jep-ds .jep-channel-icon svg { width: 20px; height: 20px; }
.jep-ds .jep-channel-label { display: block; font-size: var(--jep-fs-minimo); font-weight: var(--jep-fw-medio); color: var(--jep-ink-muted); }
.jep-ds .jep-channel-value { display: block; font-size: var(--jep-fs-minimo); font-weight: var(--jep-fw-negrita); color: var(--jep-ink); word-break: break-word; }
.jep-ds a.jep-channel-value { color: var(--jep-navy-800); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Nota / caja informativa ---------- */
.jep-ds .jep-note { padding: var(--jep-space-6); border-left: 0; border-radius: var(--jep-radius-md); background: var(--jep-surface-50); }
.jep-ds .jep-note p:last-child { margin-bottom: 0; }

.jep-ds .jep-card-body .jep-btn--link { align-self: flex-start; margin-top: auto; }
.jep-ds .jep-card-body .jep-tag { align-self: flex-start; }
.jep-ds .jep-card-body { flex: 1 1 auto; }
.jep-ds .jep-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.jep-ds .jep-page-header { margin-top: var(--jep-space-6); }
.jep-ds .jep-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jep-ds .jep-grid--4 .jep-card-title { -webkit-line-clamp: 4; }
@media (max-width: 1024px) { .jep-ds .jep-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .jep-ds .jep-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Contenedor de página ---------- */
.jep-ds .jep-container { box-sizing: border-box; width: 100%; max-width: var(--jep-max-width); margin-inline: auto; padding-inline: var(--jep-space-6); }
@media (max-width: 640px) { .jep-ds .jep-container { padding-inline: var(--jep-space-4); } }

/* =========================================================
   Blindaje SharePoint: el sitio aplica reglas globales con
   !important a h1–h6 y footer (MAYÚSCULAS, 14px, verde, centrado,
   fondo oscuro). Se neutralizan solo dentro de .jep-ds.
   ========================================================= */
.jep-ds :is(h1, h2, h3, h4, h5, h6) {
  text-transform: none !important;
  letter-spacing: normal !important;
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  font-family: var(--jep-font-sans) !important;
  line-height: var(--jep-lh-titulo) !important;
}
.jep-ds .jep-page-title { font-size: var(--jep-fs-titulo) !important; font-weight: var(--jep-fw-negrita) !important; color: var(--jep-navy-800) !important; text-align: center !important; margin: 0 0 var(--jep-space-6) !important; }
.jep-ds .jep-section-title { font-size: var(--jep-fs-seccion) !important; font-weight: var(--jep-fw-negrita) !important; color: var(--jep-navy-800) !important; text-align: left !important; margin: 0 0 var(--jep-space-4) !important; }
.jep-ds .jep-section-subtitle { font-size: var(--jep-fs-destacado) !important; font-weight: var(--jep-fw-semi) !important; color: var(--jep-navy-800) !important; text-align: left !important; margin: var(--jep-space-6) 0 var(--jep-space-4) !important; }
.jep-ds .jep-card-title { font-size: var(--jep-fs-destacado) !important; font-weight: var(--jep-fw-semi) !important; color: var(--jep-navy-800) !important; text-align: left !important; margin: 0 !important; line-height: 1.25 !important; }
.jep-ds .jep-card--featured .jep-card-title { color: var(--jep-surface-0) !important; font-family: var(--jep-font-slab) !important; font-size: var(--jep-fs-subtitulo) !important; font-weight: var(--jep-fw-negrita) !important; }
.jep-ds .jep-hero-title { font-family: var(--jep-font-slab) !important; font-size: var(--jep-fs-hero) !important; font-weight: var(--jep-fw-black) !important; color: var(--jep-surface-0) !important; line-height: 1.1 !important; text-align: left !important; }
.jep-ds footer, .jep-ds header, .jep-ds nav, .jep-ds section { background: none !important; color: inherit !important; }
.jep-ds .jep-updated { color: var(--jep-ink-muted) !important; }

/* Canales: misma retícula 4 / 2 / 1 que jep-grid--4 */
.jep-ds .jep-channels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .jep-ds .jep-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .jep-ds .jep-channels { grid-template-columns: 1fr; } }
.jep-ds .jep-updated,
.jep-ds .jep-updated-item,
.jep-ds .jep-updated-label { color: var(--jep-ink-muted) !important; background: none !important; }
.jep-ds .jep-updated-item svg { color: var(--jep-slate-500) !important; stroke: currentColor !important; display: inline-block !important; width: 20px !important; height: 20px !important; }
.jep-ds .jep-updated time,
.jep-ds .jep-updated-value { color: var(--jep-ink) !important; }
.jep-ds .jep-tag { max-width: 100%; overflow-wrap: anywhere; }

/* ---------- Video ---------- */
.jep-ds .jep-video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--jep-navy-950); overflow: hidden; }
.jep-ds .jep-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Tarjeta informativa (sin enlace, texto completo) ---------- */
.jep-ds .jep-card--static { cursor: default; }
.jep-ds .jep-card--static:hover { transform: none; box-shadow: none; }
.jep-ds .jep-card--static .jep-card-title,
.jep-ds .jep-card--static .jep-card-text { -webkit-line-clamp: unset; display: block; overflow: visible; }
.jep-ds .jep-actions { display: flex; flex-wrap: wrap; gap: var(--jep-space-4); margin-top: var(--jep-space-8); }
.jep-ds .jep-actions--center { justify-content: center; }

/* ---------- Términos del glosario (tooltips del sitio: abbr.definition) ----------
   El sitio los pinta azul #007BFF con !important y parecen enlaces.
   Dentro de .jep-ds conservan el color del texto y se marcan con fondo gris claro y subrayado punteado. */
.jep-ds abbr.definition,
.jep-ds .definition {
  display: inline !important;   /* el sitio usa display: contents, que oculta fondo y subrayado */
  margin: 0 !important;
  color: inherit !important;
  background: var(--jep-surface-50) !important;
  padding: 0 2px !important;
  border-radius: var(--jep-radius-sm);
  font-weight: inherit !important;
  text-decoration: underline dotted !important;
  text-decoration-color: var(--jep-slate-500) !important;
  text-underline-offset: 3px;
  cursor: help;
}

/* ---------- Lista numerada (pasos / objetivos) ---------- */
.jep-ds .jep-steps { list-style: none; counter-reset: jep-step; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--jep-space-3); }
.jep-ds .jep-steps > li { counter-increment: jep-step; position: relative; padding: var(--jep-space-4) var(--jep-space-4) var(--jep-space-4) 64px; background: var(--jep-surface-50); border-radius: var(--jep-radius-md); }
.jep-ds .jep-steps > li::before { content: counter(jep-step); position: absolute; left: var(--jep-space-4); top: var(--jep-space-4); width: 32px; height: 32px; display: grid; place-items: center; background: var(--jep-navy-800); color: var(--jep-surface-0); font-weight: var(--jep-fw-negrita); font-size: var(--jep-fs-minimo); }
.jep-ds p .jep-btn--link { white-space: normal; text-align: left; display: inline; }

/* ---------- Subtítulo de página e imagen ---------- */
.jep-ds .jep-page-subtitle { margin: calc(-1 * var(--jep-space-4)) 0 var(--jep-space-6); text-align: center; font-size: var(--jep-fs-destacado); font-weight: var(--jep-fw-medio); color: var(--jep-ink-muted); }
.jep-ds .jep-figure { margin: 0; }
.jep-ds .jep-figure img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
