/* ============================================================
   SIGESP CO — Apple-style theme
   Minimalist refinement of the SIGESP design tokens. SF Pro
   typography, neutral grays, hairline borders, generous spacing.
   Keep navy as institutional identity; copper reduced to a hint.
   ============================================================ */

/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/fonts/96584cce.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/fonts/ace14ed1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/fonts/52d442d3.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/fonts/3d72ed4c.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/fonts/94662151.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/fonts/a21478c4.woff2") format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/fonts/7fd9a8fd.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/fonts/96584cce.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/fonts/ace14ed1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/fonts/52d442d3.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/fonts/3d72ed4c.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/fonts/94662151.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/fonts/a21478c4.woff2") format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/vendor/fonts/7fd9a8fd.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/fonts/96584cce.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/fonts/ace14ed1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/fonts/52d442d3.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/fonts/3d72ed4c.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/fonts/94662151.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/fonts/a21478c4.woff2") format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/fonts/7fd9a8fd.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/96584cce.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/ace14ed1.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/52d442d3.woff2") format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/3d72ed4c.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/94662151.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/a21478c4.woff2") format('woff2');
  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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/7fd9a8fd.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 {
  /* ---- type ---- */
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                "Helvetica Neue", "Inter", Arial, sans-serif;
  --apple-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* ---- surfaces (light) ---- */
  --apl-bg:           #fbfbfd;        /* page */
  --apl-bg-elev:      #f5f5f7;        /* sidebar, raised */
  --apl-bg-card:      #ffffff;
  --apl-bg-soft:      #f5f5f7;

  /* ---- ink ---- */
  --apl-ink:          #1d1d1f;
  --apl-ink-2:        #424245;
  --apl-ink-3:        #6e6e73;
  --apl-ink-4:        #86868b;
  --apl-ink-5:        #aeaeb2;

  /* ---- borders ---- */
  --apl-line:         rgba(0, 0, 0, 0.08);
  --apl-line-soft:    rgba(0, 0, 0, 0.05);
  --apl-line-strong:  rgba(0, 0, 0, 0.14);

  /* ---- brand (kept as identity, applied sparingly) ---- */
  --apl-navy:         #0d1e3a;
  --apl-navy-soft:    #f0f3f8;
  --apl-copper:       #a37151;
  --apl-copper-soft:  #f6efe7;

  /* ---- interactive accent (Apple system blue) ---- */
  --apl-blue:         #0071e3;
  --apl-blue-soft:    #e8f1fc;

  /* ---- status (low saturation) ---- */
  --apl-green:        #1f7a3a;
  --apl-green-soft:   #ebf4ee;
  --apl-amber:        #8e6a00;
  --apl-amber-soft:   #faf2dc;
  --apl-red:          #b3261e;
  --apl-red-soft:     #fbeae8;

  /* ---- radius ---- */
  --apl-r-xs: 6px;
  --apl-r-sm: 8px;
  --apl-r-md: 12px;
  --apl-r-lg: 18px;
  --apl-r-xl: 24px;

  /* ---- shadow (whisper-soft) ---- */
  --apl-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --apl-shadow-2: 0 2px 6px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --apl-shadow-3: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --apl-shadow-4: 0 20px 60px rgba(0, 0, 0, 0.10), 0 6px 16px rgba(0, 0, 0, 0.05);
}

/* dark variant — for the v2 deliverable */
.apple-dark {
  --apl-bg:           #000000;
  --apl-bg-elev:      #1c1c1e;
  --apl-bg-card:      #1c1c1e;
  --apl-bg-soft:      #2c2c2e;

  --apl-ink:          #f5f5f7;
  --apl-ink-2:        #d2d2d7;
  --apl-ink-3:        #98989d;
  --apl-ink-4:        #86868b;
  --apl-ink-5:        #6e6e73;

  --apl-line:         rgba(255, 255, 255, 0.10);
  --apl-line-soft:    rgba(255, 255, 255, 0.06);
  --apl-line-strong:  rgba(255, 255, 255, 0.18);

  --apl-navy-soft:    rgba(72, 99, 160, 0.16);
  --apl-copper-soft:  rgba(163, 113, 81, 0.16);
  --apl-blue-soft:    rgba(10, 132, 255, 0.18);
  --apl-blue:         #0a84ff;

  --apl-green:        #30d158;
  --apl-green-soft:   rgba(48, 209, 88, 0.16);
  --apl-amber:        #ffd60a;
  --apl-amber-soft:   rgba(255, 214, 10, 0.16);
  --apl-red:          #ff453a;
  --apl-red-soft:     rgba(255, 69, 58, 0.16);

  --apl-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --apl-shadow-2: 0 2px 8px rgba(0, 0, 0, 0.4);
  --apl-shadow-3: 0 10px 30px rgba(0, 0, 0, 0.5);
  --apl-shadow-4: 0 24px 70px rgba(0, 0, 0, 0.6);
}

