/* Base Reset & Core Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Selección de texto elegante */
::selection {
  background-color: var(--color-olive-subtle);
  color: var(--text-heading);
}

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Imágenes & Media */
img, svg, video, iframe {
  display: block;
  max-width: 100%;
}

/* Tipografía de Encabezados */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.18;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.35;
}

p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* Contenedores globales */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* Secciones espaciadas con armonía */
.section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  position: relative;
}

.section-warm {
  background-color: var(--bg-warm-alt);
}

.section-subtle {
  background-color: var(--bg-warm-subtle);
}

.section-olive-subtle {
  background-color: var(--bg-olive-whisper);
}

/* Accesibilidad Focus visible */
:focus-visible {
  outline: 2px solid var(--color-olive);
  outline-offset: 3px;
}

/* Etiquetas visuales discretas */
.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-olive);
  margin-bottom: 0.85rem;
}

/* Clases de utilidad */
.text-center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
