/* Skandilmi — hoja de estilo común
   Composición «marcas de registro»: madera, cobre y verde grisáceo */

:root {
  --bg: #f1e9dc;
  --bg-alt: #e5d8c4;
  --bg-dark: #3a2a1d;
  --ink: #2a2018;
  --ink-soft: #7a6a57;
  --ink-inv: #f1e9dc;
  --acc: #9c5a2c;
  --acc2: #59705b;
  --step: 84px;
  --gap: 24px;
  --serif: Georgia, 'Times New Roman', serif;
  --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.72;
  overflow-x: hidden;
}

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

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

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

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

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  color: inherit;
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.25;
  margin: 0 0 0.7em;
}

h3 {
  font-style: italic;
  font-size: 1.19rem;
  line-height: 1.4;
  margin: 2em 0 0.5em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc2);
  line-height: 1.6;
  margin: 0 0 14px;
}

.caption {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.lead {
  font-size: 1.11rem;
  line-height: 1.66;
}

/* ---------- marca de registro ---------- */

.rm {
  width: 20px;
  height: 20px;
  display: block;
  background: radial-gradient(circle at 50% 50%,
      transparent 4.5px, var(--acc2) 4.5px, var(--acc2) 5.5px, transparent 5.6px);
  position: relative;
}
.rm::before,
.rm::after { content: ""; position: absolute; background: var(--acc); }
.rm::before { left: 50%; top: 0; bottom: 0; width: 1px; margin-left: -0.5px; }
.rm::after { top: 50%; left: 0; right: 0; height: 1px; margin-top: -0.5px; }

.rm--inv { background: radial-gradient(circle at 50% 50%,
      transparent 4.5px, #8a9c8b 4.5px, #8a9c8b 5.5px, transparent 5.6px); }
.rm--inv::before, .rm--inv::after { background: #c98a55; }

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

.site-header { border-top: 3px solid var(--acc); }

.site-header .grid {
  padding-top: 22px;
  padding-bottom: 22px;
  row-gap: 12px;
  align-items: baseline;
}

.brand {
  grid-column: 1 / 5;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--acc); }

.site-nav {
  grid-column: 5 / 13;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: flex-end;
}
.site-nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--acc); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--acc); color: var(--acc); }

/* ---------- portada ---------- */

.hero { padding: calc(var(--step) * 0.72) 0 0; }

.hero-frame {
  grid-column: 1 / 13;
  position: relative;
  border: 1px solid rgba(122, 106, 87, 0.42);
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 46px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  row-gap: 34px;
}
.hero-frame .rm { position: absolute; }
.hero-frame .rm:nth-of-type(1) { top: -10px; left: -10px; }
.hero-frame .rm:nth-of-type(2) { top: -10px; right: -10px; }
.hero-frame .rm:nth-of-type(3) { bottom: -10px; left: -10px; }
.hero-frame .rm:nth-of-type(4) { bottom: -10px; right: -10px; }

.hero h1 { grid-column: 1 / 10; }
.hero h1 .l1 { display: block; }
.hero h1 .l2 {
  display: inline-block;
  position: relative;
  color: var(--ink);
}
.hero h1 .l2::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 62%;
  height: 2px;
  background: var(--acc);
}

.hero-intro { grid-column: 1 / 6; }
.hero-topics { grid-column: 9 / 13; }
.hero-topics .label { margin-bottom: 10px; }

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

.marks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.marks li { position: relative; padding-left: 22px; margin-bottom: 0.45em; }
.marks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  background: var(--acc);
}
.marks--tight li { margin-bottom: 0.2em; font-size: 16px; }
.marks:last-child { margin-bottom: 0; }

.steps { list-style: none; margin: 0 0 1.2em; padding: 0; counter-reset: st; }
.steps li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 0.55em;
  counter-increment: st;
}
.steps li::before {
  content: counter(st, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.16em;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--acc2);
}

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

.figure-main { padding: var(--step) 0 0; }

.figure-main figure {
  grid-column: 3 / 11;
  margin: 0;
  position: relative;
}
.figure-main img { width: 100%; }
.figure-main .rm { position: absolute; }
.figure-main .rm:nth-of-type(1) { top: -10px; left: -10px; }
.figure-main .rm:nth-of-type(2) { top: -10px; right: -10px; }
.figure-main .rm:nth-of-type(3) { bottom: -10px; left: -10px; }
.figure-main .rm:nth-of-type(4) { bottom: -10px; right: -10px; }
.figure-main figcaption { max-width: 46ch; }

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

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

