/* ==========================================================================
   CILC — Consejo Internacional para la Lucha contra la Corrupción
   Hoja de estilos de producción. Sistema de diseño "Industry" (variante 1).
   Sin dependencias, sin build step.
   ========================================================================== */

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --color-bg: #e9e9eb;
  --color-surface: #dfdfe2;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-divider: rgba(29, 31, 32, .16);

  --color-accent-100: #eef6ff;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --color-muted: rgba(29, 31, 32, .55);

  --font-heading: "Barlow Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --header-h: 118px;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 6.8px;
}
p { margin: 0 0 10.2px; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }

a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-900); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(89, 128, 166, .3); }

.text-muted { color: var(--color-muted); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--color-accent-900); color: #fff;
  padding: 10px 16px; font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  transition: top .12s ease;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ── Marco "blueprint" ────────────────────────────────────────────────── */
.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0; }
.blueprint.duotone { overflow: visible; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: rgba(29, 31, 32, .55); pointer-events: none;
}
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }
.corner-light { color: rgba(255, 255, 255, .6) !important; }

/* Fotografías: superponer el acero del sistema. Las ilustraciones
   esquemáticas actuales ya vienen en la paleta y no lo necesitan. */
.duotone { position: relative; overflow: hidden; }
.duotone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-accent); mix-blend-mode: color;
}

/* ── Botones ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid var(--color-divider);
  border-radius: 0; padding: 6.8px 12.24px;
  transition: background-color .12s ease, color .12s ease;
}
.btn-primary { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary:hover { background: rgba(29, 31, 32, .07); color: var(--color-text); }
.btn-secondary:active { background: rgba(29, 31, 32, .14); }
.btn-ghost { color: var(--color-accent-700); border-color: transparent; padding-inline: 3.4px; }
.btn-ghost:hover { background: rgba(89, 128, 166, .1); color: var(--color-accent-800); }
.btn-ghost:active { background: rgba(89, 128, 166, .18); }
.btn-invert { background: var(--color-bg); border-color: var(--color-bg); color: var(--color-accent-900); padding: 11px 20px; }
.btn-invert:hover { background: #fff; color: var(--color-accent-900); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .4); padding: 11px 20px; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ── Etiquetas ────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: .02em; padding: 3px 10px; border-radius: 0;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent-700); }

/* ── Estructura ───────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  font-family: var(--font-body); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; display: inline-block;
}
.eyebrow-accent { color: var(--color-accent-700); }

.section { padding: 88px 0; }
.section-rule { border-top: 1px solid var(--color-divider); }
.section-surface { background: var(--color-surface); }

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 30px; margin-bottom: 44px; flex-wrap: wrap;
}
.section-head h2 { font-size: 34px; margin: 14px 0 0; line-height: 1.08; }
.h2-aside { font-size: 34px; margin-top: 14px; line-height: 1.08; }
.section-head .section-note { max-width: 42ch; font-size: 15px; margin: 0; }
.section-head .btn { flex: none; }

/* ── Selector de idioma ───────────────────────────────────────────────── */
.langs { display: flex; gap: 14px; align-items: center; }
.site-header .langs {
  margin-left: 8px; padding-left: 20px; border-left: 1px solid var(--color-divider);
}
.langlink {
  color: var(--color-muted); text-decoration: none; font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
}
a.langlink:hover { color: var(--color-accent-800); }
.langlink[aria-current="true"] { color: var(--color-text); }
.langlink-off { color: rgba(29, 31, 32, .3); cursor: default; }

/* ── Cabecera ─────────────────────────────────────────────────────────── */
.site-header {
  background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 40px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: block; flex: none; }
.brand img { height: 78px; width: auto; }

.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; flex-wrap: nowrap; }
.navlink {
  color: var(--color-text); text-decoration: none; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; padding: 6px 0;
  border-bottom: 1px solid transparent; white-space: nowrap;
}
.navlink:hover { color: var(--color-accent-800); border-bottom-color: var(--color-accent-800); }

