:root {
  --stage-w: 1366;
  --stage-h: 768;
  --scale: 1;
  --green: #bedb55;
  --green-strong: #99b73d;
  --green-soft: #cce868;
  --yellow: #f1d84b;
  --white: #f8faf2;
  --line: rgba(190, 219, 85, .96);
  --glass: rgba(0, 0, 0, .62);
  --glass-strong: rgba(0, 0, 0, .76);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #030503; color: var(--white); }
body { overflow: hidden; }

.stage-shell {
  width: 100vw;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020402;
}

.stage-fit {
  width: calc(1366px * var(--scale));
  height: calc(768px * var(--scale));
  flex: 0 0 auto;
  position: relative;
}

.hero {
  position: relative;
  width: 1366px;
  height: 768px;
  overflow: hidden;
  transform: scale(var(--scale));
  transform-origin: top left;
  isolation: isolate;
}

.hero__background,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__background {
  background: url('./assets/bg-harpia.jpeg') center center / cover no-repeat;
  transform: scale(1.008);
}

.hero__shade {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 7%, rgba(255, 255, 255, .18), transparent 17%),
    linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.30) 34%, rgba(0,0,0,.08) 50%, rgba(0,0,0,.38) 71%, rgba(0,0,0,.82) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.44) 61%, rgba(0,0,0,.82) 100%);
}

.navbar {
  position: absolute;
  z-index: 40;
  left: 8px;
  right: 8px;
  top: 7px;
  height: 59px;
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  align-items: center;
  padding: 0 27px;
  border: 1px solid rgba(190, 219, 85, .42);
  border-radius: 22px;
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: var(--white);
  text-decoration: none;
}

.brand__logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.06);
}

.brand__text {
  display: grid;
  gap: 1px;
  line-height: .9;
  font-size: 16px;
  font-weight: 800;
}

.brand__text strong { font-size: 1.18em; letter-spacing: .02em; }

.menu {
  justify-self: center;
  display: flex;
  gap: 49px;
  align-items: center;
  white-space: nowrap;
}

.menu__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 59px;
  color: rgba(255,255,255,.86);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
}

.menu__link:hover,
.menu__link.is-active { color: #fff; }
.menu__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
  transform: translateX(-50%);
  transition: width .18s ease;
}
.menu__link:hover::after,
.menu__link.is-active::after { width: 34px; }

.sound-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}
.sound-pill img { width: 31px; height: 31px; object-fit: contain; }

.intro {
  position: absolute;
  z-index: 12;
  left: 24px;
  top: 116px;
  width: 316px;
}

.intro h1 {
  margin: 0;
  line-height: .84;
  letter-spacing: -.068em;
  font-weight: 940;
  font-size: 58px;
}
.intro h1 span,
.intro h1 strong { display: block; }
.intro h1 strong { color: var(--green-strong); font-size: 1.12em; }

.eyebrow {
  margin: 20px 0 0;
  color: var(--green-soft);
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
}

.intro__text {
  margin: 19px 0 0;
  width: 298px;
  color: rgba(255,255,255,.98);
  font-size: 14px;
  line-height: 1.42;
  font-weight: 480;
}

.card {
  position: absolute;
  z-index: 20;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--glass-strong);
  box-shadow: 0 16px 42px rgba(0,0,0,.42);
  backdrop-filter: blur(5px);
}

.card h2 {
  margin: 0;
  color: var(--green-soft);
  font-size: 15px;
  line-height: 1.12;
  font-weight: 940;
  letter-spacing: .01em;
}

.stats-card {
  left: 33px;
  top: 403px;
  width: 205px;
  height: 303px;
  padding: 20px 17px;
}
.stats-card h2 { font-size: 15px; }
.stats-list { display: grid; gap: 12px; margin: 17px 0 0; }
.stats-list div { display: grid; gap: 2px; }
.stats-list dt { color: #fff; font-size: 12px; line-height: 1.1; font-weight: 850; }
.stats-list dd { margin: 0; color: rgba(255,255,255,.96); font-size: 12px; line-height: 1.18; }
.status-row { display: flex; align-items: center; gap: 12px; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 51px;
  height: 33px;
  padding: 0 12px;
  border-radius: 6px;
  background: #438e31;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}

.habitat-card {
  right: 44px;
  top: 103px;
  width: 293px;
  height: 427px;
  padding: 25px 19px 16px;
}
.habitat-card h2 { font-size: 15px; }
.habitat-card p {
  margin: 20px 0 0;
  width: 235px;
  color: rgba(255,255,255,.96);
  font-size: 12.5px;
  line-height: 1.48;
}
.habitat-card img {
  position: absolute;
  right: 21px;
  bottom: 60px;
  width: 171px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.32));
}
.country-list {
  position: absolute;
  left: 36px;
  bottom: 77px;
  z-index: 2;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 5px;
  color: var(--green-soft);
  font-size: 12px;
  line-height: 1;
}
.country-list li { position: relative; padding-left: 14px; }
.country-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .24em;
  width: 6px;
  height: 6px;
  background: var(--green-soft);
}

