/* Reset y estilos base */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: .005em; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Doble anillo: visible sobre fondos claros y oscuros */
:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; box-shadow: 0 0 0 3px var(--forest-900); }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    padding: .6rem 1rem; background: var(--forest-700); color: var(--ivory);
    border-radius: var(--radius); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
