* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 75% 4%, rgba(105, 198, 118, 0.15), transparent 28rem),
    linear-gradient(180deg, #07120f 0%, #0a1713 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: -100px;
  background: var(--lime);
  color: #07120f;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 18, 15, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  background: rgba(7, 18, 15, 0.95);
  border-color: var(--line);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.footer-brand img { display: block; width: 250px; max-width: 100%; height: auto; border-radius: 6px; }

.brand strong,
.brand small {
  display: block;
}

.brand-logo {
  display: block;
  width: 78px;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}

.brand strong {
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.7rem;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--lime);
}

.print-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 15px;
  cursor: pointer;
  font-weight: 800;
}

/* Dos vistas editoriales en un mismo enlace: propuesta y benchmark. */
.view-switch {
  position: sticky;
  z-index: 49;
  top: 76px;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  background: #07120f;
  border-bottom: 1px solid var(--line);
}

.view-switch button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 21px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.view-switch button[aria-selected="true"] {
  color: #0b1a16;
  background: var(--lime);
  border-color: var(--lime);
}

[data-view-panel][hidden] { display: none !important; }