.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(120% 90% at 85% 0%, #8b5cf6 0%, rgba(101, 40, 229, 0) 55%),
    linear-gradient(160deg, #6528e5 0%, #3d18a0 45%, #1c0b42 100%);
  padding-bottom: clamp(96px, 12vw, 150px);
}
.hero__shapes .shape { position: absolute; background: rgba(255, 255, 255, 0.08); pointer-events: none; }
.shape--top { top: -40%; left: 4%; width: 120%; height: 64%; border-radius: 0 0 0 400px; }
.shape--pill { top: 38%; left: 4%; width: 66%; height: 92%; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.shape--dot { top: 38%; right: -12%; width: 34%; aspect-ratio: 1; border-radius: 50%; }

.nav { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 28px 0; font-size: 1rem; }
.nav__link { color: rgba(255, 255, 255, 0.8); font-size: 0.875rem; text-decoration: none; }
.nav__link:hover { color: #fff; }

.hero__body {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  padding-top: clamp(32px, 7vw, 88px);
}
.hero h1 {
  color: #fff;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 22px 0 22px;
}
.hero h1 strong { font-weight: 700; display: block; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, 0.82); max-width: 34em; margin-bottom: 34px; }

.checklist {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 30px 80px -30px rgba(10, 2, 35, 0.6);
}
.checklist__title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--violeta-40); margin-bottom: 14px; }
.checklist ul { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 18px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-weight: 500; line-height: 1.35; }
.checklist li small { grid-column: 2; font-weight: 400; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; }
.check { width: 18px; height: 18px; border-radius: 50%; background: #fff; position: relative; top: 1px; }
.check::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--violeta); }
.checklist__bars { display: flex; gap: 8px; margin-top: 20px; }
.checklist__bars span { height: 14px; border-radius: 99px; background: var(--violeta); }
.checklist__bars span:nth-child(1) { width: 56px; background: #fff; opacity: 0.9; }
.checklist__bars span:nth-child(2) { width: 34px; background: var(--aurora); }
.checklist__bars span:nth-child(3) { width: 14px; background: #fff; }

/* ---------- Pasos ---------- */
.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -64px;
}
.step { background: #fff; border: 1px solid var(--linea); border-radius: 20px; padding: 26px 26px 28px; box-shadow: var(--sombra); }
.step__n { display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--violeta); margin-bottom: 18px; }
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.9rem; }

/* ---------- Formulario ---------- */
.form-area {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  padding: clamp(72px, 9vw, 120px) 0 120px;
  scroll-margin-top: 8px;
}
.form-nav { position: sticky; top: 32px; align-self: start; }
.form-nav h2 { font-weight: 400; font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1.08; margin: 16px 0 32px; }
.form-nav h2 strong { font-weight: 700; display: block; }
.form-nav__note { font-size: 0.82rem; margin-top: 28px; padding-left: 14px; border-left: 3px solid var(--violeta); }
.form-nav__note b { color: var(--violeta); }

.progress { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.progress li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--linea);
  font-size: 0.92rem; color: var(--gris);
  transition: color 200ms ease;
}
.progress li:last-child { border-bottom: 1px solid var(--linea); }
.progress li span {
  flex: none; width: 28px; height: 14px; border-radius: 99px;
  background: var(--violeta-20);
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 200ms ease;
}
.progress li.is-active { color: var(--medianoche); font-weight: 600; }
.progress li.is-active span { width: 44px; background: var(--violeta-60); }
.progress li.is-done span { width: 14px; background: var(--violeta); }
.progress li.is-done { color: var(--medianoche); }

