/*
 * encuentra.pet — design tokens (EP-V2-UX-002-00)
 *
 * Fuente única de tipografías, color, escala, espaciado y forma.
 * Sólo declara las fuentes y las variables: no contiene reglas de componentes.
 * La app CI4 lo carga antes de app.css; la landing CI4, antes de landing.css.
 * Documentación: docs/DESIGN-SYSTEM.md
 */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-var-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: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-var-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;
}

:root {
  /* Marca */
  --ep-petrol: #185d68;
  --ep-petrol-dark: #0e424a;
  --ep-navy: #142f3d;
  --ep-yellow: #ffd754;
  --ep-coral: #913a34;          /* Sólo estados críticos: perdida, peligro, destructivo. */
  --ep-coral-soft: #fbe9e6;

  /* Semánticos: texto sobre su variante suave ≥ 5:1 */
  --ep-success: #1f6b45;
  --ep-success-soft: #dfece3;
  --ep-warning: #6b4e00;
  --ep-warning-soft: #fff4cf;
  --ep-error: #75231f;
  --ep-error-soft: #f8dddd;
  --ep-info: #1d5a80;
  --ep-info-soft: #e3eff6;

  /* Neutros */
  --ep-ink: #17211f;
  --ep-muted: #596562;
  --ep-paper: #f3f5f1;
  --ep-surface: #fffefb;
  --ep-control-border: #7c8885;  /* 3,6:1 sobre superficie (WCAG 1.4.11). */
  --ep-line: rgb(23 33 31 / .16);
  --ep-on-brand: #ffffff;
  --ep-focus: #b93f38;
  --ep-focus-on-dark: var(--ep-yellow);

  /* Tipografía */
  --ep-font-body: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  --ep-font-display: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
  --ep-font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --ep-text-13: .8125rem;
  --ep-text-15: .9375rem;
  --ep-text-16: 1rem;
  --ep-text-20: 1.25rem;
  --ep-text-26: 1.625rem;
  --ep-text-34: 2.125rem;
  --ep-weight-regular: 400;
  --ep-weight-medium: 600;
  --ep-weight-bold: 700;
  --ep-weight-heavy: 800;

  /* Espaciado */
  --ep-space-4: 4px;
  --ep-space-8: 8px;
  --ep-space-12: 12px;
  --ep-space-16: 16px;
  --ep-space-24: 24px;
  --ep-space-32: 32px;
  --ep-space-48: 48px;
  --ep-space-64: 64px;

  /* Forma */
  --ep-radius-control: 10px;
  --ep-radius-card: 16px;
  --ep-radius-pill: 999px;
  --ep-shadow-floating: 0 10px 30px rgb(20 47 61 / .16);

  /* Controles táctiles */
  --ep-control-height: 48px;
  --ep-tap-min: 44px;
  --ep-field-font-size: 16px;     /* Evita el zoom automático de iOS al enfocar. */

  /* Áreas seguras del dispositivo (requiere viewport-fit=cover) */
  --ep-safe-top: env(safe-area-inset-top, 0px);
  --ep-safe-right: env(safe-area-inset-right, 0px);
  --ep-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ep-safe-left: env(safe-area-inset-left, 0px);
}
