/* ==========================================================================
   INNOVATI Consulting Group · Hoja de estilos corporativa 2026
   Identidad: tipografía Aller, azul institucional, azul logotipo, rojo logotipo.
   Un solo tema (claro), pintado de forma explícita.
   ========================================================================== */

/* --- Tipografía corporativa (autoalojada) -------------------------------- */
@font-face { font-family: "Aller"; src: url("../fonts/aller-light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Aller"; src: url("../fonts/aller-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Aller"; src: url("../fonts/aller-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Aller"; src: url("../fonts/aller-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Aller Display"; src: url("../fonts/aller-display.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* --- Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --navy: #0F2E5C;        /* azul institucional (fondos, títulos) */
  --blue: #155FA6;        /* azul del logotipo (enlaces, acentos) */
  --blue-deep: #1B3A6B;
  --red: #CE2127;         /* rojo del logotipo (firma, acento único) */
  --red-soft: #FBE9EA;
  --ink: #33455C;         /* texto principal */
  --slate: #6B7A90;       /* texto secundario */
  --mist: #F4F7FB;        /* fondo de secciones alternas */
  --frost: #E8F0FA;       /* fondo de fichas y chips */
  --pale: #DCEBFB;
  --sky: #8FB4E3;
  --line: #C9D6E6;        /* bordes */
  --deep: #071A38;        /* pie de página */
  --white: #FFFFFF;
  --focus: #CE2127;

  --font: "Aller", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Aller Display", "Aller", "Segoe UI", Helvetica, Arial, sans-serif;

  --step--2: clamp(0.78rem, 0.76rem + 0.1vw, 0.82rem);  /* notas auxiliares (badges, descripciones de menú, rutas) */
  --step--1: clamp(0.84rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.20vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --step-2: clamp(1.3rem, 1.15rem + 0.7vw, 1.65rem);
  --step-3: clamp(1.65rem, 1.35rem + 1.4vw, 2.35rem);
  --step-4: clamp(2.1rem, 1.5rem + 2.8vw, 3.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px rgba(15, 46, 92, 0.10);
  --shadow-sm: 0 2px 8px rgba(15, 46, 92, 0.08);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* --- Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.15; text-wrap: balance; font-weight: 700; }
h1 { font-weight: 700; font-size: var(--step-4); letter-spacing: -0.015em; line-height: 1.1; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
p { margin: 0; }
p + p { margin-top: 0.9em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--pale); color: var(--navy); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: var(--pale); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--blue);
  margin-bottom: 0.9rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 3px; background: var(--red); border-radius: 2px; }
.section--navy .eyebrow { color: var(--sky); }
.lead { font-size: var(--step-1); font-weight: 300; line-height: 1.55; color: var(--ink); max-width: 62ch; }
.section--navy .lead { color: var(--pale); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { margin-bottom: 0.8rem; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }
.tabular { font-variant-numeric: tabular-nums; }

/* --- Botones -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: var(--step-0); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 2px solid transparent; transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--primary:hover { background: #B41B21; border-color: #B41B21; color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--navy:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--light:hover { background: var(--pale); border-color: var(--pale); color: var(--navy); }
.btn--sm { min-height: 40px; padding: 0.4rem 1rem; font-size: var(--step--1); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* --- Encabezado y navegación principal ------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97); backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 46px; }
.nav-list { display: flex; align-items: center; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  display: inline-block; padding: 0.55rem 0.6rem; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 700; font-size: var(--step--1); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav-item > a:hover { color: var(--blue); background: var(--mist); }
.nav-item > a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--red); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.nav-item--cta, .nav-item--lang, .nav-item--util { display: none; }
.sub-toggle { display: inline-grid; place-items: center; width: 28px; height: 32px; margin-left: -0.35rem; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius-sm); color: var(--slate); }
.sub-toggle:hover { color: var(--blue); background: var(--mist); }
.sub-toggle .chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.2s var(--ease); }
.has-sub.is-open .sub-toggle .chev { transform: translateY(2px) rotate(-135deg); }
.submenu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 260px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0.5rem; display: none;
}
.has-sub.is-open > .submenu { display: block; }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.submenu ul { display: grid; gap: 0.1rem; }
.submenu a { display: block; padding: 0.55rem 0.75rem; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 700; }
.submenu a:hover, .submenu a:focus-visible { background: var(--mist); color: var(--blue); }
/* El menú extendido se centra respecto a la barra de cabecera (no al elemento), para no salirse de la pantalla. */
.has-mega { position: static; }
.submenu--mega { top: calc(100% - 8px); left: 50%; transform: translateX(-50%); width: min(1040px, 100%); padding: 0.75rem; }
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.2rem; }
.mega-grid a { display: grid; grid-template-columns: 36px 1fr; gap: 0.7rem; align-items: start; padding: 0.6rem 0.7rem; }
.mega-grid strong { display: block; color: var(--navy); }
.mega-grid small { display: block; font-weight: 400; color: var(--slate); font-size: var(--step--2); line-height: 1.35; margin-top: 0.1rem; }
.mega-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--frost); color: var(--blue); }
.mega-icon svg { width: 20px; height: 20px; }
.mega-all { display: block; margin: 0.4rem 0.4rem 0.2rem; padding-top: 0.6rem; border-top: 1px solid var(--line); font-size: var(--step--1); font-weight: 700; color: var(--blue); text-decoration: none; }
.mega-all:hover { text-decoration: underline; }
.header-tools { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); cursor: pointer; font-size: 1.3rem; line-height: 1; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); background: var(--mist); }

.lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2rem; padding-inline: 0.45rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--slate); }
.lang-switch a:hover { color: var(--blue); background: var(--mist); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--white); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; }
.nav-toggle .bars { position: relative; width: 20px; height: 2px; background: var(--navy); transition: background 0.2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy); transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }

