/* ════════════════════════════════════════════════════════════════════════
   mimascotasalud · Blog
   Tokens del design system (Verde Cartilla). Los tokens van como canales
   RGB sueltos para que `bg-surface/60`, `text-ink/70` funcionen con alpha.
   ════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand — Verde Cartilla */
  --brand-50:  237 247 243;
  --brand-100: 210 234 224;
  --brand-200: 169 214 198;
  --brand-400:  95 184 156;
  --brand-500:  14 107 85;
  --brand-600:  11 92 75;
  --brand-800:   8 63 51;

  /* Inks */
  --ink:    15 23 23;
  --ink-2:  71 85 78;
  --ink-3: 113 128 121;

  /* Surfaces */
  --canvas:   247 249 247;
  --surface:  255 255 255;
  --surface-2: 240 244 241;
  --line:     218 226 222;

  /* Estado */
  --warn:     176 96 16;
  --warn-bg:  251 240 224;
  --danger:   176 33 33;
  --danger-bg: 251 228 228;
  --info:     30 99 130;
  --info-bg:  224 238 247;

  /* Tipografía — solo pilas del sistema, sin webfonts */
  --font-serif: Iowan Old Style, "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Otros */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 18px;
  --max-width: 76rem;        /* 1216 px */
  --reading-width: 50rem;    /* 800 px */
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.04), 0 1px 1px rgb(0 0 0 / 0.06);
  --shadow:    0 4px 16px rgb(0 0 0 / 0.06), 0 2px 4px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.10), 0 4px 8px rgb(0 0 0 / 0.05);
  --easing: cubic-bezier(.32,.72,0,1);

  /* Tokens de marketing (landing) — copiados de landing/src/index.css.
     No se tocan --ink/--canvas/--line/--warn/--danger/--brand-50..800: ya
     están en uso en el resto de este archivo. */
  --brand: 11 92 75;
  --brand-solid: 14 107 85;
  --brand-on: 255 255 255;
  --brand-soft: 228 241 236;
  --brand-line: 195 223 212;

  --coral: 242 121 94;
  --coral-ink: 176 64 42;
  --coral-soft: 253 237 232;

  --brand-deep: 7 42 34;
  --brand-deep-ink: 255 255 255;
  --brand-deep-ink-2: 157 196 182;
  --brand-deep-raised: 23 56 46;
  --brand-deep-line: 42 91 75;

  --ok: 11 92 75;
  --ok-bg: 228 241 236;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:     240 244 241;
    --ink-2:   184 196 189;
    --ink-3:   130 145 137;

    --canvas:   9 17 14;
    --surface:  16 28 23;
    --surface-2: 23 38 32;
    --line:    31 51 43;

    --warn:     224 154 70;
    --warn-bg:  39 28 14;
    --danger:   232 132 132;
    --danger-bg: 41 19 19;
    --info:     132 188 224;
    --info-bg:  14 28 41;

    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow:    0 4px 16px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.5);

    --brand: 95 211 174;
    --brand-solid: 47 169 133;
    --brand-on: 4 22 15;
    --brand-soft: 15 44 36;
    --brand-line: 31 76 62;

    --coral: 255 144 119;
    --coral-ink: 255 167 144;
    --coral-soft: 51 24 19;

    --brand-deep: 6 28 23;

    --ok: 95 211 174;
    --ok-bg: 15 44 36;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Reset minimalista
   ════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid rgb(var(--brand-500)); outline-offset: 2px; border-radius: 4px; }

/* ════════════════════════════════════════════════════════════════════════
   Base
   ════════════════════════════════════════════════════════════════════════ */

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(var(--ink));
  background: rgb(var(--canvas));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: rgb(var(--ink));
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

a {
  color: rgb(var(--brand-600));
  text-decoration-color: rgb(var(--brand-200) / 0.7);
  text-underline-offset: 3px;
  transition: color 200ms var(--easing);
}
a:hover { color: rgb(var(--brand-500)); text-decoration-color: rgb(var(--brand-500)); }

p, ul, ol, blockquote, pre, figure { margin-block: 0 1em; }
blockquote {
  padding: var(--space-3) var(--space-4);
  border-left: 3px solid rgb(var(--brand-500));
  color: rgb(var(--ink-2));
  font-style: italic;
  background: rgb(var(--brand-50) / 0.4);
  border-radius: 0 var(--radius) var(--radius) 0;
}
code, pre, kbd { font-family: var(--font-mono); font-size: 0.9em; }
pre {
  padding: var(--space-4);
  background: rgb(var(--surface-2));
  border-radius: var(--radius);
  overflow-x: auto;
}
:not(pre) > code {
  background: rgb(var(--surface-2));
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

::selection { background: rgb(var(--brand-200) / 0.6); color: rgb(var(--brand-800)); }

.screen-reader-text {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: rgb(var(--brand-500));
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  z-index: 100;
  text-decoration: none;
  transition: top 200ms var(--easing);
}
.skip-link:focus { top: var(--space-4); }

/* ════════════════════════════════════════════════════════════════════════
   Layout principal: container, grid con sidebar
   ════════════════════════════════════════════════════════════════════════ */

.site-main { flex: 1; padding: var(--space-6) 0 var(--space-9); }
.site-main:has(> .hero) { padding-top: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.site-layout {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  body.has-sidebar .site-layout {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }
  body.has-sidebar .site-layout__main { min-width: 0; }
}
.site-layout__main { min-width: 0; }
.site-layout__sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
}
@media (max-width: 959px) {
  .site-layout__sidebar { position: static; }
}

/* ════════════════════════════════════════════════════════════════════════
   Reading progress (solo en single posts)
   ════════════════════════════════════════════════════════════════════════ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 100;
  pointer-events: none;
}
.reading-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgb(var(--brand-400)), rgb(var(--brand-600)));
  transform-origin: left;
  transition: width 80ms linear;
}

/* ════════════════════════════════════════════════════════════════════════
   Header
   ════════════════════════════════════════════════════════════════════════ */

.site-header {
  background: rgb(var(--surface) / 0.85);
  border-bottom: 1px solid rgb(var(--line));
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  transition: box-shadow 200ms var(--easing);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: rgb(var(--ink));
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  z-index: 2;
  flex-shrink: 0;
}
.site-header__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.site-nav { margin-left: auto; }
.site-nav__list {
  list-style: none;
  display: flex;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav__list a {
  display: inline-block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  text-decoration: none;
  color: rgb(var(--ink-2));
  font-weight: 500;
  transition: all 200ms var(--easing);
  font-size: 0.95rem;
}
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a:not([href*="#"]) {
  color: rgb(var(--brand-600));
  background: rgb(var(--brand-50));
}
.site-nav__list .sub-menu {
  position: absolute;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-2);
  display: none;
  min-width: 12rem;
  z-index: 60;
}
.site-nav__list .menu-item-has-children:hover > .sub-menu,
.site-nav__list .menu-item-has-children:focus-within > .sub-menu { display: block; }
.site-nav__list .sub-menu a { width: 100%; }

.site-header__divider {
  flex-shrink: 0;
  width: 1px;
  height: 24px;
  background: rgb(var(--line));
}
@media (max-width: 768px) {
  .site-header__divider { display: none; }
}

.search-toggle,
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  padding: 0;
  width: 40px;
  height: 40px;
  color: rgb(var(--ink-2));
  transition: all 200ms var(--easing);
  flex-shrink: 0;
}
/* Solo en escritorio: acerca la lupa al nav (var(--space-5) es el gap del
   header ahí). En mobile el nav sale del flujo (position:absolute), así
   que la lupa queda pegada directo al logo — el gap mobile ya alcanza. */
