/* ==========================================================================
   BASE — Reset, tipografía y utilidades globales
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--ivory);
  font-variant-numeric: lining-nums;   /* Cormorant usa números "old-style" por defecto: forzamos los alineados */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

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

/* ---------- Utilidades ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  top: -100px; left: 1rem;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* Secciones: variantes claro / oscuro */
.section { padding-block: var(--section-y); position: relative; }
.section--light { background: var(--ivory); color: var(--text-on-light); }
.section--sand  { background: var(--sand);  color: var(--text-on-light); }
.section--dark  { background: var(--ink);   color: var(--text-on-dark); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead {
  margin-top: 1.25rem;
  font-size: var(--fs-lg);
  color: var(--text-muted-on-light);
}
.section--dark .section__lead { color: var(--text-muted-on-dark); }

/* Sobretítulo con línea dorada */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: '';
  width: 2.25rem; height: 1px;
  background: currentColor;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--gold); }

/* Énfasis dorado en títulos */
.accent { color: var(--gold-deep); font-style: italic; }
.section--dark .accent, .hero .accent { color: var(--gold); }