/* Buscador */
.search-panel { border-top: 1px solid var(--line); background: var(--white); padding-block: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.search-form { display: flex; gap: 0.5rem; align-items: center; }
.search-form input { flex: 1; min-width: 0; font: inherit; padding: 0.7rem 0.9rem; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.search-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--pale); }
.search-form--page { max-width: 720px; }
.search-hint { margin-top: 0.5rem; }
.search-list { display: grid; gap: 0.25rem; margin-top: 0.5rem; }
.search-list li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; background: var(--white); }
.search-list a { font-weight: 700; color: var(--navy); text-decoration: none; }
.search-list a:hover { color: var(--blue); text-decoration: underline; }
.search-list small { display: block; color: var(--slate); font-size: var(--step--2); margin-top: 0.15rem; }
.search-count { margin-top: 0.5rem; }
.search-results--page .search-list { max-width: 820px; }

/* Migas de pan y cabecera de página */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: var(--step--1); color: var(--sky); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; color: var(--sky); }
.breadcrumb a { color: var(--pale); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--white); font-weight: 700; }
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--blue-deep) 100%); color: var(--pale); padding-block: clamp(1.5rem, 3vw, 2.25rem) clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { color: var(--white); margin-top: 0.3rem; }
.page-hero .eyebrow { color: var(--sky); margin-top: 1.25rem; }
.page-hero .lead { color: var(--pale); margin-top: 0.8rem; }
.page-hero .hero-actions { margin-top: 1.4rem; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.page-hero:not(.page-hero--image) .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
.page-hero-figure { margin: 0; display: grid; place-items: center; }
.page-hero-figure img { width: min(100%, 380px); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25)); }