.sep {
  height: 8px;
  position: relative;
  margin-bottom: 30px;
}
.sep::before,
.sep::after { content: ""; position: absolute; height: 2px; }
.sep::before { left: 0; right: 40px; top: 0; background: var(--acc); }
.sep::after { left: 24px; right: 0; top: 6px; background: var(--acc2); }

.col { grid-column: 1 / 8; }
.col--o1 { grid-column: 2 / 9; }
.col--o2 { grid-column: 3 / 10; }
.col--o3 { grid-column: 4 / 11; }

.note {
  border-left: 2px solid var(--acc2);
  padding-left: 18px;
  margin: 1.6em 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- sección de contraste ---------- */

.dark {
  background: var(--bg-dark);
  color: var(--ink-inv);
  padding: var(--step) 0;
}
.dark h2, .dark h3 { color: var(--ink-inv); }
.dark .label { color: #9fb3a0; }
.dark .caption { color: #c3b3a0; }
.dark a { color: #d99a63; }
.dark .marks li::before { background: #c98a55; }
.dark .sep::before { background: #c98a55; }
.dark .sep::after { background: #7f9880; }
.dark .note { border-left-color: #7f9880; color: #c3b3a0; }

.dark-figure { grid-column: 1 / 6; margin: 0; position: relative; }
.dark-figure img { width: 100%; }
.dark-text { grid-column: 7 / 13; }

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

.page-head { padding: calc(var(--step) * 0.7) 0 0; }
.page-head h1 { grid-column: 1 / 10; font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
.page-head .label { grid-column: 1 / 13; }
.page-head .lead { grid-column: 1 / 8; margin-top: 26px; }

.about-body { padding: var(--step) 0; }
.about-marks {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding-top: 6px;
}
.about-text { grid-column: 3 / 10; }
.about-text section + section { margin-top: 52px; }

.legal { padding: calc(var(--step) * 0.8) 0 var(--step); }
.legal-body { grid-column: 2 / 10; }
.legal-body section + section { margin-top: 46px; }

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

.contact-line {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0.4em 0 0;
}

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

.site-footer {
  background: var(--bg-dark);
  color: var(--ink-inv);
  padding: 56px 0 48px;
}
.site-footer .sep { grid-column: 1 / 13; margin-bottom: 36px; }
.site-footer .sep::before { background: #c98a55; }
.site-footer .sep::after { background: #7f9880; }

.foot-a { grid-column: 1 / 8; }
.foot-b { grid-column: 8 / 13; }

.foot-a .name {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 0.4em;
}
.foot-a p { color: #c3b3a0; font-size: 15px; max-width: 46ch; }

.foot-nav { list-style: none; margin: 0 0 20px; padding: 0; }
.foot-nav li { margin-bottom: 6px; }
.foot-nav a { color: var(--ink-inv); text-decoration: none; font-size: 15px; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: #d99a63; }

.foot-b a[href^="mailto"] { color: #d99a63; }
.foot-b .label { color: #9fb3a0; }

.foot-end {
  grid-column: 1 / 13;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(241, 233, 220, 0.22);
  color: #c3b3a0;
  font-size: 13px;
}

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

@media (max-width: 1000px) {
  .hero h1 { grid-column: 1 / 12; }
  .hero-intro { grid-column: 1 / 7; }
  .hero-topics { grid-column: 7 / 13; }
  .figure-main figure { grid-column: 2 / 12; }
  .col, .col--o1, .col--o2, .col--o3 { grid-column: 1 / 10; }
  .dark-figure { grid-column: 1 / 6; }
  .dark-text { grid-column: 6 / 13; }
  .about-text { grid-column: 3 / 12; }
  .legal-body { grid-column: 1 / 11; }
  .page-head h1, .page-head .lead { grid-column: 1 / 12; }
}

@media (max-width: 720px) {
  :root { --step: 50px; --gap: 16px; }

  body { font-size: 16.5px; }

  .grid { padding: 0 18px; }

  .brand { grid-column: 1 / 13; }
  .site-nav { grid-column: 1 / 13; justify-content: flex-start; gap: 6px 18px; }

  .hero-frame { grid-column: 1 / 13; }
  .hero h1,
  .hero-intro,
  .hero-topics,
  .figure-main figure,
  .col, .col--o1, .col--o2, .col--o3,
  .dark-figure, .dark-text,
  .about-text, .legal-body,
  .page-head h1, .page-head .lead,
  .foot-a, .foot-b { grid-column: 1 / 13; }

  .hero h1 .l2::after { top: 66%; }

  .about-marks { display: none; }

  .dark-figure { max-width: 340px; margin-bottom: 28px; }

  .foot-b { margin-top: 34px; }

  .sep::before { right: 24px; }
  .sep::after { left: 16px; }
}
