/* ==========================================================================
   IUS ET NOESIS · Revista Internacional de Derecho y Pensamiento Crítico
   Hoja de estilos principal
   ========================================================================== */

:root {
  /* Marca */
  --navy: #14243a;
  --navy-900: #0c1828;
  --navy-700: #1f3452;
  --gold: #b8955a;
  --gold-600: #9c7a43;
  --gold-300: #d8bf8f;
  --ivory: #f6f1e7;
  --paper: #fbf8f2;
  --graphite: #3b4048;

  /* Texto y líneas */
  --ink: #1b2330;
  --text: #333a44;
  --muted: #6b6f76;
  --line: #e4dbcb;
  --line-soft: #efe8db;

  /* Tipografía */
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, Georgia, serif;
  --caps: "Cinzel", "Trajan Pro", "Cormorant Garamond", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Medidas */
  --wrap: 1200px;
  --gutter: 24px;
  --radius: 2px;
  --shadow: 0 1px 2px rgba(12, 24, 40, .06), 0 8px 24px rgba(12, 24, 40, .06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--navy-900); padding: 8px 14px; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: rgba(246, 241, 231, .72);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar strong { color: var(--gold-300); font-weight: 600; }

/* --------------------------------------------------------------------------
   Cabecera (mancheta)
   -------------------------------------------------------------------------- */
.masthead {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 20px;
}
.brand { grid-column: 2; display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--navy); }
.brand img { width: 76px; height: auto; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.wordmark {
  font-family: var(--caps);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--navy);
}
.wordmark .et { color: var(--gold); font-size: .78em; }
.tagline {
  display: flex; align-items: center; gap: 10px;
  margin-top: 8px;
  font-family: var(--caps);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--graphite);
}
.tagline::before { content: ""; width: 22px; height: 1px; background: var(--gold); }

.masthead-tools { grid-column: 3; justify-self: end; display: flex; gap: 10px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  border-radius: 50%;
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-600); }
.icon-btn svg { width: 18px; height: 18px; }

.menu-toggle { display: none; }

/* --------------------------------------------------------------------------
   Navegación
   -------------------------------------------------------------------------- */
.nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 1px 0 rgba(184, 149, 90, .35);
}
.nav ul {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap;
}
.nav a {
  display: block;
  padding: 15px 20px;
  color: var(--ivory);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 9px;
  height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s ease;
}
.nav a:hover { color: var(--gold-300); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--gold-300); }

/* --------------------------------------------------------------------------
   Elementos comunes
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-600);
  text-decoration: none;
}
a.kicker:hover { color: var(--navy); }

.meta { font-size: 13.5px; color: var(--muted); }
.meta .sep { margin: 0 .45em; color: var(--gold); }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--ivory { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 28px;
  position: relative;
}
.section-head::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 64px; height: 3px; background: var(--gold);
}
.section-head h2 { font-size: 30px; margin: 0; }
.section-head a { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--navy); white-space: nowrap; }
.section-head a:hover { color: var(--gold-600); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  background: var(--gold); color: var(--navy-900);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--gold-300); color: var(--navy-900); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(216, 191, 143, .6); }
.btn--ghost:hover { background: rgba(216, 191, 143, .12); color: var(--gold-300); }
.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.btn--navy:hover { background: var(--navy-700); color: var(--gold-300); }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--gold);
}
.ornament::before, .ornament::after { content: ""; height: 1px; width: 80px; background: currentColor; opacity: .7; }
.ornament span { width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); }

/* --------------------------------------------------------------------------
   Portadas tipográficas de artículos (sin fotografía)
   -------------------------------------------------------------------------- */