/* Menú móvil (sin JS) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none; margin-left: auto; cursor: pointer; flex: none;
  width: 44px; height: 44px; border: 1px solid var(--color-divider);
  align-items: center; justify-content: center;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 20px; height: 1.5px; background: var(--color-text);
  transition: transform .16s ease, opacity .16s ease;
}
.nav-toggle-label span { position: relative; }
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after  { top: 6px; }
.nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
.nav-toggle:checked ~ .nav-toggle-label span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .nav-toggle-label span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { background: var(--color-accent-900); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { padding-top: 84px; padding-bottom: 84px; }
.grid-split { display: grid; grid-template-columns: 1.08fr minmax(0, .92fr); gap: 64px; align-items: center; }
.hero-eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero-eyebrow-row .rule { display: block; width: 46px; height: 1px; background: rgba(255, 255, 255, .45); flex: none; }
.hero-eyebrow-row .eyebrow { color: rgba(255, 255, 255, .7); }
.hero h1 {
  font-size: 62px; line-height: 1.02; letter-spacing: -.02em;
  margin: 0 0 26px; color: #fff; text-wrap: balance;
}
.hero-lede { font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .82); max-width: 52ch; margin: 0 0 34px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-figure { height: 480px; position: relative; min-width: 0; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }

/* ── 01 El Consejo ────────────────────────────────────────────────────── */
.grid-aside { display: grid; grid-template-columns: 260px 1fr; gap: 64px; }
.lede { font-size: 19px; line-height: 1.6; max-width: 62ch; margin-bottom: 26px; }
.body-copy { font-size: 16px; line-height: 1.7; max-width: 62ch; }

.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--color-divider); }
.rule-grid > div { background: var(--color-bg); padding: 24px 26px 26px 0; }
.rule-grid > div:nth-child(2n) { padding: 24px 0 26px 26px; }
.rule-grid > div:nth-child(n+3) { padding-top: 26px; padding-bottom: 0; }
.rule-grid p { margin: 10px 0 0; font-size: 15px; line-height: 1.65; }

/* ── Dirección del Consejo ────────────────────────────────────────────── */
.officers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.officer { display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 30px; }
.officer-head { display: flex; gap: 20px; align-items: center; }
.officer-photo {
  width: 120px; height: 120px; flex: none; overflow: hidden;
  border: 1px solid var(--color-divider);
}
.officer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.officer-head > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.officer .role {
  font-family: var(--font-heading); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-accent-700);
}
.officer h3 { font-size: 26px; margin: 0; letter-spacing: -.01em; }
.officer p { font-size: 14px; line-height: 1.6; margin: 0; }

/* ── 02 Áreas de trabajo ──────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.area { padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; }
.area h3 { font-size: 23px; margin: 0; }
.area p { font-size: 14px; line-height: 1.6; margin: 0; }

/* ── 03 Investigación ─────────────────────────────────────────────────── */
.featured {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  background: var(--color-bg); gap: 0; margin-bottom: 52px;
}
.featured-body { padding: 40px 42px 42px; }
.featured-meta-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.featured-meta-row .stamp { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.featured h3 { font-size: 34px; line-height: 1.12; margin: 0 0 18px; max-width: 30ch; }
.orig-title { font-size: 13px; line-height: 1.5; max-width: 60ch; margin: -8px 0 18px; }
.featured-abstract { font-size: 16px; line-height: 1.65; max-width: 60ch; margin-bottom: 24px; }
.featured-meta {
  display: flex; flex-wrap: wrap; gap: 28px;
  border-top: 1px solid var(--color-divider); padding-top: 18px; margin-bottom: 26px;
}
.featured-meta .value { font-size: 14px; margin-top: 4px; }
.featured-figure { position: relative; min-height: 380px; min-width: 0; border-left: 1px solid var(--color-divider); }
.featured-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.pub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 6px; flex-wrap: wrap; }
.pub-head h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 0; }

