/* =========================================================
   F.I.E.L. — Base styles
   Reset ligero + tipografía global + utilidades.
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--color-text-navy);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--color-crimson); }

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

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

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text-navy);
  margin: 0 0 var(--space-4);
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.875rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: var(--text-2xl); font-weight: 600; }
h4 { font-size: var(--text-xl);  font-weight: 600; }

p {
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.container-narrow {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-crimson);
  margin-bottom: var(--space-4);
}
.on-dark .eyebrow { color: #F2C9B0; }

.lead {
  font-size: var(--text-lg);
  color: var(--color-text-dark);
  max-width: 64ch;
}
.on-dark .lead { color: rgba(255,255,255,0.88); }

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mx-auto    { margin-left: auto; margin-right: auto; }

.divider {
  width: 56px;
  height: 3px;
  background: var(--color-crimson);
  border-radius: var(--radius-full);
  margin: var(--space-4) 0 var(--space-6);
}
.text-center .divider { margin-left: auto; margin-right: auto; }

/* Visually hidden (a11y) */
.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;
}

/* ---------- Section spacing ---------- */
.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
}
.section-sm { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.bg-cream    { background: var(--color-bg); }
.bg-cream-2  { background: var(--color-bg-alt); }
.bg-white    { background: var(--color-white); }
.bg-dark     { background: var(--color-bg-dark); color: var(--color-text-light); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--color-text-light); }
.bg-dark p   { color: rgba(255,255,255,0.85); }
.bg-dark a   { color: #F2C9B0; }
.bg-dark .divider { background: #F2C9B0; }

/* on-dark helper used inside hero areas */
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--color-text-light); }
.on-dark p { color: rgba(255,255,255,0.85); }