@media (min-width: 769px) {
  .search-toggle { margin-left: calc(var(--space-2) - var(--space-5)); }
}
.search-toggle:hover,
.site-nav__toggle:hover {
  color: rgb(var(--brand-600));
  border-color: rgb(var(--brand-500));
  background: rgb(var(--brand-50));
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
}
.site-nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 250ms var(--easing), opacity 200ms var(--easing);
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ════════════════════════════════════════════════════════════════════════
   Search overlay
   ════════════════════════════════════════════════════════════════════════ */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgb(var(--surface) / 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  animation: fadeIn 200ms var(--easing);
}
.search-overlay[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.search-overlay__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 48rem;
}

.search-overlay__form {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
}
.search-overlay__form:focus-within {
  border-color: rgb(var(--brand-500));
  box-shadow: 0 0 0 3px rgb(var(--brand-100)), var(--shadow-lg);
}
.search-overlay__input {
  flex: 1;
  border: none;
  background: transparent;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  font-size: 1.1rem;
  color: rgb(var(--ink));
}
.search-overlay__input:focus { outline: none; }
.search-overlay__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: rgb(var(--brand-500));
  color: white;
  border: none;
  padding: 0 var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 200ms var(--easing);
}
.search-overlay__submit:hover { background: rgb(var(--brand-600)); }

.search-overlay__close {
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--ink-2));
  flex-shrink: 0;
}
.search-overlay__close:hover {
  color: rgb(var(--danger));
  border-color: rgb(var(--danger));
}

/* ════════════════════════════════════════════════════════════════════════
   Hero (front page)
   ════════════════════════════════════════════════════════════════════════ */

.hero {
  padding: var(--space-6) 0 var(--space-5);
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgb(var(--brand-100) / 0.35), transparent 100%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgb(var(--brand-50) / 0.5), transparent 100%);
  border-bottom: 1px solid rgb(var(--line));
  margin-bottom: var(--space-6);
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgb(var(--brand-600));
  background: rgb(var(--brand-50));
  border: 1px solid rgb(var(--brand-100));
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  margin-bottom: var(--space-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.6rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
  max-width: 18ch;
  line-height: 1.1;
}
.hero__title em { font-style: italic; color: rgb(var(--brand-600)); }
.hero__lede {
  font-size: 1.15rem;
  color: rgb(var(--ink-2));
  max-width: 60ch;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   Título de sección (p.ej. "Blog" en la página de posts)
   ════════════════════════════════════════════════════════════════════════ */

.section-heading {
  margin-bottom: var(--space-5);
}
.section-heading h2 {
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   Filtro de categorías (chips)
   ════════════════════════════════════════════════════════════════════════ */

.cat-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.cat-filter__chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  color: rgb(var(--ink-2));
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 150ms var(--easing);
}
.cat-filter__chip:hover {
  border-color: rgb(var(--brand-500));
  color: rgb(var(--brand-600));
  background: rgb(var(--brand-50));
}
.cat-filter__chip.is-active {
  background: rgb(var(--brand-500));
  border-color: rgb(var(--brand-500));
  color: white;
}
.cat-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: rgb(var(--surface-2));
  color: rgb(var(--ink-2));
  font-size: 0.75rem;
  font-weight: 600;
}
.cat-filter__chip.is-active .cat-filter__count {
  background: rgb(var(--brand-600));
  color: white;
}

/* ════════════════════════════════════════════════════════════════════════
   Archive header (categories, tags, etc.)
   ════════════════════════════════════════════════════════════════════════ */

.archive-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgb(var(--line));
}
.archive-header__title {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}
.archive-header__desc {
  color: rgb(var(--ink-2));
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ════════════════════════════════════════════════════════════════════════
   Post cards (grid del blog)
   ════════════════════════════════════════════════════════════════════════ */

.post-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 200ms var(--easing), box-shadow 200ms var(--easing), border-color 200ms var(--easing);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgb(var(--brand-200));
}
.card__media {
  aspect-ratio: 16/9;
  background: rgb(var(--surface-2));
  overflow: hidden;
  display: block;
  position: relative;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--placeholder {
  background:
    linear-gradient(135deg, rgb(var(--brand-100)), rgb(var(--brand-50)));
  display: flex;
  align-items: center;
  justify-content: center;
}
.card__media-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgb(var(--brand-500) / 0.4);
  position: relative;
  transform: rotate(-7deg);
}
.card__media-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid rgb(var(--brand-500) / 0.4);
}
.card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}
.card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgb(var(--brand-600));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  align-self: flex-start;
}
.card__category:hover { color: rgb(var(--brand-500)); }
.card__title {
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.card__title a {
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(transparent 90%, rgb(var(--brand-200) / 0.5) 90%);
  background-size: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 300ms var(--easing);
}
.card__title a:hover {
  color: rgb(var(--brand-600));
  background-size: 100% 100%;
}
.card__excerpt {
  color: rgb(var(--ink-2));
  font-size: 0.95rem;
  line-height: 1.55;
}
.card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.85rem;
  color: rgb(var(--ink-3));
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid rgb(var(--line));
  white-space: nowrap;
  flex-wrap: nowrap;
}
.card__date, .card__reading { white-space: nowrap; }
.card__dot { opacity: 0.5; }

