/* =========================================================
   CUEE — Base Styles
   css/base.css
   Reset moderno, tipografía base, elementos globales.
   ========================================================= */

/* ── Reset moderno ───────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Imágenes y medios ───────────────────────────────────── */

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

/* ── Listas ──────────────────────────────────────────────── */

ul,
ol {
  list-style: none;
}

/* ── Tipografía — headings ───────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--leading-heading);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

/* ── Párrafos ────────────────────────────────────────────── */

p {
  max-width: 70ch;
  color: var(--color-text);
}

/* ── Links ───────────────────────────────────────────────── */

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--ease-fast);
}

a:hover {
  opacity: 0.75;
}

/* ── Blockquote ──────────────────────────────────────────── */

blockquote {
  font-style: italic;
}

/* ── Formularios — reset ─────────────────────────────────── */

input,
select,
textarea,
button {
  font: inherit;
  color: inherit;
  border: none;
  background: transparent;
  outline: none;
}

button {
  cursor: pointer;
}

/* ── Accesibilidad: foco visible ─────────────────────────── */

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

/* ── Visually hidden (accesibilidad) ─────────────────────── */

.visually-hidden,
.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;
}

/* ── strong / em ─────────────────────────────────────────── */

strong {
  font-weight: var(--fw-semibold);
}

/* ── Scrollbar (Chromium) — discreta ─────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
