/* ============================================================
   GLOBAL STYLES — Base elements & accessibility
   ============================================================ */

/* ── Base ── */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: 400;
  line-height: var(--text-body-lh);
  color: var(--content-primary);
  background-color: var(--surface-page);
}

/* ── Tipografía ── */
h1, .heading-1 {
  font-family: var(--font-display);
  font-size: var(--text-h1-size);
  font-weight: var(--text-h1-weight);
  line-height: var(--text-h1-lh);
  color: var(--neutral-900);
}

h2, .heading-2 {
  font-family: var(--font-display);
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
  line-height: var(--text-h2-lh);
  color: var(--neutral-800);
}

h3, .heading-3 {
  font-family: var(--font-display);
  font-size: var(--text-h3-size);
  font-weight: var(--text-h3-weight);
  line-height: var(--text-h3-lh);
  color: var(--neutral-800);
}

h4, .heading-4 {
  font-family: var(--font-body);
  font-size: var(--text-h4-size);
  font-weight: var(--text-h4-weight);
  line-height: var(--text-h4-lh);
  color: var(--neutral-800);
}

p {
  color: var(--content-secondary);
  line-height: var(--text-body-lh);
}

p.lead {
  font-size: var(--text-body-lg-size);
  line-height: 1.7;
}

a {
  color: var(--content-link);
  text-underline-offset: 3px;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

strong {
  font-weight: 600;
  color: var(--content-primary);
}

/* ── Accesibilidad ── */

/* Skip navigation link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: calc(var(--z-nav) + 10);
  padding: var(--space-sm) var(--space-md);
  background: var(--neutral-900);
  color: var(--neutral-0);
  font-size: var(--text-small-size);
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
}

.skip-link:focus {
  top: 0;
  outline: none;
}

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--pink-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Eyebrow label ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs-size);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--pink-700);
  margin-bottom: var(--space-sm);
}

/* ── Divisor ── */
hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-xl) 0;
}

/* ── Imágenes ── */
img {
  max-width: 100%;
  height: auto;
}

/* ── Selección de texto ── */
::selection {
  background-color: var(--pink-200);
  color: var(--neutral-900);
}

/* ── Material Symbols ── */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
