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

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

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-interfaz);
    font-size: var(--texto-body);
    font-weight: var(--peso-regular);
    line-height: 1.5;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--fuente-titulos);
    line-height: 1.25;
    color: var(--color-texto);
}

h1 {
    font-size: var(--texto-h1);
    font-weight: var(--peso-bold);
}

h2 {
    font-size: var(--texto-h2);
    font-weight: var(--peso-semibold);
}

h3 {
    font-size: var(--texto-h3);
    font-weight: var(--peso-semibold);
}

p {
    margin: 0;
}

a {
    color: var(--color-navy);
    font-weight: var(--peso-semibold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 3px solid var(--color-teal);
    outline-offset: 2px;
}

[hidden] {
    display: none !important;
}

.texto-oculto {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.texto-secundario {
    color: var(--color-texto-secundario);
    font-size: var(--texto-small);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
