/* ================================
   TMV CALCULADORA RENTA v3.0
   ================================ */

body #tmv-calc-wrap,
body #tmv-calc-wrap *,
body #tmv-calc-wrap *::before,
body #tmv-calc-wrap *::after {
  box-sizing: border-box !important;
}

body #tmv-calc-wrap {
  --ac:  #4f8cff;
  --ac2: #6ae4ff;
  --bg1: #0b1220;
  --bg2: #060c18;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
  background: linear-gradient(180deg, #0b1220, #060c18) !important;
  border-radius: 22px !important;
  padding: 32px 28px 40px !important;
  overflow: hidden !important;
  width: 100% !important;
}

/* ── Paneles ── */
body #tmv-calc-wrap .tmv-panel {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 18px !important;
  padding: 22px !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.3) !important;
  margin-bottom: 16px !important;
}
body #tmv-calc-wrap .tmv-inf-panel { padding: 18px 22px !important; }

/* ── Títulos y textos ── */
body #tmv-calc-wrap h1,
body #tmv-calc-wrap h2,
body #tmv-calc-wrap h3 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  text-shadow: none !important;
}
body #tmv-calc-wrap .tmv-mini-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #6ae4ff !important;
  -webkit-text-fill-color: #6ae4ff !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
  margin-bottom: 14px !important;
}

/* ── Grilla de campos ── */
body #tmv-calc-wrap .tmv-inf-grid {
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  gap: 14px !important;
}
body #tmv-calc-wrap .tmv-inf-field label,
body #tmv-calc-wrap .tmv-inf-field .tmv-mini-title {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #8892b0 !important;
  -webkit-text-fill-color: #8892b0 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  margin-bottom: 7px !important;
}
body #tmv-calc-wrap .tmv-input,
body #tmv-calc-wrap .tmv-inf-field input {
  width: 100% !important;
  background: rgba(0,0,0,.3) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 11px !important;
  padding: 12px 14px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  outline: none !important;
  transition: border-color .2s, box-shadow .2s !important;
}
body #tmv-calc-wrap .tmv-input::placeholder,
body #tmv-calc-wrap .tmv-inf-field input::placeholder {
  color: rgba(106,122,155,.45) !important;
  -webkit-text-fill-color: rgba(106,122,155,.45) !important;
}
body #tmv-calc-wrap .tmv-input:focus,
body #tmv-calc-wrap .tmv-inf-field input:focus {
  border-color: #4f8cff !important;
  box-shadow: 0 0 0 3px rgba(79,140,255,.15) !important;
}
body #tmv-calc-wrap .tmv-inf-hint {
  font-size: 11px !important;
  color: #3a4a6a !important;
  -webkit-text-fill-color: #3a4a6a !important;
  margin-top: 4px !important;
}

/* ── Botones ── */
body #tmv-calc-wrap .tmv-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}
body #tmv-calc-wrap .tmv-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  padding: 0 22px !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  transition: transform .2s, opacity .2s !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
}
body #tmv-calc-wrap .tmv-btn:hover { transform: translateY(-1px) !important; opacity: .90 !important; }
body #tmv-calc-wrap .tmv-btn-primary {
  background: linear-gradient(135deg, #4f8cff, #6ae4ff) !important;
  color: #050e20 !important;
  -webkit-text-fill-color: #050e20 !important;
  box-shadow: 0 8px 20px rgba(79,140,255,.3) !important;
}
body #tmv-calc-wrap .tmv-btn-secondary {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body #tmv-calc-wrap .tmv-btn-pdf {
  background: linear-gradient(135deg, #4f8cff, #6ae4ff) !important;
  color: #050e20 !important;
  -webkit-text-fill-color: #050e20 !important;
  box-shadow: 0 8px 20px rgba(79,140,255,.25) !important;
  font-size: 15px !important;
  min-height: 50px !important;
  padding: 0 28px !important;
}

/* ── Error ── */
body #tmv-calc-wrap .tmv-calc-error {
  margin-top: 12px !important;
  padding: 11px 15px !important;
  border-radius: 10px !important;
  background: rgba(239,68,68,.10) !important;
  border: 1px solid rgba(239,68,68,.25) !important;
  color: #fca5a5 !important;
  -webkit-text-fill-color: #fca5a5 !important;
  font-size: 13px !important;
}

/* ── Resultados ── */
body #tmv-calc-wrap .tmv-calc-resultados {
  animation: tmvFade .4s ease;
}
@keyframes tmvFade { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

body #tmv-calc-wrap .tmv-calc-res-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #6ae4ff !important;
  -webkit-text-fill-color: #6ae4ff !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  margin-bottom: 14px !important;
}
body #tmv-calc-wrap .tmv-res-dot {
  width: 7px !important; height: 7px !important;
  border-radius: 50% !important; background: #6ae4ff !important;
  display: inline-block !important;
  box-shadow: 0 0 8px #6ae4ff !important;
}

