/* ===================================
   CSS RESET
   Reseteo de estilos predeterminados del navegador
   =================================== */

/* Box sizing para todos los elementos */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración del documento */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Configuración del body */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    text-rendering: optimizeSpeed;
}

/* Reseteo de títulos */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    line-height: 1.2;
}

/* Reseteo de párrafos */
p {
    margin: 0;
    padding: 0;
}

/* Reseteo de listas */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Reseteo de enlaces */
a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

/* Reseteo de imágenes */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* Reseteo de botones */
button {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    outline: none;
}

/* Reseteo de inputs y textarea */
input,
textarea,
select {
    margin: 0;
    padding: 0;
    border: none;
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

/* Remover flechas de input number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Reseteo de fieldset */
fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

/* Reseteo de tablas */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Mejorar la experiencia táctil en móviles */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Remover estilos de enfoque por defecto */
:focus {
    outline: none;
}

/* Agregar estilos de enfoque personalizados para accesibilidad */
:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Reseteo de elementos iframe */
iframe {
    border: none;
}

/* Remover espacios debajo de imágenes */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* Mejorar tipografía en elementos de formulario */
input, button, textarea, select {
    font: inherit;
}

/* Prevenir desbordamiento de texto */
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* Configuración para elementos de medios */
audio, video {
    max-width: 100%;
}

/* Reseteo de elementos de diálogo */
dialog {
    padding: 0;
    border: none;
}

/* Remover estilos de resumen en detalles */
summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

/* Configuración para elementos abbr */
abbr[title] {
    text-decoration: none;
    cursor: help;
}

/* Reseteo de elementos pre y code */
pre, code {
    font-family: monospace;
}

/* Mejorar el rendimiento de animaciones */
@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;
    }
}