/* Banda de llamada a la acción y volver arriba */
.cta-band { background: var(--frost); border-top: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.5rem); }
.cta-band-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { font-size: var(--step-3); margin-bottom: 0.4rem; }
.cta-band p { max-width: 60ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cta-band .btn--light { border-color: var(--line); }
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { background: var(--blue); color: var(--white); }

/* Tarjetas en fila, chips oscuros, listas de mapa del sitio */
.card--row { grid-template-columns: 52px 1fr; gap: 1rem; }
.card--row .card-icon { width: 52px; height: 52px; }
.card--row > span:last-child { display: grid; gap: 0.4rem; }
.chip--dark { background: rgba(255, 255, 255, 0.1); color: var(--white); border-color: rgba(255, 255, 255, 0.2); }
.chips--lg .chip { font-size: var(--step-0); padding: 0.6rem 1.1rem; }
.route-tree { --line: var(--line); font-size: var(--step--1); }
.route-node { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; padding: 0.45rem 0.85rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.route-node a, .route-node span { font-weight: 700; color: var(--navy); text-decoration: none; }
.route-node a:hover { text-decoration: underline; color: var(--blue); }
.route-node code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: var(--step--2); color: var(--slate); word-break: break-all; }
.route-node--root { background: var(--navy); border-color: var(--navy); }
.route-node--root a { color: #fff; }
.route-node--root code { color: var(--sky); }
.route-level { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--line); }
.route-tree > .route-level { margin-top: 0.75rem; margin-left: 1rem; }
.route-level li { position: relative; padding: 0.55rem 0 0 1rem; }
.route-level li::before { content: ""; position: absolute; left: 0; top: 1.55rem; width: 1rem; height: 2px; background: var(--line); }
.route-level .route-level { margin-top: 0.35rem; margin-left: 0.5rem; }
.chip--link { text-decoration: none; }
.chip--link:hover { background: var(--pale); }
.chip--link code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: var(--step--2); }
.sitemap-list { display: grid; gap: 0.35rem; }
.sitemap-list a { font-weight: 700; text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-grid h2 a { text-decoration: none; }
.center { text-align: center; }
.steps--light .step { background: var(--mist); border-color: var(--line); }
.steps--light .step h3 { color: var(--navy); }
.steps--light .step p { color: var(--ink); }
.contact-info--light dt { color: var(--blue); }
.contact-info--light dd, .contact-info--light dd a { color: var(--ink); }
.contact-info--light dd a:hover { color: var(--blue); }
.contact-info--light .social-link { color: var(--ink); }

/* --- Portada -------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 20%, var(--frost) 0%, rgba(232, 240, 250, 0) 70%),
    linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { margin: 0.4rem 0 1.2rem; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual img { width: min(100%, 520px); filter: drop-shadow(0 24px 40px rgba(15, 46, 92, 0.18)); animation: rise 0.9s var(--ease) both; }
.hero-badge {
  position: absolute; left: 0; bottom: 6%;
  display: grid; gap: 0.1rem; padding: 0.7rem 1rem; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--red); max-width: 250px;
}
.hero-badge strong { color: var(--navy); font-size: var(--step-0); }
.hero-badge span { color: var(--slate); font-size: var(--step--2); line-height: 1.35; }
@keyframes rise { from { transform: translateY(14px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }

.stats-band { background: var(--navy); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 1.5rem 1.25rem; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 0.4rem; font-size: var(--step--1); color: var(--pale); }
.stats-band--light { background: transparent; color: inherit; }
.stats-band--light .stat { border-left-color: var(--line); }
.stats-band--light .stat strong { color: var(--navy); }
.stats-band--light .stat span { color: var(--slate); }

/* --- Rejillas y fichas ---------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split--wide-text { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.split figure { margin: 0; display: grid; place-items: center; }
.split figure img { width: min(100%, 460px); filter: drop-shadow(0 18px 30px rgba(15, 46, 92, 0.14)); }

.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.card h3 { font-size: var(--step-0); }
.card p { color: var(--ink); font-size: var(--step--1); line-height: 1.6; }
.card--frost { background: var(--frost); border-color: transparent; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--frost); color: var(--blue); margin-bottom: 0.3rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.card--dark h3 { color: var(--white); }
.card--dark p { color: var(--pale); }
.card--dark:hover { border-color: var(--sky); box-shadow: none; }
.card--dark .card-icon { background: rgba(255, 255, 255, 0.1); color: var(--sky); }
.card-more { margin-top: 0.3rem; font-size: var(--step--1); font-weight: 700; color: var(--blue); }

.reg-title { display: inline-block; font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); color: var(--navy); letter-spacing: 0.02em; }

.pillar { display: grid; gap: 0.5rem; padding-top: 1.1rem; border-top: 3px solid var(--blue); }
.pillar:nth-child(2) { border-top-color: var(--red); }
.pillar:nth-child(3) { border-top-color: var(--navy); }
.pillar h3 { font-size: var(--step-1); }
.pillar p { font-size: var(--step--1); line-height: 1.6; } /* mismo cuerpo que las tarjetas */

.quote-band {
  margin-top: clamp(2rem, 5vw, 3.5rem); padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--frost); border-radius: var(--radius); border-left: 6px solid var(--red);
}
.quote-band p { font-size: var(--step-1); font-weight: 300; color: var(--navy); max-width: 70ch; line-height: 1.5; }

