/* ==========================================================================
   seoherramientas.es — sistema visual "Steep"
   Serif editorial sobre papel cálido. Tema claro.
   ========================================================================== */

:root {
  /* Color */
  --ink: #17191c;
  --ink-70: #4a4d52;
  --ink-50: #6b6f75;
  --ink-30: #9a9ea4;
  --paper: #ffffff;
  --paper-warm: #fbf9f7;
  --paper-deep: #f4f0ec;
  --blush: #fbe1d1;
  --blush-soft: #fdf0e8;
  --sienna: #5d2a1a;
  --sienna-hover: #7a3a25;
  --line: #e8e3de;
  --line-strong: #d6cfc8;

  /* Tipografía */
  --font-serif: "Instrument Serif", "Signifier", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Sohne", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 999px;

  /* Espaciado */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  --wrap: 1160px;
  --shadow-subtle: 0 1px 2px rgba(23, 25, 28, .04), 0 2px 8px rgba(23, 25, 28, .03);
  --shadow-raised: 0 2px 4px rgba(23, 25, 28, .05), 0 12px 32px rgba(23, 25, 28, .06);
}

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

[hidden] { display: none !important; }

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.1;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.05rem; }

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

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

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 12px 20px; z-index: 999;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Eyebrow / etiquetas ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 var(--s-3);
}
.eyebrow.accent, .accent .eyebrow { color: var(--sienna); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  background: var(--sienna);
  color: #fff;
  border: 1px solid var(--sienna);
  border-radius: var(--r-full);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover {
  background: var(--sienna-hover);
  border-color: var(--sienna-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-raised);
}
.btn:active { transform: translateY(0); }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-light { background: #fff; color: var(--sienna); border-color: #fff; }
.btn-light:hover { background: var(--blush); border-color: var(--blush); color: var(--sienna); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-deep); border-color: var(--ink-30); color: var(--ink); box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: var(--s-5);
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--ink); flex-shrink: 0;
}
.brand-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--sienna);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px 6px 6px 6px;
  border: 1.5px solid var(--blush); border-radius: 2px;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  letter-spacing: -.02em;
}
.brand-dot { color: var(--ink-30); }

.nav { display: flex; gap: var(--s-5); margin-left: auto; }
.nav a {
  font-size: .9rem; color: var(--ink-70); text-decoration: none;
  padding: 6px 0; border-bottom: 1.5px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--sienna); }

.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: transform .18s ease, opacity .18s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mobile-nav {
  border-top: 1px solid var(--line); padding: var(--s-4) var(--s-5) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.mobile-nav a { text-decoration: none; color: var(--ink-70); font-size: .95rem; }
.mobile-nav .btn { color: #fff; text-align: center; margin-top: var(--s-2); }
@media (min-width: 801px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { padding: var(--s-9) 0 var(--s-8); background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: var(--s-8); align-items: center; }
.display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin-bottom: var(--s-5);
}
.display em { font-style: italic; color: var(--sienna); }
.hero-sub {
  font-size: 1.12rem; line-height: 1.55; color: var(--ink-70);
  max-width: 34em; margin-bottom: var(--s-6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-4); }
.hero-note { font-size: .85rem; color: var(--ink-50); margin: 0; }

.hero-panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: var(--s-6);
  box-shadow: var(--shadow-subtle);
}
.panel-label {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-50); font-weight: 500; margin: 0 0 4px;
}
.panel-label.accent { color: var(--sienna); }
.panel-price {
  font-family: var(--font-serif); font-size: 2.6rem; line-height: 1;
  letter-spacing: -.03em; margin: 0 0 6px;
}
.panel-price span { font-size: 1rem; font-family: var(--font-sans); color: var(--ink-50); letter-spacing: 0; }
.panel-price.accent { color: var(--sienna); }
.panel-desc { font-size: .88rem; color: var(--ink-50); margin: 0 0 var(--s-4); line-height: 1.5; }
.panel-divider { height: 1px; background: var(--line); margin: var(--s-4) 0; }
.panel-link {
  font-size: .9rem; font-weight: 500; text-decoration: none;
  color: var(--sienna); display: inline-flex; gap: 6px;
}

