/* =====================================================
   base.css — reset moderno + utilidades
   ===================================================== */

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

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

body {
    margin: 0;
    font-family: var(--fuente-sans);
    font-size: var(--tam-base);
    line-height: 1.6;
    color: var(--texto);
    background: var(--superficie);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
html { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--fuente-titulo);
    line-height: 1.2;
    margin: 0 0 var(--e4) 0;
    color: var(--anzorc-verde-oscuro);
}

h1 { font-size: var(--tam-4xl); }
h2 { font-size: var(--tam-3xl); }
h3 { font-size: var(--tam-2xl); }
h4 { font-size: var(--tam-xl); }

p { margin: 0 0 var(--e4); }

a {
    color: var(--anzorc-verde);
    text-decoration: none;
    transition: color var(--transicion-rapida);
}
a:hover  { color: var(--anzorc-verde-oscuro); text-decoration: underline; }
a:focus-visible {
    outline: 3px solid var(--anzorc-amarillo);
    outline-offset: 2px;
    border-radius: var(--radio-sm);
}

img, video { max-width: 100%; height: auto; display: block; }
/* No aplicar height:auto a SVG globalmente: rompe Leaflet y otros widgets */
img { height: auto; }

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

hr {
    border: none;
    border-top: 1px solid var(--borde);
    margin: var(--e8) 0;
}

/* Skip link para accesibilidad por teclado */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--anzorc-verde);
    color: var(--texto-inverso);
    padding: var(--e3) var(--e4);
    z-index: 9999;
    border-radius: 0 0 var(--radio-md) 0;
}
.skip-link:focus { left: 0; }

/* Contenedor central */
.container {
    width: 100%;
    max-width: var(--ancho-max);
    margin: 0 auto;
    padding: 0 var(--e4);
}

/* Screen reader only */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
