/* Kroldomarva — hoja de estilo común
   Dirección visual: "mirror-axis", gris técnico con azul y amarillo */

:root {
  --bg: #f4f5f7;
  --bg-alt: #ffffff;
  --bg-dark: #23262b;
  --ink: #16181d;
  --ink-soft: #656b75;
  --ink-invert: #f4f5f7;
  --blue: #2d5bd6;
  --gold: #c9a00f;
  --rule: #d7dade;
  --rule-dark: #3a3f47;
  --mono: ui-monospace, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gap: 24px;
  --max: 1128px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- rejilla de 12 columnas con eje central ---------- */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}

.axis {
  position: relative;
}

.axis::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--rule);
  transform: translateX(-0.5px);
}

.section--dark .axis::before { background: var(--rule-dark); }

/* ---------- tipografía ---------- */

h1, h2, h3, .label, .num, .navlist, .caption {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

h1 {
  font-size: clamp(26px, 4.4vw, 40px);
  line-height: 1.28;
  font-weight: 600;
  margin: 0;
}

h2 {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 20px;
}

h3 {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: 0.12em;
}

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

.label {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.num {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.caption {
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-transform: none;
  line-height: 1.6;
}

.lead { font-size: 18.5px; }

.soft { color: var(--ink-soft); }

ul.list, ol.list {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

ul.list li, ol.list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}

ul.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 1px;
  background: var(--blue);
}

ol.list { counter-reset: step; }
ol.list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  line-height: 2.4;
}

/* ---------- cabecera y navegación ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-alt);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 26px;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
}

.brand {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover { color: var(--blue); }

.navlist {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11.5px;
  letter-spacing: 0.16em;
}

.navlist a { color: var(--ink-soft); text-decoration: none; }
.navlist a:hover, .navlist a[aria-current="page"] { color: var(--blue); }
.navlist a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- ritmo de secciones ---------- */

.section { padding: 64px 0; }
.section--wide { padding: 80px 0; }
.section--tall { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--ink-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--ink-invert); }
.section--dark .soft, .section--dark .caption, .section--dark .label { color: #a3a9b3; }
.section--dark a { color: #9db6f5; }

/* separador: arco corto sobre el eje */
.arc {
  width: 33.333%;
  min-width: 180px;
  max-width: 340px;
  height: 26px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-bottom: none;
  border-radius: 200px 200px 0 0;
}

.arc--gold { border-color: var(--gold); }
.arc--dark { border-color: var(--rule-dark); }

/* ---------- hero ---------- */

.hero {
  padding: 76px 0 88px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
}

.hero__inner { position: relative; text-align: center; }

.hero__inner::before {
  content: "";
  position: absolute;
  top: -18px;
  bottom: -22px;
  left: 50%;
  width: 1px;
  background: linear-gradient(to bottom, rgba(45,91,214,0), var(--blue) 22%, var(--blue) 78%, rgba(45,91,214,0));
  transform: translateX(-0.5px);
}

.hero h1 { max-width: 20ch; margin: 0 auto 22px; }

.hero__lead {
  grid-column: 4 / span 6;
  color: var(--ink-soft);
  font-size: 18.5px;
}

.hero__sides { margin-top: 44px; text-align: left; }
.hero__side { text-align: left; }
.hero__side--l { grid-column: 2 / span 3; }
.hero__side--r { grid-column: 8 / span 3; }
.hero__side p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft); margin: 0; }
.hero__side h2 { font-size: 12.5px; letter-spacing: 0.16em; margin-bottom: 10px; }

/* ---------- figura principal ---------- */

.figure-main {
  margin: 0 auto;
  max-width: 680px;
  text-align: center;
}

.figure-main img {
  margin: 0 auto;
  border: 1px solid var(--rule);
}

.figure-main figcaption, .figure-detail figcaption { margin-top: 14px; }

/* ---------- bloques de contenido ---------- */

.center-col {
  grid-column: 4 / span 6;
  text-align: left;
}

.center-head { text-align: center; margin-bottom: 34px; }
.center-head h2 { margin-bottom: 12px; }

.pair-l { grid-column: 1 / span 5; }
.pair-r { grid-column: 8 / span 5; }
.quad-l { grid-column: 2 / span 4; }
.quad-r { grid-column: 7 / span 4; }
.narrative { grid-column: 1 / span 7; }
.full { grid-column: 1 / span 12; }

.block {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}

.section--dark .block { border-top-color: var(--rule-dark); }

.block + .block { margin-top: 34px; }

/* sección oscura con imagen de detalle */

.figure-detail { grid-column: 1 / span 5; margin: 0; }
.figure-detail img { border: 1px solid var(--rule-dark); }
.detail-text { grid-column: 7 / span 6; }

/* ---------- pie de página ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 0 0 56px;
  text-align: center;
}

.site-footer .arc { margin-bottom: 34px; }

.footer-name {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-nav li { display: flex; align-items: center; }
.footer-nav li + li::before {
  content: "";
  width: 1px;
  height: 11px;
  background: var(--gold);
  margin: 0 16px;
}
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

.footer-mail { margin: 0 0 10px; }
.footer-note {
  max-width: 62ch;
  margin: 0 auto;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- páginas internas ---------- */

.page-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--rule);
  padding: 62px 0 56px;
  text-align: center;
  position: relative;
}

.page-head::before {
  content: "";
  position: absolute;
  top: 0;
  height: 34px;
  left: 50%;
  width: 1px;
  background: var(--blue);
  transform: translateX(-0.5px);
}

.page-head h1 { max-width: 22ch; margin: 0 auto 16px; }
.page-head p { max-width: 60ch; margin: 0 auto; color: var(--ink-soft); }

.prose h2 { margin-top: 8px; }
.prose .block + .block { margin-top: 40px; }

.contact-line {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .center-col, .narrative, .full,
  .pair-l, .pair-r, .quad-l, .quad-r,
  .hero__lead, .hero__side--l, .hero__side--r,
  .figure-detail, .detail-text {
    grid-column: 1 / -1;
  }
  .axis::before { display: none; }
  .hero__sides { margin-top: 34px; }
  .detail-text { margin-top: 30px; }
  .figure-detail { max-width: 460px; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .section { padding: 44px 0; }
  .section--wide { padding: 50px 0; }
  .section--tall { padding: 56px 0; }
  .hero { padding: 44px 0 50px; }
  .page-head { padding: 44px 0 40px; }
  .wrap { padding: 0 18px; }
  .grid { gap: 18px; }
  .hero__inner::before { display: none; }
  .navlist { gap: 6px 16px; }
  .footer-nav li + li::before { margin: 0 10px; }
  .lead, .hero__lead { font-size: 17px; }
}