/* ---------- Strip ---------- */
.strip { border-bottom: 1px solid var(--line); }
.strip-inner {
  display: flex; flex-wrap: wrap; gap: var(--s-6);
  padding: var(--s-5) var(--s-5);
  justify-content: space-between;
}
.strip-inner p { margin: 0; font-size: .9rem; color: var(--ink-50); }
.strip-inner strong { color: var(--ink); font-weight: 600; }

/* ---------- Secciones ---------- */
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }
.section-alt { background: var(--paper-warm); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.link-more {
  font-size: .9rem; font-weight: 500; text-decoration: none;
  color: var(--sienna); display: inline-flex; gap: 6px; white-space: nowrap;
}

/* ---------- Lista de precios ---------- */
.price-list { border-top: 1px solid var(--line); }
.price-row {
  display: grid; grid-template-columns: 1fr auto 24px;
  align-items: center; gap: var(--s-5);
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background .14s ease, padding-left .14s ease;
}
.price-row:hover { background: var(--blush-soft); padding-left: var(--s-3); color: inherit; }
.price-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-row-name { font-family: var(--font-serif); font-size: 1.22rem; letter-spacing: -.01em; }
.price-row-desc {
  font-size: .855rem; color: var(--ink-50);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.price-row-value { display: flex; align-items: baseline; gap: 3px; }
.price-official { font-size: 1.05rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.price-period { font-size: .8rem; color: var(--ink-50); }
.price-row-arrow { color: var(--ink-30); text-align: right; }
.price-row:hover .price-row-arrow { color: var(--sienna); }
.footnote { font-size: .78rem; color: var(--ink-30); margin-top: var(--s-4); }

/* ---------- Tarjetas ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-4);
}
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-subtle); transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.card-top h2, .card-top h3 { margin: 0; font-size: 1.28rem; }
.card-top a { color: var(--ink); text-decoration: none; }
.card-top a:hover { color: var(--sienna); }
.card-price {
  font-size: .95rem; font-weight: 500; white-space: nowrap;
  font-variant-numeric: tabular-nums; margin: 0;
}
.card-price span { font-size: .75rem; font-weight: 400; color: var(--ink-50); }
.card-desc { font-size: .89rem; color: var(--ink-70); line-height: 1.5; margin: 0; flex: 1; }
.card-meta { font-size: .76rem; color: var(--ink-30); margin: 0; }
.card-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s-3); padding-top: var(--s-2); border-top: 1px solid var(--line);
}
.tag {
  font-size: .7rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-50); background: var(--paper-deep);
  padding: 3px 9px; border-radius: var(--r-full); font-weight: 500;
}
.tag-free { background: var(--blush); color: var(--sienna); }
.card-link { font-size: .85rem; font-weight: 500; text-decoration: none; color: var(--sienna); }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-4); }
.cat-card {
  display: flex; flex-direction: column; gap: var(--s-2);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--s-5);
  text-decoration: none; color: inherit; position: relative;
  transition: border-color .18s ease, background .18s ease;
}
.cat-card:hover { border-color: var(--sienna); background: var(--blush-soft); color: inherit; }
.cat-name { font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: -.01em; }
.cat-desc { font-size: .87rem; color: var(--ink-50); line-height: 1.5; }
.cat-arrow { position: absolute; top: var(--s-5); right: var(--s-5); color: var(--ink-30); }
.cat-card:hover .cat-arrow { color: var(--sienna); }

/* ---------- Split / steps ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; }
.split-lead { color: var(--ink-70); margin-bottom: var(--s-5); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-5); }
.steps li { display: flex; gap: var(--s-4); }
.step-num {
  font-family: var(--font-serif); font-size: 1.4rem; color: var(--sienna);
  line-height: 1; padding-top: 2px; flex-shrink: 0;
}
.steps strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.steps p { font-size: .89rem; color: var(--ink-50); margin: 0; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s-5); }
.post-card {
  border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--paper);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-subtle); }
.post-tag {
  font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sienna); font-weight: 500; margin: 0;
}
.post-card h2, .post-card h3 { font-size: 1.24rem; margin: 0; line-height: 1.2; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--sienna); }
.post-card p { font-size: .89rem; color: var(--ink-70); margin: 0; flex: 1; line-height: 1.55; }

/* ---------- CTA ---------- */
.cta-block {
  background: var(--blush-soft); border-top: 1px solid var(--blush);
  border-bottom: 1px solid var(--blush);
  padding: var(--s-8) 0;
}
.cta-block-inner { max-width: 720px; margin: 0 auto; padding: 0 var(--s-5); text-align: center; }
.cta-block h2 { margin-bottom: var(--s-4); }
.cta-block-text { color: var(--ink-70); margin-bottom: var(--s-5); }
.cta-block-actions { display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.cta-note { font-size: .8rem; color: var(--ink-50); }

.cta-band { background: var(--sienna); color: #fff; padding: var(--s-8) 0; }
.cta-band-inner {
  display: grid; grid-template-columns: 1.5fr .8fr;
  gap: var(--s-7); align-items: center;
}
.cta-band .eyebrow { color: var(--blush); }
.cta-band h2 { color: #fff; margin-bottom: var(--s-3); }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; font-size: .95rem; }
.cta-band-action { display: flex; flex-direction: column; gap: var(--s-3); }
.cta-band .cta-note { color: rgba(255,255,255,.7); text-align: center; }

.cta-inline {
  display: grid; grid-template-columns: 1fr auto;
  gap: var(--s-5); align-items: center;
  background: var(--blush-soft); border: 1px solid var(--blush);
  border-radius: var(--r-xl); padding: var(--s-5);
  margin: var(--s-6) 0;
}
.cta-inline strong { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 400; display: block; margin-bottom: 3px; }
.cta-inline p { font-size: .87rem; color: var(--ink-70); margin: 0; }
.cta-inline .btn { white-space: nowrap; }

.cta-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); background: var(--ink); color: #fff;
  border-radius: var(--r-lg); padding: var(--s-4) var(--s-5);
}
.cta-bar-text { display: flex; flex-direction: column; }
.cta-bar-text strong { font-size: .95rem; }
.cta-bar-text span { font-size: .82rem; color: rgba(255,255,255,.65); }

/* ---------- Sticky CTA móvil ---------- */
.sticky-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: var(--sienna); color: #fff;
  padding: 14px var(--s-5);
  text-decoration: none; font-size: .92rem; font-weight: 500;
  align-items: center; justify-content: center; gap: var(--s-2);
  box-shadow: 0 -4px 20px rgba(23,25,28,.15);
}

/* ---------- Ficha de herramienta ---------- */
.breadcrumb {
  font-size: .8rem; color: var(--ink-30);
  padding-top: var(--s-5); display: flex; gap: var(--s-2); flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-50); text-decoration: none; }
.breadcrumb a:hover { color: var(--sienna); text-decoration: underline; }

.tool-head { padding: var(--s-6) 0 var(--s-8); background: var(--paper-warm); border-bottom: 1px solid var(--line); }
.tool-head-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: var(--s-8); align-items: start; }
.tool-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: var(--s-4); }
.tool-lead { font-size: 1.02rem; color: var(--ink-70); line-height: 1.6; margin-bottom: var(--s-6); }

