/* ==========================================================================
   BRICOVIBE — Hoja de estilos principal
   --------------------------------------------------------------------------
   - Sin dependencias externas (sin Google Fonts, sin frameworks CSS).
   - Tipografías del sistema: carga instantánea, cero peticiones de red.
   - Mobile-first. Pensada para Core Web Vitals (LCP, CLS, INP) bajos.
   - Variables CSS centralizadas para poder retocar marca/colores fácilmente.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES GLOBALES
   -------------------------------------------------------------------------- */
:root {
  /* Colores de marca (fáciles de cambiar en un único sitio) */
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-surface-alt: #f2efe9;
  --color-text: #211f1c;
  --color-text-muted: #5c5750;
  --color-border: #e4dfd6;
  --color-border-strong: #cfc8ba;

  --color-primary: #a8461f;
  --color-primary-dark: #832f11;
  --color-primary-contrast: #ffffff;

  --color-accent: #2c5f52;
  --color-accent-dark: #1e463c;

  --color-success: #2e6b3e;
  --color-warning: #8a5a10;
  --color-ad-bg: #efece4;
  --color-ad-border: #d9d2c2;

  --color-link: #7c3a17;
  --color-link-visited: #6a3417;

  /* Tipografía: pila del sistema, sin peticiones externas */
  --font-heading: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-base: 1rem;
  --fs-sm: 0.9rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.35rem;
  --fs-2xl: 1.7rem;
  --fs-3xl: 2.1rem;
  --fs-4xl: 2.6rem;

  --line-height-base: 1.65;
  --line-height-heading: 1.25;

  /* Espaciados */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.85rem;
  --space-4: 1.25rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --max-width: 1180px;
  --max-width-article: 760px;

  --shadow-sm: 0 1px 2px rgba(33, 31, 28, 0.06);
  --shadow-md: 0 4px 16px rgba(33, 31, 28, 0.08);

  --transition-fast: 150ms ease;
}

/* --------------------------------------------------------------------------
   2. RESET LIGERO
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--line-height-base);
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: var(--line-height-heading);
  color: var(--color-text);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); margin-top: var(--space-6); }
h3 { font-size: var(--fs-xl); margin-top: var(--space-5); }
h4 { font-size: var(--fs-lg); margin-top: var(--space-4); }

p { margin: 0 0 var(--space-4); }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.4em; }
li { margin-bottom: var(--space-2); }

a {
  color: var(--color-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:visited { color: var(--color-link-visited); }
a:hover { color: var(--color-primary-dark); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-5);
  font-size: var(--fs-sm);
}

th, td {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

th {
  font-family: var(--font-heading);
  background: var(--color-surface-alt);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-article {
  width: 100%;
  max-width: var(--max-width-article);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* --------------------------------------------------------------------------
   4. CABECERA Y NAVEGACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--color-primary); }
.brand:visited { color: var(--color-text); }

.brand__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  color: var(--color-text);
  font-size: var(--fs-sm);
}

.nav-toggle__icon {
  width: 20px;
  height: 16px;
  position: relative;
}
.nav-toggle__icon span,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon span { top: 7px; }
.nav-toggle__icon::after { bottom: 0; }

.primary-nav {
  display: none;
  width: 100%;
}

.primary-nav.is-open {
  display: block;
}

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.primary-nav__list a {
  display: block;
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--color-border);
}

.primary-nav__list a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    display: block;
    width: auto;
  }

  .primary-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    border-top: none;
    padding: 0;
    gap: var(--space-1);
  }

  .primary-nav__list a {
    border-bottom: none;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
  }

  .primary-nav__list a:hover {
    background: var(--color-surface-alt);
  }
}

/* --------------------------------------------------------------------------
   5. HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-block: var(--space-6);
  background: linear-gradient(180deg, var(--color-surface-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero__grid {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero h1 {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-3);
}

@media (min-width: 700px) {
  .hero h1 { font-size: var(--fs-4xl); }
}

.hero__lead {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.hero__art {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7em 1.3em;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-contrast);
}
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-primary:visited { color: var(--color-primary-contrast); }

.btn-secondary {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-secondary:visited { color: var(--color-text); }

.btn-amazon {
  background: var(--color-accent);
  color: #fff;
}
.btn-amazon:hover { background: var(--color-accent-dark); color: #fff; }
.btn-amazon:visited { color: #fff; }

.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   7. SECCIONES Y TÍTULOS DE SECCIÓN
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-6);
}

.section--alt {
  background: var(--color-surface-alt);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.section__head h2 { margin-top: 0; }

.section__link {
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   8. TARJETAS: categorías, artículos, comparativas
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-4);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__media {
  aspect-ratio: 16 / 10;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.card__title {
  font-size: var(--fs-lg);
  margin: 0 0 var(--space-2);
}

.card__title a {
  color: var(--color-text);
  text-decoration: none;
}
.card__title a:visited { color: var(--color-text); }
.card__title a:hover { color: var(--color-primary); }
.card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card { position: relative; }

.card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-3);
  flex: 1;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Tarjeta de categoría (icono + texto) */
