/* Balkan Consultores y Asociados — sistema visual institucional.
   Layout: banca comercial regia. Barra de utilidad, navegación blanca con marca serif, portada fotográfica a todo lo ancho
   con velo pizarra a la izquierda, secciones blancas y gris niebla, fotos desplazadas al borde, pie oscuro con notas. */
:root {
  --paper: #FFFFFF;
  --mist: #F2F3F4;
  --ink: #1E2327;
  --muted: #4B545C;
  --rule: #D6DADD;
  --slate: #2E353B;
  --slate-ink: #F4F5F6;
  --slate-muted: #C3CAD0;
  --bronze: #87603A;
  --steel: #2A6787;
  --steel-ink: #FFFFFF;
  --steel-hover: #1E5270;
  --veil: 30, 35, 39;
  --wordmark: "Libre Caslon Text", "Baskerville", Georgia, serif;
  --display: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--steel); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
.two-tone em { font-style: normal; color: var(--bronze); }
.eyebrow { font-family: var(--body); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze); margin: 0; }
sup a { text-decoration: none; font-weight: 600; font-size: 0.72em; padding: 0 1px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; font: 600 0.875rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; }
.btn-steel { background: var(--steel); color: var(--steel-ink); }
.btn-steel:hover { background: var(--steel-hover); }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.75); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; color: var(--steel); text-decoration: none; }
.more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Barra de utilidad y navegación */
.utility { background: var(--slate); color: var(--slate-muted); font-size: 0.8125rem; }
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.utility span:last-child { color: var(--slate-ink); font-weight: 600; }
.nav { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; gap: 6px; }
.brand b { font-family: var(--wordmark); font-weight: 400; font-size: 1.875rem; letter-spacing: 0.01em; }
.brand span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav ul a:hover { color: var(--steel); }
.nav .btn { min-height: 42px; padding: 10px 18px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }

/* Pie */
.foot { background: var(--slate); color: var(--slate-muted); font-size: 0.9375rem; }
.foot .wrap { padding-block: 56px 40px; display: grid; gap: 36px; }
.foot-top { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .brand b, .foot .brand { color: var(--slate-ink); }
.foot .brand span { color: var(--slate-muted); }
.foot h4 { margin: 0 0 12px; font: 600 0.8125rem/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate-ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--slate-muted); text-decoration: none; }
.foot a:hover { color: var(--slate-ink); text-decoration: underline; }
.foot .legal { border-top: 1px solid rgba(255,255,255,0.16); padding-top: 24px; display: grid; gap: 10px; font-size: 0.8125rem; line-height: 1.6; }
.foot .legal p { margin: 0; max-width: 92ch; }
.foot ol.notes { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; max-width: 100ch; }
.foot ol.notes li:target { color: var(--slate-ink); }

@media (max-width: 900px) {
  .nav ul li:not(.keep) { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .utility span:first-child { display: none; }
  .foot-top { grid-template-columns: 1fr; }
  .brand b { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