.rank { display: grid; gap: 0.35rem; padding: 1.5rem; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.rank .place { display: flex; align-items: baseline; gap: 0.4rem; color: var(--red); }
.rank .place strong { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1; }
.rank .place span { color: var(--slate); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.rank h3 { font-size: var(--step-1); }
.rank p { font-size: var(--step--1); }
.rank:first-child .place { color: var(--red); }
.rank:not(:first-child) .place { color: var(--blue); }
.source-note { margin-top: 1.25rem; color: var(--slate); font-size: var(--step--1); }

.why-list { display: grid; gap: 1rem; }
.why-list li { display: grid; grid-template-columns: 12px 1fr; gap: 0.9rem; align-items: start; }
.why-list li::before { content: ""; margin-top: 0.55rem; width: 12px; height: 12px; border-radius: 3px; background: var(--red); }
.why-list h3 { font-size: var(--step-0); margin-bottom: 0.15rem; }
.why-list p { font-size: var(--step--1); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; padding: 0.45rem 0.9rem; border-radius: 999px;
  background: var(--frost); color: var(--navy); font-size: var(--step--1); font-weight: 700; border: 1px solid transparent;
}
.chip--outline { background: var(--white); border-color: var(--line); font-weight: 400; color: var(--ink); }

/* --- Ciberseguridad ------------------------------------------------------- */
.cyber {
  position: relative; color: var(--pale); overflow: hidden;
  background: var(--navy) url("../img/cyberband.webp") center / cover no-repeat;
}
.cyber::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 26, 56, 0.94) 0%, rgba(15, 46, 92, 0.86) 55%, rgba(15, 46, 92, 0.72) 100%); }
.cyber > .wrap { position: relative; }
.cyber .eyebrow { color: var(--sky); }
.cyber h2, .cyber h3 { color: var(--white); }
.cyber .lead { color: var(--pale); }
.cyber .stats-grid { margin: clamp(1.5rem, 4vw, 2.5rem) 0; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); overflow: hidden; }
.cyber .stat { border-left-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); }

/* --- Consultoría y CMMI --------------------------------------------------- */
.subhead { display: flex; align-items: center; gap: 0.8rem; margin: clamp(1.8rem, 4vw, 2.6rem) 0 1rem; }
.subhead h3 { font-size: var(--step-2); }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
  margin-top: clamp(1.5rem, 4vw, 2.5rem); padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--navy); color: var(--pale); border-radius: var(--radius);
}
.band h3 { color: var(--white); margin-bottom: 0.4rem; }
.band img { width: 180px; }

.cmmi { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.cmmi-stat { display: grid; gap: 0.3rem; padding: 1.5rem; border-left: 6px solid var(--red); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.cmmi-stat strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 8vw, 5rem); line-height: 1; color: var(--navy); }
.cmmi-stat span { color: var(--slate); }

/* --- Capacitación --------------------------------------------------------- */
.catalog { display: grid; gap: 0.75rem; }
.catalog details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.catalog details[open] { border-color: var(--blue); }
.catalog summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer;
  padding: 1rem 1.25rem; font-weight: 700; color: var(--navy); list-style: none;
}
.catalog summary::-webkit-details-marker { display: none; }
.catalog summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; color: var(--blue); line-height: 1; transition: transform 0.2s var(--ease); }
.catalog details[open] summary::after { transform: rotate(45deg); }
.catalog ul { padding: 0 1.25rem 1.1rem; display: grid; gap: 0.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.catalog li { position: relative; padding-left: 1.1rem; font-size: var(--step--1); }
.catalog li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.training-cta { margin-top: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; background: var(--frost); border-radius: var(--radius); }
.training-cta p { font-size: var(--step--1); }

/* --- Alianzas y testimonios ------------------------------------------------ */
.partners-block + .partners-block { margin-top: 1.5rem; }
.partners-block h3 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate); margin-bottom: 0.7rem; }

/* --- Liderazgo ------------------------------------------------------------ */
.person { display: grid; gap: 0.5rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); border-top: 4px solid var(--navy); }
.person:nth-child(2) { border-top-color: var(--red); }
.person h3 { font-size: var(--step-1); }
.person p { font-size: var(--step--1); line-height: 1.6; } /* semblanzas: mismo cuerpo que las tarjetas */
.person .role { color: var(--blue); font-weight: 700; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.08em; }
.person .certs { font-size: var(--step--1); color: var(--slate); font-variant-numeric: tabular-nums; }

