/* ============================================================
   BASE: reset, tipografía y utilidades
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--c-ink);
  text-wrap: balance;
}
h3 { line-height: var(--lh-snug); }
p { text-wrap: pretty; }
em { font-style: italic; }
h1 em, h2 em { color: var(--c-rose); }
strong { font-weight: 600; }

a { color: var(--c-violet); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--c-violet-dark); }

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

::selection { background: var(--c-lavender); color: var(--c-ink); }

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

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--c-ink); color: var(--c-cream);
  padding: 0.6rem 1rem; border-radius: var(--r-sm);
}
.skip-link:focus { top: 1rem; color: var(--c-cream); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-violet);
  margin-bottom: var(--sp-3);
}

/* Separador dorado fino con loto, inspirado en el flyer */
.divider {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  color: var(--c-gold);
  margin: var(--sp-4) auto 0;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: min(90px, 20vw);
  background: linear-gradient(90deg, transparent, var(--c-gold));
}
.divider::after { transform: scaleX(-1); }

/* Animaciones al hacer scroll (solo si JS + sin reduced-motion) */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.js-anim .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;
  }
}
