/* Vertice Mercados — design tokens */
:root {
  --ruby: #CC0033;
  --ruby-hover: #A8002A;
  --midnight: #003399;
  --midnight-hover: #002271;
  --ink: #0A0A0F;
  --graphite: #1A1A1F;
  --steel: #5B6172;
  --steel-light: #8A8F9C;
  --paper: #F4F5F8;
  --paper-alt: #E6E8EE;
  --line: #C8CCD6;

  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --shadow-soft: 0 4px 16px rgba(10,10,15,0.06);
  --shadow-strong: 0 12px 48px rgba(0,51,153,0.18);

  --container: 1200px;
  --container-wide: 1380px;

  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 420ms;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(36px, 5.4vw, 56px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 19px; font-weight: 600; font-family: var(--font-body); letter-spacing: 0; }

p { margin: 0 0 16px; max-width: 68ch; }

a { color: var(--midnight); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--t-fast); }
a:hover { color: var(--ruby); }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; }

::selection { background: var(--ruby); color: var(--paper); }

.sr-only {
  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: -100px; left: 8px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-sm);
  z-index: 200;
}
.skip-link:focus { top: 8px; }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .container-wide { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
  html { scroll-behavior: auto; }
}