.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  text-decoration: none;
  color: var(--color-text);
  position: relative;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.category-card:visited { color: var(--color-text); }
.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-text);
}

.category-card__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.category-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   9. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding-block: var(--space-3);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
}

.breadcrumbs li { margin: 0; display: flex; gap: 0.35em; align-items: center; }
.breadcrumbs a { color: var(--color-text-muted); text-decoration: underline; }
.breadcrumbs li[aria-current="page"] { color: var(--color-text); font-weight: 600; }

/* --------------------------------------------------------------------------
   10. ARTÍCULO
   -------------------------------------------------------------------------- */
.article-header {
  padding-block: var(--space-5);
}

.article-header__meta {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.article-header h1 {
  font-size: var(--fs-3xl);
}

@media (min-width: 700px) {
  .article-header h1 { font-size: var(--fs-4xl); }
}

.article-header__lead {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
}

.article-body {
  padding-bottom: var(--space-6);
}

.article-body h2 {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}

.article-body h2:first-child {
  border-top: none;
  padding-top: 0;
}

.toc {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-5) 0;
}

.toc summary {
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  font-size: var(--fs-lg);
}

.toc ol {
  margin: var(--space-3) 0 0;
  padding-left: 1.2em;
}

.toc a {
  text-decoration: none;
}
.toc a:hover { text-decoration: underline; }

/* Respuesta rápida destacada */
.quick-answer {
  background: #f6f1e7;
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin: var(--space-5) 0;
}

.quick-answer__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  display: block;
}

.quick-answer p:last-child { margin-bottom: 0; }

