/* Nardebratru — hoja de estilo única
   Estilo: campo de dibujo técnico, gris claro 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: #d9dce2;
  --mono: ui-monospace, Consolas, 'Liberation Mono', monospace;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gap: 28px;
}

* { 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; }
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- retícula de 12 columnas ---------- */

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

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

.c5 { grid-column: 1 / span 5; }
.c6 { grid-column: 1 / span 6; }
.c7 { grid-column: 1 / span 7; }

.c6-r { grid-column: 6 / span 6; }
.c5-r { grid-column: 7 / span 5; }
.c7-r { grid-column: 5 / span 8; }

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

h1, h2, h3, .meta, .navlink, .kicker {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}

h1 {
  font-size: clamp(30px, 4.4vw, 55px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin: 0;
}

h2 {
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.35;
  margin: 0 0 20px;
}

h3 {
  font-size: 15px;
  letter-spacing: 0.12em;
  margin: 32px 0 10px;
}

p { margin: 0 0 20px; }

.lead { font-size: 19px; line-height: 1.7; }

.kicker {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.22em;
  display: block;
  margin-bottom: 18px;
}

.meta {
  font-size: 11.5px;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.caption {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.11em;
  color: var(--ink-soft);
  text-transform: uppercase;
  line-height: 1.6;
  margin-top: 14px;
}

/* ---------- plaquitas separadoras ---------- */

.bar { height: 3px; background: var(--blue); border: 0; margin: 0 0 26px; }
.bar-gold { background: var(--gold); }
.w2 { width: 16%; }
.w3 { width: 25%; }
.w4 { width: 34%; }
.w5 { width: 44%; }
.bar-right { margin-left: auto; }

/* ---------- cabecera ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  padding: 22px 0;
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 28px;
}

.brand {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--blue); }

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}

.navlink {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-decoration: none;
}
.navlink:hover, .navlink[aria-current="page"] { color: var(--blue); }
.navlink[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }

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

.hero { padding: 84px 0 64px; }

.hero-top { align-items: start; }

.hero h1 { grid-column: 1 / span 7; max-width: 15ch; }

.hero-void {
  grid-column: 9 / span 4;
  display: flex;
  justify-content: flex-end;
}

.hero-plate {
  width: 10px;
  height: 2.4em;
  min-height: 92px;
  background: var(--gold);
  margin-top: 8px;
}

.hero-intro {
  grid-column: 1 / span 5;
  margin-top: 44px;
}

/* ---------- imagen principal ---------- */

.figure-main {
  margin: 0;
  grid-column: 1 / span 8;
  margin-left: -32px;
}

@media (min-width: 1400px) {
  .figure-main { margin-left: -104px; }
}

.figure-main .caption { text-align: right; }

.section-image { padding-top: 112px; }

/* ---------- secciones ---------- */

.band { padding: 64px 0; }
.band-alt { background: var(--bg-alt); }

.band + .band { padding-top: 64px; }

.text-block + .text-block { margin-top: 64px; }

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

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

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

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--gold);
}

.numbered {
  counter-reset: step;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.numbered li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
}
.numbered li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.defs { margin: 0 0 20px; }
.defs dt {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 20px;
}
.defs dd { margin: 4px 0 0; }

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

.band-dark {
  background: var(--bg-dark);
  color: var(--ink-invert);
  padding: 96px 0;
}
.band-dark h2 { color: var(--ink-invert); }
.band-dark .caption, .band-dark .meta { color: #a3a9b3; }
.band-dark .kicker { color: var(--gold); }
.band-dark a { color: #93b0f2; }
.band-dark .list li::before { background: var(--gold); }

.figure-detail {
  margin: 0;
  grid-column: 2 / span 4;
}

.band-dark .detail-text {
  grid-column: 7 / span 6;
  align-self: center;
}

/* ---------- página interior ---------- */

.page-head { padding: 76px 0 12px; }
.page-head h1 { grid-column: 1 / span 8; }
.page-head .hero-intro { grid-column: 1 / span 6; margin-top: 32px; }

.prose { padding-bottom: 24px; }

/* About: columna de 6 desplazada, plaquitas a la izquierda */
.about-layout {
  padding: 40px 0 72px;
  position: relative;
}
.about-marks {
  grid-column: 1 / span 1;
  display: flex;
  flex-direction: column;
  gap: 190px;
  padding-top: 12px;
}
.about-marks span {
  display: block;
  height: 3px;
  background: var(--blue);
}
.about-marks span:nth-child(2) { background: var(--gold); }
.about-body { grid-column: 3 / span 6; }

/* ---------- contacto ---------- */

.contact-line {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  word-break: break-word;
}

/* ---------- pie ---------- */

.site-foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  padding: 56px 0 48px;
}

.foot-bar {
  height: 6px;
  width: 33%;
  background: var(--blue);
  margin-bottom: 34px;
}

.foot-grid { row-gap: 26px; align-items: start; }

.foot-main { grid-column: 1 / span 7; }
.foot-side { grid-column: 9 / span 4; text-align: right; }

.foot-name {
  font-family: var(--mono);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 20px;
}

.foot-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
}

.foot-note {
  margin-top: 34px;
  grid-column: 1 / span 12;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ---------- adaptación ---------- */

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 56px 0 40px; }
  .section-image { padding-top: 64px; }
  .band { padding: 40px 0; }
  .band-dark { padding: 56px 0; }
  .text-block + .text-block { margin-top: 40px; }

  .c5, .c6, .c7, .c6-r, .c5-r, .c7-r,
  .hero h1, .hero-intro, .page-head h1, .page-head .hero-intro,
  .figure-main, .figure-detail, .band-dark .detail-text,
  .about-body, .foot-main, .foot-side {
    grid-column: 1 / span 12;
  }

  .figure-main { margin-left: 0; }
  .figure-main .caption { text-align: left; }

  .hero-void {
    grid-column: 1 / span 12;
    justify-content: flex-start;
    margin-top: 26px;
  }
  .hero-plate { height: 10px; width: 96px; min-height: 0; margin-top: 0; }

  .figure-detail { margin-bottom: 30px; }

  .about-marks {
    grid-column: 1 / span 12;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 26px;
  }
  .about-marks span { height: 6px; width: 54px; }

  .foot-side { text-align: left; }
  .foot-bar { width: 55%; }
  .w2, .w3, .w4, .w5 { width: 45%; }
  .bar-right { margin-left: 0; }
}

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .lead { font-size: 17.5px; }
  .head-inner { flex-direction: column; align-items: flex-start; }
  .site-nav ul { gap: 6px 18px; }
}
