/*
 * brand.css - tokens y primitivas compartidas por la landing y los logins.
 * Dirección: calma editorial tipo Linear. Un solo acento (el azul-índigo del producto),
 * neutros fríos, sin negro puro, sin glows, sin degradados decorativos.
 * Tipografía Geist, autoalojada (sin llamadas a Google Fonts).
 */

@font-face {
  font-family: 'Geist';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  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 {
  color-scheme: light;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f2f3f7;
  --ink: #14161c;
  --muted: #5a6072;
  --line: rgba(20, 22, 28, 0.1);
  --accent: #4f5bd5;          /* relleno de botones: texto blanco = 5.4:1 */
  --accent-hover: #4450c4;
  --accent-ink: #3b46b8;      /* texto/enlaces sobre fondo claro */
  --accent-tint: rgba(79, 91, 213, 0.08);
  --inverse-bg: #14161c;
  --inverse-ink: #eceef3;
  --inverse-muted: #a3a9ba;
  --shadow: 0 1px 2px rgba(31, 38, 77, 0.05), 0 8px 24px -12px rgba(31, 38, 77, 0.12);

  --radius: 12px;        /* un solo sistema: tarjetas 12, controles 10, pills 999 */
  --radius-control: 10px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-bs-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0f14;
  --surface: #141720;
  --surface-2: #1a1e29;
  --ink: #eceef3;
  --muted: #9aa0b2;
  --line: rgba(255, 255, 255, 0.1);
  --accent-ink: #a3abff;
  --accent-tint: rgba(120, 131, 255, 0.12);
  --inverse-bg: #1f2330;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0f14; --surface: #141720; --surface-2: #1a1e29;
    --ink: #eceef3; --muted: #9aa0b2; --line: rgba(255, 255, 255, 0.1);
    --accent-ink: #a3abff; --accent-tint: rgba(120, 131, 255, 0.12);
    --inverse-bg: #1f2330;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn-brand, .btn-quiet {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 46px; padding: 0 1.25rem; border-radius: var(--radius-control);
  font: 600 .95rem/1 var(--font); letter-spacing: -.005em; white-space: nowrap;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn-brand { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-brand:active, .btn-quiet:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-brand:hover { background: var(--accent-hover); color: #fff; }
  .btn-quiet:hover { background: var(--surface-2); }
}
.btn-brand svg, .btn-quiet svg { width: 17px; height: 17px; flex-shrink: 0; }

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

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