/* Callout genérico (consejo, aviso, error habitual) */
.callout {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.callout--tip { border-left: 4px solid var(--color-accent); }
.callout--warning { border-left: 4px solid var(--color-warning); background: #fbf3e4; }
.callout--error { border-left: 4px solid #a8461f; background: #fbf0ea; }

.callout__title {
  font-weight: 700;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.callout p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  padding-right: var(--space-4);
}
.faq-item p { margin-top: var(--space-2); color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   11. CAJA DE PRODUCTO (Amazon Afiliados — reutilizable)
   -------------------------------------------------------------------------- */
.product-box {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  background: var(--color-surface);
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .product-box {
    grid-template-columns: 160px 1fr;
    align-items: start;
  }
}

.product-box__media {
  aspect-ratio: 1 / 1;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.product-box__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
}

.product-box__for {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.product-box__pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--fs-sm);
}

.product-box__pros-cons h5 {
  margin: 0 0 var(--space-1);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.product-box__pros-cons ul {
  margin: 0;
  padding-left: 1.1em;
}

.product-box__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.product-box__disclosure {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   12. ESPACIOS PUBLICITARIOS (AdSense — futuro)
   -------------------------------------------------------------------------- */
.ad-slot {
  background: var(--color-ad-bg);
  border: 1px dashed var(--color-ad-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.78rem;
}

.ad-slot__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.ad-slot--top { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-slot--in-article { min-height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-slot--after-content { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-slot--sidebar { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad-slot--footer { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* --------------------------------------------------------------------------
   13. BARRA LATERAL
   -------------------------------------------------------------------------- */
.layout-with-sidebar {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 980px) {
  .layout-with-sidebar {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }
}

.sidebar-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.sidebar-block h3 {
  margin-top: 0;
  font-size: var(--fs-lg);
}

.sidebar-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-block li {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.sidebar-block li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-block a { text-decoration: none; font-size: var(--fs-sm); }
.sidebar-block a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   14. RELACIONADOS / CTA
   -------------------------------------------------------------------------- */
.related {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.cta-box {
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-6) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cta-box h3 { color: #fff; margin: 0; }
.cta-box p { color: #e6efec; margin: 0; }
.cta-box .btn-primary { background: #fff; color: var(--color-accent-dark); }
.cta-box .btn-primary:hover { background: #f2efe4; }

/* --------------------------------------------------------------------------
   15. FORMULARIOS (newsletter, contacto)
   -------------------------------------------------------------------------- */
.form-field {
  margin-bottom: var(--space-4);
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-2);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--fs-base);
  background: var(--color-surface);
  color: var(--color-text);
}

.form-field textarea { min-height: 140px; resize: vertical; }

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.newsletter-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.newsletter-box__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.newsletter-box__form input {
  flex: 1;
  min-width: 220px;
}

/* --------------------------------------------------------------------------
   16. BUSCADOR
   -------------------------------------------------------------------------- */
.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
}

.search-results {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
}

.search-results li {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}

.search-results a {
  font-weight: 600;
  text-decoration: none;
}
.search-results a:hover { text-decoration: underline; }

.search-results__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.search-empty {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   17. BANNER DE COOKIES (estructura, sin CMP real todavía)
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-text);
  color: #fff;
  padding: var(--space-4);
  z-index: 300;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.cookie-banner p {
  margin: 0;
  font-size: var(--fs-sm);
  max-width: 60ch;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.cookie-banner a { color: #fff; }

/* --------------------------------------------------------------------------
   18. PIE DE PÁGINA
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-text);
  color: #d9d4cb;
  padding-block: var(--space-6);
  margin-top: var(--space-6);
}

.site-footer a {
  color: #f1eee6;
}

.site-footer__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.site-footer h3 {
  color: #fff;
  font-size: var(--fs-base);
  margin: 0 0 var(--space-3);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: var(--space-2); }

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  color: #fff;
  margin-bottom: var(--space-2);
}

.site-footer__desc {
  font-size: var(--fs-sm);
  color: #b8b2a6;
  max-width: 40ch;
}

.site-footer__bottom {
  border-top: 1px solid #3a3733;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a39d90;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   19. UTILIDADES
   -------------------------------------------------------------------------- */
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
}

.tag-list li {
  margin: 0;
}

.tag-list a,
.tag-pill {
  display: inline-block;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.3em 0.9em;
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--color-text-muted);
}

.criteria-list {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
}

.criteria-list li {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}

.criteria-list strong { color: var(--color-primary-dark); }

.author-box {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-5) 0;
}

.author-box__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-border-strong);
  flex-shrink: 0;
}

.author-box__name {
  font-weight: 700;
  margin: 0;
}

.author-box__role {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   20. PÁGINA 404
   -------------------------------------------------------------------------- */
.error-page {
  padding-block: var(--space-7);
  text-align: center;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-border-strong);
  margin: 0;
  line-height: 1;
}

.error-page__search {
  max-width: 480px;
  margin: var(--space-5) auto;
}

/* --------------------------------------------------------------------------
   21. IMPRESIÓN (opcional, ligero)
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .ad-slot, .cookie-banner, .nav-toggle { display: none; }
}