/* ════════════════════════════════════════════════════════════════════════
   Single post
   ════════════════════════════════════════════════════════════════════════ */

.post-header {
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid rgb(var(--line));
  margin-bottom: var(--space-6);
}
.post-header__category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgb(var(--brand-600));
  background: rgb(var(--brand-50));
  border: 1px solid rgb(var(--brand-100));
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  margin-bottom: var(--space-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.post-header__category:hover { background: rgb(var(--brand-100)); }
.post-header__title {
  font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 28ch;
  margin-bottom: var(--space-3);
}
.post-header__lede {
  font-size: 1.2rem;
  color: rgb(var(--ink-2));
  line-height: 1.5;
  max-width: 60ch;
  margin: var(--space-3) 0 var(--space-4);
}
.post-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: rgb(var(--ink-3));
  flex-wrap: wrap;
}
.post-header__author {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: rgb(var(--ink-2));
  font-weight: 500;
}
.post-header__author:hover { color: rgb(var(--brand-600)); }
.post-header__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgb(var(--brand-100));
}
.post-header__author-name { color: rgb(var(--ink)); }
.post-header__sep { opacity: 0.5; }

.post-header__hero {
  margin: 0 0 var(--space-6);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgb(var(--surface-2));
  border: 1px solid rgb(var(--line));
}
.post-header__hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.post-header__hero figcaption {
  font-size: 0.85rem;
  color: rgb(var(--ink-3));
  text-align: center;
  margin-top: var(--space-2);
  padding: var(--space-2);
}

.post-content {
  font-size: 1.075rem;
  line-height: 1.75;
  max-width: 100%;
}
.post-content > * + * { margin-top: var(--space-4); }
.post-content h2 {
  font-size: 1.7rem;
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
}
.post-content h3 {
  font-size: 1.3rem;
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}
.post-content img { border-radius: var(--radius); margin: var(--space-5) 0; }
.post-content figure { margin: var(--space-5) 0; }
.post-content figcaption {
  font-size: 0.85rem;
  color: rgb(var(--ink-3));
  text-align: center;
  margin-top: var(--space-2);
}
.post-content ul, .post-content ol { padding-left: 1.5em; }
.post-content li { margin-bottom: var(--space-2); }
.post-content a {
  text-decoration: underline;
  text-decoration-color: rgb(var(--brand-200));
  text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-color: rgb(var(--brand-500)); }

.post-content .callout {
  background: rgb(var(--brand-50));
  border-left: 4px solid rgb(var(--brand-500));
  padding: var(--space-4) var(--space-5);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-5) 0;
}
.post-content .callout p { margin: 0; }

.post-content .cta-box {
  background: linear-gradient(135deg, rgb(var(--brand-500)), rgb(var(--brand-600)));
  color: white;
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  text-align: center;
  margin: var(--space-6) 0;
  box-shadow: var(--shadow);
}
.post-content .cta-box h3 { color: white; font-size: 1.6rem; margin: 0 0 var(--space-3); }
.post-content .cta-box p { margin: 0 0 var(--space-4); opacity: 0.95; }
.post-content .cta-box a,
.post-content .cta-box .wp-block-button__link {
  background: white !important;
  color: rgb(var(--brand-600)) !important;
  border: none !important;
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  display: inline-block;
  text-decoration: none;
  transition: transform 150ms var(--easing);
}
.post-content .cta-box a:hover,
.post-content .cta-box .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(var(--line));
}
.post-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: rgb(var(--surface-2));
  color: rgb(var(--ink-2));
  font-size: 0.8rem;
  text-decoration: none;
  transition: all 150ms var(--easing);
}
.post-tag:hover { background: rgb(var(--brand-50)); color: rgb(var(--brand-600)); }

.post-author {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin: var(--space-7) 0;
  padding: var(--space-5);
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-lg);
}
.post-author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgb(var(--brand-100));
  flex-shrink: 0;
}
.post-author__name { font-weight: 600; color: rgb(var(--ink)); margin-bottom: var(--space-1); font-size: 1rem; }
.post-author__name a { color: inherit; text-decoration: none; }
.post-author__name a:hover { color: rgb(var(--brand-600)); }
.post-author__bio { color: rgb(var(--ink-2)); font-size: 0.9rem; margin: 0 0 var(--space-2); }
.post-author__social {
  list-style: none;
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}
.post-author__social a {
  color: rgb(var(--brand-600));
  text-decoration: none;
  border-bottom: 1px solid rgb(var(--brand-200));
}
.post-author__social a:hover { color: rgb(var(--brand-500)); border-color: rgb(var(--brand-500)); }

/* ════════════════════════════════════════════════════════════════════════
   Share buttons
   ════════════════════════════════════════════════════════════════════════ */

.share {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgb(var(--line));
  flex-wrap: wrap;
}
.share__label {
  font-size: 0.8rem;
  color: rgb(var(--ink-3));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-right: var(--space-2);
}
.share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgb(var(--surface-2));
  color: rgb(var(--ink-2));
  text-decoration: none;
  transition: all 200ms var(--easing);
  border: 1px solid transparent;
}
.share__btn:hover {
  background: rgb(var(--brand-500));
  color: white;
  transform: translateY(-1px);
  border-color: rgb(var(--brand-500));
}

