/* Botrope — hoja de estilo común */

:root {
  --bg: #e9eeeb;
  --bg-alt: #d9e1dd;
  --bg-dark: #1e2a26;
  --ink: #171f1c;
  --ink-soft: #63706b;
  --ink-inv: #e9eeeb;
  --rust: #8f4a28;
  --teal: #3d6f66;
  --mono: ui-monospace, Consolas, 'Liberation Mono', monospace;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { 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(--rust); text-decoration: underline; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- rejilla ---------- */

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

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

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

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

.r72 { padding: 72px 0; }
.r88 { padding: 88px 0; }
.r104 { padding: 104px 0; }

.band-alt { background: var(--bg-alt); }
.band-dark { background: var(--bg-dark); color: var(--ink-inv); }
.band-dark .meta { color: #9db3ac; }
.band-dark a { color: #d59a76; }
.band-dark h2 { color: var(--ink-inv); }

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

h1, h2, h3, .meta, nav a, .num {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

h1 {
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.28;
  margin: 0;
}

h1 .l2 { display: block; padding-left: 8.333%; }

h2 {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  margin: 0 0 18px;
}

h3 {
  font-size: 15px;
  letter-spacing: 0.1em;
  margin: 34px 0 10px;
  color: var(--ink);
}

p { margin: 0 0 18px; }

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

.meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.num { color: var(--teal); font-size: 12px; letter-spacing: 0.2em; }

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

/* ---------- separadores ---------- */

.sep { margin: 0 0 34px; }
.sep::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--ink-soft);
  opacity: .5;
  width: 100%;
}
.sep::after {
  content: "";
  display: block;
  height: 3px;
  width: 16.666%;
  min-width: 96px;
  background: var(--rust);
  margin-top: 5px;
}
.band-dark .sep::before { background: #5d6f69; opacity: 1; }

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

.site-head {
  border-bottom: 1px solid rgba(23, 31, 28, .18);
  background: var(--bg);
}

.head-in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}

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

.site-head nav { margin-left: auto; }

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

.site-head nav a {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-head nav a:hover,
.site-head nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--rust);
}

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

.hero { padding: 88px 0 72px; }

.hero-in {
  position: relative;
  padding-left: 34px;
  border-left: 1px solid var(--teal);
}

.hero-in::before,
.hero-in::after {
  content: "";
  position: absolute;
  left: -7px;
  width: 14px;
  height: 1px;
  background: var(--teal);
}
.hero-in::before { top: 0; }
.hero-in::after { bottom: 0; }

.hero h1 { max-width: 20ch; }

.dimline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 30px;
  max-width: 640px;
}

.dimline span { flex: none; }

.dimline .bar {
  flex: 1 1 auto;
  height: 1px;
  background: var(--ink-soft);
  position: relative;
  opacity: .6;
}
.dimline .bar::before,
.dimline .bar::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--ink-soft);
}
.dimline .bar::before { left: 0; }
.dimline .bar::after { right: 0; }

/* ---------- imagen principal con llamada ---------- */

.figmain { margin: 0; }

.figmain .img { grid-column: 1 / span 7; }

.figmain figcaption {
  grid-column: 9 / span 4;
  align-self: end;
  position: relative;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  padding-bottom: 18px;
}

.figmain figcaption::before {
  content: "";
  position: absolute;
  left: -34px;
  bottom: 34px;
  width: 34px;
  height: 1px;
  background: var(--teal);
}

/* ---------- listas ---------- */

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

ul.check li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
ul.check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 2px;
  background: var(--rust);
}

ol.steps { counter-reset: s; }
ol.steps li {
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
  counter-increment: s;
}
ol.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--teal);
}

.band-dark ul.check li::before { background: #d59a76; }

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

.detail-grid { align-items: start; }

.detail-fig {
  grid-column: 1 / span 4;
  margin: 0;
}

.detail-fig figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: #9db3ac;
  margin-top: 12px;
}

.detail-text { grid-column: 6 / span 7; }

/* ---------- índice de contenidos ---------- */

.toc { border-top: 1px solid rgba(23,31,28,.2); }
.toc li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23,31,28,.2);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc .num { flex: 0 0 auto; padding-top: 4px; }
.toc .t { flex: 1 1 260px; }

/* ---------- About ---------- */

.about-col {
  grid-column: 1 / span 7;
  border-left: 1px solid var(--teal);
  padding-left: 34px;
}

.about-col section { position: relative; padding-bottom: 10px; }

.about-col section::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 14px;
  width: 20px;
  height: 1px;
  background: var(--teal);
}

.about-col h2 { margin-top: 34px; }
.about-col > section:first-of-type h2 { margin-top: 0; }

/* ---------- páginas legales ---------- */

.doc { grid-column: 1 / span 9; }
.doc h2 { margin-top: 42px; }
.doc h2:first-of-type { margin-top: 0; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 10px; }

.aside-note {
  grid-column: 11 / span 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.8;
}

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

.site-foot {
  background: var(--bg-alt);
  padding: 56px 0 28px;
  position: relative;
}

.site-foot::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--ink-soft);
  opacity: .5;
  position: absolute;
  top: 0; left: 0; right: 0;
}
.site-foot::after {
  content: "";
  display: block;
  height: 3px;
  width: 160px;
  background: var(--rust);
  position: absolute;
  top: 5px;
  left: calc(50% - 590px + 24px);
}

.foot-in { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

.foot-brand { grid-column: 1 / span 5; }
.foot-brand .name {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
}
.foot-brand p { font-size: 15px; color: var(--ink-soft); margin: 0; max-width: 42ch; }

.foot-nav { grid-column: 7 / span 3; }
.foot-contact { grid-column: 10 / span 3; }

.foot-in h2 {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { margin-bottom: 9px; }
.foot-nav a, .foot-contact a { font-size: 15px; }

.foot-bottom {
  margin-top: 44px;
  padding-top: 16px;
  border-top: 1px solid rgba(23,31,28,.25);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

@media (max-width: 1000px) {
  .site-foot::after { left: 24px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .grid { gap: 18px; }
  .c5, .c6, .c7, .c8, .c9,
  .figmain .img, .figmain figcaption,
  .detail-fig, .detail-text,
  .about-col, .doc, .aside-note,
  .foot-brand, .foot-nav, .foot-contact {
    grid-column: 1 / -1;
  }
  .r72, .r88, .r104 { padding: 48px 0; }
  .hero { padding: 44px 0 40px; }
  .hero-in { padding-left: 20px; }
  .about-col { padding-left: 20px; }
  .about-col section::before { left: -20px; width: 12px; }
  .figmain figcaption { padding-bottom: 0; margin-top: 14px; }
  .figmain figcaption::before { display: none; }
  .detail-fig { max-width: 360px; margin-bottom: 26px; }
  .h1 .l2 { padding-left: 0; }
  h1 .l2 { padding-left: 18px; }
  .foot-in { gap: 30px 18px; }
  .foot-brand .name { font-size: 19px; }
  .aside-note { display: none; }
}

@media (max-width: 520px) {
  .head-in { padding-bottom: 16px; }
  .site-head nav ul { gap: 8px 18px; }
  .dimline { gap: 10px; }
}
