/* ==========================================================================
   Base — reset, tipografía editorial, layout primitives, utilidades "shine"
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, svg, video { display: block; max-width: 100%; }
/* Tamaño por defecto de los iconos en línea; cualquier regla con clase lo sobreescribe. */
svg { width: 1em; height: 1em; flex: none; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--blush-2); color: var(--ink); }

/* ---------- Tipografía ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
.display em, h1 em, h2 em { font-style: italic; }

.eyebrow {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-weight: 500;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow--muted { color: var(--ink-3); }
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow.no-rule::before { display: none; }

.overline {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-3);
}
.lede { font-size: var(--fs-md); color: var(--ink-2); line-height: 1.65; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.tnum { font-variant-numeric: tabular-nums; }
.shine-text {
  background: var(--grad-shine);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid { max-width: var(--wrap-mid); }
.wrap--text { max-width: var(--wrap-text); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section--paper { background: var(--paper-2); }
.section--sand { background: var(--paper-3); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--bloom::before {
  content: ""; position: absolute; inset: 0;
  background: var(--bloom); pointer-events: none;
}
.section > * { position: relative; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); margin-bottom: var(--sp-6);
}
.section-head__text { max-width: 54ch; display: grid; gap: 12px; }
.section-head h2 { font-size: var(--fs-section); }
.section-head p { color: var(--ink-3); font-size: var(--fs-sm); }
@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

.grid { display: grid; gap: clamp(14px, 1.6vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }
.grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .grid--4, .grid--products { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid--4, .grid--products { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .grid--2, .grid--6 { grid-template-columns: repeat(2, 1fr); }
}

.stack { display: grid; gap: var(--sp-4); }
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Utilidades ---------- */
.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;
}
.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }
.hide { display: none !important; }
@media (max-width: 860px) { .hide-mobile { display: none !important; } }
@media (min-width: 861px) { .hide-desktop { display: none !important; } }

/* Hairline con brillo — el "shine" como atmósfera, no como adorno */
.rule-shine { height: 1px; border: 0; background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--blush-2) 50%, var(--line-2) 88%, transparent); }

/* Entrada suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }

/* Destello diminuto reutilizable */
.sparkle { width: 1em; height: 1em; flex: none; }
.sparkle path { fill: currentColor; }
