/* ── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] { display: none !important; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Tipografía base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-text);
}

p { max-width: 70ch; }

a {
  color: inherit;
  text-decoration: none;
}

a:hover { color: var(--color-primary); }

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition);
}

button:active { transform: scale(0.97); }

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

svg { display: block; }

/* Accesibilidad: focus visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Sección wrapper */
section { overflow: hidden; }
