:root {
  --blue-900: #001456;
  --blue-800: #00206f;
  --blue-700: #00318e;
  --blue-text: #061b62;
  --yellow: #ffc400;
  --yellow-2: #ffda2b;
  --red: #ff315a;
  --green: #27dd31;
  --card: #fffdf8;
  --line: rgba(7, 32, 97, .16);
  --shadow: 0 18px 42px rgba(0, 13, 54, .25);
  --radius: 28px;
  --font: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: #eef3fb;
  color: var(--blue-text);
  display: grid;
  place-items: center;
}
.phone-shell {
  width: min(100vw, 520px);
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--blue-900);
  border-radius: clamp(0px, 3vw, 30px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
}
.screen {
  min-height: 100svh;
  position: relative;
  display: none;
  overflow: hidden;
  padding: 34px 22px calc(26px + env(safe-area-inset-bottom));
}
.screen.is-active { display: block; }
.kv-bg {
  position: absolute;
  inset: 0;
  background: url('../img/bg_kv.jpg') center top / cover no-repeat #001456;
  z-index: 0;
}
.kv-bg::before {
  /* reserva: atenúa el fondo para que no compita con textos y tarjetas */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 16, 69, .30) 0%, rgba(0, 16, 69, .10) 26%, rgba(0, 16, 69, .28) 62%, rgba(0, 16, 69, .48) 100%);
}
.hero, .card, .quiz-nav, .mascot { position: relative; z-index: 1; }
.hero { text-align: center; color: #fff; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 4px;
}
.logo-register { width: clamp(115px, 32vw, 160px); display: block; margin: 0; }
.claim-img { width: clamp(185px, 52vw, 255px); display: block; filter: drop-shadow(0 3px 8px rgba(0, 8, 40, .6)); }
.title-img { width: min(58%, 260px); display: block; margin: 4px auto 6px; filter: drop-shadow(0 4px 10px rgba(0, 8, 40, .5)); }
.title-img-small { width: 100%; max-width: 175px; display: block; margin-bottom: 8px; filter: drop-shadow(0 3px 8px rgba(0, 8, 40, .5)); }
.subtitle {
  margin: 0;
  font-size: clamp(17px, 4.6vw, 21px);
  line-height: 1.08;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.event-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-top: 2px solid var(--yellow);
  margin-top: 10px;
  padding-top: 7px;
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.event-line span { color: var(--yellow); filter: saturate(1.2); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.register-card {
  margin: 16px auto 0;
  padding: 22px 20px 18px;
  max-width: 438px;
}
.register-card h2 {
  margin: 0 0 15px;
  font-size: 15.5px;
  line-height: 1.25;
  text-align: center;
  color: var(--blue-text);
}
.field {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
  padding: 0 14px;
  background: rgba(255,255,255,.82);
  border: 1.7px solid #d9dee9;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.02);
}
.field-icon { width: 20px; font-size: 15px; opacity: .72; }
.field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--blue-text);
  font: 600 14.5px var(--font);
}
.field input::placeholder { color: #7e879a; font-weight: 500; }
.check {
  display: grid;
  grid-template-columns: 21px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--blue-text);
  font-weight: 700;
  line-height: 1.18;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span {
  width: 21px;
  height: 21px;
  border: 1.8px solid #09258b;
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.check input:checked + span { background: var(--yellow); border-color: var(--yellow); }
.check input:checked + span::after { content: "✓"; color: var(--blue-text); font-size: 15px; font-weight: 900; line-height: 1; }
.check-main { font-size: 11.6px; margin: 12px 0 8px; padding-right: 84px; }
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 24px;
  margin: 12px 0 18px;
  padding-left: 0;
  padding-right: 88px;
}
.channel-grid .check { font-size: 12.5px; }
.legal { font-size: 12.5px; margin: 12px 0; padding-top: 2px; padding-right: 92px; }
.legal-text { font-style: normal; }
a { color: #062b91; text-decoration: underline; }
.form-error { margin: 8px 0 10px; font-size: 12.5px; color: #c41130; font-weight: 700; padding-right: 104px; position: relative; z-index: 2; }
.btn {
  border: 0;
  border-radius: 13px;
  height: 48px;
  padding: 0 22px;
  font: 900 16.5px/1 var(--font);
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .52; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, #ffd72e 0%, #ffc100 100%);
  color: #082574;
  box-shadow: 0 7px 0 rgba(198, 137, 0, .45), 0 12px 24px rgba(255, 196, 0, .22);
}
.btn-secondary {
  background: #fff;
  color: #082574;
  border: 2px solid #09258b;
  box-shadow: 0 6px 0 rgba(0, 27, 100, .08);
}
.btn-start { width: min(100%, 270px); margin-top: 6px; display: block; margin-left: auto; margin-right: auto; }
.btn span { font-size: 1.12em; }
.mascot-register {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 122px;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 13, 54, .35));
}
.btn-start { position: relative; z-index: 2; }
.hero-compact {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 10px;
  align-items: start;
  text-align: left;
  margin-top: 24px;
}
.hero-left .subtitle { font-size: clamp(16px, 4.4vw, 19px); text-align: left; }
.hero-left .event-line { display: block; font-size: 11px; margin-top: 8px; }
.logo-small { width: 128px; display: block; margin-left: auto; }
.nutrivit { margin: 2px 0 5px auto; width: 112px; text-align: center; background: #ed1b24; color: #fff; font-size: 20px; font-weight: 1000; padding: 4px 7px; }
.vitamins { display: flex; justify-content: flex-end; gap: 2px; margin-bottom: 8px; }
.vitamins span { width: 34px; height: 34px; border-radius: 50%; color: #fff; display: grid; place-items: center; text-align: center; font-size: 8px; font-weight: 900; line-height: .9; }
.vitamins span:nth-child(1){ background:#c43b9d; }
.vitamins span:nth-child(2){ background:#10a9df; }
.vitamins span:nth-child(3){ background:#2ab34b; }
.vitamins span:nth-child(4){ background:#f8b617; }
.nutrivit-block p { margin: 0; padding: 9px 8px; color: #fff; border: 2px solid var(--yellow); border-radius: 10px; text-align: center; font-size: 11.5px; line-height: 1.12; }
.progress-card { margin: 22px 0 14px; padding: 13px 24px 15px; text-align: center; }
.progress-card strong { display: block; font-size: 13.5px; margin-bottom: 12px; }
.progress-dots { display: flex; align-items: center; justify-content: space-between; position: relative; }
.progress-dots::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; height: 2px; background: #d5d5d5; transform: translateY(-50%); }
.dot { width: 14px; height: 14px; border-radius: 50%; background: #d9d9d9; position: relative; z-index: 1; box-shadow: 0 0 0 2px #fff; }
.dot.active { background: #002a83; }
.question-card { padding: 26px 22px 24px; text-align: center; min-height: 400px; }
.question-card h2 { font-size: 15.5px; line-height: 1.25; margin: 0 0 14px; }
.question-card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.35; font-weight: 600; padding-right: 104px; text-align: left; }
.answers { display: grid; gap: 12px; padding-right: 104px; }
.answer-btn {
  min-height: 46px;
  border: 2px solid #09258b;
  color: #092167;
  background: #fff;
  border-radius: 13px;
  font: 900 14.5px var(--font);
  cursor: pointer;
}
.answer-btn.is-selected { background: #fff7cf; border-color: var(--yellow); box-shadow: inset 0 0 0 3px var(--yellow); }
.quiz-nav { display: flex; justify-content: center; margin: 20px 0 0; }
.quiz-nav .btn { height: 46px; font-size: 15px; width: min(100%, 270px); }
.mascot-card {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 122px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(0, 13, 54, .35));
}
.feedback-head { margin-top: 30px; }
.feedback-card { margin-top: 28px; padding: 30px 22px 26px; min-height: 400px; text-align: center; }
.feedback-icon { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 16px; border: 6px solid var(--green); color: var(--green); display: grid; place-items: center; font-size: 40px; font-weight: 900; line-height: 1; }
.feedback-icon.wrong { border-color: var(--red); color: var(--red); font-size: 38px; }
.feedback-card h2, .done-card h2 { font-size: 15.5px; line-height: 1.25; margin: 0 0 12px; }
.feedback-card p { font-size: 14.5px; line-height: 1.4; margin: 0 0 24px; padding-right: 104px; text-align: left; }
.feedback-card .btn { min-width: 190px; margin-right: 104px; }
.done-logo { margin-top: 8px; }
.done-card { margin-top: 30px; padding: 30px 22px 26px; min-height: 430px; text-align: center; }
.done-card p { font-size: 14.5px; line-height: 1.4; margin: 0 0 16px; padding-right: 104px; text-align: left; }
.score-box { margin: 16px auto 16px 0; padding: 12px 16px; width: min(100%, 250px); background: #fff7d2; border-radius: 13px; font-size: 14.5px; text-align: center; }
.small-copy { font-size: 12px !important; opacity: .86; padding-right: 104px; }
.restart-btn { position: absolute; left: 50%; transform: translateX(-50%); bottom: 10px; width: min(88%, 280px); font-size: 15px; z-index: 3; }
.screen-done { padding-bottom: 72px; }
@media (max-width: 390px) {
  .screen { padding-left: 18px; padding-right: 18px; }
  .register-card { padding: 22px 18px 18px; min-height: 640px; }
  .mascot-register { width: 104px; right: -8px; }
  .channel-grid { gap: 10px 16px; }
  .hero-compact { grid-template-columns: 1fr 132px; }
  .question-card { padding-inline: 20px; }
  .question-card p { font-size: 16.5px; }
  .mascot-card { width: 104px; }
  .question-card p, .answers, .feedback-card p, .done-card p, .small-copy, .form-error { padding-right: 92px; }
  .feedback-card .btn { margin-right: 92px; }
}
@media (min-width: 760px) {
  body { padding: 28px; }
  .phone-shell { width: min(60vw, 520px); min-height: 0; }
  .screen { min-height: 860px; }
}
