/* =============================================================================
   Modern reset minimalista — Aspaldiko
   ========================================================================== */

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

* { margin: 0; }

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

body {
  /* Sticky footer: body en columna flex de alto mínimo de viewport; el contenido
     (.site-inner) crece para empujar el footer al fondo aunque la página sea corta. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
}

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

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

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-burgundy);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link de accesibilidad (Genesis lo emite). */
.genesis-skip-link {
  position: absolute;
  left: -9999px;
}
.genesis-skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--color-burgundy);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

/* Containers genéricos */
.container,
.wrap {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Visually hidden para textos solo de lectores de pantalla */
.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;
}

/* Genesis añade .site-inner como envoltorio del contenido. Crece para ocupar el
   espacio libre y empujar el footer al fondo (sticky footer). */
.site-inner { flex: 1 0 auto; }
