/* ═══════════════════════════════════════════════════
   FORMULARIO GLOBAL · Vacía Tu Piso
   Pestaña lateral PC + barra inferior móvil + modal
   Colores oficiales de marca · profesional · no promete gratis
   ═══════════════════════════════════════════════════ */

:root {
  --vtp-accent-deep: #14712A;
  --vtp-accent: #2BB03C;
  --vtp-accent-lime: #8BC53F;
  --vtp-accent-soft: #E6F4D8;
  --vtp-accent-ink: #0B3F17;
}

/* ── PESTAÑA LATERAL (PC) ── */
.vtp-tab {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9000;
  background: var(--vtp-accent-deep);
  color: #fff;
  font-family: 'Figtree', 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 22px 12px;
  border: none;
  border-radius: 14px 0 0 14px;
  cursor: pointer;
  box-shadow: -6px 12px 28px -10px rgba(11,63,23,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background .2s;
  animation: vtpTabPulse 6.5s ease-in-out infinite;
}
.vtp-tab:hover {
  background: var(--vtp-accent);
  transform: translateY(-50%) translateX(-4px);
  box-shadow: -10px 16px 36px -10px rgba(11,63,23,.55), 0 0 0 1px var(--vtp-accent-lime) inset;
}
.vtp-tab:focus-visible {
  outline: 2px solid var(--vtp-accent-lime);
  outline-offset: 3px;
}
.vtp-tab.vtp-tab-quiet { animation: none; }

@keyframes vtpTabPulse {
  0%, 88%, 100% {
    transform: translateY(-50%) translateX(0);
    box-shadow: -6px 12px 28px -10px rgba(11,63,23,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
  }
  92% {
    transform: translateY(-50%) translateX(-3px);
    box-shadow: -8px 14px 32px -10px rgba(11,63,23,.5), 0 0 0 2px var(--vtp-accent-lime), 0 0 22px rgba(139,197,63,.45);
  }
  96% {
    transform: translateY(-50%) translateX(-1px);
    box-shadow: -6px 12px 28px -10px rgba(11,63,23,.45), 0 0 0 1px rgba(139,197,63,.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vtp-tab { animation: none !important; }
  .vtp-tab:hover { transform: translateY(-50%); }
}

/* ── BARRA INFERIOR MÓVIL ── */
.vtp-mbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(11,63,23,.1);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -10px rgba(11,63,23,.18);
}
.vtp-mbar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
}
.vtp-mbar a, .vtp-mbar button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: 'Figtree', sans-serif;
  font-weight: 700; font-size: 13px;
  text-decoration: none; cursor: pointer;
  padding: 12px 8px; border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .2s, background .2s;
}
.vtp-mbar a.call { background: var(--vtp-accent-soft); color: var(--vtp-accent-deep); border-color: rgba(20,113,42,.15); }
.vtp-mbar a.wa   { background: #25D366; color: #fff; }
.vtp-mbar button.form { background: var(--vtp-accent-deep); color: #fff; }
.vtp-mbar a:active, .vtp-mbar button:active { transform: scale(.97); }
.vtp-mbar svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 900px) {
  .vtp-tab { display: none; }
  .vtp-mbar { display: block; }
  body { padding-bottom: 80px; }
}

/* ── MODAL ── */
.vtp-overlay {
  position: fixed; inset: 0;
  background: rgba(11,63,23,.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9500;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: vtpFadeIn .25s ease;
}
.vtp-overlay.open { display: flex; }
@keyframes vtpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.vtp-modal {
  background: #fff;
  width: 100%; max-width: 780px;
  max-height: 92vh; overflow-y: auto;
  border-radius: 18px;
  padding: 36px 40px;
  position: relative;
  font-family: 'DM Sans', system-ui, sans-serif;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.4);
  animation: vtpModalUp .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes vtpModalUp {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .vtp-modal { padding: 24px 20px; border-radius: 14px; } }

.vtp-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--vtp-accent-soft); color: var(--vtp-accent-deep);
  border: none; border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer; transition: all .2s;
}
.vtp-close:hover { background: var(--vtp-accent-deep); color: #fff; }

.vtp-modal h2 {
  font-family: 'Figtree', sans-serif;
  font-weight: 800; font-size: clamp(20px, 2.4vw, 26px);
  color: var(--vtp-accent-ink);
  letter-spacing: .04em;
  margin: 0 0 4px;
  text-transform: uppercase;
}
.vtp-modal-sub {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .2em;
  color: var(--vtp-accent-deep); font-weight: 700;
  background: var(--vtp-accent-soft);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 22px;
}
.vtp-modal-trust {
  display: block;
  font-size: 12.5px; color: #56625b; margin-bottom: 22px;
  border-left: 3px solid var(--vtp-accent-lime);
  padding: 6px 0 6px 12px;
  font-style: italic;
}

.vtp-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vtp-form .full { grid-column: 1 / -1; }
.vtp-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--vtp-accent-ink);
}
.vtp-form input, .vtp-form select, .vtp-form textarea {
  font-family: inherit; font-size: 14.5px;
  padding: 11px 14px;
  border: 1px solid rgba(11,63,23,.12);
  border-radius: 10px;
  background: #fbfaf4; color: #1a261d;
  transition: border .2s, background .2s;
}
.vtp-form input:focus, .vtp-form select:focus, .vtp-form textarea:focus {
  outline: none;
  border-color: var(--vtp-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43,176,60,.15);
}
.vtp-form textarea { resize: vertical; min-height: 90px; }

.vtp-files {
  border: 2px dashed rgba(20,113,42,.3);
  border-radius: 12px; padding: 14px;
  background: var(--vtp-accent-soft);
  text-align: center;
}
.vtp-files input[type=file] { font-size: 12px; }
.vtp-files .help {
  display: block;
  font-size: 11.5px; color: #4a5448; margin-top: 6px;
  font-style: italic;
}
.vtp-wa-note {
  font-size: 12px; color: #4a5448;
  background: #f4f0e3; padding: 10px 14px; border-radius: 8px;
  margin: 2px 0;
}
.vtp-wa-note a { color: var(--vtp-accent-deep); font-weight: 700; text-decoration: none; }

.vtp-check {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; color: #56625b; font-weight: 500;
}
.vtp-check input { flex-shrink: 0; margin-top: 3px; }
.vtp-check a { color: var(--vtp-accent-deep); text-decoration: underline; }

.vtp-submit {
  background: var(--vtp-accent-deep); color: #fff;
  font-family: 'Figtree', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: .04em;
  padding: 14px 18px;
  border: none; border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 0 #0a3f17, 0 10px 22px -6px rgba(11,63,23,.35);
  transition: all .2s;
  text-transform: uppercase;
}
.vtp-submit:hover { background: var(--vtp-accent); transform: translateY(-2px); box-shadow: 0 4px 0 #0a3f17, 0 14px 26px -6px rgba(11,63,23,.45); }
.vtp-submit:active { transform: translateY(0); }

@media (max-width: 600px) {
  .vtp-form { grid-template-columns: 1fr; }
}

body.vtp-modal-open { overflow: hidden; }