.tool-facts { display: flex; flex-wrap: wrap; gap: var(--s-6); }
.tool-facts > div { display: flex; flex-direction: column; gap: 2px; }
.fact-label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-30); font-weight: 500; }
.fact-value { font-size: .92rem; font-weight: 450; }

.price-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: var(--s-6);
  box-shadow: var(--shadow-raised);
}
.price-card-label { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-50); font-weight: 500; margin: 0 0 4px; }
.price-card-label.accent { color: var(--sienna); }
.price-card-value { font-family: var(--font-serif); font-size: 2.2rem; line-height: 1; letter-spacing: -.02em; margin: 0 0 4px; }
.price-card-value span { font-family: var(--font-sans); font-size: .9rem; color: var(--ink-50); letter-spacing: 0; }
.price-card-value.accent { color: var(--sienna); }
.price-card-note { font-size: .78rem; color: var(--ink-50); margin: 0 0 var(--s-4); line-height: 1.45; }
.price-card-divider { height: 1px; background: var(--line); margin: var(--s-4) 0; }
.price-card .btn { margin-top: var(--s-4); }
.price-card-foot { font-size: .78rem; color: var(--sienna); text-align: center; margin: var(--s-3) 0 0; font-weight: 500; }

.tool-body, .post-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s-8); padding-top: var(--s-8); padding-bottom: var(--s-9);
  align-items: start;
}

