@layer reset, tokens, base, layout, components, pages, utilities;

@font-face {
  font-family: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations");
  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: "Nunito Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/fonts/nunito-latin-ext-wght-normal.woff2") format("woff2-variations");
  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;
}
@font-face {
  font-family: "Lora Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/lora-latin-wght-normal.woff2") format("woff2-variations");
  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: "Lora Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/lora-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora Variable";
  font-style: italic;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/lora-latin-wght-italic.woff2") format("woff2-variations");
}

@layer tokens {
  :root {
    /* Marca */
    --ink: #16324f;          /* Deep Sea Blue */
    --ink-2: #24476b;
    --slime: #3fb8af;        /* Slime Teal */
    --slime-600: #23847d;    /* teal con contraste AA para texto */
    --slime-100: #dcf2ef;
    --cream: #fbf3e6;        /* fondo general */
    --cream-2: #f3e3c8;      /* rellenos tipo "pastilla" de los mockups */
    --paper: #fffdf8;        /* tarjetas */
    --cta: #f7984a;          /* Warm Orange */
    --cta-600: #e9802c;
    --cta-100: #fde7d3;

    /* Semánticos */
    --bg: var(--cream);
    --surface: var(--paper);
    --text: var(--ink);
    --muted: #5b6a7a;
    --line: #eadcc4;
    --line-strong: #d8c4a3;
    --danger: #b42318;
    --danger-100: #fde4e1;
    --focus: #1d74c9;

    /* Edad */
    --age-all: #2f8f4e;
    --age-10: #23847d;
    --age-13: #2f6db5;
    --age-16: #c26414;
    --age-18: #b42318;

    /* Tipografía */
    --font-ui: "Nunito Variable", "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-read: "Lora Variable", "Lora", Georgia, "Times New Roman", serif;
    --fs-xs: 0.78rem;
    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
    --fs-xl: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
    --fs-2xl: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
    --fs-3xl: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);

    /* Espaciado */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4rem;
    --gutter: 16px;

    /* Formas */
    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgb(22 50 79 / 0.06), 0 2px 8px rgb(22 50 79 / 0.05);
    --shadow: 0 2px 4px rgb(22 50 79 / 0.04), 0 14px 34px -14px rgb(22 50 79 / 0.28);
    --shadow-lg: 0 24px 60px -20px rgb(22 50 79 / 0.35);

    --header-h: 68px;
    --tabbar-h: 64px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  @media (min-width: 640px) {
    :root { --gutter: 24px; }
  }
  @media (min-width: 1024px) {
    :root { --gutter: 32px; --header-h: 76px; }
  }
}
