/* Reset mínimo y accesible */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-inter);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: -0.0060em;
  color: var(--color-carbon);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }

/* Tipografía por rol */
h1, h2, h3, h4 {
  font-family: var(--font-inter);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.0060em;
  color: var(--color-carbon);
  text-wrap: balance;
}
h1 { font-size: clamp(var(--text-heading-lg), 5vw, var(--text-display)); line-height: var(--leading-display); }
h2 { font-size: clamp(var(--text-heading), 3.5vw, var(--text-heading-lg)); line-height: var(--leading-heading-lg); }
h3 { font-size: var(--text-heading-sm); line-height: var(--leading-heading-sm); font-weight: var(--font-weight-semibold); }
p  { text-wrap: pretty; }

.text-display-xl { font-size: var(--text-display-xl); line-height: var(--leading-display-xl); letter-spacing: var(--tracking-display-xl); font-weight: var(--font-weight-extrabold); }
.text-display    { font-size: var(--text-display);    line-height: var(--leading-display);    letter-spacing: var(--tracking-display);    font-weight: var(--font-weight-extrabold); }
.text-muted      { color: var(--color-graphite); }
.text-smoke      { color: var(--color-smoke); }

/* Layout */
.container { width: min(100% - 2rem, var(--page-max-width)); margin-inline: auto; }
.section { padding-block: var(--section-gap); }
.section--dark { background: var(--surface-midnight-block); color: var(--color-pure-white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-pure-white); }

/* Botones — pill 300px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--spacing-8);
  font-family: var(--font-inter); font-weight: var(--font-weight-medium); font-size: var(--text-body);
  border-radius: var(--radius-buttons);
  padding: 10px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--violet { background: var(--color-studio-violet); color: var(--color-pure-white); }
.btn--violet:hover { background: var(--color-iris-light); }
.btn--white  { background: var(--color-pure-white); color: var(--color-carbon); }
.btn--white:hover { background: var(--color-fog); }
.btn--ghost  { background: transparent; color: var(--color-pure-white); border-color: var(--color-pure-white); }
.btn--ghost-dark { background: transparent; color: var(--color-carbon); border-color: var(--color-ash); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }

/* Foco visible — WCAG 2.2 AA */
:focus-visible {
  outline: 2px solid var(--color-studio-violet);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}
.section--dark :focus-visible { outline-color: var(--color-pure-white); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utilidades */
.visually-hidden {
  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; top: -40px; left: 8px;
  background: var(--color-carbon); color: var(--color-pure-white);
  padding: 8px 12px; border-radius: var(--radius-lg); z-index: 1000;
}
.skip-link:focus { top: 8px; }