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

html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--on-dark);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.005em;
  background: var(--emerald-2);
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: var(--h1-size);
  line-height: var(--h1-leading);
  letter-spacing: var(--h1-tracking);
  font-weight: 500;
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
  font-weight: 500;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p { margin: 0; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
a:hover { color: var(--navy-3); }

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
}

/* Texto sobre fondo oscuro */
.on-dark      { color: var(--on-dark); }
.on-dark-soft { color: var(--on-dark-2); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.icon { display: inline-flex; vertical-align: middle; }
.icon svg { width: 1em; height: 1em; }

.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.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;
}

.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb {
  background: rgba(245, 235, 205, 0.3);
  border-radius: 999px;
}
::-webkit-scrollbar-track { background: transparent; }

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Búsqueda: bg cielo, no warm — sigue siendo claro y exploratorio */
body.body--sky {
  background:
    radial-gradient(120% 80% at 50% 0%, var(--sky-1) 0%, transparent 60%),
    linear-gradient(180deg, var(--sky-2) 0%, var(--sky-3) 60%, var(--navy) 100%);
  background-attachment: fixed;
}
