/* Iconos a tiempo (2026-11-22). Antes las tres fuentes de iconos venian de Google Fonts con display=swap:
   la de Material Symbols Rounded pesaba 5.4 MB y, mientras llegaba, se veia el texto de la ligadura
   («co_present», «library_books») 4-5 s, incluso al reabrir la pizarra en la app.
   Ahora:
   - Se sirven desde el sitio (wwwroot/fonts/iconos, licencia Apache 2.0) con cache larga (web.config).
     El nombre lleva la version de Google: si se actualizan, cambia el nombre y no hay cache vieja.
   - Rounded y Outlined solo traen los ejes FILL y wght (1.5 MB y 1.1 MB). GRAD 0 y opsz 24 que usa la
     web son los valores por defecto de la fuente, asi que se ven igual.
   - index.html las precarga (rel=preload) para que bajen junto con el CSS, antes de que Blazor pinte.
   - font-display: block + la clase html.iconos-listos (la pone index.html cuando la fuente cargo, o a los
     6 s) esconden el texto de la ligadura en lugar de mostrarlo. */

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url('../fonts/iconos/material-icons-v145.woff2') format('woff2');
}

@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url('../fonts/iconos/material-symbols-rounded-v386.woff2') format('woff2');
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 100 700;
    font-display: block;
    src: url('../fonts/iconos/material-symbols-outlined-v385.woff2') format('woff2');
}

/* Las mismas clases que daba la hoja de Google. */
.material-icons,
.material-symbols-rounded,
.material-symbols-outlined {
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}
.material-icons { font-family: 'Material Icons'; }
.material-symbols-rounded { font-family: 'Material Symbols Rounded'; }
.material-symbols-outlined { font-family: 'Material Symbols Outlined'; }

/* Mientras la fuente no llega: el icono ocupa su lugar (1em) pero no se ve el texto de la ligadura. */
html:not(.iconos-listos) .material-icons,
html:not(.iconos-listos) .material-symbols-rounded,
html:not(.iconos-listos) .material-symbols-outlined,
html:not(.iconos-listos) .msr {
    visibility: hidden;
    max-width: 1em;
    overflow: hidden;
}
