/* ==========================================================================
   base.css · FUNDAMENTOS
   Variables de diseño (colores, tamaños), reinicio y utilidades.
   CAMBIA LOS COLORES AQUÍ. Se carga PRIMERO: todo lo demás usa estas variables.
   ========================================================================== */
:root {
  /* Marca WUFF · estilo "Eléctrico" (azul eléctrico + verde lima + rosado).
     Los nombres --green / --orange se conservan para no tocar todo el código:
     --green  = color PRINCIPAL (azul eléctrico, modo cliente)
     --orange = color SECUNDARIO (rosado, modo paseador)              */
  --green:   #2D3BFF;
  --green-2: #1F2AD6;
  --green-soft: #E1E4FF;
  --orange:  #FF4FA3;
  --orange-soft: #FFE0EF;
  --lime:    #C8FF2E;   /* botones de acción y detalles que deben resaltar */
  --night:   #0E1033;   /* tarjetas oscuras y barra inferior */

  /* Fondos y textos */
  --bg:      #F1F2FF;
  --surface: #FFFFFF;
  --ink:     #0E1033;
  --muted:   #4B4F7A;
  --line:    #DDE0F5;
  --danger:  #C62828;
  --danger-soft: #FBE9E9;

  --radius:    24px;
  --radius-sm: 16px;
  --shadow:    0 10px 30px rgba(14, 16, 51, .10);
  --font-title: 'Fredoka', 'Nunito Sans', system-ui, sans-serif;  /* letra redondita de títulos */
  --ease:      cubic-bezier(.2, .7, .2, 1);
  --font:      'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Espacios seguros: evitan que el contenido quede debajo del "notch" o de la barra inferior del celular */
  --safe-top:    env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: #E4E6FA; color: var(--ink); font: 400 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; letter-spacing: -.01em; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--green); font-weight: 500; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Se comporta como APP, no como página web ---------- */
html, body { overscroll-behavior: none; }                         /* sin "rebote" ni jalar-para-recargar */
body { touch-action: manipulation; }                              /* sin zoom por doble toque */
button, .btn, .tabbar, .chip, .role-switch, .duty, .icon-btn, nav { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg, a { -webkit-user-drag: none; -webkit-touch-callout: none; }
input, select, textarea { font-size: 16px; }                      /* 16 px: el iPhone no hace zoom al escribir */
