/* ============================================================
   TiendaTienda — Contacto Form
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Wrap ───────────────────────────────────────────────────── */
.tt-cf-wrap,
div.tt-cf-wrap {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ── Grid de tipos ──────────────────────────────────────────── */
.tt-cf-wrap .tt-cf-tipos {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-bottom: 28px !important;
}

.tt-cf-wrap .tt-cf-tipo-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 18px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  text-align: left !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
}

.tt-cf-wrap .tt-cf-tipo-btn:hover {
  border-color: #a855f7 !important;
  background: #faf5ff !important;
}

.tt-cf-wrap .tt-cf-tipo-btn--active {
  border-color: #a855f7 !important;
  background: #faf5ff !important;
  color: #7e22ce !important;
}

/* Icono imagen */
.tt-cf-wrap .tt-cf-tipo-img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}

/* ── Campos ─────────────────────────────────────────────────── */
.tt-cf-wrap .tt-cf-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.tt-cf-wrap .tt-cf-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

.tt-cf-wrap .tt-cf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tt-cf-wrap .tt-cf-field--full {
  grid-column: 1 / -1;
}

.tt-cf-wrap .tt-cf-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748b !important;
  letter-spacing: 0.08em !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ── Input / Select / Textarea ──────────────────────────────── */
.tt-cf-wrap .tt-cf-input {
  width: 100% !important;
  padding: 12px 16px !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #1e293b !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 400 !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.tt-cf-wrap .tt-cf-input::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

.tt-cf-wrap .tt-cf-input:focus {
  border-color: #a855f7 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Select: flecha custom */
.tt-cf-wrap .tt-cf-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 38px !important;
  cursor: pointer !important;
  color: #64748b !important;
}

/* Textarea */
.tt-cf-wrap .tt-cf-textarea {
  resize: vertical !important;
  min-height: 120px !important;
  line-height: 1.6 !important;
}

/* ── Footer ─────────────────────────────────────────────────── */
.tt-cf-wrap .tt-cf-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tt-cf-wrap .tt-cf-submit {
  padding: 16px 48px !important;
  background: #1e293b !important;
  background-color: #1e293b !important;
  border: none !important;
  border-radius: 100px !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  letter-spacing: 0 !important;
}

.tt-cf-wrap .tt-cf-submit:hover {
  background: #0f172a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.25) !important;
}

.tt-cf-wrap .tt-cf-submit:active  { transform: scale(0.98) !important; }
.tt-cf-wrap .tt-cf-submit:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.tt-cf-wrap .tt-cf-privacy {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ── Mensajes ───────────────────────────────────────────────── */
.tt-cf-wrap .tt-cf-msg {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-align: center;
}

.tt-cf-wrap .tt-cf-msg--error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.tt-cf-wrap .tt-cf-msg--success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

/* ── Thank you ──────────────────────────────────────────────── */
.tt-cf-wrap .tt-cf-thankyou {
  text-align: center;
  padding: 48px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tt-cf-wrap .tt-cf-thankyou.tt-cf-thankyou--show {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.tt-cf-wrap .tt-cf-check {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  animation: ttCfScaleIn 0.5s ease;
}

@keyframes ttCfScaleIn {
  0%   { transform: scale(0); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.tt-cf-wrap .tt-cf-thanks-title {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 10px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.tt-cf-wrap .tt-cf-thanks-text {
  font-size: 16px !important;
  color: #64748b !important;
  margin: 0 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 540px) {
  .tt-cf-wrap .tt-cf-tipos,
  .tt-cf-wrap .tt-cf-row {
    grid-template-columns: 1fr !important;
  }
}