/* ===========================
   Modern CSS Reset
   =========================== */

/* Box sizing más fácil de trabajar */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Ajustes base del documento */
:root {
    -moz-tab-size: 4;
    tab-size: 4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* HTML / Body */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    background-color: transparent;
    color: inherit;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* Contenedores iniciales (React / SPA friendly) */
#root, #app {
    min-height: 100%;
}

/* Imágenes, videos y elementos multimedia responsivos */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Form elements inherit font & basic box reset */
input, button, textarea, select {
    font: inherit;
    margin: 0; /* elimina espacio en algunos navegadores */
    color: inherit;
    background: transparent;
    border-radius: 0;
}

/* Remove default button styles but keep accessibility */
button {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Lists & headings & paragraphs */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: inherit;
}
p {
    margin: 0;
}

/* Tables */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Reduce motion for users who request it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles: keep them visible for keyboard users */
:focus {
    outline: none;
}
:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 3px;
}

/* Small helpers frequently útiles */
.hidden {
    display: none !important;
}
.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;
}

/* Optional — sensible default for scroll behaviour */
html {
    scroll-behavior: smooth;
}
