.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  pointer-events: none;
}
.navbar > * { pointer-events: auto; }

/* Factory "control panel" of icon buttons — always visible, no hamburger,
   no dropdown; short enough as a list that hiding it behind a menu felt
   thin, so every destination gets its own labeled button instead. */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(11, 14, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 6px;
}

/* Fixed width (not min-width) — the label text changes length between EN
   and ES ("About" vs "Nosotros"), and a min-width alone let the button
   grow to fit whichever is longer, so every button visibly resized on
   every language toggle. Width is sized to fit "Q-EXPLORATOR" (the
   longest label, identical in both languages) on a single line — the
   label itself is forced to nowrap below, so it can never wrap or break
   mid-word again regardless of which language is active. */
.navbar__icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: var(--radius);
  color: var(--color-text-secondary);
  text-decoration: none;
  width: 84px;
  flex-shrink: 0;
}
.navbar__icon-btn:hover,
.navbar__icon-btn.is-active {
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}
.navbar__icon-btn__icon { display: flex; }
.navbar__icon-btn__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .navbar__icon-btn__label { display: none; }
  .navbar__icon-btn { width: 36px; padding: 8px; }
}

.breadcrumb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text-label); margin-bottom: var(--space-2); }
.breadcrumb a { color: var(--color-text-label); }
.breadcrumb a:hover { color: var(--color-accent); }
/* Both languages are shown side by side with their flag, rather than a
   single button that only ever names the OTHER language — the active one
   is highlighted, so the current language is always visible at a glance. */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.lang-switch__option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-text-secondary);
  padding: 6px 8px;
  cursor: pointer;
  opacity: 0.65;
}
.lang-switch__option svg { display: block; border-radius: 2px; flex-shrink: 0; }
.lang-switch__option:hover { opacity: 0.9; }
.lang-switch__option.is-active {
  color: var(--color-text);
  border-color: var(--color-accent);
  opacity: 1;
}

.page-hero { padding: calc(var(--space-5) + 24px) 0 var(--space-5); }
.page-hero__eyebrow { margin-bottom: var(--space-2); }
.page-hero__title { max-width: 640px; }
/* pre-line lets a literal \n in the translated string render as a real
   line break (e.g. Home's subtitle), while still collapsing runs of
   regular whitespace like normal text. */
.page-hero__subtitle { max-width: 520px; white-space: pre-line; }
.page-hero__actions { display: flex; gap: 14px; margin-top: var(--space-3); }

.hero-brand { max-width: 616px; }
.page-hero__eyebrow--right { display: block; text-align: right; }

.hero-logo { max-width: 616px; width: 100%; height: auto; display: block; margin-bottom: 6px; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, 0.5)); }
/* About/Contact: same wordmark, just present — 25% smaller than the Home
   logo (616px * 0.75 = 462px) since there's no slogan pairing here, just
   enough presence so these pages don't feel unbranded. */
.hero-logo--small { max-width: 462px; margin-bottom: var(--space-3); }
/* Sized by height, not width — matching width made the letters
   themselves render at different sizes, since "Q-Explorator" is a wider
   wordmark than "Q-Expert" for the same letter height (their source PNGs
   have different aspect ratios, 0.24 vs 0.29 h/w). A shared height keeps
   the actual glyphs — including the Q both names start with — the same
   size regardless of how many characters follow it, at any viewport
   width, since both compute their own width from this same height. */
.hero-logo--product { height: clamp(90px, 16vw, 176px); width: auto; max-width: 100%; margin-bottom: var(--space-2); }
.hero-manifesto {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  max-width: 640px;
}
.hero-manifesto h2 { font-size: 22px; }

.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) 0;
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-label);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.footer__links { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.footer__links a { color: var(--color-text-label); }
.footer__links a:hover { color: var(--color-accent); }

/* Legal pages (Privacy/Terms): plain, readable prose — narrower measure
   than the rest of the site's marketing copy, generous space between
   sections since these are meant to be scanned by heading. */
.legal-body { max-width: 680px; }
.legal-body h2 { margin-top: var(--space-4); font-size: 20px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { font-size: 14.5px; }

.section { padding: var(--space-5) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }

/* Same concept as Home: the logo/breadcrumb/specimen-tag sit on plain
   black above this, untouched by the GIF — only the mascot+text row
   (the actual "specimen" band, like a theater-act) carries it behind it. */
.specimen-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: center; }
.specimen-hero > :not(.species-bg-gif) { position: relative; z-index: 1; }
.specimen-hero__image-wrap { display: flex; justify-content: center; }
.specimen-hero__image { width: 100%; max-width: 420px; display: block; transition: transform .1s ease-out; }
/* Capped at its own natural pixel size (531px) rather than an arbitrary
   column-driven width, so it renders at its real, undistorted size on
   anything wide enough to fit it and only shrinks on small viewports. */
.specimen-diagram { width: 100%; max-width: 531px; height: auto; display: block; margin-bottom: var(--space-2); }

/* Decorative species GIF: geometric/biological trace art, shared between
   the Home theater acts and each product page's specimen row — low
   opacity + screen blend so it merges into the dark background and grid
   instead of competing with the mascot/chat content sitting on top of it.
   Centered, full-bleed cover: it's fine if content overlaps it, it's pure
   ambiance, kept subtle on purpose. */
.species-bg-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  object-fit: cover;
  opacity: 0.12;
  mix-blend-mode: screen;
  pointer-events: none;
  /* Soft-edged rather than a hard rectangle cut — a radial mask fades the
     GIF's own edges to nothing before they reach the section's bounds, so
     it dissolves into the background instead of starting/stopping abruptly. */
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 35%, transparent 85%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, #000 35%, transparent 85%);
}

.testimonials-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.testimonials-layout > :first-child { grid-column: 1 / -1; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-3); }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--color-text-secondary); }
.checklist li svg { flex-shrink: 0; margin-top: 2px; color: var(--color-accent-explorator); }

@media (max-width: 900px) {
  .specimen-hero { grid-template-columns: 1fr; text-align: center; }
  .specimen-hero__image-wrap { justify-content: center; }
  .specimen-hero__image { max-width: 280px; margin: 0 auto; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .testimonials-layout, .checklist { grid-template-columns: 1fr; }
}

.page-hero__eyebrow.hero-stagger,
.page-hero__title.hero-stagger,
.page-hero__subtitle.hero-stagger,
.page-hero__actions.hero-stagger {
  opacity: 0;
  animation: hero-stagger-in .5s ease forwards;
}
.page-hero__eyebrow.hero-stagger { animation-delay: 0ms; }
.page-hero__title.hero-stagger { animation-delay: 80ms; }
.page-hero__subtitle.hero-stagger { animation-delay: 160ms; }
.page-hero__actions.hero-stagger { animation-delay: 240ms; }
@keyframes hero-stagger-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .page-hero__eyebrow.hero-stagger,
  .page-hero__title.hero-stagger,
  .page-hero__subtitle.hero-stagger,
  .page-hero__actions.hero-stagger,
  .hero-stagger {
    animation: none !important;
    opacity: 1;
  }
}
