/* ==========================================================================
   Selvdagbog Express — Sistema de diseño
   Dirección: almanaque editorial. Papel cálido, tipografía serif de display,
   filetes finos en lugar de sombras, retícula asimétrica.
   Accesibilidad: cuerpo base 18px, interlineado 1.7, contraste AA+.
   ========================================================================== */

/* ------------------------------ 1. Tipografías ---------------------------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------- 2. Tokens ------------------------------ */

:root {
  /* Papel y tinta */
  --paper: #fbf8f3;
  --paper-sunk: #f4efe6;
  --paper-raised: #ffffff;
  --ink: #1a1714;
  --ink-soft: #4a423a;
  --ink-faint: #7a6f63;

  /* Acentos */
  --pine: #1b4d3e;
  --pine-deep: #123529;
  --pine-wash: #e8efeb;
  --clay: #b3653a;
  --clay-deep: #8f4d2a;
  --clay-wash: #f7ece5;

  /* Filetes */
  --rule: #e2dace;
  --rule-strong: #cabfae;
  --rule-ink: rgba(26, 23, 20, 0.14);

  /* Tipografía */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --step--1: clamp(0.875rem, 0.85rem + 0.12vw, 0.9375rem);
  --step-0: clamp(1.0625rem, 1.03rem + 0.18vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.13rem + 0.28vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.28rem + 0.48vw, 1.625rem);
  --step-3: clamp(1.625rem, 1.46rem + 0.82vw, 2.125rem);
  --step-4: clamp(1.9375rem, 1.63rem + 1.53vw, 2.875rem);
  --step-5: clamp(2.3125rem, 1.79rem + 2.6vw, 4rem);

  /* Ritmo */
  --gap-2xs: 0.375rem;
  --gap-xs: 0.625rem;
  --gap-sm: 1rem;
  --gap-md: 1.5rem;
  --gap-lg: 2.25rem;
  --gap-xl: 3.5rem;
  --gap-2xl: 5.5rem;
  --gap-3xl: 8rem;

  --measure: 68ch;
  --shell: 74rem;
  --shell-wide: 84rem;

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;

  --ease: cubic-bezier(0.2, 0.6, 0.25, 1);
  --dur: 200ms;
}

