/* ============================================
   RESET CSS MODERNO - Limpieza Profesional
   ============================================ */

/* 1. Reset básico */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 2. Configuración HTML */
html {
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

/* 3. Configuración body */
body {
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* 4. Elementos multimedia */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* 5. Tipografía heredada */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* 6. Botones */
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* 7. Enlaces */
a {
    text-decoration: none;
    color: inherit;
}

/* 8. Listas */
ul,
ol {
    list-style: none;
}

/* 9. Tablas */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* 10. Elementos ocultos */
[hidden] {
    display: none !important;
}

/* 11. Respetar preferencias de movimiento reducido */
@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;
    }
}

/* 12. Prevenir desbordamiento horizontal */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 13. Mejorar selección de texto */
::selection {
    background-color: #1E4E8C;
    color: white;
}

::-moz-selection {
    background-color: #1E4E8C;
    color: white;
}