/* ════════════════════════════════════════════════════════════════════════
   Related posts
   ════════════════════════════════════════════════════════════════════════ */

.related {
  margin-top: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid rgb(var(--line));
}
.related__head { margin-bottom: var(--space-5); }
.related__title { font-size: 1.5rem; }
.related .post-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ════════════════════════════════════════════════════════════════════════
   Post navigation (prev / next)
   ════════════════════════════════════════════════════════════════════════ */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-7) 0 var(--space-5);
}
.post-nav__link {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  text-decoration: none;
  color: rgb(var(--ink));
  transition: all 200ms var(--easing);
  background: rgb(var(--surface));
}
.post-nav__link:hover {
  border-color: rgb(var(--brand-500));
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.post-nav__link--next { text-align: right; align-items: flex-end; }
.post-nav__link--empty { border: none; background: transparent; }
.post-nav__direction {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--brand-600));
  font-weight: 700;
}
.post-nav__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: rgb(var(--ink));
}

/* ════════════════════════════════════════════════════════════════════════
   Sidebar (widgets)
   ════════════════════════════════════════════════════════════════════════ */

.widget {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgb(var(--line));
}
.widget:last-child { border-bottom: none; }
.widget__title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--ink-3));
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li {
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgb(var(--line));
  font-size: 0.95rem;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: rgb(var(--ink-2)); text-decoration: none; }
.widget a:hover { color: rgb(var(--brand-600)); }

.widget_categories ul li,
.widget_archive ul li,
.widget_pages ul li,
.widget_meta ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.widget_categories .count,
.widget_archive .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 var(--space-2);
  border-radius: 999px;
  background: rgb(var(--brand-50));
  color: rgb(var(--brand-600));
  font-size: 0.75rem;
  font-weight: 700;
}

.widget_tag_cloud .tagcloud,
.widget_tag_cloud .wp-block-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.widget_tag_cloud a {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: rgb(var(--surface-2));
  color: rgb(var(--ink-2));
  font-size: 0.85rem !important;
  border: 1px solid transparent;
}
.widget_tag_cloud a:hover {
  background: rgb(var(--brand-50));
  color: rgb(var(--brand-600));
  border-color: rgb(var(--brand-200));
}

.widget_search .search-form { max-width: none; margin: 0; }

/* Widget "Search" del editor de bloques — markup propio de Gutenberg
   (wp-block-search__*), no pasa por searchform.php ni hereda .search-form*. */
.widget_search .wp-block-search__inside-wrapper { gap: var(--space-2); }
.widget_search .wp-block-search__input {
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  background: rgb(var(--surface));
  color: rgb(var(--ink));
}
.widget_search .wp-block-search__input:focus {
  outline: none;
  border-color: rgb(var(--brand-500));
  box-shadow: 0 0 0 3px rgb(var(--brand-100));
}
.widget_search .wp-block-search__button {
  background: rgb(var(--brand-500));
  color: white;
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  margin-left: 0;
}
.widget_search .wp-block-search__button:hover { background: rgb(var(--brand-600)); }

.widget_recent_entries ul li { display: flex; flex-direction: column; gap: 2px; }
.widget_recent_entries .post-date {
  font-size: 0.8rem;
  color: rgb(var(--ink-3));
}

/* ════════════════════════════════════════════════════════════════════════
   Pagination
   ════════════════════════════════════════════════════════════════════════ */

.pagination,
.navigation.pagination {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  margin: var(--space-7) 0;
}
.pagination a, .pagination span {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  text-decoration: none;
  color: rgb(var(--ink-2));
  font-weight: 500;
  background: rgb(var(--surface));
  min-width: 2.5rem;
  text-align: center;
}
.pagination a:hover {
  border-color: rgb(var(--brand-500));
  color: rgb(var(--brand-600));
}
.pagination .current {
  background: rgb(var(--brand-500));
  color: white;
  border-color: rgb(var(--brand-500));
}

/* ════════════════════════════════════════════════════════════════════════
   Search form (legacy, en widgets de búsqueda)
   ════════════════════════════════════════════════════════════════════════ */

.search-form { max-width: 28rem; margin: 0 auto; }
.search-form__inner { display: flex; gap: var(--space-2); }
.search-form__field {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  background: rgb(var(--surface));
  color: rgb(var(--ink));
  font: inherit;
}
.search-form__field:focus {
  outline: none;
  border-color: rgb(var(--brand-500));
  box-shadow: 0 0 0 3px rgb(var(--brand-100));
}
.search-form__submit {
  background: rgb(var(--brand-500));
  color: white;
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
}
.search-form__submit:hover { background: rgb(var(--brand-600)); }

/* ════════════════════════════════════════════════════════════════════════
   Comments
   ════════════════════════════════════════════════════════════════════════ */

.comments-area {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid rgb(var(--line));
}
.comments-title { margin-bottom: var(--space-5); font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-body { padding: var(--space-4) 0; border-bottom: 1px solid rgb(var(--line)); }
.comment-form p { margin-bottom: var(--space-3); }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: var(--space-1); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius);
  background: rgb(var(--surface));
  color: rgb(var(--ink));
  font: inherit;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgb(var(--brand-500));
  box-shadow: 0 0 0 3px rgb(var(--brand-100));
}
.comment-form .submit,
.comment-form input[type="submit"] {
  background: rgb(var(--brand-500));
  color: white;
  border: none;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}
.comment-form .submit:hover { background: rgb(var(--brand-600)); }

/* ════════════════════════════════════════════════════════════════════════
   Footer
   ════════════════════════════════════════════════════════════════════════ */

.site-footer {
  background: rgb(var(--surface-2));
  border-top: 1px solid rgb(var(--line));
  margin-top: var(--space-9);
  padding-top: var(--space-7);
}
.site-footer__widgets {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgb(var(--line));
}
.footer-widget__title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--ink-3));
  margin: 0 0 var(--space-3);
}
.footer-widget ul { list-style: none; padding: 0; margin: 0; }
.footer-widget li { padding: var(--space-1) 0; }
.footer-widget a { color: rgb(var(--ink-2)); text-decoration: none; font-size: 0.95rem; }
.footer-widget a:hover { color: rgb(var(--brand-600)); }