/* ── Grid resultados ── */
body #tmv-calc-wrap .tmv-res-grid {
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}
body #tmv-calc-wrap .tmv-res-card {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 16px !important;
  padding: 18px 14px !important;
  text-align: center !important;
  transition: transform .2s !important;
  position: relative !important;
}
body #tmv-calc-wrap .tmv-res-card:hover { transform: translateY(-3px) !important; }
body #tmv-calc-wrap .tmv-res-card.tmv-res-highlight,
body #tmv-calc-wrap .tmv-res-card.highlight {
  border-color: rgba(106,228,255,.3) !important;
  background: rgba(106,228,255,.06) !important;
}
body #tmv-calc-wrap .tmv-res-icon {
  font-size: 20px !important;
  display: block !important;
  margin-bottom: 8px !important;
}
body #tmv-calc-wrap .tmv-res-label {
  font-size: 10px !important; font-weight: 700 !important;
  color: #5a6a90 !important; -webkit-text-fill-color: #5a6a90 !important;
  text-transform: uppercase !important; letter-spacing: .06em !important;
  margin-bottom: 5px !important;
}
body #tmv-calc-wrap .tmv-res-value {
  font-size: clamp(15px,2vw,22px) !important; font-weight: 800 !important;
  color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
  line-height: 1.1 !important; margin-bottom: 3px !important;
}
body #tmv-calc-wrap .tmv-res-card.tmv-res-highlight .tmv-res-value,
body #tmv-calc-wrap .tmv-res-card.highlight .tmv-res-value {
  color: #6ae4ff !important; -webkit-text-fill-color: #6ae4ff !important;
}
body #tmv-calc-wrap .tmv-res-sub {
  font-size: 10px !important;
  color: #3a4a6a !important; -webkit-text-fill-color: #3a4a6a !important;
}
body #tmv-calc-wrap .tmv-calc-badge {
  display: inline-block !important; margin-top: 6px !important;
  padding: 2px 8px !important; border-radius: 100px !important;
  background: rgba(106,228,255,.12) !important;
  border: 1px solid rgba(106,228,255,.25) !important;
  font-size: 9px !important; font-weight: 700 !important;
  color: #6ae4ff !important; -webkit-text-fill-color: #6ae4ff !important;
  text-transform: uppercase !important; letter-spacing: .05em !important;
}

/* ── Nota ── */
body #tmv-calc-wrap .tmv-note {
  margin-top: 14px !important; padding: 14px 18px !important;
  border-left: 3px solid #4f8cff !important; border-radius: 12px !important;
  background: rgba(79,140,255,.07) !important;
  color: #b0bdd8 !important; -webkit-text-fill-color: #b0bdd8 !important;
  font-size: 13px !important; line-height: 1.7 !important;
  margin-bottom: 16px !important;
}
body #tmv-calc-wrap .tmv-note strong {
  color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
}

/* ── CTA PDF ── */
body #tmv-calc-wrap .tmv-pdf-cta {
  display: flex !important; justify-content: space-between !important;
  align-items: center !important; gap: 16px !important; flex-wrap: wrap !important;
  background: rgba(79,140,255,.07) !important;
  border: 1px solid rgba(79,140,255,.2) !important;
  border-radius: 18px !important; padding: 22px !important;
}
body #tmv-calc-wrap .tmv-pdf-cta-text strong {
  display: block !important; margin-bottom: 3px !important;
  color: #ffffff !important; -webkit-text-fill-color: #ffffff !important;
  font-size: 15px !important;
}
body #tmv-calc-wrap .tmv-pdf-cta-text span {
  color: #8892b0 !important; -webkit-text-fill-color: #8892b0 !important;
  font-size: 13px !important;
}
body #tmv-calc-wrap .tmv-pdf-cta-btns {
  display: flex !important; gap: 10px !important; flex-wrap: wrap !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  body #tmv-calc-wrap .tmv-inf-grid,
  body #tmv-calc-wrap .tmv-res-grid { grid-template-columns: 1fr !important; }
  body #tmv-calc-wrap { padding: 20px 14px 28px !important; }
}
@media (max-width: 640px) {
  body #tmv-calc-wrap .tmv-actions { flex-direction: column !important; }
  body #tmv-calc-wrap .tmv-btn { width: 100% !important; }
  body #tmv-calc-wrap .tmv-pdf-cta { flex-direction: column !important; text-align: center !important; }
  body #tmv-calc-wrap .tmv-pdf-cta-btns { justify-content: center !important; }
}
