/* ============================================================
   casaordenada.com — Hoja de estilos base
   Paleta: fondos cálidos + verde salvia + terracota + Amazon
   Tipografía: Playfair Display (títulos) + DM Sans (cuerpo)
   Sin JavaScript crítico: el sitio debe verse completo sin JS.
   ============================================================ */

:root {
  /* Paleta */
  --bg: #FAF9F7;
  --header-bg: #EFE9DB;
  --bg-alt: #F1EFEA;
  --ink: #22282E;
  --ink-soft: #5C6570;
  --accent: #4A6A55;
  --accent-dark: #3A5544;
  --terra: #C97B4A;
  --terra-dark: #B06A3E;
  --terra-link: #B85C24;
  --amazon: #FF9900;
  --amazon-ink: #111111;
  --line: #E4E1DB;

  /* Tipografía */
  --font-display: "Playfair Display", "Bodoni Moda", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Métricas */
  --radius: 12px;
  --shadow: 0 2px 10px rgba(34, 40, 46, 0.06);
  --maxw: 1280px;
  --sticky-offset: 5.75rem;
  --header-height: 3.875rem;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--sticky-offset); }
[id] { scroll-margin-top: 0; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-link); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 1.4em 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: 3.2rem; }
h2 { font-size: 2.7rem; color: var(--accent-dark); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.meta {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

/* Palabra clave destacada dentro de un titular (acento + cursiva, sello TheHomeVersus) */
.accent-word {
  color: var(--terra);
  font-style: italic;
}

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
main { padding: 3rem 0 5rem; }
.main-with-hero { padding-top: 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.9rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--terra);
  line-height: 1;
}
.logo::before {
  content: "";
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  background: url('/img/brand/casaordenada-isologo-v2.svg?v=20260819-2') center / contain no-repeat;
  margin-right: 0.48rem;
}
.logo span { color: var(--accent); }
.nav ul { list-style: none; display: flex; gap: 1.75rem; padding: 0; }
.nav a {
  color: var(--ink); font-weight: 600; font-size: 1rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.25s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--terra);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav a:hover {
  color: var(--terra-link);
  text-decoration: none;
}
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current]::after {
  transform: scaleX(1);
}
.nav a:focus-visible,
.nav a[aria-current] {
  color: var(--terra-link);
  text-decoration: none;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-toggle-label { display: none; }
@media (max-width: 860px) {
  :root { --sticky-offset: 6.75rem; }
  .header-inner { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; }
  .nav ul {
    display: none; flex-direction: column; gap: 0.5rem;
    padding: 1rem 0;
  }
  .nav-toggle:checked ~ .nav ul { display: flex; }
  .nav-toggle-label { display: block; cursor: pointer; font-size: 1.5rem; line-height: 1; }
  .nav-toggle:focus-visible ~ .nav-toggle-label { outline: 3px solid var(--terra); outline-offset: 4px; }
}

/* ---------- Hero ---------- */
.hero-fullbleed {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero-bg .img-frame {
  margin: 0; border: none; width: 100%; height: 100%;
  border-radius: 0;
}
.hero-bg .img-frame img {
  object-fit: cover;
  object-position: 65% 50%;
  width: 100%; height: 100%;
}
.hero-bg .img-frame .img-frame-label {
  font-size: 1rem;
}
/* Blanco cálido + crema: contraste alto sin enfriar la fotografía. */
.hero-fullbleed::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98) 0%, rgba(250,246,238,0.94) 34%, rgba(250,246,238,0.78) 52%, rgba(250,246,238,0.08) 78%);
  pointer-events: none;
}
.hero-fullcolor::before {
  display: block;
  background: radial-gradient(ellipse 58% 88% at 28% 50%, rgba(8, 11, 9, 0.58) 0%, rgba(8, 11, 9, 0.42) 38%, rgba(8, 11, 9, 0.16) 62%, rgba(8, 11, 9, 0) 82%);
}
.hero-home-fullcolor::before {
  background: radial-gradient(ellipse 48% 78% at 27% 50%, rgba(8, 11, 9, 0.66) 0%, rgba(8, 11, 9, 0.49) 38%, rgba(8, 11, 9, 0.14) 62%, rgba(8, 11, 9, 0) 76%);
}
.hero-home-fullcolor .hero-bg .img-frame img { object-position: center center; }
.hero.hero-fullcolor h1,
.hero.hero-fullcolor .hero-meta,
.hero.hero-fullcolor .hero-sub,
.hero.hero-fullcolor .hero-breadcrumbs,
.hero.hero-fullcolor .hero-breadcrumbs a {
  color: #fff;
  text-shadow: none;
}
.hero-fullcolor .accent-word { color: var(--terra); }
.hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 54vh;
  max-height: 580px;
  padding: 4.25rem 0;
}
.hero-copy {
  max-width: 680px;
}
.hero .hero-meta {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  font-weight: 700;
  margin: 0 0 1rem;
}
.hero h1 { margin: 0 0 1.2rem; font-size: clamp(2.65rem, 4.4vw, 3.45rem); font-weight: 800; line-height: 1.04; }
.hero .hero-sub {
  color: var(--ink-soft);
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0 0 1.9rem;
  max-width: 540px;
}
@media (max-width: 860px) {
  :root { --header-height: 4.625rem; }
  .hero-inner { min-height: auto; padding: 3rem 1.5rem; }
  .hero-copy { width: 100%; min-width: 0; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 2.85rem); }
  .hero-bg .img-frame-hero { object-position: 70% center; }
  .hero-home-fullcolor .hero-bg .img-frame img { object-position: 23% center; }
  .hero-fullbleed::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(250,246,238,0.9) 60%, rgba(250,246,238,0.62) 100%);
  }
  .hero-fullbleed.hero-fullcolor::before {
    background: radial-gradient(ellipse 92% 70% at 48% 43%, rgba(8, 11, 9, 0.6) 0%, rgba(8, 11, 9, 0.4) 46%, rgba(8, 11, 9, 0.08) 76%, rgba(8, 11, 9, 0) 100%);
  }
  .hero-fullbleed.hero-home-fullcolor::before {
    background: radial-gradient(ellipse 86% 68% at 48% 43%, rgba(8, 11, 9, 0.68) 0%, rgba(8, 11, 9, 0.48) 44%, rgba(8, 11, 9, 0.1) 70%, rgba(8, 11, 9, 0) 88%);
  }
}

