@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/InterVariable-latin.woff2") format("woff2");
}

:root {
  --navy: #1a324a;
  --ink: #121826;
  --blue: #0058d8;
  --blue-dark: #004ab6;
  --gold: #c6a15b;
  --green: #22c55e;
  --line: #e4e7ee;
  --muted: #5c6778;
  --placeholder: #667085;
  --danger: #b42318;
  --card-radius: 24px;
  --shadow: 0 14px 40px rgba(18, 40, 70, 0.08), 0 1px 2px rgba(18, 40, 70, 0.04);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skyline {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 230px;
  background: url("../assets/skyline.svg") center bottom / 100% auto no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 0;
}

.page > * {
  min-width: 0;
  max-width: 100%;
}

.brand {
  width: min(100%, 440px);
  margin: 0 auto 14px;
}

.brand img {
  width: min(250px, 86%);
  height: auto;
  margin: 0 auto;
}

main {
  flex: 1;
  width: min(100%, 480px);
  margin: 0 auto;
}

.intro {
  text-align: center;
}

h1,
.q {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

h1 {
  margin: 0;
  font-size: 1.72rem;
  line-height: 1.16;
}

.lede {
  margin: 12px auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
}

.accent {
  color: var(--blue);
  font-weight: 700;
}

h1 .accent {
  font-weight: 800;
}

.progress {
  margin: 18px 0 16px;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  display: block;
}

.dot.is-done {
  width: 16px;
  background: var(--green);
}

.dot.is-current {
  width: 30px;
  background: var(--blue);
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(26, 50, 74, 0.06);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 26px 16px 16px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

legend.q {
  float: none;
  width: 100%;
  padding: 0;
  margin-left: 0;
  margin-right: 0;
}

.q {
  margin: 0 0 18px;
  font-size: 1.18rem;
  line-height: 1.3;
  text-align: center;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.choice-grid .option:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  height: 100%;
  margin: 0;
  padding: 12px 12px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  color: #1f2937;
}

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

.radio {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 2px solid #cfd5df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
}

.option:has(input:checked) {
  border-color: var(--blue);
  background: #f4f8ff;
  box-shadow: 0 0 0 1px var(--blue);
}

.option:has(input:checked) .radio {
  border-color: var(--blue);
}

.option:has(input:checked) .radio::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

input[type="email"],
input[type="tel"],
#nombre,
select {
  width: 100%;
  height: 56px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
}

select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23667085' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

select.is-placeholder {
  color: var(--placeholder);
}

input::placeholder {
  color: var(--placeholder);
}

input[type="email"]:focus,
input[type="tel"]:focus,
#nombre:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 88, 216, 0.16);
}

input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px #fff inset;
}

.phone-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dial {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  flex: 0 0 auto;
}

.dial-code {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.flag {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.phone-row input {
  flex: 1;
  min-width: 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  cursor: pointer;
  text-align: left;
}

.consent-label input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.consent-label input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.consent-short,
.consent-copy {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  color: #3f3a32;
}

.consent-short a,
.consent-copy a,
.site-footer a,
.policy a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pending-tag {
  display: inline-block;
  margin: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3e6c8;
  color: #6e5224;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.form-error {
  min-height: 0;
  margin: 12px 0 0;
  text-align: center;
  color: var(--danger);
  font-size: 0.875rem;
  font-weight: 650;
}

.form-error:empty {
  display: none;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  min-height: 52px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.btn-back {
  flex: 0.92;
  background: #fff;
  color: #374151;
  border-color: #e5e7eb;
}

.btn-slot {
  flex: 1.4;
  display: flex;
  min-width: 0;
}

.btn-slot:has(.btn-next:disabled:not(.is-sending)) {
  cursor: not-allowed;
}

.btn-next {
  flex: 1;
  width: 100%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 50, 140, 0.18);
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-next:disabled,
.btn-next:disabled:hover {
  background: #e4e7ee;
  color: #3a4150;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-next:disabled.is-sending,
.btn-next:disabled.is-sending:hover {
  background: var(--blue);
  color: #fff;
  opacity: 0.88;
  cursor: progress;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.thanks {
  text-align: center;
  padding: 12px 8px 28px;
  outline: none;
}

.check {
  width: 96px;
  height: 96px;
  margin: 28px auto 22px;
  border-radius: 50%;
  background: #e8f1fc;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.thanks h1 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.15;
}

.thanks p {
  margin: 18px auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
}

.thanks-privacy {
  text-align: left;
  width: min(100%, 40rem);
  margin: 28px auto 0;
  padding: 18px 16px 12px;
  background: #fff;
  border: 1px solid rgba(26, 50, 74, 0.08);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.thanks-privacy h2,
.thanks-privacy h3 {
  margin: 18px 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-align: left;
}

.thanks-privacy > h2 {
  margin-top: 0;
}

.thanks-privacy ul {
  margin: 0 0 10px;
  padding-left: 1.2rem;
}

.thanks-privacy li {
  margin: 0 0 8px;
  color: #3f3a32;
  font-size: 1rem;
  line-height: 1.5;
}

.thanks .thanks-privacy p {
  margin: 0 0 10px;
  max-width: none;
  color: #3f3a32;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.thanks-privacy .btn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 6px 0 4px;
  min-height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
}

.thanks-privacy .btn-more:hover {
  background: #f8fafc;
}

.thanks-privacy .btn-more:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.policy-detail {
  margin-top: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.thanks-privacy a {
  display: inline-block;
  padding: 8px 0 6px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy {
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: 4px 2px 12px;
}

.policy h1 {
  margin: 0 0 8px;
  font-size: 1.85rem;
  line-height: 1.15;
  text-align: left;
}

.policy .updated {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.policy h2,
.policy h3 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.policy p,
.policy li {
  margin: 0 0 10px;
  color: #3f3a32;
  font-size: 1rem;
  line-height: 1.5;
}

.policy ul {
  margin: 0 0 10px;
  padding-left: 1.2rem;
}

.policy .back {
  display: inline-block;
  margin-top: 8px;
}

.noscript {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: 12px;
  background: #fbf7ef;
  border: 1.5px dashed var(--gold);
  text-align: center;
}

.site-footer {
  width: min(100%, 640px);
  margin: 22px auto 0;
  padding: 8px 8px 28px;
  text-align: center;
  color: #5c6778;
  font-size: 0.8125rem;
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  display: inline-block;
  padding: 8px 6px;
  font-size: 0.8125rem;
}

@media (hover: hover) {
  .option:hover {
    border-color: #c5cedd;
  }

  .btn-next:hover {
    background: var(--blue-dark);
  }

  .btn-next:disabled:hover {
    background: #e4e7ee;
  }

  .btn-back:hover {
    background: #f8fafc;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:active {
    transform: none;
  }
}

@media (min-width: 800px) {
  .page {
    padding-top: 36px;
  }

  .brand img {
    width: 280px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .lede {
    font-size: 1.15rem;
  }

  .card {
    padding: 32px 26px 22px;
  }

  .q {
    font-size: 1.32rem;
  }

  .skyline {
    height: 300px;
  }

  .thanks h1 {
    font-size: 2.4rem;
  }
}