.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(184, 149, 90, .22), transparent 55%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: var(--gold-300);
  display: grid;
  place-items: center;
}
.cover::before {
  content: ""; position: absolute; inset: 12px;
  border: 1px solid rgba(216, 191, 143, .35);
}
.cover::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(246, 241, 231, .025) 0 1px, transparent 1px 22px);
}
.cover img.cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cover--photo { background: var(--navy-900); }
.cover--photo::before { z-index: 2; border-color: rgba(216, 191, 143, .55); }
.cover--photo::after { z-index: 1; background: linear-gradient(180deg, rgba(12, 24, 40, 0) 45%, rgba(12, 24, 40, .55)); }
.cover--photo .cover-num { z-index: 3; color: var(--gold-300); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.card:hover .cover--photo img.cover-photo, .feature:hover .cover--photo img.cover-photo { transform: scale(1.04); }
.cover-icon { width: 30%; max-width: 120px; position: relative; z-index: 1; opacity: .9; }
.cover-label {
  position: absolute; left: 0; right: 0; bottom: 22px; z-index: 1;
  text-align: center;
  font-family: var(--caps);
  font-size: 11px; letter-spacing: .2em;
  color: rgba(246, 241, 231, .7);
}
.cover-num {
  position: absolute; top: 22px; left: 26px; z-index: 1;
  font-family: var(--serif); font-style: italic; font-size: 15px; color: rgba(216, 191, 143, .8);
}
.cover--ivory { background: linear-gradient(160deg, #fffdf8, var(--ivory)); color: var(--gold-600); }
.cover--ivory::before { border-color: rgba(184, 149, 90, .45); }
.cover--ivory .cover-label { color: var(--graphite); }
.cover--ivory .cover-num { color: var(--gold-600); }

/* Variación por área */
.cover[data-area="constitucional"] { background: radial-gradient(120% 90% at 15% 10%, rgba(184,149,90,.22), transparent 55%), linear-gradient(200deg, #22385a, var(--navy-900)); }
.cover[data-area="corrupcion"] { background: radial-gradient(120% 90% at 50% 0%, rgba(184,149,90,.18), transparent 60%), linear-gradient(160deg, #2a3240, #121821); }
.cover[data-area="filosofia"] { background: radial-gradient(120% 90% at 85% 90%, rgba(184,149,90,.25), transparent 55%), linear-gradient(160deg, #1d2d48, #0b1524); }
.cover[data-area="internacional"] { background: radial-gradient(120% 90% at 20% 90%, rgba(184,149,90,.2), transparent 55%), linear-gradient(140deg, #183050, #0a1626); }
.cover[data-area="ensayos"] { background: linear-gradient(160deg, #fffdf8, var(--ivory)); color: var(--gold-600); }
.cover[data-area="ensayos"]::before { border-color: rgba(184,149,90,.45); }
.cover[data-area="ensayos"] .cover-label { color: var(--graphite); }
.cover[data-area="ensayos"] .cover-num { color: var(--gold-600); }

/* --------------------------------------------------------------------------
   Portada: artículo destacado + más recientes
   -------------------------------------------------------------------------- */
.lead { padding: 44px 0 56px; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 44px; }

.feature .cover { aspect-ratio: 16 / 9; }
.feature-body { padding-top: 22px; }
.feature h1, .feature h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 10px 0 14px; }
.feature h1 a, .feature h2 a { color: var(--ink); text-decoration: none; }
.feature h1 a:hover, .feature h2 a:hover { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
.feature p.excerpt { font-size: 18.5px; color: var(--graphite); max-width: 62ch; }

.latest h2 {
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--gold);
}
.latest ol { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.latest li { counter-increment: n; display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.latest li::before { content: counter(n, upper-roman) "."; font-family: var(--serif); font-size: 22px; color: var(--gold); line-height: 1.1; }
.latest h3 { font-size: 21px; margin: 4px 0 6px; }
.latest h3 a { color: var(--ink); text-decoration: none; }
.latest h3 a:hover { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold); }

/* --------------------------------------------------------------------------
   Tarjetas de artículo
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 36px 32px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card { display: flex; flex-direction: column; }
.card .cover { margin-bottom: 18px; transition: filter .25s ease; }
.card:hover .cover { filter: brightness(1.08); }
.card h3 { font-size: 24px; margin: 8px 0 10px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--navy-700); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; }
.card p { color: var(--graphite); font-size: 16px; margin-bottom: 12px; }
.card .meta { margin-top: auto; }

.card--row { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.card--row .cover { margin: 0; }

.empty { padding: 48px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 22px; font-style: italic; }

/* --------------------------------------------------------------------------
   Áreas temáticas
   -------------------------------------------------------------------------- */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area {
  background: var(--paper);
  padding: 30px 28px;
  text-decoration: none;
  color: var(--text);
  display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start;
  transition: background .2s ease;
}
.area:hover { background: #fff; color: var(--text); }
.area svg { width: 44px; height: 44px; color: var(--gold); }
.area h3 { font-size: 22px; margin: 0 0 6px; }
.area p { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.area .count { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.area:hover h3 { color: var(--navy-700); }

/* --------------------------------------------------------------------------
   Banda de convocatoria
   -------------------------------------------------------------------------- */
.callout {
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(184, 149, 90, .18), transparent 60%),
    var(--navy);
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.callout .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.callout h2 { color: var(--ivory); font-size: clamp(30px, 3.6vw, 44px); }
.callout p { color: rgba(246, 241, 231, .8); font-size: 18px; max-width: 56ch; }
.callout .kicker { color: var(--gold-300); }
.callout-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.issue {
  border: 1px solid rgba(216, 191, 143, .45);
  padding: 32px;
  text-align: center;
  position: relative;
}
.issue::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(216, 191, 143, .18); pointer-events: none; }
.issue .label { font-family: var(--caps); letter-spacing: .2em; font-size: 12px; color: var(--gold-300); }
.issue .big { font-family: var(--serif); font-size: 56px; line-height: 1.05; color: var(--ivory); margin: 10px 0 6px; }
.issue .big em { color: var(--gold-300); }
.issue .small { color: rgba(246, 241, 231, .7); font-size: 15px; }
.issue .ornament { margin: 16px 0; }

/* --------------------------------------------------------------------------
   Bloque del director
   -------------------------------------------------------------------------- */
.director { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.director-mark {
  aspect-ratio: 1; background: var(--ivory); border: 1px solid var(--line);
  display: grid; place-items: center; padding: 36px;
}
.director h2 { font-size: 36px; margin-top: 8px; }
.director .role { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold-600); margin-bottom: 16px; }
.director p { max-width: 64ch; }

/* --------------------------------------------------------------------------
   Cabecera de página interior
   -------------------------------------------------------------------------- */
.page-head {
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  padding: 52px 0 44px;
  text-align: center;
}
.page-head h1 { font-size: clamp(36px, 4.6vw, 56px); margin: 10px 0 12px; }
.page-head p { max-width: 64ch; margin: 0 auto; color: var(--graphite); font-size: 18.5px; }
.page-head .ornament { margin-top: 22px; }

.page-head--img {
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 3px solid var(--gold);
  padding: 76px 0 64px;
}
.page-head--img h1 { color: var(--ivory); }
.page-head--img p { color: rgba(246, 241, 231, .85); }
.page-head--img .kicker { color: var(--gold-300); }
.page-head--img .crumbs, .page-head--img .crumbs a { color: rgba(246, 241, 231, .7); }

.callout--img { background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; }

.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-600); }
.crumbs span { margin: 0 .5em; color: var(--gold); }

/* --------------------------------------------------------------------------
   Listado de artículos: filtros
   -------------------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding: 20px 0; margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: #fff; color: var(--graphite);
  border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--gold); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ivory); }

.search { position: relative; min-width: 260px; }
.search input {
  width: 100%;
  font: inherit; font-size: 15px;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px;
}
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 149, 90, .18); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }

/* --------------------------------------------------------------------------
   Artículo individual
   -------------------------------------------------------------------------- */
.article-head { padding: 48px 0 0; text-align: center; }
.article-head h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 22ch; margin: 14px auto 18px; }
.article-head .dek { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--graphite); max-width: 52ch; margin: 0 auto 22px; line-height: 1.4; }
.byline { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: 14.5px; color: var(--muted); }
.byline strong { color: var(--ink); font-weight: 600; }
.article-cover { margin: 36px auto 0; max-width: 1000px; }
.article-cover .cover { aspect-ratio: 21 / 9; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 56px 0 72px; }

.abstracts { border-top: 2px solid var(--gold); border-bottom: 1px solid var(--line); padding: 26px 0 8px; margin-bottom: 40px; }
.abstracts h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 0 0 8px; }
.abstracts p { font-size: 16px; color: var(--graphite); }
.abstracts .lang + .lang { margin-top: 18px; }
.abstracts .en p { font-style: italic; }
.keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }
.keywords span { font-size: 13px; padding: 3px 10px; background: var(--ivory); border: 1px solid var(--line); color: var(--graphite); }

.prose { font-family: var(--serif); font-size: 21px; line-height: 1.7; color: var(--ink); }
.prose > p:first-of-type::first-letter {
  float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; color: var(--gold-600); font-weight: 600;
}
.prose h2 { font-size: 30px; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 24px; margin: 1.4em 0 .5em; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 26px;
  border-left: 3px solid var(--gold);
  font-style: italic; font-size: 1.08em; color: var(--navy-700);
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose sup { font-family: var(--sans); font-size: .55em; color: var(--gold-600); }

.references { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.references h2 { font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.references ol { padding-left: 1.3em; font-size: 15px; color: var(--graphite); }
.references li { margin-bottom: .6em; padding-left: 4px; }

.aside { display: flex; flex-direction: column; gap: 28px; }
.aside-box { border: 1px solid var(--line); background: #fff; padding: 22px; }
.aside-box h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.aside-box p { font-size: 14.5px; }
.aside-box dl { margin: 0; font-size: 14.5px; }
.aside-box dt { font-weight: 600; color: var(--ink); }
.aside-box dd { margin: 0 0 10px; color: var(--graphite); }
.cite { font-size: 14px; background: var(--ivory); padding: 12px; border-left: 2px solid var(--gold); color: var(--ink); word-break: break-word; }
.aside-sticky { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 28px; }
.share { display: flex; gap: 8px; }
.copy-btn { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; margin-top: 10px; background: transparent; border: 1px solid var(--line); cursor: pointer; color: var(--navy); }
.copy-btn:hover { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Páginas institucionales
   -------------------------------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 64px; }
.toc { position: sticky; top: 76px; align-self: start; font-size: 15px; }
.toc h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 16px; color: var(--graphite); text-decoration: none; margin-left: -1px; border-left: 1px solid transparent; }
.toc a:hover { color: var(--navy); border-left-color: var(--gold); }

.doc section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.doc section:last-child { border-bottom: 0; }
.doc h2 { font-size: 36px; }
.doc h3 { font-size: 24px; margin-top: 1.2em; }
.doc p, .doc li { font-size: 17.5px; }
.doc .lede { font-family: var(--serif); font-size: 23px; line-height: 1.5; color: var(--ink); }

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.pillar { background: #fff; border: 1px solid var(--line); padding: 24px; border-top: 3px solid var(--gold); }
.pillar h3 { margin-top: 0; font-size: 22px; }
.pillar p { font-size: 15.5px; margin: 0; color: var(--graphite); }

.org { display: grid; gap: 14px; margin-top: 24px; }
.org-node { background: #fff; border: 1px solid var(--line); padding: 18px 22px; text-align: center; }
.org-node.top { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.org-node.top h3 { color: var(--ivory); }
.org-node .label { font-family: var(--caps); font-size: 11px; letter-spacing: .2em; color: var(--gold-600); }
.org-node.top .label { color: var(--gold-300); }
.org-node h3 { margin: 6px 0 2px; font-size: 22px; }
.org-node p { margin: 0; font-size: 14.5px; color: var(--muted); }
.org-node.top p { color: rgba(246, 241, 231, .7); }
.org-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.org-link { width: 1px; height: 18px; background: var(--gold); margin: -6px auto; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, upper-roman); font-family: var(--serif); font-size: 28px; color: var(--gold); text-align: center; line-height: 1.1; }
.steps strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); font-weight: 600; }

.timeline { list-style: none; margin: 24px 0 0; padding: 0; border-left: 1px solid var(--gold); }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.timeline time { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); }
.timeline p { margin: 2px 0 0; }

.table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 18px; }
.table th { background: var(--navy); color: var(--ivory); text-align: left; font-weight: 600; padding: 12px 16px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:nth-child(even) td { background: var(--ivory); }

.note { background: var(--ivory); border-left: 3px solid var(--gold); padding: 18px 22px; font-size: 16px; }

/* --------------------------------------------------------------------------
   Formulario de contacto
   -------------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.contact-intro h2 { font-size: 34px; }
.contact-intro ul { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-intro li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; }
.contact-intro li svg { width: 22px; height: 22px; color: var(--gold); margin-top: 3px; }
.contact-intro li strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; }

.form { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.field label .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line); background: var(--paper);
  border-radius: var(--radius);
  width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(184, 149, 90, .18); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #a5432f; }
.field .error { font-size: 13px; color: #a5432f; min-height: 0; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14.5px; color: var(--graphite); align-items: start; }
.check input { margin-top: 4px; accent-color: var(--navy); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-foot small { color: var(--muted); font-size: 13px; }
.form-status { margin-top: 18px; padding: 14px 18px; font-size: 15.5px; display: none; }
.form-status.ok { display: block; background: #eef3ea; border-left: 3px solid #5c7c4a; color: #2f4524; }
.form-status.err { display: block; background: #f7ece8; border-left: 3px solid #a5432f; color: #6e2a1c; }

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-900); color: rgba(246, 241, 231, .72); font-size: 15px; }
.footer .wrap { padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(216, 191, 143, .2); }
.footer-brand img { width: 190px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 34ch; }
.footer h2 { font-family: var(--caps); font-size: 12px; letter-spacing: .2em; color: var(--gold-300); margin: 0 0 16px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: rgba(246, 241, 231, .78); text-decoration: none; }
.footer a:hover { color: var(--gold-300); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; color: rgba(246, 241, 231, .5); }
.oa { display: inline-flex; align-items: center; gap: 8px; }
.oa svg { width: 14px; height: 14px; color: var(--gold-300); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .aside-sticky { position: static; }
  .aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .lead-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callout .wrap, .contact, .two-col, .director { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .toc { position: static; }
  .director-mark { max-width: 220px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .topbar .hide-sm { display: none; }
  .masthead .wrap { grid-template-columns: 1fr auto; padding-top: 14px; padding-bottom: 14px; }
  .brand { grid-column: 1; gap: 12px; }
  .brand img { width: 50px; }
  .wordmark { font-size: 25px; }
  .tagline { font-size: 8.5px; letter-spacing: .1em; margin-top: 5px; }
  .tagline::before { display: none; }
  .masthead-tools { grid-column: 2; }
  .menu-toggle { display: inline-grid; }
  .nav { position: sticky; }
  .nav ul { display: none; flex-direction: column; padding: 8px 0; }
  .nav.open ul { display: flex; }
  .nav a { padding: 12px var(--gutter); }
  .nav a::after { display: none; }
  .nav-bar-sm { display: flex; }
}

@media (min-width: 821px) { .nav-bar-sm { display: none; } }

.nav-bar-sm {
  align-items: center; justify-content: space-between;
  padding: 10px var(--gutter);
  color: var(--ivory);
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.nav-bar-sm button {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid rgba(216, 191, 143, .5); color: var(--ivory);
  padding: 7px 12px; font: inherit; cursor: pointer;
}
.nav-bar-sm svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .section { padding: 48px 0; }
  .grid--3, .grid--2, .areas, .org-row, .form-grid, .aside, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .card--row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .prose { font-size: 19.5px; }
  .form { padding: 24px 18px; }
  .search { min-width: 0; width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; }
  .chip { white-space: nowrap; }
  .issue .big { font-size: 44px; }
  .section-head h2 { font-size: 25px; }
  .table { font-size: 14.5px; }
  .table th, .table td { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .nav, .footer, .aside, .masthead-tools { display: none !important; }
  .article-layout { display: block; }
  body { background: #fff; }
}