.home-start-anchor {
  position: absolute;
  top: calc(var(--sticky-offset) - var(--header-height));
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.editorial-visual { margin: 2rem 0 2.8rem; }
.editorial-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.editorial-visual figcaption {
  margin-top: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.skip-link {
  position: fixed; left: 1rem; top: 0.5rem; z-index: 100;
  transform: translateY(-160%); background: var(--ink); color: #fff;
  padding: 0.65rem 1rem; border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center;
}
/* Variante más compacta para las páginas de categoría */
.hero-cat .hero-inner { min-height: 44vh; max-height: 520px; padding: 4rem 0; }
.hero-cat .hero-breadcrumbs { margin: 0 0 1.25rem; }
.hero-cat .hero-breadcrumbs a { color: rgba(34,40,46,0.75); }
.hero-cat .hero-breadcrumbs span { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .hero-cat .hero-inner { min-height: auto; padding: 2.5rem 1.5rem; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(2.15rem, 11vw, 2.7rem); overflow-wrap: anywhere; }
  h2 { font-size: clamp(1.85rem, 9vw, 2.25rem); }
  .hero-inner,
  .hero-cat .hero-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero .hero-meta { font-size: 0.72rem; letter-spacing: 0.075em; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn,
  .hero-cta .btn-terra { width: 100%; text-align: center; }
}

/* ---------- Grillas ---------- */
.grid-cats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin: 2rem 0;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 900px) {
  .grid-cats, .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-cats, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(34, 40, 46, 0.12);
}
.card .card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
}
.card .card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(201, 123, 74, 0.24);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.card:hover .card-media::after,
.card:focus-visible .card-media::after { opacity: 1; }
.card .card-media .img-frame {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.card .card-media img {
  width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.55s ease, filter 0.45s ease;
}
.card:hover .card-media img,
.card:focus-visible .card-media img { transform: scale(1.055); filter: saturate(1.06) contrast(1.02); }
.card-body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card h2, .card h3 { margin: 0; font-size: 1.5rem; color: var(--accent-dark); }

.brand-title-casa { color: var(--terra); }
.brand-title-ordenada { color: var(--accent); }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.card .card-link { margin-top: auto; color: var(--terra-link); font-weight: 700; }
.card .card-link:hover { text-decoration: underline; }

/* ---------- Producto ---------- */
.product-card .prod-price { font-weight: 700; color: var(--accent-dark); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.9rem; }
.pros li { color: var(--accent-dark); }
.cons li { color: #B0453E; }
.stars { color: #F5A623; letter-spacing: 1px; }

/* ---------- Botones ---------- */
.btn-amazon {
  display: inline-block; background: var(--amazon); color: var(--amazon-ink);
  font-weight: 700; padding: 0.7rem 1.4rem; border-radius: 8px;
  text-align: center; font-size: 1rem;
}
.btn-amazon:hover { background: #E88F00; text-decoration: none; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; padding: 0.7rem 1.4rem; border-radius: 8px;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.badge-best { background: var(--terra); color: #fff; }
.badge-budget { background: var(--accent); color: #fff; }

/* ---------- Tablas comparativas ---------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table.compare { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.95rem; }
table.compare th, table.compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: #F7E9DE; font-family: var(--font-display); font-size: 1rem; position: sticky; top: 0; }
table.compare tbody tr:nth-child(even) { background: var(--bg); }
table.compare .winner td { background: #F7F2EA; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.8125rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span { color: var(--ink); }

/* ---------- Affiliate disclosure ---------- */
.disclosure {
  background: var(--bg-alt); border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem; border-radius: 0 8px 8px 0;
  font-size: 0.875rem; color: var(--ink-soft); margin: 1.25rem 0;
}

/* ---------- FAQ (details nativo, sin JS) ---------- */
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.9rem 1.1rem; margin: 0.6rem 0;
}
details.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details.faq p { margin: 0.6rem 0 0; color: var(--ink-soft); }

/* ---------- ToC ---------- */
.toc {
  background: #FBF1E9; border-top: 3px solid var(--terra); border-radius: var(--radius); padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
}
.toc h2 { font-size: 1.1rem; margin: 0 0 0.5em; color: var(--ink); }
.toc ol { margin: 0; }
.toc a { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Artículo ---------- */
.article { max-width: var(--maxw); margin: 0 auto; }
.article h1 { margin-top: 0.5em; }
.article .author-line { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.review-method .lead {
  background: #FBF1E9;
  border-left: 4px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  margin: 1.25rem 0 2rem;
}
.review-step,
.numbered-step {
  border-top: 1px solid #EBCFBC;
  padding-top: 1.05rem;
}
.review-step-number,
.numbered-step-number { color: var(--terra); margin-right: 0.12em; }
.review-method .table-wrap { border-top: 3px solid var(--terra); }
.author-line .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--bg-alt); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.author-box {
  background: var(--bg-alt); border-radius: var(--radius); padding: 1.25rem;
  margin: 2rem 0; display: flex; gap: 1rem; align-items: flex-start;
}
.author-box h3 { margin: 0 0 0.3em; font-size: 1.05rem; }
.author-box p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CDD2; margin-top: 3rem; padding: 3rem 0 2rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 0.8em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.site-footer a { color: #C9CDD2; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2rem; padding-top: 1rem; font-size: 0.8rem; color: #8E949B; }

/* ---------- Animaciones de aparición (progressive enhancement) ---------- */
/* Sin JS el contenido queda visible: solo se oculta si <html> lleva la clase "js". */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* Retardo escalonado (hasta ~6 elementos por fila) */
html.js [data-reveal][data-delay="1"] { transition-delay: 0.05s; }
html.js [data-reveal][data-delay="2"] { transition-delay: 0.12s; }
html.js [data-reveal][data-delay="3"] { transition-delay: 0.19s; }
html.js [data-reveal][data-delay="4"] { transition-delay: 0.26s; }
html.js [data-reveal][data-delay="5"] { transition-delay: 0.33s; }
html.js [data-reveal][data-delay="6"] { transition-delay: 0.40s; }

/* ---------- Bloque de veredicto rápido (estructura LemoHome) ---------- */
.verdict-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
}
.verdict-score {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 700;
}
.verdict-score small { display: block; font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; }
.verdict-body h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.verdict-body .verdict-for { font-weight: 700; color: var(--accent-dark); }
.verdict-body p { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.verdict-cta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
@media (max-width: 560px) {
  .verdict-box { grid-template-columns: 1fr; text-align: center; }
  .verdict-score { margin: 0 auto; }
  .verdict-cta { justify-content: center; }
}

/* ---------- Botón terracota (acción secundaria) ---------- */
.btn-terra {
  display: inline-block; background: var(--terra); color: #fff;
  font-weight: 700; padding: 0.7rem 1.4rem; border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-terra:hover { background: var(--terra-dark); transform: translateY(-1px); text-decoration: none; }

/* ---------- Botón Amazon con micro-interacción ---------- */
.btn-amazon {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.25);
}
.btn-amazon:hover { background: #E88F00; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 153, 0, 0.35); text-decoration: none; }

/* Logo con hover */
.logo { transition: color 0.2s ease; }
.logo:hover,
.logo:focus-visible { color: var(--terra-dark); text-decoration: none; }

/* ---------- Utilidades ---------- */
.section-title { margin-top: 4rem; }
.section-head .section-title { margin-top: 0; }
.section-head { position: relative; margin-bottom: 1.6rem; padding-top: 1.5rem; padding-bottom: 0.9rem; scroll-margin-top: 0; }
.section-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 74px; height: 3px; border-radius: 999px; background: var(--terra); }
.section-head .hero-meta { margin-bottom: 0.5rem; }
.section-title { scroll-margin-top: 0; }
.grid-cats, .grid-3, .grid-2 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.not-found { text-align: center; padding: 4rem 1rem; }
.not-found h1 { font-size: 5rem; color: var(--line); }

/* ---------- Marco de imagen con placeholder (auditoría sin imágenes) ---------- */
.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  margin: 1.25rem 0;
  border: 1px dashed var(--line);
}
.img-frame .img-frame-label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-soft); font-size: 0.85rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-align: center; padding: 1rem;
}
.img-frame img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; margin: 0;
}
.img-caption { margin-top: -0.65rem; color: var(--ink-soft); font-size: 0.78rem; }
.content-note {
  background: #FBF1E9; border-left: 3px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.1rem;
  margin: 1.25rem 0 1.75rem; color: var(--ink-soft); font-size: 0.95rem;
}
.criteria-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.criteria-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.criteria-card h3 { margin: 0 0 0.45rem; font-size: 1.25rem; }
.criteria-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
@media (max-width: 760px) { .criteria-grid { grid-template-columns: 1fr; } }

/* ---------- Comparativas editoriales ---------- */
.comparison-method {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 1.5rem;
  align-items: start;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.comparison-method h2,
.comparison-method h3 { margin-top: 0; }
.comparison-method ul { margin-bottom: 0; }
.comparison-key { background: #FBF1E9; border-radius: 10px; padding: 1rem 1.1rem; }
.comparison-key p { margin: .35rem 0; font-size: .9rem; color: var(--ink-soft); }
.comparison-key strong { color: var(--ink); }

.pick-list { display: grid; gap: .8rem; margin: 1.4rem 0 2rem; }
.pick-row {
  display: grid;
  grid-template-columns: 72px minmax(150px, .7fr) minmax(220px, 1.3fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--terra);
  border-radius: 10px;
}
.pick-rank { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--terra); }
.pick-title { margin: 0; font-size: 1.08rem; }
.pick-label { display: block; margin-bottom: .2rem; color: var(--accent-dark); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pick-reason { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.pick-link { white-space: nowrap; font-weight: 700; }

.decision-table th:not(:first-child),
.decision-table td:not(:first-child) { text-align: center; }
.decision-table th:first-child,
.decision-table td:first-child { min-width: 160px; }
.decision-table .recommended td { background: #f7f2ea; }
.level { display: inline-block; min-width: 62px; padding: .22rem .45rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.level-high { color: #294a36; background: #dfeadf; }
.level-medium { color: #725328; background: #f5e8ce; }
.level-low { color: #70433d; background: #f3deda; }
.source-label { display: block; margin-top: .15rem; color: var(--ink-soft); font-size: .72rem; font-weight: 500; }

.comparison-preview {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  margin: 1.4rem 0 2.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.comparison-preview h3 { margin-top: 0; }
.comparison-preview ul { margin: .5rem 0 1.1rem; }

@media (max-width: 760px) {
  .comparison-method,
  .comparison-preview { grid-template-columns: 1fr; }
  .pick-row { grid-template-columns: 54px 1fr; }
  .pick-reason,
  .pick-link { grid-column: 2; }
}
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }

/* ---------- Guía de estilo ---------- */
.styleguide .swatch {
  border-radius: var(--radius); padding: 1.25rem;
  color: #fff; display: flex; flex-direction: column; gap: 0.2rem;
  font-size: 0.85rem; min-height: 96px;
}
.styleguide .swatch.dark-text { color: var(--ink); }
.styleguide .swatch code { font-family: ui-monospace, monospace; font-size: 0.78rem; opacity: 0.85; }
.type-sample { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.type-sample p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.comp-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1rem 0; }
.gs-title { margin: 3rem 0 1rem; border-top: 2px solid var(--accent); padding-top: 1.5rem; }
