/* Dikonto — hoja de estilo general */

:root {
  --bg: #f0f2e9;
  --bg-alt: #e3e7da;
  --bg-dark: #2b1d1e;
  --ink: #1e2119;
  --ink-soft: #6c7264;
  --ink-light: #f0f2e9;
  --ink-light-soft: #b4b8a8;
  --accent: #8c2f2c;
  --ochre: #8a6f1e;
  --ochre-light: #c9a961;
  --gap: 24px;
  --rhythm: 128px;
  --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.7;
  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 {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 1px;
}

/* --- Rejilla de 12 columnas --- */

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

.col-text { grid-column: 4 / 10; }
.col-list { grid-column: 4 / 11; }
.col-wide { grid-column: 3 / 11; }

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

.site-head { padding: 34px 0 0; }

.nav-row { grid-column: 1 / 13; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 34px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ochre); }

/* --- Hero --- */

.hero {
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 14vh;
  padding-top: 80px;
}

.hero .grid { width: 100%; }

.hero-block { grid-column: 3 / 11; text-align: center; }

h1 {
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 26px;
  text-wrap: balance;
}

.lede {
  margin: 0 auto;
  max-width: 40em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* --- Secciones --- */

section { padding: calc(var(--rhythm) / 2) 0; }

section.tone { background: var(--bg-alt); padding: var(--rhythm) 0; }

.figure-band { padding: 96px 0; }

h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  margin: 34px 0 10px;
}

p { margin: 0 0 20px; max-width: 68ch; }

.snum {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--ochre);
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}

/* --- Imágenes --- */

figure { margin: 0; }

.figure-main { grid-column: 3 / 11; }

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 16px;
}

/* --- Listas --- */

ul, ol { margin: 0 0 22px; padding-left: 1.25em; }

li { margin-bottom: 10px; padding-left: 4px; }

li::marker { color: var(--accent); }

ol li::marker { color: var(--ochre); font-variant-numeric: tabular-nums; }

.plain-list { list-style: none; padding-left: 0; }

.plain-list li {
  padding-left: 26px;
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--ochre);
}

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

.dark {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: var(--rhythm) 0;
}

.dark h2 { color: var(--ink-light); }

.dark .snum { color: var(--ochre-light); }

.dark figcaption { color: var(--ink-light-soft); text-align: left; }

.dark a { color: var(--ochre-light); }

.dark a:focus-visible { outline-color: var(--ink-light); }

.dark .figure-detail { grid-column: 2 / 6; }

.dark .dark-text { grid-column: 7 / 12; align-self: center; }

.dark p { color: var(--ink-light); }

.dark .plain-list li::before { background: var(--ochre-light); }

.dark li::marker { color: var(--ochre-light); }

/* --- Páginas interiores --- */

.page-head { padding: 72px 0 0; }

.page-head .col-text { text-align: center; }

.page-head h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 18px;
}

.page-body { padding: 72px 0 var(--rhythm); }

.page-body h2 { margin-top: 0; }

.page-body .block + .block { margin-top: 72px; }

.intro { font-size: 21px; line-height: 1.6; }

.rule {
  text-align: center;
  color: var(--ochre);
  letter-spacing: 0.4em;
  margin: 64px 0;
  font-size: 14px;
}

/* --- Contacto --- */

.contact-line { font-size: 1.15rem; margin-bottom: 6px; }

/* --- Pie --- */

.site-foot {
  background: var(--bg-alt);
  padding: 112px 0;
}

.foot-col {
  grid-column: 3 / 11;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.foot-name {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.foot-note {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0;
}

/* --- Adaptación a pantallas medianas y pequeñas --- */

@media (max-width: 900px) {
  :root { --rhythm: 88px; }

  .col-text, .col-list, .col-wide, .figure-main,
  .hero-block, .foot-col, .nav-row,
  .dark .figure-detail, .dark .dark-text { grid-column: 1 / 13; }

  .dark .figure-detail { max-width: 460px; margin: 0 auto 40px; }
}

@media (max-width: 620px) {
  :root { --rhythm: 72px; --gap: 16px; }

  body { font-size: 16.5px; }

  .grid { padding: 0 20px; }

  .hero {
    min-height: 78vh;
    padding-bottom: 10vh;
    padding-top: 56px;
  }

  .nav { gap: 8px 20px; letter-spacing: 0.12em; font-size: 12.5px; }

  .figure-band { padding: 64px 0; }

  .site-foot { padding: 80px 0; }

  .intro { font-size: 19px; }

  .page-body .block + .block { margin-top: 56px; }

  .rule { margin: 48px 0; }
}
