/* ==========================================================================
   Visia · 02 base
   Fuentes locales, reset, tipografía base, foco y utilidades de accesibilidad.
   ========================================================================== */
@layer base {
  @font-face {
    font-family: "Doto";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../assets/fonts/doto-latin-full-normal.woff2") format("woff2-variations"),
         url("../assets/fonts/doto-latin-full-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: "Doto";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../assets/fonts/doto-latin-ext-full-normal.woff2") format("woff2-variations"),
         url("../assets/fonts/doto-latin-ext-full-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: "Geist";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../assets/fonts/geist-latin-wght-normal.woff2") format("woff2-variations"),
         url("../assets/fonts/geist-latin-wght-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: "Geist";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../assets/fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"),
         url("../assets/fonts/geist-latin-ext-wght-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;
  }

  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }

  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
    background: var(--c-canvas);
  }

  body {
    min-height: 100vh;
    background: var(--c-canvas);
    color: var(--c-ink);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    font-weight: var(--fw-regular);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "ss01" on;
    overflow-x: clip;
  }

  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
  ul[class], ol[class] { list-style: none; padding: 0; }
  h1, h2, h3, h4 { font-weight: var(--fw-medium); line-height: 1.1; overflow-wrap: break-word; }
  p { overflow-wrap: break-word; }
  summary { cursor: pointer; }
  table { border-collapse: collapse; }
  [hidden] { display: none !important; }

  ::selection { background: var(--c-ink); color: var(--c-surface); }

  .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

  /* --- Voz de la máquina: matriz de puntos ---------------------------- */
  .display {
    font-family: var(--font-dot);
    font-size: var(--fs-display);
    font-weight: 900;
    font-variation-settings: var(--dot-dense);
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 19ch;
    text-wrap: balance;
  }

  .lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 54ch; color: var(--c-ink-2); }

  /* --- Iconos: puntos (rellenos) y trazos ------------------------------ */
  .dicon { width: 1.125rem; height: 1.125rem; flex: none; fill: currentColor; }
  .dicon--md { width: 1.25rem; height: 1.25rem; }
  .dicon--lg { width: 1.75rem; height: 1.75rem; }
  .icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

  /* --- Puntos de señal ------------------------------------------------- */
  .dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
  .dot--red { background: var(--c-red); }

  /* --- Foco visible ---------------------------------------------------- */
  :focus { outline: none; }
  :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--focus-inner);
  }
  main:focus-visible, section:focus-visible, [tabindex="-1"]:focus-visible {
    outline: 2px dashed var(--focus);
    outline-offset: 4px;
    box-shadow: none;
  }
  main:focus:not(:focus-visible), section:focus:not(:focus-visible) { outline: none; }

  /* --- Solo lectores de pantalla ------------------------------------- */
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  /* --- Saltar al contenido ------------------------------------------- */
  .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    padding: 0 1.25rem;
    border-radius: var(--r-pill);
    background: var(--c-ink);
    color: var(--c-on-night);
    font-weight: var(--fw-medium);
    text-decoration: none;
    transform: translateY(-160%);
  }
  .skip-link:focus-visible { transform: none; }

  .hl { font-weight: var(--fw-semi); }

  /* --- Colores forzados (alto contraste de Windows) ------------------ */
  @media (forced-colors: active) {
    :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
    .dicon { fill: CanvasText; }
    .icon { stroke: CanvasText; }
    .dot { forced-color-adjust: none; }
    .brand__mark, .brand__word, .versus__mark, .footer-giant__logo { fill: CanvasText; }
  }
}