.pubrow {
  display: grid; grid-template-columns: 132px 1fr 190px; gap: 28px;
  padding: 26px 0; border-top: 1px solid var(--color-divider); align-items: start;
}
.pubrow .quarter { font-family: var(--font-heading); font-size: 20px; margin-top: 2px; }
.pubrow h4 { font-size: 22px; margin: 8px 0; transition: color .12s ease; }
.pubrow:hover h4 { color: var(--color-accent-800); }
.pubrow p { font-size: 14px; margin: 0; max-width: 62ch; }
.pubrow-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pubrow-links a { font-size: 13px; text-decoration: none; text-align: right; }
.pubrow-links a:hover { text-decoration: underline; }
.pub-foot {
  border-top: 1px solid var(--color-divider); padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.pub-foot p { font-size: 13px; margin: 0; max-width: 70ch; }

/* ── Programa de intercambio de datos ─────────────────────────────────── */
.data-panel {
  margin-top: 52px; padding: 40px 42px; background: var(--color-bg);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.data-panel h3 { font-size: 28px; margin: 12px 0; line-height: 1.1; }
.data-panel p { font-size: 15px; line-height: 1.7; margin: 0; max-width: 72ch; }
.data-panel .btn { white-space: nowrap; }

/* ── 04 Actualidad ────────────────────────────────────────────────────── */
.news-item { display: flex; flex-direction: column; gap: 14px; }
.news-figure { height: 190px; position: relative; }
.news-figure img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 22px; margin: 0; line-height: 1.18; }
.news-item p { font-size: 14px; margin: 0; }
.news-link {
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; margin-top: 2px;
}

/* ── Contacto ─────────────────────────────────────────────────────────── */
.contact-panel { padding: 44px 46px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.contact-panel h2 { font-size: 32px; margin: 12px 0; line-height: 1.1; }
.contact-panel p { font-size: 16px; margin: 0; max-width: 62ch; }
.contact-panel .btn { padding: 13px 24px; font-size: 15px; }

/* ── Páginas legales ──────────────────────────────────────────────────── */
.legal { max-width: 74ch; }
.legal h1 { font-size: 44px; line-height: 1.06; margin: 0 0 18px; }
.legal > .lede { font-size: 18px; line-height: 1.6; margin-bottom: 8px; }
.legal-block { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--color-divider); }
.legal-block h2 { font-size: 21px; letter-spacing: -.01em; margin: 0 0 12px; }
.legal-block p { font-size: 15px; line-height: 1.75; margin: 0 0 12px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-updated {
  font-size: 13px; margin: 40px 0 22px; padding-top: 20px;
  border-top: 1px solid var(--color-divider);
}

/* ── Pie ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--color-accent-900); color: #fff; padding: 64px 0 34px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 44px;
  padding-bottom: 46px; border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.footer-grid img { height: 54px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-about { font-size: 14px; color: rgba(255, 255, 255, .65); max-width: 40ch; margin: 0; }
.footer-form { font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, .45); max-width: 42ch; margin: 12px 0 0; }
.footer-grid .eyebrow { color: rgba(255, 255, 255, .5); margin-bottom: 12px; }
.footlink { display: block; color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 13px; padding: 4px 0; }
.footlink:hover { color: #fff; }
.footer-address {
  font-style: normal; font-size: 13px; line-height: 1.7;
  color: rgba(255, 255, 255, .7); margin: 0 0 10px;
}
.socials { display: flex; gap: 10px; margin-top: 20px; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .7); text-decoration: none;
}
a.social:hover { color: #fff; border-color: rgba(255, 255, 255, .55); }
.social-off { color: rgba(255, 255, 255, .3); border-color: rgba(255, 255, 255, .14); cursor: default; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; padding-top: 24px; }
.footer-bottom .copy { font-size: 12px; color: rgba(255, 255, 255, .45); margin-right: auto; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal .footlink { padding: 0; font-size: 12px; color: rgba(255, 255, 255, .55); }
.footer-legal .footlink:hover { color: #fff; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .navlink { font-size: 12px; }
  .nav { gap: 18px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 30px; }
  .hero h1 { font-size: 54px; }
}

@media (max-width: 900px) {
  :root { --header-h: 92px; }
  .brand img { height: 52px; }
  .wrap { padding: 0 22px; }
  .section { padding: 64px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 56px; }
  .grid-split, .featured, .grid-3, .officers { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .data-panel { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; }
  .data-panel .btn { justify-self: start; }
  .pubrow-links { align-items: flex-start; }
  .pubrow-links a { text-align: left; }
  .grid-aside { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .pubrow { grid-template-columns: 1fr; gap: 10px; }
  .pubrow .status { text-align: left; }
  .hero h1 { font-size: 42px; }
  .featured h3 { font-size: 28px; }
  .featured-body { padding: 28px 24px 30px; }
  .featured-figure { min-height: 260px; border-left: 0; border-top: 1px solid var(--color-divider); }
  .hero-figure { height: 380px; }
  .contact-panel { grid-template-columns: 1fr; gap: 26px; padding: 30px 24px; }
  .contact-panel .btn { justify-self: start; }
  .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .rule-grid > div,
  .rule-grid > div:nth-child(2n),
  .rule-grid > div:nth-child(n+3) { padding: 22px 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom .copy { margin-right: 0; }
  .legal h1 { font-size: 34px; }
  .section-head { margin-bottom: 32px; }

  /* Menú móvil */
  .nav-toggle-label { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--color-bg); border-bottom: 1px solid var(--color-divider);
    padding: 8px 22px 22px; margin-left: 0;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
  .navlink { font-size: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-divider); }
  .navlink:hover { border-bottom-color: var(--color-divider); }
  .nav .btn { margin-top: 18px; align-self: flex-start; padding: 11px 20px; }
  .site-header .langs { margin: 22px 0 0; padding: 0; border-left: 0; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 36px; }
  .section-head h2, .contact-panel h2, .data-panel h3 { font-size: 26px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media print {
  .site-header, .nav-toggle-label { display: none; }
  body { background: #fff; }
}
