/* Paleta monocroma a propósito: la marca madre se diferencia de sus productos por
   ausencia de color, no por tener otro color. Una sola tinta y sus opacidades. */
:root {
  --bg: #ffffff;
  --ink: #0b0b0b;
  --ink-soft: #5a5a5a;
  --line: rgba(11, 11, 11, 0.13);
  --card: #ffffff;
  --card-hover: #f6f6f5;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --ink: #f4f4f2;
  --ink-soft: #a0a09c;
  --line: rgba(244, 244, 242, 0.15);
  --card: #121212;
  --card-hover: #181818;
}
/* Respaldo si el script de tema no llegó a correr. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --ink: #f4f4f2;
    --ink-soft: #a0a09c;
    --line: rgba(244, 244, 242, 0.15);
    --card: #121212;
    --card-hover: #181818;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* --- Barra superior --- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 24px; height: 24px; display: block; }
.brand span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.controls { display: flex; align-items: center; gap: 8px; }
.lang, .theme-toggle {
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
  font-family: inherit;
}
.lang { font-size: 12px; letter-spacing: 0.08em; padding: 7px 13px; text-decoration: none; }
.lang:hover, .theme-toggle:hover { background: var(--card-hover); }
.theme-toggle { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; }
.theme-toggle svg { width: 16px; height: 16px; }
/* Se muestra el ícono de la acción disponible, no del estado actual. */
.icon-sun { display: none; }
.icon-moon { display: block; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* --- Portada --- */
.intro { padding: 44px 0 4px; }
.mark-hero { width: 54px; height: 54px; display: block; margin-bottom: 26px; color: var(--ink); }
h1 {
  font-size: clamp(27px, 6.2vw, 40px); line-height: 1.16;
  letter-spacing: -0.02em; font-weight: 600; margin: 0 0 18px;
  max-width: 24ch;
}
.lede { font-size: 17px; color: var(--ink-soft); margin: 0; max-width: 54ch; }

/* --- Productos --- */
.section-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); margin: 54px 0 14px;
}
.product-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); text-decoration: none; color: inherit;
  transition: background 0.15s ease;
}
.product-card:hover { background: var(--card-hover); }
.product-card img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.product-card h2 { font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.product-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.badge {
  display: inline-block; margin-top: 9px; padding: 3px 9px;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}

/* --- Páginas simples: 404 y los productos en desarrollo --- */
.page { padding: 56px 0 0; }
.page img.product-icon { width: 72px; height: 72px; border-radius: 16px; display: block; margin-bottom: 24px; }
.page h1 { max-width: 30ch; }
.page p { font-size: 16px; color: var(--ink-soft); max-width: 54ch; }
.page a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* --- Pie --- */
.site-footer {
  margin-top: 64px; padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
}
.site-footer a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.motto { font-style: italic; }
