/* ============================================================
   Mixturas — Reset moderno
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    min-height: 100vh;
    font-family: var(--mx-fuente-cuerpo);
    font-size: var(--mx-fs-base);
    line-height: 1.65;
    color: var(--mx-color-texto);
    background-color: var(--mx-color-fondo);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

input, button, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: none; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--mx-fuente-titulo);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--mx-color-primario);
    text-wrap: balance;
}

p { text-wrap: pretty; }

:focus-visible {
    outline: 3px solid var(--mx-amber-500);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection { background: var(--mx-amber-500); color: var(--mx-navy-900); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
