/* =====================================================================
   Revelaix · main.css
   Design system + layout + componentes + utilities
   Un solo archivo, CSS vanilla, dark mode.
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #13131a;
  --bg-tertiary: #1d1d26;
  --bg-elevated: #23232e;

  /* Borders */
  --border: #2a2a36;
  --border-strong: #3a3a48;

  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: #a8a8b3;
  --text-muted: #6e6e7a;

  /* Accents */
  --accent-primary: #00d4ff;
  --accent-primary-dim: rgba(0, 212, 255, 0.12);
  --accent-secondary: #ff3d71;
  --accent-secondary-dim: rgba(255, 61, 113, 0.12);
  --accent-success: #00d68f;
  --accent-warning: #ffa500;

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.75rem;
  --fs-4xl:  3.75rem;

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.5rem;
  --sp-6:  2rem;
  --sp-8:  3rem;
  --sp-10: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (usadas con moderación) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-glow-cyan: 0 0 24px rgba(0,212,255,0.25);

  /* Transitions */
  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t-base: 200ms cubic-bezier(.4,0,.2,1);
  --t-slow: 400ms cubic-bezier(.4,0,.2,1);

  /* Layout */
  --max-w: 1200px;
  --max-w-prose: 720px;
  --header-h: 68px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body { height: 100%; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* ruido sutil */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0,212,255,0.04), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255,61,113,0.035), transparent 60%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.07 0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  background-attachment: fixed;
  background-size: 100% 100%, 100% 100%, 240px 240px;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--accent-primary); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-secondary); }
ul, ol { list-style: none; }

::selection { background: var(--accent-primary); color: var(--bg-primary); }

/* focus visible — accesibilidad */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
p  { color: var(--text-secondary); }
p strong { color: var(--text-primary); }
code, kbd, samp, .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-tertiary);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: var(--sp-3) var(--sp-5);
  color: var(--text-primary);
  font-style: italic;
  background: var(--bg-secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--sp-5) 0;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.container-prose {
  width: 100%;
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
main { flex: 1; }
section { padding: var(--sp-10) 0; }
section.tight { padding: var(--sp-6) 0; }

/* ---------- 5. Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.nav-brand:hover { color: var(--text-primary); }
.nav-brand svg { width: 28px; height: 28px; }
.nav-brand .brand-x { color: var(--accent-primary); }

.nav-links {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
}
.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: var(--sp-2) 0;
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent-primary);
  border-radius: 1px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: all var(--t-fast);
}
.nav-cta:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-5);
    gap: var(--sp-4);
  }
  .nav.open .nav-links a {
    font-size: var(--fs-md);
    width: 100%;
  }
}

/* ---------- 6. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-sm);
  line-height: 1;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: var(--accent-secondary);
  color: var(--text-primary);
  box-shadow: 0 0 0 4px var(--accent-secondary-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-lg { padding: var(--sp-4) var(--sp-6); font-size: var(--fs-base); }
.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); }

/* ---------- 7. Cards ---------- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  transition: border-color var(--t-base), transform var(--t-base);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}
.card-link { color: var(--text-primary); display: block; }
.card-link:hover { color: var(--text-primary); }

.card h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.card p { font-size: var(--fs-sm); color: var(--text-secondary); }

.card-footer {
  margin-top: auto;
  padding-top: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}

/* Card de herramienta */
.tool-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.tool-card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.tool-logo {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}
.tool-logo img, .tool-logo svg { width: 100%; height: 100%; object-fit: cover; }
.tool-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--text-primary); }
.tool-tagline { font-size: var(--fs-sm); color: var(--text-secondary); }

/* Card de categoría */
.cat-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  position: relative;
}
.cat-card .cat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  display: grid; place-items: center;
}
.cat-card .cat-count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ---------- 8. Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  white-space: nowrap;
}
.badge-gratis { color: var(--accent-success); border-color: rgba(0,214,143,0.3); background: rgba(0,214,143,0.08); }
.badge-freemium { color: var(--accent-warning); border-color: rgba(255,165,0,0.3); background: rgba(255,165,0,0.08); }
.badge-pago { color: var(--accent-secondary); border-color: rgba(255,61,113,0.3); background: rgba(255,61,113,0.08); }
.badge-pro { color: var(--accent-primary); border-color: rgba(0,212,255,0.3); background: rgba(0,212,255,0.08); }

/* Rating */
.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-primary);
}
.rating-star { color: var(--accent-warning); }

/* ---------- 9. Grid utilities ---------- */
.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto-280 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-320 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

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

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-12) 0 var(--sp-10);
  overflow: hidden;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0,212,255,0.25);
  margin-bottom: var(--sp-4);
}
.hero h1 {
  max-width: 20ch;
  margin-bottom: var(--sp-4);
}
.hero h1 .hl {
  color: var(--accent-primary);
  font-style: italic;
  font-weight: 600;
}
.hero p.lede {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 60ch;
  margin-bottom: var(--sp-6);
}
.hero-meta {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--sp-5);
}
.hero-meta span { display: inline-flex; align-items: center; gap: var(--sp-1); }

