:root {
  color-scheme: dark;
  --page: #0a111e;
  --panel: #101b2c;
  --panel-light: #142237;
  --line: #26374e;
  --ink: #f3f7ff;
  --muted: #adbed3;
  --blue: #78d5ff;
  --blue-hover: #a5e4ff;
  --gold: #f7cc76;
  --green: #8eebba;
  --red: #ffc0ad;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --display: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 60% 0%, #12223a 0%, transparent 44%), var(--page);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
}

button, input { font: inherit; }
button, a, summary { touch-action: manipulation; }
button:not(:disabled) { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

h1, h2, p, ul, ol { margin: 0; }
h1[tabindex="-1"]:focus { outline: none; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header { border-bottom: 1px solid var(--line); background: #0a121f; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 1.32rem/1 var(--body);
  letter-spacing: -.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #0a2438;
  background: var(--blue);
  border-radius: 10px;
}
.brand-mark .icon { width: 25px; height: 25px; }
.brand-accent { color: var(--blue); }
.edition {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d8e8f7;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 650;
  white-space: nowrap;
}
.argentina-flag {
  position: relative;
  width: 17px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(#75c9ff 33%, #fff 33% 67%, #75c9ff 67%);
}
.argentina-flag::after {
  position: absolute;
  inset: 4px auto auto 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #a65e00;
  content: "";
}

main { flex: 1; padding-block: 36px 42px; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 535px;
  overflow: hidden;
  border: 1px solid #34506c;
  border-radius: 22px;
  background: #101e33;
}
.hero-photo, .hero::after { position: absolute; pointer-events: none; }
.hero-photo {
  inset: 0 0 0 auto;
  width: 81%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  z-index: -2;
}
.hero::after {
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, #0d1a2c 0%, #0d1a2c 21%, rgb(13 26 44 / .94) 34%, rgb(13 26 44 / .49) 51%, transparent 73%),
    linear-gradient(0deg, rgb(8 19 35 / .48), transparent 45%);
}
.hero-content { padding: 50px clamp(36px, 5vw, 70px); }
.hero-eyebrow, .eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero-eyebrow { color: #d5e7fb; }
.hero-eyebrow span { color: var(--gold); font-size: .95rem; letter-spacing: .12em; white-space: nowrap; }
.display {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
}
.hero h1 {
  margin-block: 22px 20px;
  font-size: clamp(3.6rem, 7.35vw, 6.5rem);
  letter-spacing: -.015em;
  line-height: .99;
}
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-description { max-width: 385px; margin-bottom: 28px; color: #d2e0f0; font-size: 1.08rem; }
.button {
  min-height: 49px;
  max-width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.primary { background: var(--blue); color: #061827; }
.primary:not(:disabled):hover { background: var(--blue-hover); }
.primary:disabled { background: #26394f; color: #a7b9cc; }
.secondary { background: #152338; color: var(--ink); border-color: #405770; }
.secondary:hover { background: #233853; border-color: #6d8dad; }
.hero .button { min-height: 54px; padding-inline: 19px; }
.hero .button .icon { margin-left: 9px; }

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  list-style: none;
}
.quick-facts li { display: flex; gap: 13px; align-items: center; padding: 19px 24px; }
.quick-facts li + li { border-left: 1px solid var(--line); }
.fact-icon { width: 41px; height: 41px; display: grid; place-items: center; flex: none; color: var(--blue); background: #172a41; border-radius: 9px; }
.quick-facts strong, .quick-facts div > span { display: block; }
.quick-facts strong { line-height: 1.35; }
.quick-facts div > span { margin-top: 2px; color: var(--muted); font-size: .86rem; }

.stage { width: min(100%, 850px); margin: 12px auto 0; }
.quiz-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; color: #e0eaf8; font-weight: 700; }
.difficulty { padding: 4px 11px; border: 1px solid #3d6e65; border-radius: 99px; color: var(--green); background: #132c2d; font-size: .78rem; }
.difficulty[data-level="1"] { color: var(--blue); background: #142a40; border-color: #305571; }
.difficulty[data-level="2"] { color: var(--gold); background: #30271e; border-color: #675239; }
.progress { height: 7px; margin-bottom: 18px; overflow: hidden; border-radius: 99px; background: #223248; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--blue); transition: width .22s ease-out; }
.panel { padding: clamp(22px, 4.6vw, 46px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.question-panel h1 { margin: 10px 0 24px; font-size: clamp(1.5rem, 3.5vw, 2.35rem); line-height: 1.17; letter-spacing: -.025em; text-wrap: pretty; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.answer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 61px;
  padding: 9px 13px;
  border: 1px solid #384d66;
  border-radius: 9px;
  background: var(--panel-light);
  color: var(--ink);
  text-align: left;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.answer:not([aria-disabled]):hover { background: #1b3450; border-color: var(--blue); }
.answer[aria-disabled="true"] { cursor: default; }
.answer-letter { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 6px; background: #243952; color: #d6e8fa; font-size: .82rem; font-weight: 800; }
.answer[data-state="correct"] { border-color: #6ed4a2; background: #13352f; }
.answer[data-state="correct"] .answer-letter { color: #0a2518; background: var(--green); }
.answer[data-state="incorrect"] { border-color: #e58d77; background: #38262a; }
.answer[data-state="incorrect"] .answer-letter { color: #331810; background: var(--red); }
.feedback:not(:empty) { display: grid; gap: 2px; margin-top: 16px; padding: 11px 14px; border-left: 3px solid var(--blue); border-radius: 4px; background: #172940; color: #dfebf9; font-size: .92rem; }
.feedback[data-result="correct"] { border-color: var(--green); }
.feedback[data-result="incorrect"] { border-color: var(--red); }
.panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.question-panel .panel-actions { justify-content: flex-end; }
.question-panel .button { scroll-margin-block-end: 16px; }
.stage-title { margin-block: 10px; font-size: clamp(2.35rem, 5vw, 4.3rem); letter-spacing: -.01em; line-height: 1.02; }
.sponsor-card { display: flex; flex-direction: column; border: 1px solid #46556d; overflow: hidden; border-radius: 16px; background: radial-gradient(ellipse at 100% 10%, #23496a, #152439 70%); }
.sponsor-main { padding: clamp(19px, 4.5vw, 38px); }
.sponsor-brand { margin-top: 12px; color: #d1dff1; font-weight: 700; overflow-wrap: anywhere; }
.sponsor-heading {
  margin-block: 11px 12px;
  font-size: clamp(1.75rem, 5.6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.037em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.sponsor-heading:focus { outline: none; }
.sponsor-copy { color: #e1ebfa; overflow-wrap: anywhere; }
.sponsor-banner {
  display: flex;
  align-items: center;
  min-height: clamp(105px, 28vw, 220px);
  padding-block: clamp(12px, 2.5vw, 26px);
  padding-inline: clamp(12px, 2.5vw, 26px) 54%;
  border: 1px solid #587548;
  border-radius: 12px;
  background: linear-gradient(90deg, #062f23 4%, rgb(6 47 35 / .92) 32%, transparent 60%),
    #062f23 url("assets/bono-doble.webp") center 58% / cover no-repeat;
  color: #fff3cd;
  font-size: clamp(.95rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.16;
  text-wrap: pretty;
}
.sponsor-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 17px; }
.terms { display: inline-flex; min-height: 44px; align-items: center; color: #d2e5ff; font-size: .88rem; }
.sponsor-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: max(55px, var(--warning-min, 0px));
  padding: 10px clamp(19px, 4.5vw, 38px);
  background: #080f19;
  border-top: 1px solid #46556d;
  color: #f3f7ff;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.3;
}
.sponsor-warning span:first-child { border: 1px solid #99a9bb; border-radius: 6px; padding: 4px 6px; white-space: nowrap; }
.score-actions { justify-content: flex-end; }
.result-panel { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 22px 36px; }
.score { color: var(--blue); font: 800 clamp(4rem, 10vw, 7rem)/.98 var(--display); letter-spacing: -.04em; white-space: nowrap; }
.score span { color: #9fb3ce; font-size: .47em; letter-spacing: 0; }
.result-detail { margin-top: 5px; color: var(--muted); }
.result-time {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: .9rem;
}
.result-time .icon, .result-time strong { color: var(--blue); }
.challenge-outcome { margin-top: 9px; color: var(--blue); font-weight: 700; }
.breakdown { align-self: end; }
.breakdown h2 { margin-bottom: 10px; font-size: .95rem; }
.breakdown ul { padding: 0; border-top: 1px solid var(--line); list-style: none; }
.breakdown li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.breakdown strong { color: var(--ink); }
.result-actions { grid-column: 1 / -1; margin-top: 0; }
#result > .result-actions, .replay-actions { margin-top: 15px; }
.share-status:not(:empty) { flex-basis: 100%; color: var(--blue); font-size: .86rem; }
.share-status:empty { display: none; }
.share-text { width: 100%; padding: 8px 10px; background: var(--page); border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
#result > .sponsor-card { margin-top: 15px; }
.bonus-card { background: linear-gradient(135deg, #173742, var(--panel) 64%); }
.bonus-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
  padding: clamp(17px, 4vw, 34px);
}
.bonus-main h2 {
  margin-block: 6px 8px;
  font-size: clamp(1.55rem, 4vw, 2.3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.bonus-main h2 + p { color: #d9e9f3; }
.bonus-form { display: grid; gap: 8px; min-width: 0; }
.bonus-form > label:first-child { font-weight: 700; }
.bonus-email {
  width: 100%;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid #58718a;
  border-radius: 8px;
  background: #0b1523;
  color: var(--ink);
}
.bonus-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #d9e9f3;
  font-size: .9rem;
  line-height: 1.35;
  cursor: pointer;
}
.bonus-consent input { flex: none; width: 19px; height: 19px; margin: 0; accent-color: var(--blue); }
.bonus-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--blue); font-size: .88rem; }
.bonus-legal a { display: inline-flex; align-items: center; min-height: 32px; }
.bonus-status:not(:empty) { color: var(--blue); font-size: .88rem; }
.bonus-status:empty { display: none; }
.review { margin-top: 15px; padding-inline: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.review summary { padding-block: 14px; cursor: pointer; font-weight: 700; }
.review ol { padding-left: 26px; }
.review li { padding: 12px 0; border-top: 1px solid var(--line); }
.review li p { color: var(--muted); font-size: .9rem; }
.review p.review-correct { color: var(--green); }
.review p.review-incorrect { color: var(--red); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; color: var(--muted); font-size: .78rem; }
.footer-inner span:first-child { font-weight: 700; color: #d3e3f4; }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .hero { min-height: 460px; }
  .hero-content { padding-inline: 30px; }
  .hero-photo { width: 94%; object-position: 60% center; }
  .hero::after { background: linear-gradient(90deg, #0d1a2c 2%, rgb(13 26 44 / .92) 28%, rgb(13 26 44 / .56) 50%, transparent 95%); }
  .quick-facts li { gap: 9px; padding: 13px 10px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 61px; }
  .brand { font-size: 1.12rem; gap: 7px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 8px; }
  .brand-mark .icon { width: 21px; height: 21px; }
  .edition { font-size: .7rem; gap: 6px; padding: 5px 8px; }
  main { padding-block: 15px 24px; }
  .hero { align-items: end; min-height: clamp(395px, 67svh, 470px); border-radius: 15px; }
  .hero-photo { width: 100%; height: 71%; object-position: 72% 25%; }
  .hero::after {
    background:
      linear-gradient(0deg, #0d1a2c 8%, #0d1a2c 26%, rgb(13 26 44 / .84) 45%, transparent 77%),
      linear-gradient(90deg, rgb(13 26 44 / .3), transparent 90%);
  }
  .hero-content { padding: clamp(132px, 25svh, 161px) 17px 23px; }
  .hero-eyebrow { font-size: .64rem; gap: 7px; }
  .hero h1 { margin-block: 12px 13px; font-size: clamp(2.45rem, 11.6vw, 4rem); }
  .hero-description { margin-bottom: 17px; font-size: .95rem; }
  .hero .button { width: 100%; min-height: 48px; }
  .quick-facts { margin-top: 10px; }
  .quick-facts li { display: grid; gap: 6px; align-content: start; justify-items: center; padding: 9px 3px 11px; text-align: center; }
  .fact-icon { width: 29px; height: 29px; border-radius: 7px; }
  .fact-icon .icon { width: 17px; height: 17px; }
  .quick-facts strong { font-size: .76rem; }
  .quick-facts div > span { display: none; }
  .stage { margin-top: 7px; }
  .panel { padding: 17px; border-radius: 13px; }
  .answers { grid-template-columns: 1fr; gap: 7px; }
  .answer { min-height: 52px; padding: 8px 10px; font-size: 1rem; }
  .question-panel h1 { margin-bottom: 15px; }
  .question-panel .button, .sponsor-links .button, .score-actions .button { width: 100%; min-height: 52px; }
  .sponsor-main { padding: 16px; }
  .sponsor-heading { font-size: clamp(1.58rem, 7vw, 2.4rem); }
  .sponsor-links { gap: 3px; }
  .sponsor-links .terms { width: 100%; justify-content: center; }
  .sponsor-warning { padding-inline: 16px; gap: 9px; }
  .panel-actions { margin-top: 15px; }
  .result-panel { grid-template-columns: 1fr; }
  .result-actions, .replay-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .result-actions { margin-top: 0; }
  .result-actions .button, .replay-actions .button { min-height: 52px; }
  .bonus-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .bonus-form .button { min-height: 52px; }
  .footer-inner { min-height: 46px; font-size: .7rem; }
}

@media (max-width: 340px) {
  #sponsor-screen { margin-top: 0; }
  .sponsor-main { padding: 12px; }
  .sponsor-brand { margin-top: 6px; }
  .sponsor-heading { margin-block: 7px 8px; }
  .sponsor-links { margin-top: 10px; }
  .score-actions { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