.site-footer__bottom { padding: var(--space-5) 0; }
.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgb(var(--ink-3));
}
.site-footer__copy { margin: 0; }
.site-footer__copy a {
  color: rgb(var(--ink-2));
  text-decoration: none;
  font-weight: 500;
}
.site-footer__list {
  list-style: none;
  display: flex;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}
.site-footer__list a { text-decoration: none; color: rgb(var(--ink-2)); }
.site-footer__list a:hover { color: rgb(var(--brand-600)); }

.site-footer__legal {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgb(var(--line));
}
.site-footer__legal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  font-size: 0.85rem;
  color: rgb(var(--ink-3));
}
.site-footer__legal-list li:not(:first-child) { display: flex; align-items: center; gap: var(--space-5); }
.site-footer__legal-list li:not(:first-child)::before {
  content: "·";
  color: rgb(var(--line));
}
.site-footer__legal-list a,
.site-footer__legal-list button {
  color: rgb(var(--ink-2));
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.site-footer__legal-list a:hover,
.site-footer__cookie-reopen:hover {
  color: rgb(var(--brand-600));
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer__cookie-reopen {
  color: rgb(var(--brand-600));
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════════════
   Banner de cookies (RGPD/LSSI) — opt-in puro, sin plugin
   ════════════════════════════════════════════════════════════════════════ */

.cookie-banner {
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  bottom: var(--space-3);
  z-index: 90;
  max-width: 64rem;
  margin: 0 auto;
  background: rgb(var(--surface));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: cookieBannerIn 280ms var(--easing) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieBannerIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
}
.cookie-banner__text {
  flex: 1 1 22rem;
  min-width: 0;
}
.cookie-banner__title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgb(var(--brand-600));
  margin: 0 0 var(--space-2);
}
.cookie-banner__desc {
  font-size: 0.9rem;
  color: rgb(var(--ink-2));
  line-height: 1.5;
  margin: 0;
}
.cookie-banner__desc a {
  color: rgb(var(--brand-600));
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex-shrink: 0;
}
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-4);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  transition: all 150ms var(--easing);
  white-space: nowrap;
}
.cookie-banner__btn--ghost {
  background: transparent;
  color: rgb(var(--ink-2));
  border-color: rgb(var(--line));
}
.cookie-banner__btn--ghost:hover {
  border-color: rgb(var(--ink-2));
  color: rgb(var(--ink));
}
.cookie-banner__btn--primary {
  background: rgb(var(--brand-500));
  color: white;
}
.cookie-banner__btn--primary:hover {
  background: rgb(var(--brand-600));
}

@media (max-width: 600px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
  }
  .cookie-banner__inner {
    padding: var(--space-4);
  }
  .cookie-banner__actions {
    width: 100%;
  }
  .cookie-banner__btn { flex: 1; }
}

/* ════════════════════════════════════════════════════════════════════════
   404 / no-results
   ════════════════════════════════════════════════════════════════════════ */

.not-found, .no-results {
  text-align: center;
  padding: var(--space-9) var(--space-4);
  max-width: 36rem;
  margin: 0 auto;
}
.not-found__title {
  font-size: 6rem;
  color: rgb(var(--brand-500));
  font-family: var(--font-serif);
  line-height: 1;
  margin-bottom: var(--space-4);
}
.not-found__heading { font-size: 1.5rem; margin-bottom: var(--space-3); }
.not-found__lede, .no-results .page-content > p {
  font-size: 1.05rem;
  color: rgb(var(--ink-2));
  margin-bottom: var(--space-5);
}

/* ════════════════════════════════════════════════════════════════════════
   Utilities
   ════════════════════════════════════════════════════════════════════════ */

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

.alignleft { float: left; margin-right: var(--space-4); margin-bottom: var(--space-2); }
.alignright { float: right; margin-left: var(--space-4); margin-bottom: var(--space-2); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: var(--max-width); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); }

/* ════════════════════════════════════════════════════════════════════════
   Responsive
   ════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .site-nav__toggle { display: inline-flex; }
  .site-header__inner { gap: var(--space-3); }
  .site-header__brand { flex-shrink: 1; min-width: 0; }
  .site-header__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgb(var(--surface));
    border-bottom: 1px solid rgb(var(--line));
    padding: var(--space-3) var(--space-5) var(--space-5);
    box-shadow: var(--shadow);
    margin: 0;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list {
    flex-direction: column;
    gap: var(--space-1);
    align-items: stretch;
  }
  .site-nav__list a {
    display: block;
    width: 100%;
    padding: var(--space-3);
  }
  .site-nav__list .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgb(var(--surface-2));
    margin-top: var(--space-1);
  }
  .site-nav__list .menu-item-has-children > .sub-menu { display: block; }

  .post-grid { grid-template-columns: 1fr; }
  .hero { padding: var(--space-6) 0 var(--space-5); }
  .post-author { flex-direction: column; text-align: center; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { text-align: left; align-items: flex-start; }
  .share { justify-content: center; }
  .post-header__meta { font-size: 0.85rem; }
  .post-content { font-size: 1rem; }
  .post-header { padding: var(--space-5) 0 var(--space-4); }
}

@media (max-width: 480px) {
  .post-content { font-size: 1rem; }
  .search-overlay__inner { flex-direction: column; align-items: stretch; }
  .search-overlay__form { padding: var(--space-2); }
  .search-overlay__close { align-self: flex-end; }
}

/* Cuando hay sidebar, el main del single post usa el reading-width como max */
@media (min-width: 960px) {
  body.has-sidebar .post-header,
  body.has-sidebar .post-content,
  body.has-sidebar .post-author,
  body.has-sidebar .post-tags,
  body.has-sidebar .share,
  body.has-sidebar .post-nav,
  body.has-sidebar .related {
    max-width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Marketing (home) — primitivas compartidas
   ════════════════════════════════════════════════════════════════════════ */

.home-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4.5vw, 44px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  text-align: center;
  font-weight: 500;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  transition: background-color 150ms var(--easing), color 150ms var(--easing), border-color 150ms var(--easing);
}
.btn:focus-visible {
  outline: 2px solid rgb(var(--brand));
  outline-offset: 2px;
}
.btn--sm { min-height: 2.25rem; padding: 0.375rem 0.75rem; font-size: 0.875rem; }
.btn--lg { min-height: 3.25rem; padding: 0.625rem 1.25rem; font-size: 1.125rem; }
.btn--primary { background: rgb(var(--brand-solid)); color: rgb(var(--brand-on)); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: rgb(var(--brand)); }
.btn--secondary { background: rgb(var(--surface)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line)); }
.btn--secondary:hover { background: rgb(var(--surface-2)); }
.btn--on-deep { background: #fff; color: rgb(var(--brand-deep)); }
.btn--on-deep:hover { background: rgb(var(--brand-deep-ink-2) / 0.2); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 60ch;
  margin-bottom: 2.25rem;
}
@media (min-width: 640px) { .section-head { margin-bottom: 2.75rem; } }
.section-head__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgb(var(--ink-3));
}
.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: rgb(var(--ink));
  margin: 0;
}
.section-head__lead {
  max-width: 54ch;
  font-size: clamp(16px, 1.9vw, 18.5px);
  color: rgb(var(--ink-2));
  margin: 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  padding: 1.5rem;
}
.step-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: .1em;
  color: rgb(var(--brand));
}
.step-card__title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(var(--ink));
  margin: 0.4rem 0 0;
}
.step-card__body {
  font-size: 14.5px;
  color: rgb(var(--ink-2));
  margin: 0;
}

