/* ========================================
   CSS RESET - Normalización entre navegadores
   ======================================== */

/* Box sizing universal */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Configuración base del documento */
html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Reset de body */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    text-align: left;
}

/* Elementos de bloque */
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: bold;
}

/* Párrafos y divisiones */
p, div {
    margin: 0;
    padding: 0;
}

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

ol ol, ul ul, ol ul, ul ol {
    margin: 0;
}

/* Enlaces */
a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
}

a:active,
a:hover {
    outline: 0;
}

/* Énfasis y strong */
b, strong {
    font-weight: bold;
}

em, i {
    font-style: italic;
}

/* Código y preformateado */
code, kbd, pre, samp {
    font-family: monospace, monospace;
    font-size: 1em;
}

/* Elementos inline */
abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Imágenes y multimedia */
img {
    border-style: none;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

svg {
    overflow: hidden;
    vertical-align: middle;
}

/* Formularios */
button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
    padding: 0;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
    appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0;
    margin: 0;
    border: 0;
    min-width: 0;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0;
    white-space: normal;
}

progress {
    vertical-align: baseline;
}

textarea {
    overflow: auto;
    resize: vertical;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

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

td, th {
    padding: 0;
}

/* Elementos interactivos */
details {
    display: block;
}

summary {
    display: list-item;
    cursor: pointer;
}

/* Elementos de template */
template {
    display: none;
}

/* Elementos ocultos */
[hidden] {
    display: none !important;
}

/* Mejoras de renderizado */
img,
video,
canvas,
audio,
iframe,
embed,
object {
    display: block;
    max-width: 100%;
}

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

/* Accesibilidad: elementos visualmente ocultos pero accesibles */
.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;
}