/* ==========================================================================
   marca.css — identidad visual común del sitio (rediseño 22-nov-2026).
   Se carga DESPUÉS del <style> propio de cada página para que todas
   compartan tipografía, paleta y encabezado con la página principal.

   Va en: tienda, negocios, guía, libros digitales, libro, descargar,
   enlaces y las páginas legales. NO va en admin, redes ni contabilidad
   (decisión del usuario), ni en las páginas que hacen un trámite
   (t, ver, unir, nueva-clave, revisa): ahí se prefirió no tocar nada.

   La paleta sigue el tema del sistema y el botón de tema de cada página
   (data-theme). Los nombres de variables son los que ya usaban las
   páginas: --bg, --surface, --ink, --dim, etc.
   ========================================================================== */

:root {
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --orange: #FF7A1A;
}

/* ---- Oscuro ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0B09; --bg-2: #14100D; --surface: #1A1512; --surface-2: #221B17; --card: #1A1512;
    --line: rgba(255,232,214,0.10); --line-strong: rgba(255,122,26,0.38);
    --ink: #F4EDE7; --text: #F4EDE7; --dim: #B6A89D; --faint: #7D6F66;
    --orange-bright: #FF9A4D; --orange-soft: rgba(255,122,26,0.12);
  }
}
:root[data-theme="dark"] {
  --bg: #0E0B09; --bg-2: #14100D; --surface: #1A1512; --surface-2: #221B17; --card: #1A1512;
  --line: rgba(255,232,214,0.10); --line-strong: rgba(255,122,26,0.38);
  --ink: #F4EDE7; --text: #F4EDE7; --dim: #B6A89D; --faint: #7D6F66;
  --orange-bright: #FF9A4D; --orange-soft: rgba(255,122,26,0.12);
}

/* ---- Claro ---- */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #EBE2D5; --bg-2: #E5DACB; --surface: #F5EEE4; --surface-2: #EFE6DA; --card: #F5EEE4;
    --line: rgba(60,36,20,0.14); --line-strong: rgba(232,98,0,0.4);
    --ink: #1A1411; --text: #1A1411; --dim: #5C4E46; --faint: #93857B;
    --orange-bright: #D45A06; --orange-soft: rgba(255,122,26,0.10);
  }
}
:root[data-theme="light"] {
  --bg: #EBE2D5; --bg-2: #E5DACB; --surface: #F5EEE4; --surface-2: #EFE6DA; --card: #F5EEE4;
  --line: rgba(60,36,20,0.14); --line-strong: rgba(232,98,0,0.4);
  --ink: #1A1411; --text: #1A1411; --dim: #5C4E46; --faint: #93857B;
  --orange-bright: #D45A06; --orange-soft: rgba(255,122,26,0.10);
}

/* ---- Tipografía ---- */
body { font-family: var(--sans) !important; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -0.03em; text-wrap: balance; }
h1 { font-weight: 600 !important; letter-spacing: -0.04em; line-height: 1.04; }
h2 { font-weight: 600 !important; }
h3 { font-weight: 600; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--orange-bright); }

/* ---- Encabezado: el mismo vidrio esmerilado de la portada ---- */
body > header {
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  background: color-mix(in srgb, var(--bg) 80%, transparent) !important;
  border-bottom: 1px solid var(--line) !important;
}
.marca { height: 28px; width: auto; }

/* ---- Foco visible y movimiento reducido ---- */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- La palabra destacada del título va en cursiva serif, como en la portada ---- */
h1 > .accent, h1 > span[style*="--orange"] {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.06em;
  letter-spacing: -0.01em; color: var(--orange-bright) !important;
}
