@font-face {
  font-family: "Futura PT Cond Extra Bold";
  src: url("fonts/futura-pt-cond-extra-bold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura Book";
  src: url("fonts/FuturaCyrillicBook.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Futura Bold";
  src: url("fonts/FuturaCyrillicBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #16110c;
  --bg-2: #221910;
  --paper: #f6edd8;
  --paper-2: #efe3c8;
  --ink: #24170f;
  --muted: #6b5340;
  --line: #eadfca;
  --line-soft: #ece3d2;
  --rust: #c45c26;
  --rust-dark: #9a3f16;
  --gold: #d4a24a;
  --ok: #2f7a4d;
  --ok-2: #1f5a38;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-title: "Montserrat", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-bold: "Montserrat", sans-serif;
  --font-question: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
}

body.is-landing {
  background: #000;
}

body.is-landing .backdrop,
body.is-landing .grain {
  display: none;
}

.landing {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  color: #fff;
}

.landing[hidden] {
  display: none;
}

.landing__logo {
  width: min(280px, 72vw);
  height: auto;
  margin-bottom: 36px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.landing h1 {
  margin: 0 0 18px;
  max-width: 16ch;
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 4.6vw, 2.55rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.landing__lead {
  margin: 0 0 32px;
  max-width: 460px;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.landing__cta {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 16px 34px;
  background: linear-gradient(90deg, #ffd54a 0%, #f5a623 48%, #ff7a18 100%);
  color: #111;
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(255, 140, 0, 0.35);
}

.landing__cta:hover {
  filter: brightness(1.05);
}

.landing__note {
  margin: 28px 0 0;
  max-width: 380px;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.backdrop {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(18, 12, 8, 0.55) 0%, rgba(18, 12, 8, 0.72) 100%),
    url("images/fundo-hospedes.jpg") center / cover no-repeat;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 32px));
  max-width: 100%;
  margin: 40px auto 80px;
}

.brand {
  text-align: center;
  color: #f6edd8;
  margin-bottom: 28px;
}

.brand__kicker {
  margin: 0 0 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-title);
  font-size: 0.86rem;
  color: var(--gold);
}

.brand h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}

.brand__name {
  margin: 10px 0 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8d3b0;
}

.progress {
  margin: 0 0 16px;
  color: #e8d3b0;
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-title);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.progress__track {
  height: 6px;
  border-radius: 999px;
  background: rgba(246, 237, 216, 0.16);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--rust), var(--gold));
  transition: width 0.35s ease;
}

.card {
  color: var(--ink);
  color-scheme: light;
  background: var(--paper);
  border-radius: 22px;
  padding: 32px 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 244, 220, 0.18);
  max-width: 100%;
  overflow-x: hidden;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rust);
  margin-bottom: 18px;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.ornament span {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.intro h2,
.section-title {
  font-family: var(--font-title);
  font-size: 1.95rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.intro p,
.lede,
.help {
  color: var(--muted);
  line-height: 1.6;
}

.prizes strong {
  font-family: var(--font-title);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prizes {
  margin: 22px 0 8px;
  padding: 16px 18px;
  background: var(--paper-2);
  border-left: 4px solid var(--rust);
  border-radius: 0 12px 12px 0;
}

.prizes ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ink);
}

.prizes li + li {
  margin-top: 6px;
}

.field {
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-question);
}

.field:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.field__code {
  display: inline-block;
  font-family: var(--font-question);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--rust-dark);
  font-weight: 500;
  margin-bottom: 6px;
}

.field legend,
.field__label {
  display: block;
  font-family: var(--font-question);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.4;
  margin: 0 0 12px;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.req {
  color: var(--rust);
  margin-left: 4px;
}

.hint {
  display: block;
  margin: -6px 0 12px;
  font-family: var(--font-question);
  color: var(--muted);
  font-size: 0.9rem;
}

.choices {
  display: grid;
  gap: 8px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fffaf0;
  font-family: var(--font-question);
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.choice:hover {
  border-color: #c9ae86;
}

.choice:has(input:checked) {
  border-color: var(--rust);
  background: #fbe8d6;
}

.choice:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.choice input {
  margin-top: 3px;
  accent-color: var(--rust);
}

.other-input,
.text-input,
.textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fffaf0;
  font: inherit;
  color: var(--ink);
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.text-input:focus,
.textarea:focus,
.other-input:focus {
  outline: 2px solid #c45c26aa;
  border-color: var(--rust);
}

.scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(36px, 1fr));
  gap: 6px;
  max-width: 100%;
}

.scale__btn {
  min-width: 0;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: #fffaf0;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  color: var(--ink);
}

