/* ============================================================
   Reset y base
   ============================================================ */

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

* {
    margin: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-alto) + 1rem);
}

body {
    background-color: var(--vacio);
    color: var(--hielo);
    font-family: var(--texto);
    font-size: var(--t-cuerpo);
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body.sin-scroll {
    overflow: hidden;
}

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

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

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

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

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

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

::selection {
    background: var(--verde);
    color: #fff;
}

/* Enlace de salto para lectores de pantalla y teclado */
.salto-contenido {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: 200;
    padding: 0.75rem 1.5rem;
    background: var(--verde);
    color: #fff;
    font-size: var(--t-pequeno);
    font-weight: 600;
    transition: transform var(--dur-rapida) var(--ease-salida);
}

.salto-contenido:focus {
    transform: translate(-50%, 0);
}

/* Campo señuelo del formulario: fuera de la vista y del árbol de accesibilidad,
   pero presente en el DOM para que los bots lo rellenen. */
.trampa {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.solo-lectores {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