/* ---------------------------- 3. Base y reseteo --------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-variation-settings: 'opsz' 48, 'SOFT' 0, 'WONK' 0;
}

h1 { font-size: var(--step-5); font-variation-settings: 'opsz' 120, 'SOFT' 0, 'WONK' 1; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0; }
p + p { margin-top: 1.1em; }

a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--clay-deep); }

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--pine); color: var(--paper); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.85rem 1.4rem;
  background: var(--pine);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; color: var(--paper); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* -------------------------------- 4. Retícula ----------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.shell--wide { max-width: var(--shell-wide); }
.shell--narrow { max-width: 48rem; }

.band { padding-block: var(--gap-2xl); }
.band--tight { padding-block: var(--gap-xl); }
.band--sunk { background: var(--paper-sunk); }
.band--ink { background: var(--ink); color: var(--paper); }
.band--pine { background: var(--pine); color: var(--paper); }

.rule-top { border-top: 1px solid var(--rule); }

/* ------------------------------ 5. Encabezado ----------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  min-height: 4.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.wordmark__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  flex: none;
}
.wordmark__text {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variation-settings: 'opsz' 90, 'WONK' 1;
}
.wordmark__text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav-desktop a {
  position: relative;
  padding-block: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current='page'] { color: var(--ink); }
.nav-desktop a:hover::after,
.nav-desktop a[aria-current='page']::after { transform: scaleX(1); }

.masthead__actions { display: flex; align-items: center; gap: 0.75rem; }

.burger {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--ink);
}
.burger:hover { background: var(--paper-sunk); }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 320ms var(--ease), visibility 320ms;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  border-bottom: 1px solid var(--rule);
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  padding-block: var(--gap-md) var(--gap-xl);
  overflow-y: auto;
}
.drawer__nav a {
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.drawer__nav a:hover { color: var(--clay-deep); }
.drawer__cta { margin-top: var(--gap-lg); }

/* -------------------------------- 6. Botones ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary { background: var(--pine); color: var(--paper); }
.btn--primary:hover { background: var(--pine-deep); color: var(--paper); }

.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-deep); color: #fff; }

.btn--ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--paper-sunk); border-color: var(--ink-faint); color: var(--ink); }

.btn--on-dark { border-color: rgba(251, 248, 243, 0.35); color: var(--paper); background: transparent; }
.btn--on-dark:hover { background: rgba(251, 248, 243, 0.12); color: var(--paper); border-color: var(--paper); }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--pine);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------- 7. Rótulos de sección -------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--gap-sm);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay-deep);
}
.eyebrow::before {
  content: attr(data-num);
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.eyebrow--bare::before { content: none; }
.band--ink .eyebrow,
.band--pine .eyebrow { color: #e6b894; }
.band--ink .eyebrow::before,
.band--pine .eyebrow::before { color: rgba(251, 248, 243, 0.55); }

.section-head { max-width: 46rem; margin-bottom: var(--gap-lg); }
.section-head p {
  margin-top: var(--gap-sm);
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.6;
}
.band--ink .section-head p,
.band--pine .section-head p { color: rgba(251, 248, 243, 0.78); }

.section-head--split {
  display: grid;
  gap: var(--gap-md);
  max-width: none;
  align-items: end;
}
@media (min-width: 56rem) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--gap-xl);
  }
  .section-head--split > :last-child { justify-self: end; }
}

/* --------------------------------- 8. Hero -------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, var(--paper-sunk));
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.hero__grid {
  display: grid;
  gap: var(--gap-xl);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}

.hero__title { margin-bottom: var(--gap-md); }
.hero__title em {
  font-style: italic;
  color: var(--pine);
  font-variation-settings: 'opsz' 120, 'SOFT' 40, 'WONK' 1;
}
.hero__lede {
  max-width: 34rem;
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-md) var(--gap-lg);
  margin-top: var(--gap-lg);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--rule);
}
.hero__meta div { min-width: 7rem; }
.hero__meta dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__meta dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.hero__figure::before {
  content: '';
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  z-index: -1;
}
@media (min-width: 60rem) {
  .hero__figure img { aspect-ratio: 5 / 6; }
}

/* --------------------------------- 9. Prosa ------------------------------- */

.prose {
  max-width: var(--measure);
  font-size: var(--step-0);
  line-height: 1.78;
  color: var(--ink-soft);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  margin-top: 2.1em;
  margin-bottom: 0.1em;
  font-size: var(--step-3);
  color: var(--ink);
}
.prose h3 {
  margin-top: 1.7em;
  margin-bottom: 0.05em;
  font-size: var(--step-2);
  color: var(--ink);
}
.prose h4 {
  margin-top: 1.5em;
  font-size: var(--step-1);
  color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { list-style: disc; margin-top: 0.5em; }
.prose ol li { list-style: decimal; }
.prose li::marker { color: var(--clay); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius-md); width: 100%; }
.prose figcaption {
  margin-top: 0.7rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
  border-left: 2px solid var(--rule-strong);
  padding-left: 0.75rem;
}
.prose blockquote {
  margin: 2em 0;
  padding: 0.2rem 0 0.2rem 1.5rem;
  border-left: 3px solid var(--clay);
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  font-variation-settings: 'opsz' 60, 'SOFT' 30;
}
.prose hr {
  margin: 2.6em 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.callout {
  margin: 2em 0;
  padding: var(--gap-md);
  background: var(--pine-wash);
  border-left: 3px solid var(--pine);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.callout strong { display: block; margin-bottom: 0.3rem; font-family: var(--font-display); font-size: var(--step-1); }
.callout--clay { background: var(--clay-wash); border-left-color: var(--clay); }

/* -------------------------------- 10. Tarjetas ---------------------------- */

.grid {
  display: grid;
  gap: var(--gap-md);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--wide-gap { gap: var(--gap-lg); }

.card {
  display: flex;
  flex-direction: column;
  padding: var(--gap-md);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--rule-strong); transform: translateY(-2px); }
.card__num {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 600;
  color: var(--clay);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--gap-xs);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--gap-sm);
  border-radius: var(--radius-sm);
  background: var(--pine-wash);
  color: var(--pine);
}
.card__icon svg { width: 1.35rem; height: 1.35rem; }
.card h3 { margin-bottom: var(--gap-2xs); font-size: var(--step-1); }
.card p { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.65; }
.card .link-arrow { margin-top: auto; padding-top: var(--gap-sm); }

