/* ─── BASE & RESET ───────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-weight: var(--w-light);
  background-color: var(--color-bg);
  color: var(--color-dark);
  overflow-x: hidden;
  cursor: none;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Tipografía base ─────────────────────────────────────────────────────── */

/* Títulos — peso delgado por defecto, se refuerza con clases */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: var(--w-thin);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

p {
  font-weight: var(--w-light);
  line-height: 1.75;
  font-size: var(--size-base);
  color: var(--color-mid);
}

em { font-style: italic; }
strong { font-weight: var(--w-bold); color: var(--color-dark); }

/* Etiqueta de sección */
.section-label {
  font-family: var(--font-main);
  font-size: var(--size-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--sp-sm);
}

/* Cursores personalizados */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--color-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast), height var(--dur-fast),
              background var(--dur-fast), opacity var(--dur-fast);
}

.cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-dark);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0.4;
  transition: opacity var(--dur-fast);
}

.cursor--hover {
  width: 12px;
  height: 12px;
  background: var(--color-accent);
}

.cursor-follower--hover {
  width: 48px;
  height: 48px;
  border-color: var(--color-accent);
  opacity: 0.25;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-main);
  font-size: var(--size-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  cursor: none;
  transition: all var(--dur-med) var(--ease);
}

.btn--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-accent);
}

.btn--outline {
  border: 1px solid var(--color-dark);
  color: var(--color-dark);
}

.btn--outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
  gap: var(--sp-md);
}

/* Tag / chip de categoría (estilo Floema) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--size-xs);
  font-weight: var(--w-medium);
  letter-spacing: 0.06em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--color-surface);
}

.tag--sage {
  background: var(--color-sage-bg);
  color: var(--color-sage);
}

/* Selección de texto */
::selection {
  background: var(--color-sage);
  color: var(--color-white);
}

/* Regla horizontal */
.h-rule {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}