/* --- Contacto ------------------------------------------------------------- */
.contact { position: relative; color: var(--pale); background: var(--navy); overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: url("../img/contact-bg.webp") center / cover no-repeat; opacity: 0.16; }
.contact > .wrap { position: relative; }
.contact h2, .contact h3 { color: var(--white); }
.contact .eyebrow { color: var(--sky); }
.contact .lead { color: var(--pale); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: clamp(1.8rem, 4vw, 2.6rem) 0; counter-reset: step; }
.step { padding: 1.25rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); display: grid; gap: 0.35rem; }
.step h3 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step-0); }
.step h3::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 0.85rem; font-family: var(--font-display); font-weight: 400; }
.step p { font-size: var(--step--1); color: var(--pale); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 2rem; align-items: start; }
.form-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-card h3 { color: var(--navy); margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 700; color: var(--navy); }
.field label .req { color: var(--red); margin-left: 0.2rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; min-height: 48px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--pale); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin-top: 0.15rem; accent-color: var(--navy); }
.field-error { margin: 0; font-size: var(--step--1); font-weight: 700; color: var(--red); text-align: left; }
.field-error--full { grid-column: 1 / -1; }
.field-count { margin: 0; text-align: right; }
.form-hint { margin: -0.5rem 0 1.25rem; text-align: left; }
.field--check label { font-weight: 400; color: var(--ink); }
.field--check label a { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1rem; }
.form-status { font-size: var(--step--1); font-weight: 700; }
.form-status[data-state="success"] { color: #1F7A3E; }
.form-status[data-state="error"], .form-status[data-state="invalid"] { color: var(--red); }

.contact-info { display: grid; gap: 1.25rem; }
.contact-info dl { display: grid; gap: 1rem; margin: 0; }
.contact-info dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-deep); font-weight: 700; }
.contact-info dd { margin: 0.15rem 0 0; color: var(--ink); font-size: var(--step-0); }
.contact-info dd a { color: var(--ink); font-weight: 700; }
.contact-info dd a:hover { color: var(--sky); }