/* Home hero search */
.hero-search {
  display: flex;
  gap: var(--sp-2);
  max-width: 640px;
  margin-top: var(--sp-5);
  position: relative;
}
.hero-search input[type="search"] {
  flex: 1;
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.hero-search input[type="search"]:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-primary-dim);
}
.hero-search input[type="search"]::placeholder { color: var(--text-muted); }

/* ---------- 11. Breadcrumbs ---------- */
.breadcrumbs {
  padding: var(--sp-4) 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent-primary); }
.breadcrumbs .sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumbs .current { color: var(--text-primary); }

/* ---------- 12. Section heading ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.section-head h2 { letter-spacing: -0.02em; }
.section-head p { color: var(--text-secondary); max-width: 60ch; margin-top: var(--sp-2); }
.section-head a.view-all {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  padding: var(--sp-2) 0;
}
.section-head a.view-all:hover { color: var(--accent-primary); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: var(--sp-2);
  display: inline-block;
}

/* ---------- 13. Prose (blog + legal) ---------- */
.prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: var(--fs-md);
  line-height: 1.75;
}
.prose h2 { margin-top: var(--sp-8); margin-bottom: var(--sp-4); color: var(--text-primary); }
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); color: var(--text-primary); }
.prose h4 { margin-top: var(--sp-5); margin-bottom: var(--sp-2); color: var(--text-primary); }
.prose p { margin-bottom: var(--sp-4); }
.prose ul, .prose ol {
  margin: var(--sp-4) 0;
  padding-left: var(--sp-5);
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: var(--sp-2); }
.prose li::marker { color: var(--accent-primary); }
.prose a { color: var(--accent-primary); border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.prose a:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.prose strong { color: var(--text-primary); }
.prose hr { border: none; height: 1px; background: var(--border); margin: var(--sp-6) 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-5) 0;
  font-size: var(--fs-sm);
}
.prose th, .prose td {
  padding: var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.prose th { color: var(--text-primary); background: var(--bg-secondary); }

/* Callout */
.callout {
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-md);
  margin: var(--sp-5) 0;
}
.callout.warn { border-left-color: var(--accent-warning); }
.callout.success { border-left-color: var(--accent-success); }

/* ---------- 14. Tabla comparativa ---------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-tertiary); }

/* ---------- 15. Pros / Contras ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin: var(--sp-5) 0; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; } }
.proscons .col {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.proscons h4 { margin-bottom: var(--sp-3); display: flex; align-items: center; gap: var(--sp-2); }
.proscons .pros h4 { color: var(--accent-success); }
.proscons .cons h4 { color: var(--accent-secondary); }
.proscons ul { list-style: none; padding: 0; }
.proscons li { padding: var(--sp-2) 0; display: flex; gap: var(--sp-3); align-items: flex-start; }
.proscons li::before {
  content: "";
  flex-shrink: 0;
  width: 16px; height: 16px;
  margin-top: 4px;
  background-repeat: no-repeat;
  background-position: center;
}
.proscons .pros li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d68f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.proscons .cons li::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3d71' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
}

/* ---------- 16. FAQ (details/summary) ---------- */
.faq { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq details {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  transition: border-color var(--t-fast);
}
.faq details[open] { border-color: var(--accent-primary); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  gap: var(--sp-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  color: var(--accent-primary);
  transition: transform var(--t-base);
}
.faq details[open] summary::after { content: "−"; }
.faq details > p, .faq details > div { margin-top: var(--sp-3); color: var(--text-secondary); }

/* ---------- 17. AdSense slot ---------- */
.ad-slot {
  width: 100%;
  min-height: 100px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin: var(--sp-8) 0;
}
.ad-slot[data-loaded="true"] { border-style: solid; }
.ad-slot::before {
  content: attr(data-placeholder);
  opacity: 0.6;
}

/* ---------- 18. Footer ---------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--sp-8) 0 var(--sp-5);
  margin-top: var(--sp-10);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-col h4 {
  color: var(--text-primary);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-weight: 500;
  margin-bottom: var(--sp-3);
}
.footer-col ul li { margin-bottom: var(--sp-2); }
.footer-col a { color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent-primary); }
.footer-brand p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-2); max-width: 40ch; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-primary); }

/* ---------- 19. Consent banner ---------- */
.consent {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 80;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-md);
  display: none;
  gap: var(--sp-5);
  align-items: center;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
}
.consent.show { display: flex; }
.consent-text { flex: 1; min-width: 260px; font-size: var(--fs-sm); color: var(--text-secondary); }
.consent-text strong { color: var(--text-primary); }
.consent-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}
.consent-modal.show { display: flex; }
.consent-modal-inner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.consent-modal h3 { margin-bottom: var(--sp-4); }
.consent-option {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}
.consent-option:last-of-type { border-bottom: none; }
.consent-option strong { display: block; color: var(--text-primary); margin-bottom: var(--sp-1); }
.consent-option small { color: var(--text-muted); font-size: var(--fs-xs); }