.form { display: grid; gap: 20px; min-width: 0; }
.card {
  margin: 0;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.card__head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 0; margin-bottom: 4px;
  font-size: 1.25rem; font-weight: 700; color: var(--medianoche); letter-spacing: -0.02em;
  float: left; width: 100%;
}
.card__head + * { clear: both; }
.card__n {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 28px; padding: 0 10px;
  border-radius: 99px; background: var(--lila);
  color: var(--violeta); font-size: 0.8rem; font-weight: 700; letter-spacing: 0;
}
.tag--soft { font-size: 0.7rem; letter-spacing: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.field > label, .label { font-size: 0.9rem; font-weight: 500; color: var(--medianoche); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.field b { color: var(--violeta); font-weight: 600; }
.opt { font-size: 0.75rem; font-weight: 400; color: var(--gris); background: var(--blanco-humo); border: 1px solid var(--linea); padding: 1px 9px; border-radius: 99px; }
.hint { font-size: 0.8rem; }
.hint--top { margin-top: -4px; }

input:not([type='checkbox']):not([type='file']), textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  font: 400 1rem/1.4 var(--font);
  color: var(--medianoche);
  background: var(--blanco-humo);
  border: 1.5px solid var(--linea);
  border-radius: 14px;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  -webkit-appearance: none;
  appearance: none;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: #a9a4b5; }
input:hover, textarea:hover { border-color: var(--violeta-40); }
input:focus, textarea:focus { outline: none; background: #fff; border-color: var(--violeta); box-shadow: 0 0 0 4px var(--violeta-10); }
.field.is-invalid input, .field.is-invalid .drop { border-color: var(--coral); background: #fff; }
.field-error { font-size: 0.8rem; color: #c43d5a; }
.mt { margin-top: 4px; }

.affix { position: relative; }
.affix span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--violeta-60); font-weight: 500; pointer-events: none; }
.affix input { padding-left: 38px !important; }

/* Dropzone */
.drop {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  padding: 22px;
  border: 1.5px dashed var(--violeta-40);
  border-radius: 18px;
  background: var(--lila);
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease-out;
}
.drop:hover { border-color: var(--violeta); }
.drop:active { transform: scale(0.99); }
.drop.is-over { background: var(--violeta-20); border-color: var(--violeta); border-style: solid; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { box-shadow: 0 0 0 4px var(--violeta-10); border-color: var(--violeta); }
.drop__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--violeta); }
.drop__icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.drop__text { color: var(--medianoche); font-size: 0.95rem; }
.drop__text strong { color: var(--violeta); font-weight: 600; }
.drop__text small { display: block; color: var(--gris); font-size: 0.78rem; margin-top: 2px; }
.drop--compact { padding: 16px 20px; }
.drop--compact .drop__icon { width: 40px; height: 40px; }

.files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.files:empty, .thumbs:empty { display: none; }
.file {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--linea); border-radius: 14px; background: #fff;
  animation: pop-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.file__ext { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--lila); color: var(--violeta); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.file__name { flex: 1; min-width: 0; font-size: 0.88rem; color: var(--medianoche); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file__size { font-size: 0.75rem; color: var(--gris); }
.remove {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: transparent; color: var(--gris); cursor: pointer; font-size: 1.1rem; line-height: 1;
  transition: background-color 120ms ease, color 120ms ease, transform 100ms ease-out;
}
.remove:hover { background: var(--coral-12); color: var(--coral); }
.remove:active { transform: scale(0.9); }

.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--lila); animation: pop-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__ph { display: grid; place-items: center; height: 100%; font-size: 0.7rem; font-weight: 600; color: var(--violeta); padding: 6px; text-align: center; word-break: break-all; }
.thumb .remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; background: rgba(28, 11, 66, 0.7); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.thumb .remove:hover { background: var(--coral); color: #fff; }
.thumb--empty { border: 1.5px dashed var(--violeta-20); background: transparent; animation: none; }

.counter { margin-left: auto; font-size: 0.78rem; font-weight: 600; color: var(--violeta); background: var(--lila); padding: 2px 10px; border-radius: 99px; transition: background-color 200ms ease, color 200ms ease; }
.counter.is-full { background: var(--violeta); color: #fff; }

@keyframes pop-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* Referencias */
.refs { display: grid; gap: 10px; }
.ref { display: flex; gap: 8px; align-items: center; }
.ref input { flex: 1; }
.link-btn { justify-self: start; border: 0; background: none; padding: 6px 0; font: 500 0.9rem var(--font); color: var(--violeta); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn[hidden] { display: none; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 99px; border: 1.5px solid var(--linea); background: #fff;
  font-size: 0.9rem; font-weight: 500; color: var(--medianoche);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 100ms ease-out;
}
.chip span::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--violeta-40); transition: inherit; }
.chip:hover span { border-color: var(--violeta-40); }
.chip:active span { transform: scale(0.96); }
.chip input:checked + span { background: var(--violeta); border-color: var(--violeta); color: #fff; }
.chip input:checked + span::before { background: #fff; border-color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--violeta-20); }

/* Envío */
.submit-row { display: grid; gap: 14px; justify-items: start; padding-top: 8px; }
.btn--lg { min-height: 60px; padding: 0 2.2em; font-size: 1.05rem; }
.errors { width: 100%; padding: 16px 20px; border-radius: 14px; background: var(--coral-12); color: #a82e48; font-size: 0.9rem; }
.errors ul { margin: 6px 0 0; padding-left: 18px; }
.upload-bar { width: 100%; height: 8px; border-radius: 99px; background: var(--violeta-10); overflow: hidden; }
.upload-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--aurora); transition: width 160ms linear; }

/* Éxito */
.done { grid-column: 1 / -1; justify-self: center; width: min(720px, 100%); justify-items: center; text-align: center; padding: clamp(32px, 6vw, 56px); animation: pop-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.done:focus { outline: none; }
.done__mark { width: 64px; height: 64px; border-radius: 50%; background: var(--violeta); display: grid; place-items: center; }
.done__mark svg { width: 30px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.done h2 strong { font-weight: 700; }
.done p { max-width: 34em; }

/* Footer */
.footer { background: var(--medianoche); color: rgba(255, 255, 255, 0.7); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 0.875rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer a { color: #fff; text-decoration: none; }
.footer .logo { font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__body { grid-template-columns: 1fr; gap: 40px; }
  .form-area { grid-template-columns: 1fr; gap: 32px; }
  .form-nav { position: static; }
  .form-nav h2 { margin-bottom: 0; }
  .progress, .form-nav__note { display: none; }
}
@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; margin-top: -56px; gap: 10px; }
  .step { padding: 20px 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .step__n { grid-row: span 2; margin: 3px 0 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .card__head { font-size: 1.08rem; gap: 10px; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .drop { padding: 18px; gap: 14px; }
  .btn--lg { width: 100%; }
  .submit-row { justify-items: stretch; }
  .shape--pill { width: 120%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .checklist { background: #2a1260; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