/* base resets used inside Apple mockups */
.apple {
  font-family: var(--apple-font);
  font-size: 14px;
  line-height: 1.45;
  color: var(--apl-ink);
  background: var(--apl-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

.apple * { box-sizing: border-box; }

.apple .num,
.apple .mono { font-family: var(--apple-mono); font-variant-numeric: tabular-nums; }
.apple .tnum { font-variant-numeric: tabular-nums; }


/* ===== */


  html, body { margin: 0; padding: 0; height: 100%; background: var(--apl-bg); }
  #root { height: 100vh; }
  body { font-family: var(--apple-font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  * { -webkit-tap-highlight-color: transparent; }

  /* scrollbars discretos estilo apple */
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: var(--apl-line-strong); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
  ::-webkit-scrollbar-thumb:hover { background: var(--apl-ink-5); background-clip: padding-box; border: 3px solid transparent; }
  ::-webkit-scrollbar-track { background: transparent; }

  /* grids responsivos */
  .fg { display: grid; gap: 18px; min-width: 0; }
  .fg > * { min-width: 0; }
  .fg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fg-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fg-21 { grid-template-columns: 1.55fr 1fr; }
  .fg-12 { grid-template-columns: 1fr 1.55fr; }
  @media (max-width: 1080px) {
    .fg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 900px) {
    .fg-3, .fg-21, .fg-12 { grid-template-columns: 1fr; }
  }
  @media (max-width: 580px) {
    .fg-4, .fg-2 { grid-template-columns: 1fr; }
  }

  /* ribbon (vista ejecutiva) */
  .ribbon { display: grid; grid-template-columns: repeat(6, 1fr); }
  .ribbon-cell { padding: 20px 22px; border-right: 1px solid var(--apl-line-soft); }
  .ribbon-cell:last-child { border-right: none; }
  @media (max-width: 900px) { .ribbon { grid-template-columns: repeat(3, 1fr); } .ribbon-cell:nth-child(3n) { border-right: none; } .ribbon-cell:nth-child(n+4) { border-top: 1px solid var(--apl-line-soft); } }
  @media (max-width: 520px) { .ribbon { grid-template-columns: repeat(2, 1fr); } .ribbon-cell:nth-child(3n) { border-right: 1px solid var(--apl-line-soft); } .ribbon-cell:nth-child(2n) { border-right: none; } .ribbon-cell:nth-child(n+3) { border-top: 1px solid var(--apl-line-soft); } }

  @keyframes finFade { from { transform: translateY(8px); } to { transform: none; } }
  @keyframes finSlideIn { from { transform: translateX(-100%); } to { transform: none; } }
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

  /* ===== Asistente Personal: auth ===== */
  .ap-input {
    background: var(--apl-bg-soft);
    border: 1px solid var(--apl-line);
    border-radius: var(--apl-r-sm);
    color: var(--apl-ink);
    font-family: var(--apple-font);
    font-size: 14px;
    letter-spacing: -0.005em;
    padding: 10px 12px;
    outline: none;
    transition: border-color 120ms, background 120ms;
  }
  .ap-input::placeholder { color: var(--apl-ink-4); }
  .ap-input:focus { border-color: var(--apl-blue); background: var(--apl-bg-card); }

  @keyframes apSpin { to { transform: rotate(360deg); } }
  .ap-spinner {
    width: 26px; height: 26px;
    border: 3px solid var(--apl-line);
    border-top-color: var(--apl-blue);
    border-radius: 50%;
    animation: apSpin .8s linear infinite;
  }