.sello {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 2.5px solid rgb(var(--brand));
  color: rgb(var(--brand));
  opacity: .78;
}
.sello::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .55;
}
.sello__label { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .17em; }
.sello__nombre { margin: 0.125rem 0; font-family: var(--font-serif); font-size: 20px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.sello__fecha { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }

/* ════════════════════════════════════════════════════════════════════════
   Header CTA (Entrar / Crear cuenta)
   ════════════════════════════════════════════════════════════════════════ */

.site-header__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.site-header__cta-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--ink-2));
  text-decoration: none;
  white-space: nowrap;
}
.site-header__cta-link:hover { color: rgb(var(--ink)); }
@media (max-width: 479px) {
  .site-header__cta-link { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Hero
   ════════════════════════════════════════════════════════════════════════ */

.home-hero {
  overflow: hidden;
  padding: 2.75rem 0 3rem;
}
@media (min-width: 640px) { .home-hero { padding: 5rem 0 6rem; } }
.home-hero__grid {
  display: grid;
  align-items: center;
  gap: 2.25rem;
}
@media (min-width: 940px) {
  .home-hero__grid { grid-template-columns: 1.06fr .94fr; gap: 3.5rem; }
}
.home-hero__copy { display: flex; flex-direction: column; gap: 1.375rem; }
.home-hero__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgb(var(--ink-3));
}
.home-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 6.6vw, 68px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: rgb(var(--ink));
  margin: 0;
}
.home-hero__title em { font-style: normal; color: rgb(var(--brand)); }
.home-hero__lead {
  max-width: 54ch;
  font-size: clamp(16px, 1.9vw, 18.5px);
  line-height: 1.6;
  color: rgb(var(--ink-2));
  margin: 0;
}
.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.home-hero__actions .btn { width: 100%; }
@media (min-width: 420px) {
  .home-hero__actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .home-hero__actions .btn { width: auto; }
}
.home-hero__trust {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  font-size: 13.5px;
  color: rgb(var(--ink-3));
}
.home-hero__trust-item { display: inline-flex; align-items: center; gap: 0.375rem; }
.home-hero__trust-item::before {
  content: '✓';
  flex-shrink: 0;
  font-weight: 700;
  color: rgb(var(--brand));
}
.home-hero__visual { position: relative; display: flex; justify-content: center; }
.home-hero__sello {
  position: absolute;
  left: -6px;
  bottom: 34px;
  z-index: 3;
  transform: rotate(-11deg);
  background: rgb(var(--canvas));
}
@media (max-width: 520px) {
  .home-hero__sello { left: -14px; bottom: 10px; transform: rotate(-11deg) scale(.78); }
}

/* Phone mockup decorativo del hero */
.phone-mockup {
  position: relative;
  z-index: 2;
  width: 314px;
  max-width: 100%;
  border-radius: 40px;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--surface-2));
  padding: 9px;
  box-shadow: var(--shadow-lg);
}
.phone-mockup__screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 552px;
  border-radius: 32px;
  border: 1px solid rgb(var(--line-soft, var(--line)));
  background: rgb(var(--canvas));
}
.phone-mockup__status {
  display: flex;
  justify-content: space-between;
  padding: 13px 20px 4px;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--ink-2));
}
.phone-mockup__body { display: flex; flex: 1; flex-direction: column; gap: 1.125rem; padding: 0.5rem 15px 1rem; }
.phone-mockup__heading h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(var(--ink));
  margin: 0;
}
.phone-mockup__heading p { font-size: 12.5px; color: rgb(var(--ink-3)); margin: 0.15rem 0 0; }
.phone-mockup__group { display: flex; flex-direction: column; gap: 0.5625rem; }
.phone-mockup__group-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgb(var(--ink-3));
}
.phone-mockup__group-label span:last-child { text-transform: none; letter-spacing: normal; font-size: 12px; color: rgb(var(--brand)); }
.phone-mockup__row {
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 1rem;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  padding: 0.75rem;
}
.phone-mockup__row-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgb(var(--brand-soft));
  color: rgb(var(--brand));
  font-size: 17px;
}
.phone-mockup__row-text { min-width: 0; flex: 1; }
.phone-mockup__row-text b { display: block; font-size: 13.5px; font-weight: 600; color: rgb(var(--ink)); }
.phone-mockup__row-text small { font-size: 11.5px; color: rgb(var(--ink-3)); }
.phone-mockup__pill {
  border-radius: 999px;
  padding: 0.25rem 0.625rem;
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.phone-mockup__pill--warn { background: rgb(var(--warn-bg)); color: rgb(var(--warn)); }
.phone-mockup__pill--ok { background: rgb(var(--ok-bg)); color: rgb(var(--ok)); }
.phone-mockup__emoji {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgb(var(--brand-soft));
  font-size: 19px;
}
.phone-mockup__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  padding: 7px 4px 12px;
}
.phone-mockup__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  font-size: 10px;
  font-weight: 600;
  color: rgb(var(--ink-3));
}
.phone-mockup__tab--on { color: rgb(var(--brand)); }

