/* ==========================================================================
   COBO Evolution 2.0 — 02 · Base: tipografía local, foco y utilidades
   Inter 5.3.0 (SIL OFL 1.1) alojada en Recursos/lib/inter-5.3.0 (sin CDN).
   ========================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../../../Recursos/lib/inter-5.3.0/inter-latin-400-normal.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: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../../../Recursos/lib/inter-5.3.0/inter-latin-ext-400-normal.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../../../Recursos/lib/inter-5.3.0/inter-latin-500-normal.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: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../../../Recursos/lib/inter-5.3.0/inter-latin-ext-500-normal.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../../../Recursos/lib/inter-5.3.0/inter-latin-600-normal.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: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../../../Recursos/lib/inter-5.3.0/inter-latin-ext-600-normal.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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../../../Recursos/lib/inter-5.3.0/inter-latin-700-normal.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: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../../../Recursos/lib/inter-5.3.0/inter-latin-ext-700-normal.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; }

/* Superficie base: solo en páginas que adoptan el sistema (body.cobo-app / body.cobo-login) */
body.cobo-app,
body.cobo-login {
  margin: 0;
  font-family: var(--cobo-font);
  font-size: var(--cobo-fs-base);
  line-height: var(--cobo-lh-base);
  font-weight: var(--cobo-fw-regular);
  color: var(--cobo-text);
  background: var(--cobo-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01", "ss03";
}
.cobo-app *, .cobo-app *::before, .cobo-app *::after,
.cobo-login *, .cobo-login *::before, .cobo-login *::after { box-sizing: border-box; }

.cobo-app ::selection, .cobo-login ::selection { background: var(--cobo-brand-100); color: var(--cobo-n-900); }

.cobo-app h1, .cobo-app h2, .cobo-app h3, .cobo-app h4, .cobo-app h5, .cobo-app h6,
.cobo-login h1, .cobo-login h2 {
  font-family: var(--cobo-font);
  color: var(--cobo-n-900);
  letter-spacing: var(--cobo-tracking-tight);
}

/* Foco visible y consistente (WCAG 2.4.7) */
.cobo-app :focus-visible, .cobo-login :focus-visible {
  outline: 2px solid var(--cobo-accent);
  outline-offset: 2px;
}
.cobo-app :focus:not(:focus-visible) { outline: none; }

/* Barras de desplazamiento discretas */
.cobo-app * { scrollbar-width: thin; scrollbar-color: var(--cobo-n-300) transparent; }
.cobo-app ::-webkit-scrollbar { width: 10px; height: 10px; }
.cobo-app ::-webkit-scrollbar-thumb { background: var(--cobo-n-300); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
.cobo-app ::-webkit-scrollbar-thumb:hover { background-color: var(--cobo-n-400); }

/* Utilidades */
.c-num { font-variant-numeric: tabular-nums; }
.c-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.c-skip {
  position: fixed; left: 16px; top: -60px; z-index: 2000; padding: 10px 16px; border-radius: var(--cobo-r-md);
  background: var(--cobo-n-900); color: #fff !important; font-weight: 600; text-decoration: none !important;
  transition: top var(--cobo-dur-2) var(--cobo-ease);
}
.c-skip:focus { top: 12px; }

/* Sin animaciones al cargar (evita transiciones al restaurar el estado del sidebar) */
html.c-sin-transicion *, html.c-sin-transicion *::before, html.c-sin-transicion *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .cobo-app *, .cobo-app *::before, .cobo-app *::after,
  .cobo-login *, .cobo-login *::before, .cobo-login *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
