/* ==========================================================================
   Tokens · IA para Turismo Inteligente
   Única fuente de verdad para color, ritmo, tipografía y movimiento.
   Ningún otro archivo debe declarar valores de marca en crudo.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-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;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* --- Marca ------------------------------------------------------------ */
  --blue: #079fd3;
  --blue-dark: #087ea4;
  --blue-deep: #075d79;
  --green: #80bf23;
  --green-dark: #3f6810;
  --green-light: #b7ed68;
  --red: #df342f;
  --forest: #10241f;
  --ink: #17211d;
  --paper: #f5f6f2;
  --soft-blue: #e9f6fa;
  --soft-green: #f0f7e4;

  /* --- Superficie y texto ----------------------------------------------- */
  --surface: #fff;
  --surface-muted: #f6f8f5;
  --surface-sunken: #f0f2ef;
  --line: #dce2dd;
  --line-soft: #edf0ed;
  --text: var(--ink);
  --text-muted: #5e6b65;
  --text-soft: #68756f;
  --text-faint: #87918c;

  /* Texto sobre fondo oscuro */
  --on-dark: #eaf2ee;
  --on-dark-muted: #ffffff8c;
  --on-dark-faint: #ffffff75;
  --on-dark-line: #ffffff1a;

  /* --- Ritmo ------------------------------------------------------------- */
  --space-1: 0.25rem;
  --space-2: 0.45rem;
  --space-3: 0.7rem;
  --space-4: 1rem;
  --space-5: 1.4rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* --- Forma ------------------------------------------------------------- */
  --radius-xs: 0.7rem;
  --radius-sm: 0.9rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.35rem;
  --radius-xl: 1.6rem;
  --radius-pill: 99rem;

  --shadow-sm: 0 12px 40px #142c240d;
  --shadow-md: 0 12px 40px #142c2414;
  --shadow-lg: 0 20px 70px #142c2417;
  --shadow-forest: 0 25px 50px #10241f33;

  /* --- Tipografía --------------------------------------------------------- */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --text-2xs: 0.65rem;
  --text-xs: 0.7rem;
  --text-sm: 0.78rem;
  --text-base: 0.88rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.7rem, 3vw, 2.55rem);
  --text-display: clamp(2.5rem, 6vw, 5.4rem);

  /* --- Movimiento --------------------------------------------------------- */
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 520ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --stagger: 55ms;

  /* --- Estructura ---------------------------------------------------------- */
  --sidebar-width: 18rem;
  --header-height: 5.2rem;
  --content-width: 94rem;
}

/* El modo de movimiento reducido se resuelve en tokens para que ninguna
   regla concreta tenga que repetir la condición. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-slow: 1ms;
    --stagger: 0ms;
  }
}
