/**
 * FriendlyPOS — Tipografías de marca (self-hosted, soporte offline)
 *
 * Guía gráfica Friendly Component (con alternativas licenciadas):
 *   - Títulos:     Nunito ExtraBold      (alternativa a Minork Sans trial)
 *   - Subtítulos:  Source Sans 3 Semibold (alternativa a Rig Sans DEMO)
 *   - Cuerpo:      Source Sans 3 Regular   (alternativa a Rig Sans DEMO)
 *
 * Nunito + Source Sans 3 — SIL Open Font License 1.1
 */

/* ── Nunito ExtraBold — títulos ── */
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito/nunito-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  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';
  src: url('../fonts/nunito/nunito-extrabold-latin-ext.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  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;
}

/* ── Source Sans 3 — cuerpo y subtítulos ── */
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/source-sans-3/source-sans-3-regular.woff2') format('woff2'),
       url('../fonts/source-sans-3/source-sans-3-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'Source Sans 3';
  src: url('../fonts/source-sans-3/source-sans-3-regular-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: 'Source Sans 3';
  src: url('../fonts/source-sans-3/source-sans-3-semibold.woff2') format('woff2'),
       url('../fonts/source-sans-3/source-sans-3-semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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: 'Source Sans 3';
  src: url('../fonts/source-sans-3/source-sans-3-semibold-latin-ext.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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;
}

/* ── Aplicación base ── */
:root {
  --fp-font-family-title:    'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fp-font-family-subtitle: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fp-font-family:          'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-font-sans-serif:      var(--fp-font-family);
}

body {
  font-family: var(--fp-font-family);
  font-weight: var(--fp-font-weight-normal, 400);
  font-size: var(--fp-font-size-base, 0.9375rem);
  line-height: var(--fp-line-height-normal, 1.55);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Títulos — Nunito ExtraBold */
h1, h2, h3, h4, h5, h6,
.page-title,
.premium-title,
.fp-section-title,
.modal-title {
  font-family: var(--fp-font-family-title);
  font-weight: 800;
  letter-spacing: var(--fp-letter-spacing-tight, -0.02em);
}

/* Subtítulos — Source Sans 3 Semibold */
.premium-label,
.fp-section-subtitle,
.card-subtitle,
.subtitle,
h6.subtitle {
  font-family: var(--fp-font-family-subtitle);
  font-weight: var(--fp-font-weight-semibold, 600);
}

label,
.form-label {
  font-family: var(--fp-font-family-subtitle);
  font-weight: var(--fp-font-weight-semibold, 600);
  font-size: var(--fp-font-size-sm, 0.8125rem);
}

th {
  font-family: var(--fp-font-family-subtitle);
  font-weight: var(--fp-font-weight-semibold, 600);
}

.fw-bold, strong, b {
  font-weight: var(--fp-font-weight-semibold, 600);
}