.quiz-card {
  right: 44px;
  bottom: 38px;
  width: 474px;
  height: 187px;
  padding: 0;
  display: block;
}
.quiz-card__qr {
  position: absolute;
  left: 15px;
  top: 51px;
  width: 114px;
  height: 114px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.94);
  background: #fff;
}
.quiz-card__content { position: absolute; inset: 0; }
.quiz-card h2 {
  position: absolute;
  left: 145px;
  top: 19px;
  width: 300px;
  color: var(--green-soft);
  text-align: center;
  font-size: 21px;
  line-height: 1.14;
  font-weight: 940;
}
.quiz-card h2 span { display: block; }
.quiz-card p {
  position: absolute;
  left: 145px;
  top: 88px;
  width: 205px;
  margin: 0;
  color: rgba(255,255,255,.96);
  font-size: 12px;
  line-height: 1.28;
}
.quiz-card__button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 145px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #98b23f;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.16;
  font-weight: 780;
}
.arrow {
  position: absolute;
  left: 150px;
  top: 115px;
  width: 136px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(190,219,85,.22));
}

.source {
  position: absolute;
  z-index: 21;
  left: 270px;
  bottom: 18px;
  margin: 0;
  color: rgba(255,255,255,.67);
  font-size: 12px;
  line-height: 1;
}
.source strong { color: var(--green-strong); margin-right: 10px; font-weight: 900; }
.source span { text-decoration: underline; text-underline-offset: 3px; }

/* Anatomy pins */
.anatomy-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}
.anatomy-note {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #fff;
}
.note-right { flex-direction: row-reverse; }
.note-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 0 14px rgba(241,216,75,.22);
}
.note-box h3 {
  margin: 0 0 2px;
  color: #ffe86a;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 1px 5px rgba(0,0,0,.72);
}
.note-box p {
  margin: 0;
  color: #fff;
  font-size: 10.5px;
  line-height: 1.22;
  font-weight: 560;
  text-shadow: 0 1px 5px rgba(0,0,0,.72);
}
.anatomy-note::before,
.anatomy-note::after,
.note-box::before,
.note-box::after {
  content: "";
  position: absolute;
  display: block;
  border-color: rgba(205, 224, 85, .68);
}

.note-cresta { left: 540px; top: 100px; }
.note-cresta::before { left: 118px; top: 10px; width: 72px; border-top: 1px dashed rgba(205,224,85,.68); }
.note-cresta::after { left: 189px; top: 10px; height: 25px; border-left: 1px dashed rgba(205,224,85,.68); }

.note-alas { left: 470px; top: 250px; }
.note-alas::before { left: 116px; top: 10px; width: 70px; border-top: 1px dashed rgba(205,224,85,.68); }
.note-alas::after { left: 185px; top: 10px; height: 30px; border-left: 1px dashed rgba(205,224,85,.68); }

.note-garras { left: 435px; top: 462px; }
.note-garras::before { left: 121px; top: 11px; width: 74px; border-top: 1px dashed rgba(205,224,85,.68); }
.note-garras::after { left: 194px; top: 11px; height: 29px; border-left: 1px dashed rgba(205,224,85,.68); }

.note-ojos { left: 810px; top: 169px; }
.note-ojos::before { right: 117px; top: 10px; width: 73px; border-top: 1px dashed rgba(205,224,85,.68); }
.note-ojos::after { right: 189px; top: 10px; height: 25px; border-left: 1px dashed rgba(205,224,85,.68); }

.note-pico { left: 830px; top: 250px; }
.note-pico::before { right: 113px; top: 10px; width: 72px; border-top: 1px dashed rgba(205,224,85,.68); }
.note-pico::after { right: 184px; bottom: 30px; height: 28px; border-left: 1px dashed rgba(205,224,85,.68); }

.note-pecho { left: 825px; top: 337px; }
.note-pecho::before { right: 118px; top: 10px; width: 72px; border-top: 1px dashed rgba(205,224,85,.68); }
.note-pecho::after { right: 189px; bottom: 30px; height: 28px; border-left: 1px dashed rgba(205,224,85,.68); }

.note-patas { left: 800px; top: 440px; }
.note-patas::before { right: 128px; top: 10px; width: 78px; border-top: 1px dashed rgba(205,224,85,.68); }
.note-patas::after { right: 205px; top: 10px; height: 32px; border-left: 1px dashed rgba(205,224,85,.68); }

/* Only when the available screen is extremely narrow, allow moving the scaled slide slightly with touch/scroll. */
@media (max-width: 520px) {
  .stage-shell { overflow: auto; justify-content: flex-start; align-items: flex-start; }
}


/* Audio interactivo del header */
.sound-pill {
  cursor: pointer;
  user-select: none;
  padding: 4px 7px;
  border-radius: 999px;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}
.sound-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.12);
  background: rgba(190, 219, 85, .08);
}
.sound-pill.is-playing {
  background: rgba(190, 219, 85, .12);
  text-shadow: 0 0 12px rgba(190, 219, 85, .45);
}
.sound-pill.is-playing img {
  animation: soundPulse .78s ease-in-out infinite alternate;
}
@keyframes soundPulse {
  from { transform: scale(.94); opacity: .78; }
  to { transform: scale(1.12); opacity: 1; }
}
