/* Static SEO pages (component detail + hub + about/privacy) — matches the gallery's light theme. */
:root {
  --bg: #ffffff;
  --fg: #202020;
  --fg-strong: #000000;
  --muted: #858585;
  --chip: rgba(0, 0, 0, 0.06);
  --hairline: rgba(0, 0, 0, 0.08);
  --accent: #e0489a;
  --radius: 12px;
  --font: "Inter Variable", Inter, -apple-system, "system-ui", "SF Pro Text", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:hover { color: var(--accent); }

.top {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  color: var(--fg-strong);
}
.top .cta { font-size: 13px; color: var(--muted); }

.detail {
  max-width: 860px;
  margin: 0 auto;
  padding: 12px 20px 60px;
}
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; color: var(--fg-strong); }
.byline { font-size: 12.5px; color: var(--muted); margin: 8px 0 20px; }
.media { border-radius: var(--radius); overflow: hidden; background: #f0f0f0; border: 1px solid var(--hairline); }
.media video, .media img { display: block; width: 100%; height: auto; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; }
.btn {
  display: inline-block;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--chip);
  color: var(--fg-strong);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--fg-strong); color: #fff; border-color: var(--fg-strong); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

section { margin: 30px 0; }
h2 { font-size: 20px; letter-spacing: -0.01em; color: var(--fg-strong); margin-bottom: 10px; }
h2 .count { color: var(--muted); font-weight: 400; font-size: 15px; }
section p { margin-bottom: 10px; }

.facts { border-collapse: collapse; font-size: 13.5px; margin: 6px 0 12px; }
.facts th, .facts td { text-align: left; padding: 6px 18px 6px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.facts th { color: var(--muted); font-weight: 500; white-space: nowrap; }

.tags span {
  display: inline-block;
  font-size: 11.5px;
  padding: 3px 9px;
  margin: 2px 2px 2px 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
}

.prompt { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 14px 18px; background: #fafafa; }
.prompt summary { font-weight: 600; cursor: pointer; color: var(--fg-strong); }
.prompt article { margin-top: 12px; font-size: 14px; }
.prompt h3, .prompt h4, .prompt h5, .prompt h6 { margin: 18px 0 6px; color: var(--fg-strong); }
.prompt pre {
  background: #111;
  color: #eee;
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 10px 0;
}
.prompt code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.prompt p code, .prompt li code { background: var(--chip); padding: 1px 5px; border-radius: 4px; }
.prompt ul, .prompt ol { margin: 8px 0 8px 22px; }

.related { list-style: none; }
.related li { padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 14px; color: var(--muted); }
.related a { font-weight: 600; color: var(--fg-strong); text-decoration: none; }
.related a:hover { color: var(--accent); }

/* El bloque de relacionados por motion system lleva una glosa: los identificadores internos
   (scrub-lagged, pointer-latch) no los teclea nadie, así que la línea explica la técnica. */
.rel-gloss { margin: -6px 0 10px; font-size: 13.5px; color: var(--muted); }

.foot {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--muted);
}
.foot nav { display: flex; gap: 16px; margin-bottom: 10px; }
.foot a { text-decoration: none; }

@media (max-width: 640px) {
  h1 { font-size: 24px; }
  .facts th, .facts td { display: block; padding: 2px 0; border: 0; }
  .facts tr { display: block; border-bottom: 1px solid var(--hairline); padding: 6px 0; }
}

.foot-brand { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.foot-brand img { opacity: 0.7; }
.foot-brand a { font-weight: 600; color: var(--fg-strong); }
.foot-brand a:hover { color: var(--accent); }

/* Cambio de idioma: muy discreto, al final del footer. */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; margin-top: 12px; }
.lang-toggle .lang-opt {
  appearance: none; border: 0; background: none; padding: 2px 6px;
  font: inherit; font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); opacity: 0.6; cursor: pointer; border-radius: 5px;
  transition: color 0.15s, opacity 0.15s;
}
.lang-toggle .lang-opt + .lang-opt { border-left: 1px solid var(--hairline); border-radius: 0 5px 5px 0; }
.lang-toggle .lang-opt:hover { opacity: 1; color: var(--fg); }
.lang-toggle .lang-opt.active { opacity: 1; color: var(--fg-strong); font-weight: 600; }
