/* Krabratra — hoja de estilo única para todas las páginas */

:root {
  --sand: #f2f0ea;
  --sand-deep: #e5e2d9;
  --ink: #1a1c22;
  --muted: #6e6b64;
  --red: #a82c26;
  --blue: #2a4a6b;
  --pad-y: 88px;
  --pad-x: 52px;
  --gap: 30px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: none;
  margin: 0;
}

h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

h2 {
  font-size: clamp(1.62rem, 2.9vw, 2.28rem);
  line-height: 1.18;
  margin-bottom: 22px;
}

h3 {
  font-style: italic;
  font-size: 1.24rem;
  line-height: 1.32;
  margin: 34px 0 12px;
}

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

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

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

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

.label {
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--blue);
  margin: 0 0 14px;
}

.num {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--blue);
  display: block;
  margin-bottom: 16px;
}

.caption {
  font-size: 13px;
  line-height: 1.56;
  color: var(--muted);
  margin: 14px 0 0;
}

/* ---------- rejilla de 12 columnas, sin intervalos verticales ---------- */

.band { padding: 0; }
.band--alt { background: var(--sand-deep); }
.band--ink { background: var(--ink); color: var(--sand); }
.band--ink h2, .band--ink h3 { color: var(--sand); }
.band--ink .caption { color: #a5a29a; }
.band--ink a { color: #e79a8f; }

.grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--pad-y) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
}

.col { grid-column: 1 / span 6; }
.step-1 .col { grid-column: 2 / span 6; }
.step-2 .col { grid-column: 3 / span 6; }
.step-3 .col { grid-column: 4 / span 6; }

/* ---------- cabecera en tres capas ---------- */

.hero { display: block; }

.hero__nav { background: var(--sand-deep); }
.hero__nav .grid { padding-top: 20px; padding-bottom: 20px; }

.nav-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 30px;
}

.sitename {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.sitename:hover { text-decoration: underline; text-underline-offset: 4px; }

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
}

nav a {
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
nav a:hover { border-bottom-color: var(--red); }
nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }

.hero__title { background: var(--sand); }
.hero__title .grid {
  padding-top: 118px;
  padding-bottom: 54px;
  align-items: end;
  min-height: 46vh;
}
.hero__title h1 { grid-column: 1 / span 9; align-self: end; }

.hero__intro { background: var(--sand-deep); }
.hero__intro .grid { padding-top: 56px; padding-bottom: 56px; }
.hero__intro .lede { grid-column: 1 / span 6; font-size: 1.06rem; }
.hero__intro .topics { grid-column: 8 / span 5; }

.topics ul { list-style: none; margin: 0; padding: 0; }
.topics li {
  font-size: 15px;
  line-height: 1.5;
  padding: 9px 0 9px 22px;
  position: relative;
  color: var(--ink);
}
.topics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 11px;
  height: 2px;
  background: var(--red);
}

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

.figure-main { background: var(--sand); }
.figure-main .grid { padding-top: 64px; padding-bottom: 64px; }
.figure-main figure { grid-column: 4 / span 9; margin: 0; }
.figure-main figcaption { text-align: left; }

/* ---------- secciones de texto ---------- */

.section ul, .section ol { margin: 0 0 20px; padding-left: 22px; }
.section li { margin-bottom: 9px; }
.section li::marker { color: var(--red); }
.section li:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 13px;
  height: 2px;
  background: var(--red);
}

/* ---------- sección contrastada con la imagen de detalle ---------- */

.band--ink .grid { padding-top: 96px; padding-bottom: 96px; }
.detail-figure { grid-column: 1 / span 5; margin: 0; }
.detail-text { grid-column: 7 / span 6; }

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

.contact-line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  margin-top: 10px;
}

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

.site-footer {
  background: var(--ink);
  color: var(--sand);
  margin-top: 0;
}
.site-footer .grid { padding-top: 64px; padding-bottom: 72px; }

.footer-name {
  grid-column: 1 / -1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 12vw, 8.5rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0 0 54px;
  color: var(--sand);
}

.footer-col { grid-column: span 4; }
.footer-col h2 {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #a5a29a;
  margin: 0 0 14px;
  padding-top: 14px;
  position: relative;
  line-height: 1.5;
}
.footer-col h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--blue);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: var(--sand); text-decoration: none; border-bottom: 1px solid #4a4d56; padding-bottom: 1px; }
.footer-col a:hover { border-bottom-color: var(--red); color: #e79a8f; }
.footer-col p { font-size: 15px; line-height: 1.62; color: #a5a29a; margin: 0; }

/* ---------- páginas interiores ---------- */

.page-head { background: var(--sand); }
.page-head .grid { padding-top: 96px; padding-bottom: 44px; }
.page-head h1 { grid-column: 1 / span 9; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.page-head .page-lede { grid-column: 1 / span 6; margin-top: 26px; color: var(--muted); }

.legal .grid { padding-top: 66px; padding-bottom: 66px; }
.legal h3 { margin-top: 28px; }

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

@media (max-width: 1000px) {
  :root { --pad-y: 68px; --pad-x: 34px; --gap: 22px; }
  .col, .step-1 .col, .step-2 .col, .step-3 .col { grid-column: 1 / span 8; }
  .hero__title h1 { grid-column: 1 / -1; }
  .hero__intro .lede { grid-column: 1 / span 7; }
  .hero__intro .topics { grid-column: 1 / span 7; margin-top: 34px; }
  .figure-main figure { grid-column: 3 / span 10; }
  .detail-figure { grid-column: 1 / span 6; }
  .detail-text { grid-column: 1 / -1; margin-top: 34px; }
  .footer-col { grid-column: span 6; margin-bottom: 30px; }
  .page-head h1, .page-head .page-lede { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --pad-y: 52px; --pad-x: 20px; }
  body { font-size: 16px; line-height: 1.68; }
  .grid { column-gap: 0; }
  .col, .step-1 .col, .step-2 .col, .step-3 .col,
  .hero__intro .lede, .hero__intro .topics,
  .figure-main figure, .detail-figure, .detail-text,
  .footer-col, .page-head h1, .page-head .page-lede { grid-column: 1 / -1; }
  .hero__title .grid { padding-top: 74px; padding-bottom: 38px; min-height: 0; }
  .band--ink .grid { padding-top: 62px; padding-bottom: 62px; }
  .footer-name { margin-bottom: 40px; }
  .footer-col { margin-bottom: 34px; }
  .footer-col:last-child { margin-bottom: 0; }
  .nav-row { gap: 12px 20px; }
  nav ul { gap: 8px 18px; }
  .sitename { margin-right: 0; width: 100%; }
}