.toggle {
  position: relative;
  width: 40px; height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle .slider {
  position: absolute; inset: 0;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--t-fast);
}
.toggle .slider::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--t-fast);
}
.toggle input:checked + .slider { background: var(--accent-primary-dim); border-color: var(--accent-primary); }
.toggle input:checked + .slider::before { transform: translateX(18px); background: var(--accent-primary); }
.toggle input:disabled + .slider { opacity: 0.5; cursor: not-allowed; }

/* ---------- 20. Search / Filters ---------- */
.filter-bar {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding: var(--sp-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-5);
}
.filter-bar input[type="search"], .filter-bar select {
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  min-width: 180px;
}
.filter-bar input[type="search"]:focus, .filter-bar select:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.filter-bar input[type="search"] { flex: 1; min-width: 220px; }

.results-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}
.results-empty {
  padding: var(--sp-8);
  text-align: center;
  color: var(--text-muted);
}

/* ---------- 21. Pricing table (fichas) ---------- */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
}
.pricing-tier {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.pricing-tier .tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
  color: var(--text-primary);
}
.pricing-tier .tier-price {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  color: var(--accent-primary);
  margin-bottom: var(--sp-3);
}
.pricing-tier ul { list-style: none; font-size: var(--fs-sm); color: var(--text-secondary); }
.pricing-tier ul li { padding: var(--sp-1) 0; }

/* ---------- 22. Verdict box ---------- */
.verdict {
  background: linear-gradient(135deg, var(--accent-primary-dim), var(--accent-secondary-dim));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin: var(--sp-5) 0;
  display: flex;
  gap: var(--sp-5);
  align-items: center;
  flex-wrap: wrap;
}
.verdict .score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--text-primary);
}
.verdict .score small { font-size: var(--fs-md); color: var(--text-secondary); }
.verdict .verdict-body { flex: 1; min-width: 240px; }
.verdict .verdict-body strong { color: var(--text-primary); display: block; margin-bottom: var(--sp-1); }
.verdict .verdict-body p { color: var(--text-secondary); font-size: var(--fs-sm); margin: 0; }

/* ---------- 23. CTAs / newsletter ---------- */
.cta-strip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, var(--accent-primary-dim), transparent 60%);
  pointer-events: none;
}
.cta-strip > * { position: relative; }
.cta-strip h2 { margin-bottom: var(--sp-3); }
.cta-strip p { color: var(--text-secondary); max-width: 50ch; margin: 0 auto var(--sp-5); }
.cta-strip form {
  display: flex;
  gap: var(--sp-2);
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cta-strip input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-size: var(--fs-sm);
}
.cta-strip input[type="email"]:focus {
  outline: none;
  border-color: var(--accent-primary);
}
.cta-strip small { display: block; margin-top: var(--sp-3); color: var(--text-muted); font-size: var(--fs-xs); }

/* ---------- 24. Quick-list pricing columns (home) ---------- */
.quick-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 860px) { .quick-lists { grid-template-columns: 1fr; } }
.quick-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.quick-list h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.quick-list ol { list-style: none; counter-reset: q; padding: 0; }
.quick-list ol li {
  counter-increment: q;
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.quick-list ol li:last-child { border-bottom: none; }
.quick-list ol li::before {
  content: counter(q);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  width: 20px;
}
.quick-list ol li a { color: var(--text-primary); font-weight: 500; }

/* ---------- 25. Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ---------- 26. Animations + reduced motion ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 600ms cubic-bezier(.2,.7,.2,1) both; }
.fade-in-up-d1 { animation-delay: 100ms; }
.fade-in-up-d2 { animation-delay: 200ms; }
.fade-in-up-d3 { animation-delay: 300ms; }

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

/* ---------- 27. Author block (blog) ---------- */
.author-block {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: var(--sp-8) 0;
  align-items: flex-start;
}
.author-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-primary-dim);
  color: var(--accent-primary);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.author-info h4 { margin-bottom: var(--sp-1); font-size: var(--fs-md); }
.author-info p { font-size: var(--fs-sm); margin: 0; }

/* ---------- 28. Error pages ---------- */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--sp-10) var(--sp-5);
}
.error-code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-4);
}

/* ---------- 29. Hide helpers ---------- */
[hidden] { display: none !important; }