/* Tarjeta de artículo */
.post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.post:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
.post__media { position: relative; overflow: hidden; background: var(--paper-sunk); }
.post__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}
.post:hover .post__media img { transform: scale(1.03); }
.post__tag {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  padding: 0.3rem 0.65rem;
  background: var(--paper);
  border-radius: var(--radius-xs);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--pine);
}
.post__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--gap-md);
}
.post__body h3 { margin-bottom: var(--gap-xs); font-size: var(--step-1); }
.post__body h3 a { color: inherit; text-decoration: none; }
.post__body h3 a:hover { color: var(--clay-deep); }
.post__body p { flex: 1; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.65; }
.post__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  margin-top: var(--gap-md);
  padding-top: var(--gap-sm);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

/* Lista destacada (primer artículo grande) */
.feature {
  display: grid;
  gap: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  margin-bottom: var(--gap-lg);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 56rem) {
  .feature { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
}
.feature__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.feature h3 { font-size: var(--step-3); margin-bottom: var(--gap-sm); }
.feature h3 a { color: inherit; text-decoration: none; }
.feature h3 a:hover { color: var(--clay-deep); }
.feature p { color: var(--ink-soft); }

/* ------------------------------ 11. Cifras -------------------------------- */

.figures {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-raised);
}
@media (min-width: 40rem) { .figures { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures > div {
  padding: var(--gap-md);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 40rem) {
  .figures > div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .figures > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 60rem) {
  .figures > div { border-right: 1px solid var(--rule); border-bottom: 0; }
  .figures > div:nth-child(odd) { border-right: 1px solid var(--rule); }
  .figures > div:last-child { border-right: 0; }
}
.figures dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.figures dd {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1.1;
  color: var(--pine);
}

/* --------------------------------- 12. FAQ -------------------------------- */

.faq { border-top: 1px solid var(--rule); }
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-md);
  padding-block: var(--gap-md);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--clay-deep); }
.faq summary::after {
  content: '';
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.35rem;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__answer {
  padding-bottom: var(--gap-md);
  max-width: var(--measure);
  color: var(--ink-soft);
  line-height: 1.75;
}

/* ------------------------------ 13. Formulario ---------------------------- */

.form-shell {
  display: grid;
  gap: var(--gap-xl);
}
@media (min-width: 62rem) {
  .form-shell { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap-2xl); }
}

.field { display: block; margin-bottom: var(--gap-md); }
.field__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.field__label .req { color: var(--clay-deep); }
.field__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.input,
.textarea,
.select {
  width: 100%;
  min-height: 3.125rem;
  padding: 0.75rem 0.95rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #a4998a; }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-faint); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px var(--pine-wash);
}
.textarea { min-height: 9.5rem; resize: vertical; line-height: 1.6; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-block: var(--gap-md);
  padding: var(--gap-sm);
  background: var(--paper-sunk);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.consent input[type='checkbox'] {
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  accent-color: var(--pine);
  cursor: pointer;
}
.consent label { cursor: pointer; }

.contact-aside {
  align-self: start;
  padding: var(--gap-md);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.contact-list { margin-top: var(--gap-sm); }
.contact-list li {
  display: flex;
  gap: 0.85rem;
  padding-block: var(--gap-sm);
  border-top: 1px solid var(--rule);
}
.contact-list li:first-child { border-top: 0; }
.contact-list svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.28rem; color: var(--clay); }
.contact-list dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact-list dd { margin: 0.15rem 0 0; font-size: 0.9375rem; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }

/* ----------------------------- 14. Miga de pan ---------------------------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding-block: var(--gap-md);
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--clay-deep); text-decoration: underline; }
.crumbs li { display: flex; align-items: center; gap: 0.5rem; }
.crumbs li + li::before { content: '/'; color: var(--rule-strong); }
.crumbs [aria-current='page'] { color: var(--ink-soft); }

/* ---------------------------- 15. Cabecera de artículo -------------------- */

.article-head { padding-block: var(--gap-md) var(--gap-lg); }
.article-head h1 { margin-bottom: var(--gap-md); }
.article-head__lede {
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
}
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gap-sm) var(--gap-md);
  margin-top: var(--gap-lg);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--ink-faint);
}
.byline img { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.byline strong { display: block; color: var(--ink); font-size: 0.9375rem; }
.byline a { color: var(--ink); }

.article-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.article-layout { display: grid; gap: var(--gap-xl); }
@media (min-width: 64rem) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 17rem;
    gap: var(--gap-2xl);
    align-items: start;
  }
}
.toc {
  position: sticky;
  top: 6.5rem;
  padding: var(--gap-md);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper-raised);
}
.toc h2 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--gap-sm);
}
.toc li + li { margin-top: 0.55rem; }
.toc a {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-decoration: none;
  display: block;
}
.toc a:hover { color: var(--clay-deep); }

