/* =========================================================================
 * WSSF · CSS Reset moderno
 * Basado en best practices 2026 · Andy Bell + Josh Comeau + nuestras adiciones.
 * ========================================================================= */

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

* { margin: 0; }

html, body { height: 100%; }

body {
    line-height: var(--sf-lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

#root, #__next { isolation: isolate; }

/* Quitar estilos default de listas usadas como navegación / componentes */
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

/* Smooth scroll para anchors */
@media (prefers-reduced-motion: no-preference) {
    html:focus-within { scroll-behavior: smooth; }
}

/* Respeto a usuarios con motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Foco accesible visible en cualquier elemento interactivo */
:focus-visible {
    outline: 2px solid var(--sf-primary-500);
    outline-offset: 2px;
    box-shadow: var(--sf-focus-ring);
}

/* Selección de texto */
::selection {
    background: var(--sf-primary-200);
    color: var(--sf-primary-900);
}

/* Hidden util accesible */
.wssf-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;
}
