/* =========================================================================
   Improving Labor Justice — estilos del sitio público
   Los colores de marca vienen de variables (--c-*) que el sitio genera a partir
   de "Identidad gráfica" en el panel. No es necesario editar este archivo para
   cambiar colores.
   ========================================================================= */

:root {
  --c-primary: #125C7E; --c-primary-dark: #0E4862; --c-primary-2: #1B6A8D; --c-primary-soft: #E8EFF2; --c-primary-mid: #8AAFC1;
  --c-accent: #BBA675; --c-accent-text: #6E5E33; --c-accent-line: #DDD3BA; --c-chart-b: #9C8A61;
  --c-emph: #9E0C2F; --c-emph-soft: #F5E7EA;
  --c-warm: #E5E2D9; --c-warm-2: #F2F0EC;
  --c-ink: #1F2A30; --c-ink-2: #2E3A42; --c-ink-3: #3A464E; --c-muted: #5A666E; --c-line: #DDE2E5; --c-white: #FFFFFF;
  --f-title: 'Libre Baskerville', Baskerville, Georgia, serif;
  --f-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); color: var(--c-ink); background: var(--c-white); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; }
a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--c-primary); color: #fff; padding: 10px 16px; z-index: 50; }
.skip:focus { left: 8px; color: #fff; }
.js .js-hide { display: none; }
html:not(.js) .js-only { display: none; }

/* ---------- Tipografía ---------- */
.h1, .h2, .h3, .h2-light { font-family: var(--f-title); font-weight: 400; margin: 0; letter-spacing: -.005em; }
.h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.18; }
.h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.28; color: var(--c-primary); }
.h2-light { font-size: clamp(24px, 3vw, 32px); line-height: 1.3; color: #fff; }
.h3 { font-size: 22px; line-height: 1.35; color: var(--c-primary); }
.h4 { font-size: 18px; margin: 0; color: var(--c-ink); }
.kicker { display: block; margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text); }
.kicker.small { font-size: 12px; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--c-warm); max-width: 680px; }
.lead.dark { color: var(--c-ink-2); }
.muted { color: var(--c-muted); }
.small { font-size: 14px; }
.italic { font-style: italic; }
.pre { white-space: pre-line; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; text-decoration: none; color: var(--c-primary); }
.more:hover { text-decoration: underline; }
.prose { font-size: 17px; line-height: 1.7; color: var(--c-ink-2); }
.prose p { margin: 0 0 1em; }
.prose ul { margin: 0 0 1.4em; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .h3 { margin: 1.6em 0 .5em; }
.prose .h3:first-child { margin-top: 0; }
.mt { margin-top: 1.6em !important; }
.rule-top { border-top: 1px solid var(--c-accent-line); padding-top: 18px; margin-top: 28px; }
.empty { padding: 32px 0; color: var(--c-muted); font-size: 17px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid transparent;
  border-radius: 2px; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 400; }
.btn-xs { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); color: #fff; }
.btn-accent { background: var(--c-accent); color: #10202A; }
.btn-accent:hover { background: var(--c-accent-line); color: #10202A; }
.btn-emph { background: var(--c-emph); color: #fff; }
.btn-emph:hover { filter: brightness(.9); color: #fff; }
.btn-white { background: #fff; color: var(--c-emph); }
.btn-white:hover { background: var(--c-warm-2); color: var(--c-emph); }
.btn-outline { background: #fff; border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary-soft); }
.btn-ghost-light { border-color: var(--c-warm); color: #fff; font-weight: 400; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Encabezado ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--c-accent-line); position: relative; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand img { display: block; height: 54px; width: auto; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.main-nav a { color: var(--c-ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--c-primary); }
.main-nav a[aria-current] { color: var(--c-primary); font-weight: 700; border-bottom-color: var(--c-accent); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; border: 1px solid var(--c-primary); border-radius: 999px; overflow: hidden; }
.lang-switch a { min-width: 44px; min-height: 36px; display: flex; align-items: center; justify-content: center; font-size: 13px; text-decoration: none; color: var(--c-primary); padding: 0 12px; }
.lang-switch a[aria-current] { background: var(--c-primary); color: #fff; font-weight: 700; }
.burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 1px solid var(--c-accent-line); background: #fff; cursor: pointer; padding: 0; }
.burger svg { fill: none; stroke: var(--c-primary); stroke-width: 2; stroke-linecap: round; }
.burger .i-close, .burger[aria-expanded="true"] .i-open { display: none; }
.burger[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { border-top: 1px solid var(--c-accent-line); background: #fff; box-shadow: 0 16px 30px rgba(16,32,42,.12); border-bottom: 3px solid var(--c-accent); position: absolute; left: 0; right: 0; top: 100%; }
.mobile-nav .wrap { display: grid; grid-template-columns: 1fr; padding-top: 4px; padding-bottom: 20px; }
.mobile-nav a { min-height: 52px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #EEE9DC; color: var(--c-ink); text-decoration: none; font-size: 17px; }
.mobile-nav a[aria-current] { color: var(--c-primary); font-weight: 700; }
.pill-count { font-size: 12px; background: var(--c-emph); color: #fff; padding: 2px 8px; border-radius: 999px; }
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 600px) and (max-width: 1080px) {
  .mobile-nav .wrap { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (max-width: 600px) {
  .brand img { height: 44px; }
  .header-row { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
}

.flashes { padding-top: 16px; }
.flash { margin: 0 0 8px; padding: 14px 18px; font-size: 15px; }
.flash-ok { background: #E9F3EC; border: 1px solid #A9CDB4; color: #1E4D2B; }
.flash-error { background: #FBEFF2; border: 1px solid #E5B7C2; color: #7A0A25; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section.tight { padding: 48px 0 88px; }
.band-warm { background: var(--c-warm); }
.band-soft { background: var(--c-warm-2); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.section-head.row { flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; max-width: none; gap: 16px; }
.section-head.row > div:not(.seg) { display: flex; flex-direction: column; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.lift { transition: transform .25s, box-shadow .25s; }
.lift:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(18,92,126,.12); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 6px 10px; background: var(--c-primary-soft); color: var(--c-primary); }
.tag-white { background: #fff; color: var(--c-primary); }
.tag-warm { background: var(--c-warm-2); color: var(--c-ink); }
.tag-accent { background: var(--c-accent); color: #10202A; font-weight: 700; font-size: 12px; }
.tag-outline { border: 1px solid var(--c-warm); background: transparent; color: #fff; font-weight: 700; font-size: 12px; }
.tag-outline-dark { border: 1px solid var(--c-muted); background: #fff; color: var(--c-ink); }
.tag-emph { background: var(--c-emph); color: #fff; font-weight: 700; }
.badge { font-size: 12px; font-weight: 700; padding: 5px 10px; }
.badge-soft { background: var(--c-primary-soft); color: var(--c-primary); }
.badge-emph { background: var(--c-emph); color: #fff; }
.pill { font-size: 14px; background: var(--c-primary-soft); color: var(--c-primary); padding: 4px 12px; border-radius: 999px; }
.note-box { margin: 28px 0 0; padding: 14px 18px; background: #FBF6EC; border: 1px solid var(--c-accent-line); font-size: 14px; color: #46525A; }
.chip-link { min-height: 40px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #C9D6DC; background: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }

/* ---------- Hero de inicio ---------- */
.hero { position: relative; overflow: hidden; background: var(--c-primary); color: #fff; }
.hero-inner { position: relative; padding-top: 120px; padding-bottom: 128px; }
.hero-text { max-width: 640px; display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
.hero h1 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.15; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-warm); }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 44%; background: var(--c-warm); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.mono { position: absolute; right: 7%; bottom: -10%; height: 108%; }
.mono img { display: block; height: 100%; width: auto; }
.mono .m-l, .mono .m-j { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-curve { position: absolute; left: -40px; bottom: -60px; fill: none; stroke: var(--c-accent); stroke-width: 14; stroke-linecap: round; z-index: 1; }
.hero-curve.right { left: auto; right: -40px; top: -70px; bottom: auto; stroke-width: 12; }
@media (max-width: 860px) {
  .hero-art { width: 100%; clip-path: none; background: transparent; }
  .mono { right: -40px; bottom: -40px; height: 260px; opacity: .25; }
  .mono img { filter: brightness(0) invert(1); }
  .hero-inner { padding-top: 64px; padding-bottom: 72px; }
  .hero .btn-row .btn { flex: 1 1 100%; }
}

/* Animaciones de marca (se desactivan si la persona pide menos movimiento) */
@keyframes iljDrop { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes iljRise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes iljSlide { from { transform: translateX(50px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes iljFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes iljDraw { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes iljCheck { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
@keyframes iljGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mono .m-i { animation: iljDrop 1s cubic-bezier(.2,.7,.2,1) both; }
.mono .m-j { animation: iljRise 1.1s .25s cubic-bezier(.2,.7,.2,1) both; }
.mono .m-l { animation: iljSlide .9s .55s cubic-bezier(.2,.7,.2,1) both; }
.fade-in { animation: iljFade .9s .2s ease-out both; }
.draw-curve { stroke-dasharray: 900; animation: iljDraw 2.2s .4s ease-out both; }
.draw-check { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; animation: iljCheck .7s .25s ease-out both; }
.c-fill { fill: var(--c-primary); }
.grow { transform-origin: left center; animation: iljGrow .9s .2s cubic-bezier(.2,.7,.2,1) both; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Encabezados de página ---------- */
.page-hero { position: relative; overflow: hidden; padding: 72px 0 64px; }
.page-hero .wrap { position: relative; display: flex; flex-direction: column; gap: 18px; z-index: 1; }
.hero-warm { background: var(--c-warm); }
.hero-warm .h1 { color: var(--c-primary); }
.hero-soft { background: var(--c-warm-2); border-bottom: 1px solid var(--c-accent-line); padding: 44px 0 48px; }
.hero-soft .h1 { color: var(--c-primary); }
.hero-blue { background: var(--c-primary); color: #fff; }
.hero-emph { background: var(--c-emph); color: #fff; }
.hero-emph .lead { color: #F6E3E7; }
.hero-slant { position: absolute; top: 0; right: 0; bottom: 0; width: 34%; background: var(--c-primary-2); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); }
.hero-iso { position: absolute; right: 4%; bottom: -60px; height: 340px; opacity: .16; }
.crumbs { font-size: 13px; color: #46525A; }
.crumbs.light, .crumbs.light a { color: #fff; }
.back { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; font-size: 15px; text-decoration: none; }
.facts { margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid rgba(229,226,217,.35); }
.facts div { padding: 20px 20px 4px 0; display: flex; flex-direction: column; gap: 4px; }
.facts div + div { padding-left: 20px; border-left: 1px solid rgba(229,226,217,.35); }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-warm); }
.facts dd { margin: 0; font-size: 18px; }
@media (max-width: 640px) { .facts div + div { padding-left: 0; border-left: 0; } }

/* ---------- Inicio ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 56px; margin-bottom: 56px; }
.about-grid > div:first-child { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; gap: 20px; } }
.about { padding-bottom: 0; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--c-accent-line); border-bottom: 1px solid var(--c-accent-line); }
.stat { padding: 36px 28px; border-left: 1px solid var(--c-accent-line); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.stat dd { margin: 0; font-family: var(--f-title); font-size: 44px; line-height: 1.1; color: var(--c-primary); }
.stat dt { font-size: 15px; line-height: 1.45; color: #46525A; }
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat dd { font-size: 32px; }
}
.card-line { background: var(--c-warm-2); padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 16px; border-top: 3px solid var(--c-accent); }
.card-line .num { font-family: var(--f-title); color: var(--c-accent-text); font-size: 15px; }
.card-line h3 { margin: 0; font-size: 22px; line-height: 1.3; color: var(--c-primary); }
.card-line p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--c-ink-3); flex-grow: 1; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split.top { align-items: flex-start; }
.split-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.65; color: var(--c-ink-2); }
.split-text p { margin: 0; }
.split-fig { flex: 1 1 420px; min-width: 0; }
.figure-card { margin: 0; background: #fff; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.figure-card.bordered { border: 1px solid var(--c-accent-line); }
.figure-card figcaption { font-size: 15px; color: var(--c-ink-3); font-weight: 700; }
.note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--c-muted); }
.pub-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 28px; border-top: 1px solid var(--c-accent-line); }
.pub-mini { padding: 28px 0; border-bottom: 1px solid var(--c-accent-line); display: flex; flex-direction: column; gap: 10px; }
.pub-mini h3 { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: 19px; line-height: 1.45; }
.pub-type { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-emph); font-weight: 700; }
.band-emph { position: relative; overflow: hidden; background: var(--c-emph); color: #fff; }
.band-curve { position: absolute; right: -50px; top: -60px; opacity: .55; fill: none; stroke: var(--c-accent); stroke-width: 12; stroke-linecap: round; }
.band-row { position: relative; padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.band-row > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.band-row p { margin: 0; font-size: 17px; line-height: 1.6; color: #F6E3E7; }
@media (max-width: 600px) { .band-row .btn { width: 100%; } }

/* Tarjetas de actividad */
.news-card { background: #fff; display: flex; flex-direction: column; }
.band-soft .news-card { background: #fff; }
.news-top { height: 150px; background: var(--c-primary); position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 18px 22px; }
.news-top.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-iso { position: absolute; right: -14px; top: -24px; height: 200px; opacity: .16; }
.news-kind { position: relative; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #10202A; background: var(--c-accent); padding: 5px 10px; font-weight: 700; }
.news-body { padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.news-body h3 { margin: 0; font-size: 18px; line-height: 1.45; }
.news-body p { margin: 0; color: var(--c-ink-3); }
.news-body .more { margin-top: auto; font-size: 14px; }
.news-card:not(.lift) { border: 1px solid var(--c-line); }
@media (max-width: 640px) {
  .scroll-mobile { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .scroll-mobile > * { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ---------- Barras y gráficas ---------- */
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 56px; align-items: center; gap: 12px; font-size: 14px; color: var(--c-ink-3); }
.bar-track { height: 18px; }
.bar { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.bar-a { background: var(--c-primary); }
.bar-b { background: var(--c-primary-mid); }
.bar-val { color: var(--c-ink); font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .bar-row { grid-template-columns: 1fr 52px; } .bar-name { grid-column: 1 / -1; } }

.forest { display: flex; flex-direction: column; }
.forest-group { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text); padding: 16px 0 4px; }
.forest-row { display: grid; grid-template-columns: minmax(140px, 260px) minmax(0, 1fr) 170px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid #EEE9DC; }
.forest-row:hover:not(.forest-axis) { background: var(--c-warm-2); }
.forest-label { font-size: 15px; line-height: 1.4; }
.forest-track { position: relative; height: 26px; }
.forest-zero { position: absolute; top: -16px; bottom: -16px; width: 1px; background: #46525A; }
.forest-ref { position: absolute; top: -16px; bottom: -16px; border-left: 2px dashed var(--c-accent); }
.forest-ci { position: absolute; top: 12px; height: 2px; background: var(--c-primary); }
.forest-ci::before, .forest-ci::after { content: ''; position: absolute; top: -5px; width: 2px; height: 12px; background: var(--c-primary); }
.forest-ci::before { left: 0; } .forest-ci::after { right: 0; }
.forest-dot { position: absolute; top: 5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--c-primary); box-shadow: 0 0 0 2px #fff; }
.forest-dot.ns { background: #fff; border: 2px solid var(--c-primary); }
.forest-value { font-size: 14px; font-variant-numeric: tabular-nums; }
.forest-value span { color: var(--c-muted); }
.forest-axis { border-bottom: 0; padding-top: 10px; }
.forest-axis .forest-track { height: 18px; }
.forest-tick { position: absolute; transform: translateX(-50%); font-size: 12px; color: var(--c-muted); }
@media (max-width: 760px) {
  .forest-row { grid-template-columns: 1fr; gap: 8px; }
  .forest-axis .forest-label, .forest-axis .forest-value { display: none; }
}
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; min-width: 520px; }
.data-table.compact { font-size: 13px; min-width: 360px; }
.data-table th, .data-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #EEE9DC; }
.data-table thead th { border-bottom: 2px solid var(--c-primary); }
.data-table tbody th { font-weight: 400; }
.js [data-pane="t"] { display: none; }
.js .show-table [data-pane="t"] { display: block; }
.js .show-table [data-pane="g"] { display: none; }
html:not(.js) .pane-table { margin-top: 12px; }
.seg { display: flex; border: 1px solid var(--c-primary); }
.seg button { min-height: 42px; padding: 0 18px; border: 0; background: #fff; color: var(--c-primary); font-size: 14px; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--c-primary); color: #fff; font-weight: 700; }
.table-details summary { cursor: pointer; color: var(--c-primary); font-weight: 700; min-height: 40px; display: flex; align-items: center; font-size: 14px; }
.fig-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.fig-head figcaption { font-weight: 400; }
.legend { display: flex; gap: 18px; font-size: 14px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 3px; display: inline-block; }
.sw-a { background: var(--c-primary); } .sw-b { background: var(--c-chart-b); }
.line-chart { position: relative; }
.line-chart-svg { width: 100%; height: auto; display: block; font-family: var(--f-body); }
.line-chart-svg text { font-size: 12px; fill: var(--c-muted); }
.line-chart-svg .axis-title { font-size: 12px; }
.line-chart-svg .end-label { font-size: 13px; fill: var(--c-ink); }
.line-chart-svg .grid { stroke: #E3E6E8; stroke-width: 1; }
.line-chart-svg .grid.base { stroke: #9AA4AA; }
.line-chart-svg .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-chart-svg .ln-a { stroke: var(--c-primary); } .line-chart-svg .ln-b { stroke: var(--c-chart-b); }
.line-chart-svg .draw { stroke-dasharray: 2000; animation: iljDraw2 1.8s .2s ease-out both; }
@keyframes iljDraw2 { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.line-chart-svg .hover-line { stroke: #46525A; stroke-width: 1; }
.line-chart-svg .hover-dot-a { fill: var(--c-primary); stroke: #fff; stroke-width: 2; }
.line-chart-svg .hover-dot-b { fill: var(--c-chart-b); stroke: #fff; stroke-width: 2; }
.lc-tip { position: absolute; top: 0; background: #fff; border: 1px solid #C9D6DC; box-shadow: 0 6px 18px rgba(16,32,42,.15); padding: 10px 12px; min-width: 160px; font-size: 13px; pointer-events: none; z-index: 2; }
.lc-tip strong { display: block; margin-bottom: 4px; }
.lc-tip span { display: flex; justify-content: space-between; gap: 16px; }

/* ---------- Herramientas de listado ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 0; }
.section .tabs:not(.toolbar .tabs) { margin-bottom: 32px; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid #B9C3C8; background: #fff; color: var(--c-ink); font-size: 14px; text-decoration: none; }
.tabs a span { opacity: .75; margin-left: 4px; }
.tabs a:hover { border-color: var(--c-primary); }
.tabs a[aria-current] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; }
.search { flex: 0 1 360px; min-width: 0; }
.search-box { display: flex; align-items: center; gap: 10px; border: 1px solid #B9C3C8; padding: 0 14px; min-height: 46px; background: #fff; }
.search-box svg { fill: none; stroke: var(--c-muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search-box input { border: 0; outline: none; font-size: 15px; flex: 1; min-width: 0; background: transparent; }
.search-box:focus-within { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form label { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.inline-form select { min-height: 44px; border: 1px solid #B9C3C8; padding: 0 10px; background: #fff; }
.with-aside { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.with-aside > .filters, .with-aside > aside { flex: 1 1 220px; max-width: 280px; }
.with-aside > .pub-list, .with-aside > .main-col { flex: 999 1 560px; min-width: 0; }
.with-aside.reverse { flex-direction: row; }
.with-aside.wide-aside > aside, .with-aside.wide-aside > form.form-card, .with-aside.wide-aside > .form-card, .with-aside.wide-aside > .contact-aside { flex: 1 1 360px; max-width: 460px; min-width: 0; }
@media (max-width: 860px) { .with-aside > .filters, .with-aside > aside, .with-aside.wide-aside > * { max-width: none !important; } }
.filters { display: flex; flex-direction: column; gap: 28px; font-size: 15px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.filters legend { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--c-accent-text); margin-bottom: 10px; padding: 0; }
.check { display: flex; gap: 10px; align-items: center; min-height: 32px; font-size: 15px; }
.check.top { align-items: flex-start; line-height: 1.5; font-size: 14px; }
.check input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--c-primary); }
.check.top input { margin-top: 2px; }
.aside-note { background: var(--c-warm-2); padding: 20px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--c-accent); font-size: 14px; line-height: 1.55; color: var(--c-ink-3); }
.aside-note strong { font-size: 15px; color: var(--c-primary); }

/* Publicaciones */
.pub-list { display: flex; flex-direction: column; border-top: 1px solid var(--c-accent-line); }
.pub-row { padding: 30px 8px 30px 0; border-bottom: 1px solid var(--c-accent-line); display: flex; flex-direction: column; gap: 10px; }
.pub-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.pub-meta .tag { font-size: 12px; padding: 4px 10px; }
.pub-title { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: 22px; line-height: 1.45; color: var(--c-ink); }
.pub-authors { font-size: 15px; color: var(--c-ink-3); }
.abstract summary { cursor: pointer; font-size: 14px; color: var(--c-primary); font-weight: 700; min-height: 36px; display: flex; align-items: center; }
.abstract p { margin: 0 0 10px; font-size: 15px; line-height: 1.65; color: var(--c-ink-3); }
.pub-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 4px; }
.cite { display: contents; }
.cite summary { list-style: none; }
.cite summary::-webkit-details-marker { display: none; }
.cite[open] summary { background: var(--c-primary-soft); }
.cite-box { flex-basis: 100%; order: 10; background: var(--c-warm-2); padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.cite-block { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cite-label { font-size: 13px; font-weight: 700; color: var(--c-primary); }
.cite-block code { font-family: 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.pager { display: flex; gap: 8px; padding-top: 28px; align-items: center; flex-wrap: wrap; }
.pager a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #B9C3C8; color: var(--c-ink); text-decoration: none; }
.pager a[aria-current] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pager a.next { border: 0; padding: 0 12px; font-weight: 700; color: var(--c-primary); }

/* Equipo */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 24px; }
.person { background: var(--c-warm-2); display: flex; flex-direction: column; }
.person-top { height: 200px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--c-primary); }
.area-ops { background: #5A8EA5; } .area-tech { background: var(--c-primary-2); } .area-ext { background: var(--c-accent); } .area-alumni { background: var(--c-primary-mid); }
.person-iso { position: absolute; right: -24px; bottom: -40px; height: 220px; opacity: .18; }
.avatar { position: relative; width: 96px; height: 96px; border-radius: 50%; background: #fff; color: var(--c-primary); display: flex; align-items: center; justify-content: center; font-family: var(--f-title); font-size: 32px; object-fit: cover; flex-shrink: 0; }
.avatar.photo { width: 120px; height: 120px; border: 4px solid #fff; }
.avatar.xl { width: 140px; height: 140px; font-size: 44px; border: 4px solid #fff; }
.person-body { padding: 22px 22px 14px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.person-name { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: 20px; line-height: 1.35; }
.person-name a { text-decoration: none; color: var(--c-primary); }
.person-role { font-size: 15px; font-weight: 700; }
.person-body p { margin: 4px 0 0; color: var(--c-ink-3); line-height: 1.6; }
.person-links { padding: 0 22px 18px; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.person-links a:not(.chip-link) { min-height: 40px; display: inline-flex; align-items: center; padding: 0 10px; text-decoration: none; }
.person-hero { flex-direction: row !important; align-items: center; gap: 32px !important; flex-wrap: wrap; }
.person-hero > div { display: flex; flex-direction: column; gap: 12px; flex: 1 1 420px; }
.link-row { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 14px 0; border-bottom: 1px solid var(--c-accent-line); font-family: var(--f-title); font-size: 17px; line-height: 1.5; }
.cta-box { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; border-top: 3px solid var(--c-accent); background: var(--c-warm); padding: 32px; }
.cta-box > div { display: flex; flex-direction: column; gap: 8px; flex: 1 1 420px; }
.cta-box p { margin: 0; color: var(--c-ink-2); }

/* Proyectos */
.project-card { border: 1px solid var(--c-accent-line); background: #fff; display: flex; flex-direction: column; }
.pc-head { padding: 28px 28px 0; display: flex; flex-direction: column; gap: 12px; }
.pc-head p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--c-ink-3); }
.pc-head .h3 a { text-decoration: none; color: var(--c-primary); }
.pc-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.pc-fig { margin: 20px 28px 0; padding: 20px; background: var(--c-warm-2); display: flex; flex-direction: column; gap: 12px; }
.pc-fig figcaption { font-size: 13px; font-weight: 700; }
.pc-fig .bar-row { grid-template-columns: 120px 1fr 52px; font-size: 13px; }
.pc-fig .bar-track { height: 14px; }
.pc-stat .big { font-family: var(--f-title); font-size: 34px; color: var(--c-primary); }
.pc-stat span:last-child { font-size: 14px; color: var(--c-ink-3); }
.pc-pending { flex-direction: row; align-items: center; background: var(--c-primary-soft); border: 1px dashed #9AB6C4; font-size: 14px; }
.pc-pending svg { fill: none; stroke: var(--c-primary); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.pc-foot { padding: 20px 28px 24px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.subnav { border-bottom: 1px solid var(--c-accent-line); background: #fff; position: sticky; top: 0; z-index: 10; }
.subnav .wrap { display: flex; gap: 28px; overflow-x: auto; font-size: 15px; }
.subnav a { min-height: 56px; display: flex; align-items: center; white-space: nowrap; text-decoration: none; color: var(--c-ink); border-bottom: 3px solid transparent; }
.subnav a.active, .subnav a:hover { color: var(--c-primary); border-bottom-color: var(--c-accent); }
.key-figs { flex: 1 1 320px; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kf { background: var(--c-warm-2); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kf-main { grid-column: 1 / -1; background: var(--c-primary); color: #fff; padding: 26px; }
.kf-val { font-family: var(--f-title); font-size: 28px; color: var(--c-primary); line-height: 1.1; }
.kf-main .kf-val { font-size: 48px; color: #fff; }
.kf-label { font-size: 13px; line-height: 1.45; color: #46525A; }
.kf-main .kf-label { font-size: 15px; color: var(--c-warm); }
.impl { border-top: 3px solid var(--c-emph); padding: 22px 4px 0; display: flex; flex-direction: column; gap: 10px; }
.impl h3 { margin: 0; font-size: 18px; }
.impl p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--c-ink-3); }
#implicaciones .h2 { margin-bottom: 28px; }
.mat-card { background: #fff; padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--c-ink); }
.mat-card strong { font-size: 16px; line-height: 1.45; }
.mat-card .more { min-height: 0; font-size: 14px; }
.mat-card:hover strong { color: var(--c-primary); }
#materiales .h2 { margin-bottom: 24px; }
.mat-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #C9C0A6; padding-top: 22px; margin-top: 24px; font-size: 15px; color: var(--c-ink-2); }

/* Vacantes */
.title-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.job-card { border: 1px solid var(--c-accent-line); border-top: 3px solid var(--c-emph); padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; background: #fff; }
.job-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.deadline { font-size: 13px; color: var(--c-emph); font-weight: 700; }
.job-title { margin: 0; font-family: var(--f-title); font-weight: 400; font-size: 24px; line-height: 1.35; }
.job-title a { text-decoration: none; color: var(--c-ink); }
.job-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--c-ink-3); }
.job-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid #EEE9DC; padding-top: 16px; margin-top: auto; }
.closed-list { border-top: 1px solid var(--c-accent-line); padding-top: 20px; margin-top: 32px; }
.closed-list summary { cursor: pointer; font-size: 16px; font-weight: 700; color: #46525A; min-height: 44px; display: flex; align-items: center; }
.closed-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
.closed-list li { padding: 14px 0; border-bottom: 1px solid #EEE9DC; display: flex; justify-content: space-between; gap: 12px; color: var(--c-muted); font-size: 15px; flex-wrap: wrap; }
.alert-box { margin-top: 32px; background: var(--c-warm); padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; scroll-margin-top: 24px; }
.alert-box > div:first-of-type { display: flex; flex-direction: column; gap: 6px; flex: 1 1 420px; }
.alert-box strong { font-size: 18px; color: var(--c-primary); }
.inline-input { display: flex; gap: 8px; flex: 1 1 360px; min-width: 0; flex-wrap: wrap; }
.inline-input input { flex: 1; min-width: 200px; min-height: 48px; border: 1px solid #B9C3C8; padding: 0 14px; background: #fff; }

/* Formularios */
.form-card { background: #fff; border: 1px solid var(--c-accent-line); border-top: 3px solid var(--c-primary); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 10px 30px rgba(18,92,126,.08); scroll-margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { min-height: 48px; border: 1px solid #B9C3C8; padding: 0 12px; font-size: 15px; font-weight: 400; background: #fff; width: 100%; border-radius: 0; }
.field textarea { padding: 12px; line-height: 1.55; resize: vertical; }
.field [aria-invalid="true"], .dropzone.invalid { border-color: var(--c-emph); }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.field-error { display: block; color: #8A0A28; font-size: 13px; font-weight: 700; }
.form-alert { margin: 0; background: #FBEFF2; border: 1px solid #E5B7C2; color: #7A0A25; padding: 12px 14px; font-size: 14px; font-weight: 700; }
.dropzone { position: relative; border: 2px dashed #9AB6C4; background: var(--c-primary-soft); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; font-weight: 400; }
.dropzone svg { fill: none; stroke: var(--c-primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone .dz-label { font-size: 15px; color: var(--c-primary); font-weight: 700; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.contact-form > .btn { align-self: flex-start; }
.narrow-field { max-width: 340px; }
.rule-notice { background: var(--c-warm); border-top: 3px solid var(--c-emph); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; animation: iljFade .4s ease-out both; }
.rule-notice[hidden], .rule-prompt[hidden] { display: none; }
.rn-head { display: flex; gap: 14px; align-items: flex-start; }
.rn-head svg { fill: none; stroke: var(--c-emph); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; margin-top: 2px; }
.rn-head p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--c-ink-2); white-space: pre-line; }
.rule-notice .small { margin: 0; color: #46525A; }
.inst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.inst { background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.inst .lvl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-text); font-weight: 700; }
.inst h3 { margin: 0; font-size: 16px; color: var(--c-primary); line-height: 1.4; }
.rule-prompt { background: #FBF6EC; border: 1px solid var(--c-accent-line); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; animation: iljFade .4s ease-out both; }
.rule-prompt .rn-head svg { stroke: var(--c-accent-text); }
.rule-prompt p { margin: 0; }
.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.aside-card { background: var(--c-warm-2); padding: 28px; display: flex; flex-direction: column; gap: 20px; border-top: 3px solid var(--c-accent); font-size: 16px; }
.aside-card > div { display: flex; flex-direction: column; gap: 4px; }
.social-row { flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; }
.map { width: 100%; height: 260px; border: 0; }

/* Confirmaciones */
.center { text-align: center; }
.confirm { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; width: 100%; text-align: left; }
.steps li { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--c-accent); }
.steps .num { font-family: var(--f-title); color: var(--c-accent-text); }
.steps span:last-child { font-size: 14px; color: #46525A; line-height: 1.5; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--c-primary-dark); color: var(--c-warm); }
.site-footer .wrap { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 44px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.footer-about { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px; }
.footer-about img { height: 60px; width: auto; align-self: flex-start; }
.footer-about p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 380px; }
.footer-links { flex: 0 1 240px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-links .strong { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .kicker { color: var(--c-accent); font-size: 12px; }
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.partners { display: flex; flex-direction: column; gap: 16px; padding-top: 32px; border-top: 1px solid rgba(229,226,217,.25); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.partner { height: 72px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; text-decoration: none; color: var(--c-ink); font-size: 13px; text-align: center; }
.partner img { max-height: 100%; max-width: 100%; object-fit: contain; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #C9D6DC; }
.footer-bottom a { color: #C9D6DC; }

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .section.tight { padding: 32px 0 56px; }
  .page-hero { padding: 48px 0 44px; }
  .figure-card { padding: 20px 16px; }
  .card-line { padding: 24px 20px; }
  .form-card { padding: 24px 18px; }
  .alert-box, .cta-box { padding: 22px 18px; }
  .site-footer .wrap { padding-top: 44px; }
  .hero-iso { height: 200px; }
}

@media print {
  .site-header, .site-footer, .subnav, .btn, .seg { display: none !important; }
  .page-hero { background: none !important; color: #000 !important; }
}
