/* ============================================
   RESET CSS - Normalización Cross-Browser
   ============================================ */

/* Box-sizing para todos los elementos */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* HTML base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Body base */
body {
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Elementos multimedia */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Elementos de formulario */
input,
button,
textarea,
select {
    font: inherit;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    line-height: 1.2;
}

/* Párrafos */
p {
    overflow-wrap: break-word;
}

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

/* Botones */
button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

/* Listas */
ul,
ol {
    list-style: none;
}

/* Address */
address {
    font-style: normal;
}

/* Accesibilidad - Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible para navegación por teclado */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Remover outline en mouse click pero mantenerlo en teclado */
:focus:not(:focus-visible) {
    outline: none;
}