/* ---------- Prosa ---------- */
.prose { max-width: 68ch; font-size: 1.02rem; line-height: 1.7; }
.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  margin: var(--s-7) 0 var(--s-4);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; margin: var(--s-5) 0 var(--s-2); }
.prose p { margin: 0 0 var(--s-4); color: var(--ink-70); }
.prose .lead { font-size: 1.14rem; color: var(--ink); line-height: 1.6; }
.prose ul, .prose ol { margin: 0 0 var(--s-4); padding-left: 1.3em; color: var(--ink-70); }
.prose li { margin-bottom: var(--s-2); }
.prose li::marker { color: var(--sienna); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--sienna); }
.prose code {
  background: var(--paper-deep); padding: 1px 5px;
  border-radius: 4px; font-size: .88em;
}

/* Pros/contras */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin: var(--s-5) 0; }
.pc-col h3 { margin-top: 0 !important; }
.pc-list { list-style: none; padding: 0 !important; margin: 0 !important; }
.pc-list li {
  position: relative; padding-left: 22px; font-size: .93rem;
  margin-bottom: var(--s-2) !important; line-height: 1.5;
}
.pc-list-pro li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #3f7d4e; font-weight: 700;
}
.pc-list-con li::before {
  content: "–"; position: absolute; left: 0; top: 0;
  color: var(--ink-30); font-weight: 700;
}

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: var(--s-4); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: var(--s-4) 0; font-weight: 500; font-size: .98rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-serif); font-size: 1.3rem;
  color: var(--sienna); flex-shrink: 0; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 var(--s-4); margin: 0; font-size: .93rem; color: var(--ink-70); }

/* ---------- Sidebar ---------- */
.tool-side, .post-side { display: flex; flex-direction: column; gap: var(--s-4); position: sticky; top: 88px; }
.side-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); background: var(--paper); }
.side-box-accent { background: var(--blush-soft); border-color: var(--blush); }
.side-title {
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-50); font-weight: 500; margin: 0 0 var(--s-3);
}
.side-box-accent .side-title { color: var(--sienna); }
.side-text { font-size: .86rem; color: var(--ink-70); margin: 0 0 var(--s-4); line-height: 1.5; }
.side-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.side-item:last-of-type { border-bottom: 0; }
.side-item span { font-size: .9rem; font-weight: 500; }
.side-item small { font-size: .78rem; color: var(--ink-50); line-height: 1.4; }
.side-item:hover span { color: var(--sienna); }

/* ---------- Cabeceras de página ---------- */
.page-head { padding: var(--s-8) 0 var(--s-6); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: var(--s-4); max-width: 22em; }
.page-lead { font-size: 1.08rem; color: var(--ink-70); max-width: 48em; line-height: 1.6; margin-bottom: var(--s-4); }
.page-stat { font-size: .93rem; color: var(--ink-50); margin: 0; }
.page-stat strong { color: var(--ink); }

