/* OLIMPRO DESIGN TOKENS — derived from "Olimpro Brand Guidelines 2024" (RECURSOS OLIMPRO/).
   Single source of truth for colour, type, spacing, radius and motion. Do not hard-code values in components. */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* ── Paleta principal (Brandbook 2.3) ── */
  --olp-blue: #2EB9DC;          /* OLIMPRO · HEX 2EB9DC · CMYK 69/3/12/0 */
  --olp-cream: #EFECDC;         /* CREMA · HEX EFECDC */
  --olp-choco: #422407;         /* CHOCO · Pantone 4625 C — SOLO TEXTO, nunca fondo ni elemento gráfico */
  --olp-logo-cream: #EBE8D9;    /* relleno del SVG oficial del logotipo (no se modifica) */
  /* Pegatinas de atributo: "siempre amarillas y con texto blanco" (2.5) */
  --olp-attr: #E2C14F;
  /* Paleta secundaria: comunicar sabores o situaciones concretas (2.3) */
  --olp-orange: #FF5F2D; --olp-pink: #FEA6F0; --olp-lime: #CDFF01; --olp-green: #003905;
  --olp-mint: #B5FFDC; --olp-brown: #86491F; --olp-purple: #1D0051;

  /* ── Roles semánticos ── */
  --bg: var(--olp-cream);       /* piezas con mucho contenido → fondo crema (2.3 Usos) */
  --bg-hero: var(--olp-blue);   /* piezas "hero" → fondo azul (2.3 Usos) */
  --ink: var(--olp-choco);
  --ink-soft: rgba(66, 36, 7, .72);
  --ink-mute: rgba(66, 36, 7, .54);
  --line: rgba(66, 36, 7, .14);
  --accent: var(--olp-blue);
  --accent-ink: #0B6F89;        /* azul oscurecido para texto pequeño sobre crema (AA 4.5:1) */
  --surface: #F7F5EA;           /* crema aclarada para tarjetas sobre crema */
  --white: #FFFFFF;
  --danger: #B3261E; --success: #1E6B3A; --warning: #8A5A00;

  /* ── Tipografía: Obviously (OH no Type Co.) — 6 pesos (2.2).
     PROVISIONAL: Archivo variable (ancho 62–125 %) hasta disponer de la licencia web de Obviously. ── */
  --font: "Obviously", "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-stretch: 62%;       /* ≈ Obviously Condensed */
  --narrow-stretch: 75%;        /* ≈ Obviously Narrow */
  --wide-stretch: 125%;         /* ≈ Obviously Wide */
  --fs-hero: clamp(3rem, 13vw, 6.5rem);
  --fs-h1: clamp(2.25rem, 9vw, 4rem);
  --fs-h2: clamp(1.75rem, 6.5vw, 2.75rem);
  --fs-h3: 1.375rem;
  --fs-body: 1rem; --fs-small: .875rem; --fs-xs: .75rem;
  --lh-display: .86; --lh-body: 1.5;

  /* ── Espacio, radio, sombra, movimiento ── */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;
  --dash: 3px dashed var(--olp-blue);   /* recurso "Aquí había una tarrina." (creatividad OLIMBRO'S CLUB) */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 140ms; --t-med: 260ms; --t-slow: 520ms;
  --tap: 48px;                  /* objetivo táctil mínimo */
  --nav-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --maxw: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 1ms; --t-med: 1ms; --t-slow: 1ms; }
}
