/* Reset ligero y estilos base */

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: var(--texto-base);
  font-weight: var(--peso-regular);
  letter-spacing: var(--tracking-ajustado);
  line-height: 1.6;
  color: var(--color-texto);
  background: var(--color-fondo);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  color: var(--color-marca-fuerte);
  line-height: 1.12;
  letter-spacing: var(--tracking-titulo);
  margin: 0 0 var(--e-4);
}
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2,
:root[data-theme="dark"] h3, :root[data-theme="dark"] h4 { color: var(--color-texto); }

/* Titulares grandes: peso ligero y aireado en vez de negritas pesadas. */
h1 { font-size: var(--texto-3xl); font-weight: var(--peso-ligero); }
h2 { font-size: var(--texto-2xl); font-weight: var(--peso-ligero); }
h3 { font-size: var(--texto-xl); font-weight: var(--peso-semi); letter-spacing: var(--tracking-ajustado); }
h4 { font-size: var(--texto-lg); font-weight: var(--peso-semi); letter-spacing: var(--tracking-ajustado); }

p { margin: 0 0 var(--e-4); }
ul, ol { padding-left: 1.25em; }

a {
  color: var(--color-enlace);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}
a:hover { color: var(--color-acento-fuerte); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-acento);
  outline-offset: 2px;
  border-radius: var(--radio-sm);
}

button { font-family: inherit; }

input, select, textarea, button { font-size: var(--texto-base); }

table { border-collapse: collapse; width: 100%; }

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

.salto-contenido {
  position: absolute;
  left: -999px;
  top: var(--e-2);
  background: var(--color-marca);
  color: #fff;
  padding: var(--e-3) var(--e-5);
  border-radius: var(--radio-sm);
  z-index: 1000;
}
.salto-contenido:focus {
  left: var(--e-3);
}

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