/* ════════════════════════════════════════════════════════════════════════
   StatsStrip
   ════════════════════════════════════════════════════════════════════════ */

.stats-strip { border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--surface)); }
.stats-strip__grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .stats-strip__grid { grid-template-columns: repeat(3, 1fr); } }
.stats-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.625rem 0;
  border-bottom: 1px solid rgb(var(--line));
}
.stats-strip__item:last-child { border-bottom: none; }
@media (min-width: 760px) {
  .stats-strip__item { border-bottom: none; border-left: 1px solid rgb(var(--line)); padding: 1.875rem 1.625rem; }
  .stats-strip__item:first-child { border-left: none; padding-left: 0; }
}
.stats-strip__title { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; color: rgb(var(--brand)); }
.stats-strip__item p { max-width: 34ch; font-size: 0.875rem; color: rgb(var(--ink-2)); margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   Section genérica (HowItWorks, FeaturesGrid, PhotoCollage, WhyFree, Faq)
   ════════════════════════════════════════════════════════════════════════ */

.section { padding: 3.5rem 0; }
@media (min-width: 640px) { .section { padding: 6rem 0; } }

.step-grid { display: grid; gap: 1.125rem; }
@media (min-width: 820px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }

/* Prosa larga de la home (QueEs) — texto corrido, no tarjetas. */
.home-prose { display: flex; flex-direction: column; max-width: 68ch; }
.home-prose h3,
.home-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgb(var(--ink));
  margin: 0;
}
.home-prose h3 + p,
.home-prose h2 + p { margin-top: 0.875rem; }
.home-prose p {
  font-size: clamp(15.5px, 1.8vw, 17px);
  line-height: 1.68;
  color: rgb(var(--ink-2));
  margin: 0;
}
.home-prose p + p { margin-top: 1rem; }
.home-prose p + h3,
.home-prose p + h2 { margin-top: 2.25rem; }

/* ════════════════════════════════════════════════════════════════════════
   TagBand
   ════════════════════════════════════════════════════════════════════════ */

.tag-band { background: rgb(var(--brand-deep)); color: rgb(var(--brand-deep-ink-2)); }
.tag-band__grid { display: grid; align-items: center; gap: 2rem; padding: 3.5rem 0; }
@media (min-width: 640px) { .tag-band__grid { gap: 3.5rem; padding: 6rem 0; } }
@media (min-width: 900px) { .tag-band__grid { grid-template-columns: .95fr 1.05fr; } }
.tag-band__copy { display: flex; flex-direction: column; gap: 1.125rem; }
.tag-band__eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--brand-deep-ink-2)); }
.tag-band__title { font-family: var(--font-serif); font-size: clamp(28px, 4.4vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: rgb(var(--brand-deep-ink)); margin: 0; }
.tag-band__lead { max-width: 48ch; color: rgb(var(--brand-deep-ink-2)); margin: 0; }
.tag-band__actions { margin-top: 0.375rem; }

.tag-band__visual { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.125rem; }
.tag-band__tag {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background: linear-gradient(150deg, #2FA985, #0E6B55 62%, #0A4A3B);
  color: #EAFBF4;
  box-shadow: var(--shadow-lg);
}
.tag-band__tag::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 11px;
  width: 15px;
  height: 15px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgb(var(--brand-deep));
}
.tag-band__tag-qr { margin-top: 0.75rem; border-radius: 5px; background: #EAFBF4; padding: 5px; }
.tag-band__tag-name { font-family: var(--font-serif); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tag-band__tag-domain { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .1em; opacity: .82; }

.tag-band__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 236px;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--brand-deep-line));
  background: rgb(var(--brand-deep-raised));
  padding: 1.125rem;
}
.tag-band__card-head { display: flex; align-items: center; gap: 0.625rem; }
.tag-band__card-emoji {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgb(var(--brand-deep));
  font-size: 1.125rem;
}
.tag-band__card-head b { display: block; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; color: rgb(var(--brand-deep-ink)); }
.tag-band__card-head small { font-size: 11.5px; color: rgb(var(--brand-deep-ink-2)); }
.tag-band__card-alert { border-radius: 0.75rem; background: rgb(var(--warn-bg)); padding: 0.5rem 0.625rem; font-size: 0.75rem; line-height: 1.5; color: rgb(var(--warn)); }
.tag-band__card-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #EAFBF4;
  font-size: 13.5px;
  font-weight: 600;
  color: rgb(var(--brand-deep));
}

/* ════════════════════════════════════════════════════════════════════════
   FeaturesGrid
   ════════════════════════════════════════════════════════════════════════ */

.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  padding: 1.25rem;
  transition: border-color 200ms var(--easing), transform 200ms var(--easing);
}
.feature-card:hover { transform: translateY(-2px); border-color: rgb(var(--brand-line)); }
.feature-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  background: rgb(var(--brand-soft));
  font-size: 19px;
}
.feature-card__title { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: rgb(var(--ink)); }
.feature-card__body { font-size: 0.875rem; color: rgb(var(--ink-2)); margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   PhotoCollage
   ════════════════════════════════════════════════════════════════════════ */

.photo-collage { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 0.375rem; }
@media (min-width: 640px) { .photo-collage { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); } }
.photo-collage__item { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1rem; box-shadow: var(--shadow); }
.photo-collage__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) {
  .photo-collage__item--1 { grid-column: 1 / span 2; grid-row: 1 / span 2; transform: rotate(-2deg); }
  .photo-collage__item--2 { grid-column: 3; grid-row: 1; transform: rotate(1.5deg); }
  .photo-collage__item--3 { grid-column: 3; grid-row: 2; transform: rotate(-1deg); object-position: bottom; }
}

