/* ===========================================================================
   Premio +Digital — Design tokens
   Paleta: blanco / negro / grises  ·  acento coral #ef5353  ·  metales sutiles
   Tipografía: Archivo (UI/display) + JetBrains Mono (datos / IDs)
   =========================================================================== */

:root {
  /* ---- Neutrals (warm-neutral ink, cool-neutral grays) ---- */
  --ink:        #0e0e10;   /* near-black */
  --ink-soft:   #1a1a1d;
  --white:      #ffffff;
  --paper:      #fafafa;   /* app background */
  --paper-2:    #f4f4f5;   /* recessed surfaces */

  --g-50:  #f7f7f8;
  --g-100: #efeff1;
  --g-150: #e8e8ea;
  --g-200: #e1e1e4;
  --g-300: #d2d2d7;
  --g-400: #a8a8af;
  --g-500: #79797f;
  --g-600: #56565c;
  --g-700: #3d3d42;
  --g-800: #27272a;
  --g-900: #18181b;

  /* ---- Accent — coral red ---- */
  --accent:        #ef5353;
  --accent-600:    #e23d3d;
  --accent-700:    #c93232;
  --accent-tint:   #fdeced;   /* 8% wash */
  --accent-tint-2: #fbdcdd;

  /* ---- Functional ---- */
  --ok:        #2f9e6f;
  --ok-tint:   #e6f4ee;
  --warn:      #c98a14;
  --warn-tint: #fbf1dc;
  --info:      #3b6fb0;
  --info-tint: #e8eff7;

  /* ---- Metals (subtle, desaturated) ---- */
  --gold:        #a98521;
  --gold-bg:     #f5edd4;
  --gold-line:   #e2cd92;
  --silver:      #6f7378;
  --silver-bg:   #ececee;
  --silver-line: #cdd0d4;
  --bronze:      #9a6638;
  --bronze-bg:   #f0e2d5;
  --bronze-line: #d8b893;

  /* ---- Type ---- */
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* ---- Radius ---- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 9px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* ---- Shadow (low, neutral) ---- */
  --sh-1: 0 1px 2px rgba(14,14,16,.05), 0 1px 1px rgba(14,14,16,.04);
  --sh-2: 0 2px 6px rgba(14,14,16,.06), 0 1px 2px rgba(14,14,16,.05);
  --sh-3: 0 8px 24px rgba(14,14,16,.10), 0 2px 6px rgba(14,14,16,.06);
  --sh-4: 0 18px 48px rgba(14,14,16,.16), 0 6px 16px rgba(14,14,16,.08);

  --line: var(--g-200);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font-family: inherit; }

::selection { background: var(--accent); color: #fff; }

/* utility text */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.tnum { font-variant-numeric: tabular-nums; }

/* scrollbars inside the device frames */
.pd-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.pd-scroll::-webkit-scrollbar-thumb { background: var(--g-300); border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
.pd-scroll::-webkit-scrollbar-thumb:hover { background: var(--g-400); background-clip: padding-box; border: 2px solid transparent; }
.pd-scroll::-webkit-scrollbar-track { background: transparent; }

/* focus ring */
.fr:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* keyframes shared */
@keyframes pd-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pd-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pd-scale-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pd-bar { from { width: 0; } }
@keyframes pd-spin { to { transform: rotate(360deg); } }
