/**
 * tokens.css — variables de marca, reset y tipografía base.
 * Colores tomados directamente del logotipo BMC (AW_LogoBMC_01-1-02.svg).
 */

:root {
  /* Color */
  --navy: #23305f;
  --navy-deep: #16204a;
  --navy-tint: #3a4a86;
  --yellow: #f3c402;
  --yellow-deep: #d9ae00;
  --red: #e63e31;
  --red-deep: #c22e22;
  --white: #ffffff;
  --paper: #f8fafc;
  --paper-line: #e2e8f0;
  --ink: #14192b;
  --ink-soft: rgba(20, 25, 43, 0.7);
  --ink-faint: rgba(20, 25, 43, 0.5);
  --on-navy: #f3f5fb;
  --on-navy-soft: rgba(243, 245, 251, 0.72);

  /* Tipografía */
  --font-display: 'Anton', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --font-body: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  /* Layout */
  --wrap-max: 1200px;
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-sm: 10px;
  --shadow-card: 0 20px 40px -24px rgba(20, 25, 43, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@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;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.02;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

p {
  margin: 0 0 var(--space-4);
  max-width: 62ch;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

.visually-hidden {
  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;
  left: var(--space-4);
  top: -60px;
  background: var(--yellow);
  color: var(--ink);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: var(--space-4);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