/* ---------- Artículo ---------- */
.post-head { padding: var(--s-7) 0 var(--s-6); max-width: 900px; }
.post-head h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: var(--s-4); }
.post-meta { font-size: .85rem; color: var(--ink-50); display: flex; gap: var(--s-2); margin: 0; }

/* ---------- Comparativa ---------- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: var(--s-5) 0; }
.compare-col { background: var(--paper); padding: var(--s-5); }
.compare-col.accent { background: var(--blush-soft); }
.compare-label { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-50); margin: 0 0 4px; font-weight: 500; }
.compare-col.accent .compare-label { color: var(--sienna); }
.compare-price { font-family: var(--font-serif); font-size: 1.7rem; line-height: 1.1; margin: 0 0 4px; }
.compare-price span { font-family: var(--font-sans); font-size: .8rem; color: var(--ink-50); }
.compare-note { font-size: .78rem; color: var(--ink-50); margin: 0; line-height: 1.4; }

/* ---------- Mini lista ---------- */
.mini-list { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.mini-row {
  display: flex; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--s-4); font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.mini-row:last-child { border-bottom: 0; }
.mini-price { font-variant-numeric: tabular-nums; font-weight: 500; }
.mini-total { background: var(--paper-deep); font-weight: 600; }
.mini-total.accent { background: var(--blush-soft); color: var(--sienna); }

/* ---------- Caja de veredicto ---------- */
.verdict-box {
  background: var(--blush-soft); border-left: 3px solid var(--sienna);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: var(--s-5); margin-bottom: var(--s-6);
}
.verdict-label {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sienna); font-weight: 600; margin: 0 0 var(--s-3);
}
.verdict-box p { font-size: .92rem; margin-bottom: var(--s-2); }

/* ---------- Utilidades / widgets ---------- */
.tool-widget { background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--r-2xl); padding: var(--s-6); }
.widget-head { margin-bottom: var(--s-5); }
.widget-head h2 { font-size: 1.4rem; margin-bottom: var(--s-2); }
.widget-sub { font-size: .87rem; color: var(--ink-50); margin: 0; }

.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: var(--s-2); margin-bottom: var(--s-5); }
.calc-item {
  display: flex; align-items: center; gap: var(--s-3);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 10px 12px; cursor: pointer;
  font-size: .87rem; transition: border-color .15s ease, background .15s ease;
}
.calc-item:hover { border-color: var(--line-strong); }
.calc-item input { accent-color: var(--sienna); cursor: pointer; margin: 0; flex-shrink: 0; }
.calc-item.checked { background: var(--blush-soft); border-color: var(--blush); }
.calc-item-name { flex: 1; }
.calc-item-price { font-size: .78rem; color: var(--ink-50); font-variant-numeric: tabular-nums; }