/* ════════════════════════════════════════════════════════════════════════
   WhyFree
   ════════════════════════════════════════════════════════════════════════ */

.commitments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  padding: 1.75rem;
}
@media (min-width: 640px) { .commitments { padding: 2.5rem; } }
.commitments__eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--ink-3)); margin: 0; }
.commitments__list { display: flex; flex-direction: column; gap: 0.625rem; max-width: 54ch; font-size: 15.5px; color: rgb(var(--ink-2)); list-style: none; margin: 0; padding: 0; }

/* ════════════════════════════════════════════════════════════════════════
   Faq
   ════════════════════════════════════════════════════════════════════════ */

.faq-list { display: flex; flex-direction: column; max-width: 74ch; border-top: 1px solid rgb(var(--line)); }
.faq-item { border-bottom: 1px solid rgb(var(--line)); }
.faq-item__question {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgb(var(--ink));
}
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item__icon { flex-shrink: 0; font-family: var(--font-mono); font-size: 1.25rem; color: rgb(var(--brand)); transition: transform 200ms var(--easing); }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer { max-width: 62ch; padding-bottom: 1.25rem; font-size: 15px; color: rgb(var(--ink-2)); margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   Closer
   ════════════════════════════════════════════════════════════════════════ */

.closer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  border-radius: 1.5rem;
  border: 1px solid rgb(var(--line));
  background: rgb(var(--surface));
  padding: 2rem;
  text-align: center;
}
@media (min-width: 640px) { .closer { padding: 3.5rem; } }
.closer__sello { transform: rotate(6deg); }
.closer__title { font-family: var(--font-serif); font-size: clamp(28px, 4.6vw, 44px); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: rgb(var(--ink)); margin: 0; }
.closer__lead { max-width: 46ch; color: rgb(var(--ink-2)); margin: 0; }

/* ════════════════════════════════════════════════════════════════════════
   Páginas SEO

   Solo hay estilos para lo que no existía: el hero (el de la portada lleva
   maqueta a dos columnas y mockup de móvil, aquí sobra), el listado de
   páginas del cluster y el aviso sanitario. El resto de secciones reutiliza
   .section-head, .step-grid, .feature-grid, .faq-list y .closer — si mañana
   cambia el sistema visual, cambian a la vez la home y las diez páginas.
   ════════════════════════════════════════════════════════════════════════ */

.seo-hero { padding-bottom: 0; }
.seo-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.125rem;
  /* Sin max-width AQUI. Este elemento tambien lleva .home-container, que ya
     centra y limita el ancho de toda la pagina: estrecharlo desplazaba el
     hero hacia dentro y lo desalineaba del resto de secciones. La medida se
     limita en los hijos, que es donde importa. */
}
.seo-hero__title {
  max-width: 20ch;
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: rgb(var(--ink));
  margin: 0;
}
.seo-hero__lead {
  max-width: 54ch;
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 1.6;
  color: rgb(var(--ink-2));
  margin: 0;
}
.seo-hero__actions { margin-top: 0.25rem; }
.seo-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  color: rgb(var(--ink-3));
}

/* ── Páginas del cluster ─────────────────────────────────────────────── */

.seo-related { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.seo-related__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.25rem 1rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid rgb(var(--line));
  border-radius: 1rem;
  background: rgb(var(--surface));
  text-decoration: none;
  transition: transform 200ms var(--easing), border-color 200ms var(--easing);
}
.seo-related__item:hover,
.seo-related__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgb(var(--brand-line));
}
.seo-related__title {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  color: rgb(var(--ink));
}
.seo-related__lead {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(var(--ink-2));
}
/* Anclada a su celda: como .seo-related__lead ocupa las dos columnas, sin
   posicion explicita la flecha caia a una tercera fila, debajo del texto. */
.seo-related__arrow {
  grid-row: 1;
  grid-column: 2;
  font-size: 1rem;
  color: rgb(var(--brand));
  transition: transform 200ms var(--easing);
}
.seo-related__item:hover .seo-related__arrow { transform: translateX(3px); }
/* Una tarjeta sola estirada a todo el ancho parece un fallo de maqueta. */
.seo-related__item:only-child { max-width: 34rem; }

/* ── Aviso sanitario ─────────────────────────────────────────────────── */

.seo-disclaimer {
  max-width: 68ch;
  margin: 0 0 2rem;
  padding: 0.9rem 1.125rem;
  border-left: 3px solid rgb(var(--brand-line));
  background: rgb(var(--brand-soft));
  border-radius: 0 0.5rem 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(var(--ink-2));
}
.seo-disclaimer__label {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--brand));
}

/* ════════════════════════════════════════════════════════════════════════
   Hub de guías (/guias) y enlace al hub desde cada página SEO

   El listado por cluster reutiliza .seo-related tal cual — aquí solo se
   separan los grupos y se estila el enlace «Ver todas las guías».
   ════════════════════════════════════════════════════════════════════════ */

.guias__group + .guias__group { margin-top: var(--space-8); }

.seo-related__all { margin: 1.5rem 0 0; }
.seo-related__all a {
  font-weight: 600;
  font-size: 15px;
  color: rgb(var(--brand));
  text-decoration: none;
}
.seo-related__all a:hover { text-decoration: underline; }

/* ── Pie: guías ──────────────────────────────────────────────────────── */

.site-footer__guias {
  display: grid;
  gap: var(--space-5) var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgb(var(--line));
}
.site-footer__guias-group ul { list-style: none; padding: 0; margin: 0; }
.site-footer__guias-group li { padding: var(--space-1) 0; }
.site-footer__guias-group a {
  color: rgb(var(--ink-2));
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer__guias-group a:hover { color: rgb(var(--brand-600)); }
