/* ─────────────────────────────────────────────────────────────────────────────
   Marca Voicecap: tipografías y colores compartidos por la landing, las páginas legales,
   el panel web y la app (Capacitor copia este archivo y fuentes/ a www/).

   Paleta: azul noche + índigo (marca y todo lo interactivo: calma, confianza, foco),
   ámbar (llamadas a la acción y Pro, ~10 % de la superficie), verde SOLO como estado
   ("conectado", "activo"). Nada de verde como color de marca: es la familia de WhatsApp
   (#25D366 / #128C7E / #075E54) y las reglas de marca de las tiendas piden distinguirse.
   Todos los pares texto/fondo pasan WCAG AA (≥ 4,5:1) en claro y en oscuro.

   Tipografías (OFL, alojadas aquí, sin Google Fonts: funciona sin conexión y no comparte
   datos de los usuarios con terceros): Bricolage Grotesque para títulos, Figtree para texto.
   ───────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fuentes/bricolage-grotesque-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fuentes/bricolage-grotesque-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fuentes/figtree-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fuentes/figtree-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Identidad (del ícono) */
  --noche: #121d36;
  --noche-2: #223a6b;
  /* Neutros fríos, con un leve tinte índigo */
  --bg: #f4f5fa;
  --card: #ffffff;
  --input: #f9fafd;
  --text: #141a33;
  --muted: #5a6283;
  --border: #dfe3f0;
  --off: #c5cad9;
  /* Interacción (índigo) */
  --accent: #3346c8;
  --accent-soft: #e8ebfb;
  --on-accent: #ffffff;
  /* Acción y Pro (ámbar) */
  --ambar: #f4b942;
  --on-ambar: #1f1600;
  --ambar-soft: #fbefd0;
  --ambar-text: #7a4f00;
  /* Estados */
  --ok: #1e7d52;
  --ok-soft: #e2f3ea;
  --danger: #c0362f;
  --danger-soft: #fbe7e5;
  /* Tipografía */
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1324; --card: #151c33; --input: #10172b; --text: #e7eaf6; --muted: #9aa3c3; --border: #252e4d; --off: #39425f;
    --accent: #8b9cff; --accent-soft: #1f2850; --on-accent: #0d1324;
    --ambar-soft: #33280d; --ambar-text: #f6cf74;
    --ok: #4cc38a; --ok-soft: #143326; --danger: #f07a70; --danger-soft: #3a1c1c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1324; --card: #151c33; --input: #10172b; --text: #e7eaf6; --muted: #9aa3c3; --border: #252e4d; --off: #39425f;
  --accent: #8b9cff; --accent-soft: #1f2850; --on-accent: #0d1324;
  --ambar-soft: #33280d; --ambar-text: #f6cf74;
  --ok: #4cc38a; --ok-soft: #143326; --danger: #f07a70; --danger-soft: #3a1c1c;
  color-scheme: dark;
}

/* Íconos SVG de línea (sprite en cada página): heredan el color del texto */
.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

@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; }
}