.calc-result { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.calc-result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s-2) 0; font-size: .93rem; color: var(--ink-70);
}
.calc-result-row strong { font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-result-row.accent strong { color: var(--sienna); }
.calc-result-row.highlight {
  border-top: 1px solid var(--line); margin-top: var(--s-2); padding-top: var(--s-3);
  font-weight: 500; color: var(--ink);
}
.calc-result-row.highlight strong { font-size: 1.4rem; color: var(--sienna); font-family: var(--font-serif); }
.calc-actions { display: flex; gap: var(--s-3); margin-top: var(--s-5); flex-wrap: wrap; }

.meta-fields { display: flex; flex-direction: column; gap: var(--s-4); }
.meta-field { display: flex; flex-direction: column; gap: 6px; }
.meta-field label { font-size: .82rem; font-weight: 500; color: var(--ink-70); display: flex; justify-content: space-between; }
.meta-field input, .meta-field textarea {
  font-family: var(--font-sans); font-size: .95rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 10px 13px; background: var(--paper); color: var(--ink);
  width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.meta-field input:focus, .meta-field textarea:focus {
  outline: none; border-color: var(--sienna);
  box-shadow: 0 0 0 3px rgba(93, 42, 26, .08);
}
.meta-field textarea { resize: vertical; line-height: 1.5; }
.count { font-size: .76rem; color: var(--ink-30); font-weight: 400; font-variant-numeric: tabular-nums; }
.count.over { color: #b3261e; font-weight: 500; }
.req { font-size: .7rem; color: var(--sienna); font-weight: 400; }

.serp-preview { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.serp-label { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-50); margin: 0 0 var(--s-3); font-weight: 500; }
.serp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.serp-url { font-size: .8rem; color: #4d5156; margin: 0 0 3px; word-break: break-all; }
.serp-title { font-size: 1.15rem; color: #1a0dab; line-height: 1.3; margin: 0 0 3px; font-family: var(--font-sans); }
.serp-desc { font-size: .87rem; color: #4d5156; line-height: 1.5; margin: 0; }

.utm-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.utm-output { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.utm-output label { font-size: .82rem; font-weight: 500; color: var(--ink-70); display: block; margin-bottom: 6px; }
.utm-copy-row { display: flex; gap: var(--s-2); }
.utm-copy-row input { flex: 1; }
.utm-copy-row input {
  font-family: var(--font-sans); font-size: .87rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 10px 13px; background: var(--paper); color: var(--ink);
}
.utm-warning { font-size: .82rem; color: #b3261e; margin: var(--s-2) 0 0; }

.wc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-2); margin: var(--s-4) 0; }
.wc-stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-3); text-align: center;
  display: flex; flex-direction: column; gap: 1px;
}
.wc-stat span { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1; }
.wc-stat small { font-size: .7rem; color: var(--ink-50); }
.wc-density { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.wc-density p { font-size: .88rem; margin: 0 0 var(--s-2); }
.wc-bar { height: 6px; background: var(--paper-deep); border-radius: var(--r-full); overflow: hidden; margin-bottom: var(--s-2); }
.wc-bar span { display: block; height: 100%; background: var(--sienna); border-radius: var(--r-full); transition: width .2s ease; }
.wc-hint { font-size: .8rem; color: var(--ink-50); margin: 0 !important; }

.hc-result { margin-top: var(--s-5); }
.hc-summary { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-4); }
.hc-code {
  font-family: var(--font-serif); font-size: 2rem; line-height: 1;
  padding: 4px 14px; border-radius: var(--r-md); background: var(--paper-deep);
}
.hc-code.ok { background: #e8f3ec; color: #276b3a; }
.hc-code.warn { background: #fdf3e0; color: #8a5a00; }
.hc-code.err { background: #fbe9e7; color: #b3261e; }
.hc-meaning { font-size: .95rem; color: var(--ink-70); margin: 0; }
.hc-chain { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.hc-chain li {
  display: flex; gap: var(--s-3); align-items: baseline;
  padding: var(--s-3) 0; border-bottom: 1px solid var(--line);
  font-size: .85rem;
}
.hc-chain .hc-step-code { font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 40px; }
.hc-chain .hc-step-url { color: var(--ink-70); word-break: break-all; }
.hc-meta { font-size: .8rem; color: var(--ink-50); margin-top: var(--s-3); }
.hc-error { color: #b3261e; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-warm); border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-5); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--s-6); margin-bottom: var(--s-7);
}
.footer-brand p { font-size: .85rem; color: var(--ink-50); margin: var(--s-3) 0 0; max-width: 30em; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: var(--s-2); }
.footer-col h4 {
  font-family: var(--font-sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 var(--s-2);
}
.footer-col a { font-size: .85rem; color: var(--ink-50); text-decoration: none; }
.footer-col a:hover { color: var(--sienna); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.footer-bottom p { font-size: .78rem; color: var(--ink-30); margin: 0 0 var(--s-2); }
.footer-disclosure { max-width: 70em; line-height: 1.5; }
.disclosure {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-70);
  background: var(--paper-warm);
  border-left: 3px solid var(--blush);
  padding: var(--s-3) var(--s-4);
  border-radius: 0 8px 8px 0;
  max-width: 52em;
  margin: var(--s-4) 0 0;
}
.disclosure a { color: var(--sienna); }

.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.inline-list li { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .tool-head-grid, .split, .cta-band-inner { grid-template-columns: 1fr; }
  .tool-body, .post-body { grid-template-columns: 1fr; }
  .tool-side, .post-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-box { flex: 1 1 260px; }
  .hero { padding: var(--s-7) 0; }
  .section { padding: var(--s-7) 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .proscons, .utm-row, .compare { grid-template-columns: 1fr; }
  .wc-stats { grid-template-columns: repeat(3, 1fr); }
  .price-row { grid-template-columns: 1fr auto; }
  .price-row-arrow { display: none; }
  .price-row-desc { white-space: normal; }
  .cta-inline { grid-template-columns: 1fr; }
  .cta-inline .btn { width: 100%; }
  .sticky-cta { display: flex; }
  /* Holgura para que el último contenido nunca quede bajo la barra fija (51,5 px medidos) */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .tool-widget { padding: var(--s-4); border-radius: var(--r-lg); }
  .calc-grid { grid-template-columns: 1fr; }
  .hero-panel { padding: var(--s-5); }
  .section-alt { padding: var(--s-6) 0; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 var(--s-4); }
  .wc-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Autoría, fuentes y metodología ---------- */
.byline {
  font-family: var(--font-sans);
  font-size: .875rem;
  line-height: 1.5;
  color: var(--ink-50);
  margin: var(--s-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .5rem;
}
.byline a {
  color: var(--sienna);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
}
.byline a:hover { border-bottom-color: var(--sienna); }

@media (max-width: 520px) {
  .byline > span[aria-hidden="true"] { display: none; }
  .byline time { flex-basis: 100%; }
}

.source-note {
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink-70);
  background: var(--paper-warm);
  border-left: 3px solid var(--blush);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s-3) var(--s-4);
  margin: var(--s-4) 0 var(--s-5);
}
.source-note a { color: var(--sienna); text-decoration: underline; text-underline-offset: 2px; }

.sources {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.sources > h2 { font-size: 1.125rem; margin-bottom: var(--s-3); }
.sources > p { font-size: .9375rem; color: var(--ink-70); margin-bottom: var(--s-3); }
.sources ul {
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--ink-70);
  margin: 0 0 var(--s-4) var(--s-5);
  padding: 0;
}
.sources li { margin-bottom: var(--s-2); }
.sources a { color: var(--sienna); }

.author-box {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-top: var(--s-5);
  font-family: var(--font-sans);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink-70);
}
.author-box img { border-radius: var(--r-full); flex: none; }
.author-box strong { color: var(--ink); }
.author-box a { color: var(--sienna); }

/* Ficha de autor de /sobre-nosotros/ */
.author-card {
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  margin: var(--s-6) 0;
}
.author-card img {
  width: 96px; height: 96px;
  border-radius: var(--r-full);
  flex: none;
  border: 1px solid var(--line);
}
.author-card .author-name {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 var(--s-1);
}
.author-card .author-role {
  font-family: var(--font-sans);
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-30);
  margin: 0 0 var(--s-3);
}
.author-card p { font-family: var(--font-sans); font-size: .9375rem; line-height: 1.65; color: var(--ink-70); margin: 0 0 var(--s-3); }
@media (max-width: 620px) {
  .author-card { flex-direction: column; align-items: center; text-align: center; }
  .author-card img { width: 72px; height: 72px; }
}

/* ---------- Impresión ---------- */
@media print {
  .site-header, .site-footer, .sticky-cta, .cta-block, .cta-band, .cta-inline, .tool-side, .post-side { display: none !important; }
  body { font-size: 11pt; }
  .prose { max-width: none; }
}