/* BASE — reset, tipografía, layout 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;
  background: var(--black);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.section--ivory :focus-visible { outline-color: var(--burgundy); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ivory);
  color: var(--black);
  text-decoration: none;
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(var(--max-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--black); color: var(--text-on-dark); }
.section--ivory { background: var(--ivory); color: var(--text-on-light); }
.section--burgundy {
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(146, 22, 31, 0.55), transparent 60%),
    linear-gradient(180deg, var(--burgundy-deep), #2A0609);
  color: var(--text-on-dark);
}

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }
.section-head .lead { margin-top: 1.25rem; }
.section-cta { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }

/* Tipografía */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 400; color: var(--burgundy); }
.section--dark .display em, .section--burgundy .display em { color: var(--gold); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--muted-on-dark);
  text-wrap: pretty;
}
.section--ivory .lead { color: var(--muted-on-light); }
.section--burgundy .lead { color: rgba(244, 240, 232, 0.82); }

.eyebrow {
  margin-bottom: 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.section--ivory .eyebrow { color: var(--gold-ink); }
.eyebrow--lined {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow--lined::before, .eyebrow--lined::after {
  content: '';
  width: clamp(1.5rem, 6vw, 3.5rem);
  height: 1px;
  background: var(--line-on-dark);
}

/* Reveal al hacer scroll (solo si hay JS; sin JS todo es visible) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
