/*
  Lumbre Pura — Base
  Reset moderno (apoyado en Andy Bell / Josh Comeau, adaptado).
  Sin reset agresivo — preservamos jerarquía nativa donde tiene sentido.
*/

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

* { margin: 0; padding: 0; }

html:focus-within { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  text-rendering: optimizeSpeed;
}

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

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

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

button:disabled { cursor: not-allowed; }

a { color: inherit; }

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

ul, ol { list-style: none; }
ul[role="list"], ol[role="list"] { padding-left: 0; }

/* ─── Foco visible siempre ─────────────────────────────────────────── */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--color-walnut);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ─── Skip link ────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-smoke);
  color: var(--color-bone);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  z-index: 100;
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus { top: var(--space-4); }

/* ─── Selección ────────────────────────────────────────────────────── */
::selection {
  background: var(--color-walnut);
  color: var(--color-bone);
}

/* ─── Reduced motion ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Containers ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-base);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

/* ─── Utilidades mínimas ───────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding-block: var(--space-9);
}

@media (min-width: 768px) {
  .section { padding-block: var(--space-11); }
}