.scale__btn.is-active,
.choice-scale input:checked + span {
  background: var(--rust);
  color: #fffaf0;
  border-color: var(--rust-dark);
}

.scale-wrap {
  display: grid;
  gap: 8px;
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}

.grid {
  display: grid;
  gap: 14px;
  max-width: 100%;
}

.grid__row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.grid__name {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.grid__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.grid__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 40px;
  padding: 8px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fffaf0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.grid__opt:has(input:checked) {
  border-color: var(--rust);
  background: #fbe8d6;
}

.grid__opt input {
  accent-color: var(--rust);
  margin: 0;
}

.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn--primary {
  background: linear-gradient(180deg, #d86a2e, var(--rust-dark));
  color: #fff8ec;
  box-shadow: 0 10px 20px rgba(154, 63, 22, 0.28);
  margin-left: auto;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.error {
  margin-top: 8px;
  color: #9a2416;
  font-size: 0.88rem;
  font-weight: 600;
}

.field.is-invalid .choice,
.field.is-invalid .text-input,
.field.is-invalid .textarea,
.field.is-invalid .grid__opt {
  border-color: #c45c4a;
}

.hidden {
  display: none !important;
}

.success {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(800px 500px at 50% 30%, #4a2f1c 0%, transparent 60%),
    #120d09;
  color: #f6edd8;
  text-align: center;
}

.success[hidden] {
  display: none !important;
}

.success__stage {
  width: min(560px, 100%);
}

.brand-mark {
  position: relative;
  width: min(320px, 78vw);
  margin: 0 auto 18px;
}

.success.is-on .brand-mark {
  animation: logo-drop 0.9s cubic-bezier(0.18, 0.9, 0.32, 1.2) both;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.35));
}

.brand-mark__check {
  position: absolute;
  right: -6px;
  bottom: 18px;
  width: 84px;
  height: 84px;
  opacity: 0;
}

.success.is-on .brand-mark__check {
  animation: check-pop 0.45s 0.95s cubic-bezier(0.2, 1.4, 0.3, 1) both;
}

.brand-mark__check svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
}

.brand-mark__check circle {
  fill: var(--ok);
  stroke: #f6edd8;
  stroke-width: 3;
}

.brand-mark__tick {
  fill: none;
  stroke: #f6edd8;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}

.success.is-on .brand-mark__tick {
  animation: tick-draw 0.4s 1.15s ease forwards;
}

.success h2 {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.success.is-on h2 {
  animation: fade-up 0.5s 1.25s both;
}

.success p {
  margin: 0;
  color: #e8d3b0;
  line-height: 1.65;
}

.success.is-on p {
  animation: fade-up 0.5s 1.4s both;
}

.success__timer {
  margin-top: 22px !important;
  font-family: var(--font-title);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold) !important;
}

@keyframes logo-drop {
  from {
    opacity: 0;
    transform: translateY(-180px) scale(0.86);
  }
  70% {
    transform: translateY(10px) scale(1.03);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes check-pop {
  from {
    opacity: 0;
    transform: scale(0.2) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes tick-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.field--photo {
  border-top: 0;
  padding-top: 8px;
}

.field--selfie {
  border-top: 0;
  padding-top: 0;
}

.selfie {
  display: grid;
  gap: 16px;
}

.selfie__preview {
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  border-radius: 20px;
  background: #1a120c;
  color: #f6edd8;
  font-weight: 600;
}

.selfie__preview img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.selfie__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd54a 0%, #f5a623 48%, #ff7a18 100%);
  color: #111;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.selfie__btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-view {
  margin: 0;
}

.photo-view picture,
.photo-view img {
  display: block;
  width: 100%;
}

.photo-view img {
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #1a120c;
}

.photo-view figcaption {
  margin-top: 10px;
  font-weight: 700;
  color: var(--ink);
}

.photo-slot {
  margin-top: 4px;
}

.photo-slot__frame {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 220px;
  padding: 24px 18px;
  border: 2px dashed #c45c26;
  border-radius: 16px;
  background:
    repeating-linear-gradient(
      45deg,
      #fff8ee,
      #fff8ee 12px,
      #f4e6cc 12px,
      #f4e6cc 24px
    );
  text-align: center;
  color: var(--ink);
}

.photo-slot__mark {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--rust);
  color: #fff8ee;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-slot__frame strong {
  font-size: 1.05rem;
}

.photo-slot__frame em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36ch;
}

@media (max-width: 640px) {
  .card {
    padding: 22px 16px 18px;
  }

  .scale {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .scale__btn {
    height: 40px;
  }

  .nav {
    flex-direction: column-reverse;
  }

  .btn--primary,
  .btn--ghost {
    width: 100%;
    margin: 0;
  }
}
