/* Vivuk · tokens y base compartidos por el sitio y la aplicación.
   Neutros con un solo acento (azul Vivuk). Contrastes WCAG: texto ≥ 4,5:1 y bordes de controles ≥ 3:1. */

@font-face {
  font-family: "Geist";
  src: url("/fuentes/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fuentes/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --blanco: #ffffff;
  --niebla: #f5f6f8;
  --niebla-2: #eceef1;
  --tinta: #111418;
  --tinta-2: #1b1f25;
  --texto: #111418;
  --texto-2: #4a5059;        /* 7,9:1 sobre niebla */
  --texto-3: #6b717a;        /* 4,6:1 sobre niebla */
  --acento: #1d4ed8;         /* azul Vivuk: botones con texto blanco 7:1 */
  --acento-profundo: #1e3fae;
  --acento-suave: #eef2fe;
  --acento-suave-2: #dbe4fd;
  --acento-claro: #8aa8ff;   /* acento sobre fondo tinta */
  --exito: #157347;          /* disponible, pagado, firmado */
  --exito-suave: #e7f4ec;
  --ambar: #8a5a00;
  --ambar-suave: #fff6e0;
  --coral: #b4233c;
  --coral-suave: #fdf0f2;
  --borde: #e6e8eb;
  --borde-2: #d7dbe0;
  --borde-control: #858b94;  /* 3,4:1 */
  --sombra-1: 0 1px 2px rgba(17, 20, 24, 0.06), 0 1px 1px rgba(17, 20, 24, 0.04);
  --sombra-2: 0 8px 24px rgba(17, 20, 24, 0.08), 0 2px 6px rgba(17, 20, 24, 0.05);
  --sombra-3: 0 24px 64px rgba(17, 20, 24, 0.18);
  --radio: 10px;
  --radio-2: 14px;
  --fuente: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--texto);
  background: var(--niebla);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--acento-profundo); text-underline-offset: 3px; }
a:hover { color: var(--acento); }
h1, h2, h3, h4 { margin: 0; line-height: 1.18; text-wrap: balance; font-weight: 650; letter-spacing: -0.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(29, 78, 216, 0.45); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--acento-suave-2); color: var(--tinta); }
.mono { font-family: var(--mono); font-size: 0.93em; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.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; }

/* Botones: alto mínimo de 44 px para el pulgar */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radio);
  border: 1px solid var(--acento); background: var(--acento); color: #fff;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.05s;
  white-space: nowrap;
}
.boton:hover { background: var(--acento-profundo); border-color: var(--acento-profundo); color: #fff; }
.boton:active { transform: translateY(1px); }
.boton[disabled], .boton.desactivado { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.boton-secundario { background: var(--blanco); color: var(--texto); border-color: var(--borde-2); box-shadow: var(--sombra-1); }
.boton-secundario:hover { background: var(--niebla); color: var(--texto); border-color: var(--borde-control); }
.boton-oscuro { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.boton-oscuro:hover { background: var(--tinta-2); border-color: var(--tinta-2); color: #fff; }
.boton-fantasma { background: transparent; border-color: transparent; color: var(--acento-profundo); }
.boton-fantasma:hover { background: var(--acento-suave); border-color: transparent; color: var(--acento-profundo); }
.boton-whatsapp { background: var(--exito); border-color: var(--exito); color: #fff; }
.boton-whatsapp:hover { background: #0f5c38; border-color: #0f5c38; color: #fff; }
.boton-peligro { background: var(--blanco); color: var(--coral); border-color: #e7b9c1; }
.boton-peligro:hover { background: var(--coral-suave); color: var(--coral); border-color: var(--coral); }
.boton-chico { min-height: 36px; padding: 7px 12px; font-size: 14px; border-radius: 8px; }
.boton-grande { min-height: 52px; padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.boton svg { width: 18px; height: 18px; flex: none; }

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

/* ── Cookies ───────────────────────────────────────────────────────────── */
#aviso-cookies { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: var(--tinta); color: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: var(--sombra-3); display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
#aviso-cookies a { color: var(--acento-claro); }
#aviso-cookies .botones { display: flex; gap: 10px; justify-content: flex-end; }
#aviso-cookies .boton-secundario { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
@media (max-width: 600px) { #aviso-cookies { left: 12px; right: 12px; bottom: 84px; } }
