/* Porukepo — hoja de estilos común
   Paleta "draft-margin": papel verdoso, burdeos y ocre */

:root {
  --paper: #f0f2e9;
  --paper-alt: #e3e7da;
  --dark: #2b1d1e;
  --ink: #1e2119;
  --ink-soft: #6c7264;
  --accent: #8c2f2c;
  --ocre: #8a6f1e;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: 24px;
}

* { box-sizing: border-box; }

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

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

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

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

a:hover { text-decoration-thickness: 2px; }

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

/* ---------- Retícula ---------- */

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

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

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

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  line-height: 1.12;
  margin: 0;
}

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

h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.28;
  margin: 0 0 18px;
}

h3 {
  font-size: 1.06rem;
  line-height: 1.4;
  margin: 30px 0 8px;
}

p { margin: 0 0 20px; }

.lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
}

.cap {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.num {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ocre);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.note { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- 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: 90px;
  background: var(--accent);
  margin-top: 5px;
}

/* ---------- Cabecera y navegación ---------- */

.site-head {
  border-bottom: 1px solid rgba(108, 114, 100, .45);
  background: var(--paper);
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 20px;
  padding-bottom: 18px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .02em;
}
.brand:hover { color: var(--accent); }

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

.site-nav a {
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

/* ---------- Hero ---------- */

.hero { padding: 76px 0 0; }

.hero-inner { position: relative; }

/* línea de cota vertical con marcas arriba y abajo */
.hero-inner::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  bottom: 10px;
  width: 1px;
  background: var(--ocre);
}

.tick-top, .tick-bottom {
  position: absolute;
  left: -30px;
  width: 17px;
  height: 1px;
  background: var(--ocre);
}
.tick-top { top: 6px; }
.tick-bottom { bottom: 10px; }

.hero h1 { grid-column: 1 / span 8; }

.dim {
  grid-column: 1 / span 8;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 34px 0 30px;
}

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

.dim .label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ocre);
  white-space: nowrap;
}

.hero .lead { grid-column: 1 / span 6; margin-bottom: 0; }

/* ---------- Secciones ---------- */

.s-a { padding: 88px 0; }
.s-b { padding: 72px 0; background: var(--paper-alt); }
.s-c { padding: 104px 0; }
.s-d { padding: 72px 0; }

.dark {
  background: var(--dark);
  color: var(--paper);
  padding: 96px 0;
}
.dark h2, .dark h3 { color: var(--paper); }
.dark .num { color: #c9a94a; }
.dark .cap { color: #b9bdae; }
.dark a { color: #e0b3ae; }
.dark .sep::before { background: #7a6e66; opacity: .8; }
.dark .sep::after { background: #c9a94a; }

/* ---------- Figura principal ---------- */

.figure-row { align-items: start; margin-top: 44px; }

.figure-main { grid-column: 1 / span 7; margin: 0; }
.figure-main img { width: 100%; }

.callout {
  grid-column: 9 / span 4;
  padding-top: 22px;
  position: relative;
}

.callout::before {
  content: "";
  position: absolute;
  left: -14.5%;
  top: 30px;
  width: 14.5%;
  height: 1px;
  background: var(--ocre);
}

.callout p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Listas ---------- */

.list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

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

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

.dark .list li::before { background: #c9a94a; }

ol.steps {
  margin: 0 0 22px;
  padding-left: 22px;
}
ol.steps li { margin-bottom: 11px; }
ol.steps li::marker { color: var(--ocre); font-size: 14px; }

.dl { margin: 0 0 20px; }
.dl dt {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-top: 20px;
  color: var(--ink);
}
.dl dd { margin: 4px 0 0; }
.dark .dl dt { color: var(--paper); }

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

.detail-row { align-items: start; }
.figure-detail { grid-column: 1 / span 4; margin: 0; }
.figure-detail img { width: 100%; }
.figure-detail figcaption { margin-top: 12px; }
.detail-text { grid-column: 7 / span 6; }

/* ---------- Página interior / About ---------- */

.page-head { padding: 66px 0 0; }
.page-head h1 { grid-column: 1 / span 9; }
.page-head .lead { grid-column: 1 / span 7; margin-top: 26px; }

.about-body { padding: 72px 0 88px; }

.about-rail {
  grid-column: 1 / span 9;
  position: relative;
  padding-left: 30px;
  border-left: 1px solid var(--ocre);
}

.about-rail section { position: relative; padding-bottom: 8px; margin-bottom: 40px; }

.about-rail section::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 14px;
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.about-rail p, .about-rail ul { max-width: 62ch; }

.legal { padding: 60px 0 88px; }
.legal-body { grid-column: 1 / span 8; }
.legal-body section { margin-bottom: 40px; }
.legal-body p, .legal-body li { max-width: 66ch; }

/* ---------- Pie ---------- */

.site-foot {
  background: var(--paper-alt);
  padding: 56px 0 26px;
  border-top: 1px solid rgba(108, 114, 100, .5);
}

.foot-top {
  border-top: 3px solid var(--accent);
  padding-top: 34px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 30px;
}

.foot-brand { grid-column: 1 / span 5; }
.foot-brand .name {
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1.1;
  margin: 0 0 12px;
}
.foot-brand p { margin: 0; font-size: 15px; color: var(--ink-soft); max-width: 34ch; }

.foot-col-a { grid-column: 7 / span 3; }
.foot-col-b { grid-column: 10 / span 3; }

.site-foot h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ocre);
  margin: 0 0 12px;
  font-weight: 600;
}

.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { font-size: 15px; }

.foot-bottom {
  margin-top: 40px;
  padding-top: 14px;
  border-top: 1px solid rgba(108, 114, 100, .5);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .c6, .c7, .c8, .c9,
  .hero h1, .hero .lead, .dim,
  .page-head h1, .page-head .lead,
  .about-rail, .legal-body,
  .figure-main, .callout,
  .figure-detail, .detail-text {
    grid-column: 1 / span 12;
  }

  .callout { padding-top: 16px; }
  .callout::before { display: none; }

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

  .foot-brand, .foot-col-a, .foot-col-b { grid-column: 1 / span 12; }

  .s-a, .s-b, .s-c, .s-d, .dark, .about-body, .legal { padding-top: 52px; padding-bottom: 52px; }
  .hero { padding-top: 48px; }
  .page-head { padding-top: 44px; }
  .about-body { padding-top: 44px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  .hero-inner::before { left: -12px; }
  .tick-top, .tick-bottom { left: -18px; width: 12px; }
  h1 .line2 { padding-left: 18px; }
  .site-head .wrap { padding-top: 16px; padding-bottom: 14px; }
  .site-nav ul { gap: 4px 16px; }
  .dim { margin: 26px 0 24px; gap: 10px; }
  .s-a, .s-b, .s-c, .s-d, .dark, .about-body, .legal { padding-top: 46px; padding-bottom: 46px; }
}