/* --- Pie ------------------------------------------------------------------ */
.site-footer { background: var(--deep); color: var(--pale); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-brand img { width: 220px; }
.footer-brand p { margin-top: 1rem; font-size: var(--step--1); max-width: 40ch; color: var(--sky); }
.site-footer h3 { color: var(--white); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem; }
.site-footer ul { display: grid; gap: 0.1rem; }
.site-footer a { display: inline-block; padding-block: 0.3rem; color: var(--pale); text-decoration: none; font-size: var(--step--1); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-links a { color: var(--sky); text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-brand > a { display: inline-block; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.8rem; color: var(--sky); }

/* --- Páginas interiores (aviso de privacidad) ----------------------------- */
.prose { max-width: 72ch; }
.prose h1 { font-size: var(--step-3); margin-bottom: 0.5rem; }
.prose h2 { font-size: var(--step-1); margin: 1.8rem 0 0.5rem; }
.prose p { line-height: 1.7; }

/* --- Movimiento ----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- Portátil (≤ 1600 px): el CTA del encabezado se retira; el de portada queda visible --- */
@media (max-width: 1600px) {
  .header-cta { display: none; }
  .nav-item > a { padding-inline: 0.5rem; }
}
/* Portátiles de 1181 a 1400 px: menú compacto para que quepan las siete entradas en los cuatro idiomas. */
@media (max-width: 1400px) and (min-width: 1181px) {
  .nav-item > a { padding-inline: 0.4rem; font-size: 0.86rem; letter-spacing: -0.01em; }
  .sub-toggle { width: 22px; }
  .header-bar { gap: 0.6rem; }
  .brand img { height: 40px; }
  .header-tools .lang-switch a { padding-inline: 0.3rem; }
}

/* --- Puntos de quiebre: tableta (≤ 1024 px) -------------------------------- */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
  .cmmi { grid-template-columns: 1fr; }
}

/* --- Menú móvil (≤ 1180 px): acordeón accesible ---------------------------- */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1rem;
  }
  .primary-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item > a { flex: 1; padding: 0.85rem 0.5rem; border-radius: 0; font-size: var(--step-0); border-bottom: 0; }
  .nav-item > a[aria-current="page"] { border-left: 4px solid var(--red); padding-left: 0.75rem; border-radius: 0; }
  .sub-toggle { width: 44px; height: 44px; margin: 0; }
  .submenu { position: static; transform: none; width: 100%; min-width: 0; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 0.25rem 0 0.5rem 0.75rem; }
  .mega-grid { grid-template-columns: 1fr; }
  .nav-item--cta { display: block; border-bottom: 0; padding-top: 1rem; }
  .nav-item--util { display: block; border-bottom: 0; }
  .nav-item--util > a { font-weight: 400; font-size: var(--step--1); color: var(--slate); }
  .nav-item--cta .btn { width: 100%; }
  html.menu-open { overflow: hidden; }
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .split figure { order: -1; }
  .split figure img { width: min(100%, 320px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual img { width: min(70%, 360px); }
  .hero-badge { position: static; margin-top: 0.5rem; max-width: none; justify-self: start; }
  .page-hero-grid, .page-hero:not(.page-hero--image) .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-figure { order: -1; }
  .page-hero-figure img { width: min(55%, 260px); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .band { grid-template-columns: 1fr; }
  .band img { width: 140px; }
}

/* --- Teléfono (≤ 600 px) --------------------------------------------------- */
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.1rem 0.9rem; }
  .card { padding: 1.25rem; }
  .lang-switch a { min-width: 2rem; padding-inline: 0.3rem; }
  .hero-actions .btn { width: 100%; }
  .training-cta .btn { width: 100%; }
  .card--row { grid-template-columns: 1fr; }
  .cta-band-actions .btn { width: 100%; }
  .search-form { flex-wrap: wrap; }
  .search-form input { flex-basis: 100%; }
}
@media (max-width: 380px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .stat:first-child { border-top: 0; }
}

/* --- Utilidades de espaciado (sin estilos en línea: compatible con la CSP) - */
.mt-1 { margin-top: 0.8rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.25rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.mt-6 { margin-top: clamp(2rem, 5vw, 3.5rem); }
.mt-7 { margin-top: clamp(2.5rem, 6vw, 4rem); }
.mb-1 { margin-bottom: 0.8rem; }
.mb-3 { margin-bottom: 1.25rem; }
.h3-lg { font-size: var(--step-2); }
.stats-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-bottom--plain { margin-top: 0; border-top: 0; padding-top: 0; }
@media (max-width: 600px) { .stats-grid--3 { grid-template-columns: 1fr; } }

/* --- Teléfonos (≤ 600 px): botones que pueden partirse en dos líneas ------- */
@media (max-width: 600px) { .btn { white-space: normal; } .stat strong { font-size: var(--step-2); } }

/* --- Teléfonos estrechos (≤ 480 px): el selector de idioma pasa al menú ---- */
@media (max-width: 480px) {
  .header-tools > .lang-switch { display: none; }
  .nav-item--lang { display: block; border-bottom: 0; padding-top: 0.75rem; }
  .nav-item--lang .lang-switch { display: inline-flex; }
}

/* --- Teléfonos estrechos (≤ 420 px): encabezado compacto ------------------- */
@media (max-width: 420px) {
  .header-bar { gap: 0.5rem; }
  .brand img { height: 32px; }
  .header-tools { gap: 0.4rem; }
  .lang-switch a { min-width: 1.7rem; height: 1.85rem; padding-inline: 0.2rem; font-size: 0.72rem; }
  .nav-toggle { width: 42px; height: 42px; }
}

/* --- Nuestra firma --------------------------------------------------------- */
.firm { background: linear-gradient(160deg, var(--navy) 0%, var(--blue-deep) 100%); }
.firm .split figure img { width: min(100%, 420px); }
.firm-grid .card--dark h3 { font-size: var(--step-1); }
.purpose { margin-top: clamp(1.8rem, 4vw, 2.6rem); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border-left: 6px solid var(--red); }
.purpose .eyebrow { color: var(--sky); margin-bottom: 0.6rem; }
.purpose-text { font-size: var(--step-2); font-weight: 300; line-height: 1.45; color: var(--white); max-width: 60ch; text-wrap: balance; }

/* --- Catálogo con sinopsis y preguntas frecuentes ------------------------- */
.catalog summary > span:first-child { flex: 1; }
.catalog-count { font-size: var(--step--1); font-weight: 400; color: var(--slate); white-space: nowrap; }
.catalog-body { padding: 0 1.25rem 1.25rem; display: grid; gap: 1rem; }
.catalog-body > p { max-width: 70ch; }
.course-grid { gap: 0.9rem; }
.course { display: grid; gap: 0.4rem; align-content: start; padding: 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--mist); }
.course h4 { font-size: var(--step-0); line-height: 1.3; }
.course p { font-size: var(--step--1); color: var(--ink); line-height: 1.55; }
.course-code { display: inline-block; justify-self: start; padding: 0.15rem 0.55rem; border-radius: 4px; background: var(--navy); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.faq summary { font-size: var(--step-0); line-height: 1.4; }
.faq .catalog-body p { max-width: 80ch; line-height: 1.65; }

/* --- Noticias ---------------------------------------------------------------- */
.news-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.news-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.news-card > img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--frost); padding: 1rem; }
.news-body { padding: 1.25rem; display: grid; gap: 0.6rem; align-content: start; }
.news-meta { font-size: var(--step--1); color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.news-body h3, .news-body h2 { font-size: var(--step-1); line-height: 1.3; }
.news-body p { font-size: var(--step--1); line-height: 1.6; }
.news-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.news-actions--top { margin-top: 0; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.news-list { display: grid; gap: 1.25rem; }
.news-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.chip--btn { cursor: pointer; font-family: inherit; }
.chip--btn:hover { background: var(--pale); }
.chip--btn[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip--btn .news-count { margin-left: 0.35rem; font-weight: 400; opacity: 0.8; }
.news-cat { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--frost); color: var(--blue); letter-spacing: 0.06em; }
.news-cat--cyber { background: #FDE8E9; color: var(--red); }
.news-cat--resilience { background: #E6F4EC; color: #1F7A3E; }
.news-cat--ai { background: #EEE9FA; color: #5B3FA6; }
.news-body h3 a { color: var(--navy); text-decoration: none; }
.news-body h3 a:hover { color: var(--blue); text-decoration: underline; }
.news-source { font-size: var(--step--1); color: var(--slate); text-align: left; }
.news-source a { color: var(--blue); }
.news-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.25rem; }
.news-body .news-meta, .news-body .news-source { text-align: left; }
.news-updated { text-align: left; }
.rss-note { text-align: left; }
.rss-note code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: var(--step--2); color: var(--navy); word-break: break-all; }
.footer-plain { display: inline-block; padding-block: 0.3rem; color: var(--sky); font-size: var(--step--1); }
.news-empty { text-align: left; }
.news-card--row { grid-template-rows: none; grid-template-columns: 260px 1fr; }
.news-card--row > img { aspect-ratio: auto; height: 100%; }
.share, .social-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.share { margin-top: 0.4rem; }
.share-label { font-size: var(--step--1); color: var(--slate); font-weight: 700; margin-right: 0.2rem; }
.share-link, .social-link { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 32px; padding: 0.2rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: var(--step--1); font-weight: 700; text-decoration: none; transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease); }
.share-link::before, .social-link::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.share-link:hover, .social-link:hover { border-color: var(--blue); background: var(--frost); color: var(--blue); }
.social-row--light .social-link { background: transparent; border-color: rgba(255, 255, 255, 0.28); color: var(--white); }
.social-row--light .social-link::before { background: var(--sky); }
.social-row--light .social-link:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); color: var(--white); }
.site-footer .social-row--light { margin-top: 0.3rem; }
.contact-info dd .social-row { margin-top: 0.35rem; }

@media (max-width: 1024px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .news-card--row { grid-template-columns: 1fr; }
  .news-card--row > img { aspect-ratio: 16 / 10; height: auto; }
  .course-grid { grid-template-columns: 1fr; }
  .catalog-count { display: none; }
}

/* --- Párrafos justificados en todo el sitio -------------------------------- */
p, .lead, blockquote, dd, .why-list li, .catalog li, .course p, .purpose-text, .quote-band p, .prose p, .news-body p, .card p, .step p, .footer-brand p, .field--check label {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.section-head--center p { text-align: justify; }
/* Elementos de una sola línea o etiquetas: sin justificar */
.news-meta, .news-source, .share-label, .form-status, .stat span, .hero-badge span, .footer-bottom span, .catalog-count, .person .role, .eyebrow, label:not(.field--check label) { text-align: left; }
.form-status { text-align: left; }
