/* Base tipográfica y de layout (sistema v2, D-026). Sin estilos de componentes aquí. */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 var(--space-md);
  text-wrap: balance;
  color: var(--color-text);
  letter-spacing: -0.025em;
}
h1 { font-size: var(--h-giant); font-weight: 600; line-height: 0.92; }
h2 { font-size: var(--h-big); font-weight: 600; line-height: 0.96; }
h3 { font-size: var(--h-mid); font-weight: 600; line-height: 1.1; }
h4 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
h1 em, h2 em { font-style: normal; color: var(--color-primary); }
p, ul, ol { margin: 0 0 var(--space-md); max-width: var(--measure); }
a { color: var(--color-primary); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--color-primary-strong); }
img, svg, video { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-sm); }

.di-container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.di-container--narrow { width: min(100% - 2 * var(--gutter), var(--container-narrow)); margin-inline: auto; }
.di-section { padding-block: var(--space-3xl); }
@media (min-width: 1024px) { .di-section { padding-block: 9rem; } }
.di-section--tight { padding-top: 0; }
.di-section--soft { background: var(--color-surface-soft); }

.di-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-secondary-strong);
  margin-bottom: var(--space-md);
  display: flex; align-items: center; gap: 0.7rem;
}
.di-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.di-eyebrow--center { justify-content: center; }
.di-muted { color: var(--color-muted); }
.di-lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 300; line-height: 1.5; max-width: 46ch; margin-top: var(--space-lg); }
.di-draft { color: var(--color-warning); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reveal al hacer scroll (main.js). Sin JS todo es visible. */
.di-reveal { opacity: 1; transform: none; }
.js .di-reveal:not(.is-visible) { opacity: 0; transform: translateY(28px); }
.js .di-reveal { transition: opacity var(--motion-slow) var(--ease-out), transform 0.7s var(--ease-out); }
.js .di-reveal--d1 { transition-delay: 0.08s; }
.js .di-reveal--d2 { transition-delay: 0.16s; }
.js .di-reveal--d3 { transition-delay: 0.24s; }
.js .di-reveal--d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .js .di-reveal:not(.is-visible) { opacity: 1; transform: none; } .js .di-reveal { transition: none; } }

/* Contenido editorial (Elementor / bloques) hereda la escala */
.di-prose h2 { font-size: var(--h-mid); font-weight: 600; margin-top: var(--space-2xl); }
.di-prose h3 { font-size: 1.4rem; }
