/* ═══════════════════════════════════════════════════
   TYPEFORM EMBEBIDO · Vacía Tu Piso
   Wizard por pasos, paleta marca, responsive
   ═══════════════════════════════════════════════════ */

.vtf {
  --vtf-accent-deep: #14712A;
  --vtf-accent: #2BB03C;
  --vtf-accent-lime: #8BC53F;
  --vtf-accent-soft: #E6F4D8;
  --vtf-accent-ink: #0B3F17;
  --vtf-ink: #1a261d;
  --vtf-ink-soft: #4a5448;
  --vtf-line: rgba(11,63,23,.12);

  font-family: 'DM Sans', 'Figtree', system-ui, sans-serif;
  background: #fff;
  border: 1px solid var(--vtf-line);
  border-radius: 22px;
  padding: 36px 40px;
  max-width: 720px;
  margin: 48px auto;
  box-shadow: 0 24px 60px -28px rgba(11,63,23,.25), 0 0 0 1px rgba(255,255,255,.6) inset;
  position: relative;
  overflow: hidden;
}
.vtf::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--vtf-accent-deep), var(--vtf-accent), var(--vtf-accent-lime));
}

.vtf-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vtf-accent-deep); font-weight: 700;
}
.vtf-head .label { color: var(--vtf-accent-deep); }
.vtf-head .pct { color: var(--vtf-ink-soft); }

.vtf-bar { height: 4px; background: var(--vtf-accent-soft); border-radius: 4px; overflow: hidden; margin-bottom: 28px; }
.vtf-bar-fill { height: 100%; background: linear-gradient(90deg, var(--vtf-accent-deep), var(--vtf-accent-lime)); border-radius: 4px; width: 0%; transition: width .45s cubic-bezier(.2,.7,.2,1); }

.vtf-step {
  display: none;
  animation: vtfFadeUp .45s cubic-bezier(.2,.7,.2,1);
}
.vtf-step.active { display: block; }
@keyframes vtfFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .vtf-step { animation: none; } }

.vtf-q {
  font-family: 'Figtree', sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800; color: var(--vtf-ink);
  line-height: 1.2; letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.vtf-q em { color: var(--vtf-accent-deep); font-style: normal; }
.vtf-hint { font-size: 13.5px; color: var(--vtf-ink-soft); margin: 0 0 22px; font-style: italic; }

.vtf-input, .vtf-textarea {
  width: 100%; padding: 14px 16px;
  font-family: inherit; font-size: 16px; color: var(--vtf-ink);
  background: #fbfaf4;
  border: 1.5px solid var(--vtf-line); border-radius: 12px;
  transition: border .2s, background .2s, box-shadow .2s;
}
.vtf-input:focus, .vtf-textarea:focus {
  outline: none; border-color: var(--vtf-accent-deep);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43,176,60,.15);
}
.vtf-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.vtf-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vtf-opts.one { grid-template-columns: 1fr; }
.vtf-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: #fbfaf4;
  border: 1.5px solid var(--vtf-line); border-radius: 12px;
  font-size: 15px; font-weight: 500; color: var(--vtf-ink);
  cursor: pointer; text-align: left;
  transition: all .2s;
  font-family: inherit;
}
.vtf-opt:hover { border-color: var(--vtf-accent-deep); background: var(--vtf-accent-soft); }
.vtf-opt.sel { background: var(--vtf-accent-deep); color: #fff; border-color: var(--vtf-accent-deep); box-shadow: 0 6px 16px -6px rgba(20,113,42,.4); }
.vtf-opt.sel::before { content: "✓"; font-weight: 800; margin-right: 6px; }

.vtf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) {
  .vtf { padding: 28px 22px; border-radius: 16px; }
  .vtf-opts, .vtf-grid2 { grid-template-columns: 1fr; }
}

.vtf-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 28px;
}
.vtf-back {
  background: transparent; color: var(--vtf-ink-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  padding: 11px 16px; border-radius: 8px;
  border: 1.5px solid var(--vtf-line); cursor: pointer;
  transition: all .2s;
}
.vtf-back:hover { border-color: var(--vtf-accent-deep); color: var(--vtf-accent-deep); }
.vtf-back:disabled { opacity: 0; pointer-events: none; }

.vtf-next, .vtf-submit {
  background: var(--vtf-accent-deep); color: #fff;
  font-family: 'Figtree', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: .03em;
  padding: 14px 26px; border: none; border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 0 #0a3f17, 0 10px 22px -6px rgba(20,113,42,.4);
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.vtf-next:hover, .vtf-submit:hover { background: var(--vtf-accent); transform: translateY(-2px); box-shadow: 0 4px 0 #0a3f17, 0 14px 26px -6px rgba(20,113,42,.5); }
.vtf-submit { background: var(--vtf-accent-lime); color: var(--vtf-accent-ink); box-shadow: 0 2px 0 #6fa52c, 0 10px 22px -6px rgba(139,197,63,.5); }
.vtf-submit:hover { background: var(--vtf-accent); color: #fff; }

.vtf-alt {
  margin-top: 16px; text-align: center;
  font-size: 13px; color: var(--vtf-ink-soft);
}
.vtf-alt a { color: var(--vtf-accent-deep); font-weight: 700; text-decoration: none; }
.vtf-alt a:hover { text-decoration: underline; }

.vtf-trust {
  display: block; text-align: center;
  margin-top: 14px;
  font-size: 12px; color: var(--vtf-ink-soft); font-style: italic;
  padding-top: 14px; border-top: 1px dashed var(--vtf-line);
}

.vtf-done {
  text-align: center; padding: 18px 8px 4px;
}
.vtf-done .check {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--vtf-accent-soft); color: var(--vtf-accent-deep);
  display: grid; place-items: center; margin: 0 auto 16px;
  font-weight: 900; font-size: 28px;
}
.vtf-done h3 { font-family: 'Figtree', sans-serif; font-weight: 800; font-size: 22px; color: var(--vtf-ink); margin: 0 0 6px; }
.vtf-done p { color: var(--vtf-ink-soft); margin: 0; font-size: 14.5px; }