/* -------------------------------- 16. Pie --------------------------------- */

.footer {
  background: var(--ink);
  color: rgba(251, 248, 243, 0.72);
  padding-block: var(--gap-xl) var(--gap-md);
  font-size: 0.9375rem;
}
.footer a { color: rgba(251, 248, 243, 0.72); text-decoration: none; }
.footer a:hover { color: var(--paper); text-decoration: underline; }

.footer__grid {
  display: grid;
  gap: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid rgba(251, 248, 243, 0.14);
}
@media (min-width: 48rem) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--gap-xl); } }

.footer__brand .wordmark { color: var(--paper); }
.footer__brand .wordmark__text span { color: rgba(251, 248, 243, 0.55); }
.footer__brand p { margin-top: var(--gap-sm); max-width: 30rem; line-height: 1.7; }

.footer h2 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: var(--gap-sm);
}
.footer__list li + li { margin-top: 0.6rem; }

.footer__legal-entity {
  margin-top: var(--gap-md);
  padding-top: var(--gap-sm);
  border-top: 1px solid rgba(251, 248, 243, 0.14);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(251, 248, 243, 0.6);
}
.footer__legal-entity strong { display: block; color: rgba(251, 248, 243, 0.85); font-weight: 600; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-md);
  justify-content: space-between;
  padding-top: var(--gap-md);
  font-size: 0.8125rem;
  color: rgba(251, 248, 243, 0.55);
}
.footer__disclaimer {
  margin-top: var(--gap-sm);
  max-width: 60rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: rgba(251, 248, 243, 0.45);
}

/* --------------------------- 17. Aviso de cookies ------------------------- */

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: grid;
  gap: var(--gap-sm);
  max-width: 34rem;
  padding: var(--gap-md);
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -12px rgba(26, 23, 20, 0.28);
}
.cookie[hidden] { display: none; }
.cookie h2 { font-size: var(--step-1); }
.cookie p { font-size: 0.875rem; line-height: 1.6; color: var(--ink-soft); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie__actions .btn { min-height: 2.75rem; padding-inline: 1.25rem; font-size: 0.875rem; }
@media (min-width: 40rem) { .cookie { left: auto; right: 1.5rem; bottom: 1.5rem; } }

/* --------------------------------- 18. 404 -------------------------------- */

.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
  padding-block: var(--gap-2xl);
}
.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--rule-strong);
  font-variation-settings: 'opsz' 144, 'WONK' 1;
}
.notfound h1 { margin-block: var(--gap-md) var(--gap-sm); }
.notfound p { max-width: 34rem; margin-inline: auto; color: var(--ink-soft); }
.notfound .btn { margin-top: var(--gap-lg); }

/* ------------------------------ 19. Utilidades ---------------------------- */

.stack-sm > * + * { margin-top: var(--gap-sm); }
.stack-md > * + * { margin-top: var(--gap-md); }
.stack-lg > * + * { margin-top: var(--gap-lg); }
.text-muted { color: var(--ink-faint); }
.mt-lg { margin-top: var(--gap-lg); }
.mt-xl { margin-top: var(--gap-xl); }

@media (min-width: 62rem) {
  .nav-desktop { display: flex; }
  .burger { display: none; }
}
