html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.soft-grid {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(16,185,129,.08) 0, transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(59,130,246,.07) 0, transparent 32%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.shimmer {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  animation: shimmer 1.25s infinite;
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.tab-enter {
  animation: tabEnter .2s ease-out both;
}

@keyframes tabEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-flash {
  animation: resultFlash .18s ease-out both;
}

@keyframes resultFlash {
  from { opacity: .45; transform: scale(.99); }
  to { opacity: 1; transform: scale(1); }
}





/* TuRemesa V16.7 Fix Testimonios + Instagram Icon */
@keyframes tmV167Fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tmV167Marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tm-v167-testimonials {
  margin-top: 22px;
  margin-bottom: 18px;
  animation: tmV167Fade .45s ease-out both;
}

.tm-v167-mask {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.tm-v167-mask::before,
.tm-v167-mask::after {
  content: "";
  position: absolute;
  top: 0;
  height: 100%;
  width: 44px;
  z-index: 2;
  pointer-events: none;
}

.tm-v167-mask::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff, rgba(255,255,255,0));
}

.tm-v167-mask::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff, rgba(255,255,255,0));
}

.tm-v167-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: tmV167Marquee 32s linear infinite;
  will-change: transform;
}

.tm-v167-track:hover {
  animation-play-state: paused;
}

.tm-v167-card {
  min-width: 215px;
  max-width: 225px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 12px 14px;
  color: #334155;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
}

.tm-v167-card::first-line {
  color: #059669;
  letter-spacing: .08em;
}

.tm-v167-card span {
  color: #94a3b8;
  font-size: 12px;
}

a[href*="instagram.com"] img {
  display: inline-block;
  flex: none;
}

@media (max-width: 640px) {
  .tm-v167-testimonials {
    margin-top: 16px;
    margin-bottom: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .tm-v167-testimonials > div {
    border-radius: 24px;
    padding: 12px;
  }

  .tm-v167-card {
    min-width: 175px;
    max-width: 180px;
    font-size: 12px;
    padding: 10px 12px;
  }

  .tm-v167-track {
    animation-duration: 36s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-v167-testimonials,
  .tm-v167-track {
    animation: none !important;
  }
}


/* TuRemesa V16.8 Final Fix: testimonios sin corte inicial + monto 60000 */
.tm-v167-testimonials,
.tm-v166-testimonials {
  margin-top: 22px !important;
  margin-bottom: 18px !important;
}

.tm-v167-mask,
.tm-v166-mask {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Quita el degradado izquierdo que hacía ver el primer testimonio cortado */
.tm-v167-mask::before,
.tm-v166-mask::before {
  display: none !important;
}

.tm-v167-mask::after,
.tm-v166-mask::after {
  width: 32px !important;
}

.tm-v167-track,
.tm-v166-track {
  padding-left: 0 !important;
  transform: translateX(0);
  animation-name: tmV168Marquee !important;
  animation-duration: 34s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
}

@keyframes tmV168Marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tm-v167-card,
.tm-v166-card {
  flex: 0 0 auto !important;
  min-width: 215px !important;
  max-width: 225px !important;
  text-align: left !important;
}

.tm-v167-card::first-line,
.tm-v166-card::first-line {
  color: #059669 !important;
  letter-spacing: .08em !important;
}

@media (max-width: 640px) {
  .tm-v167-card,
  .tm-v166-card {
    min-width: 175px !important;
    max-width: 180px !important;
  }
  .tm-v167-track,
  .tm-v166-track {
    animation-duration: 38s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tm-v167-track,
  .tm-v166-track {
    animation: none !important;
  }
}


/* TuRemesa V17 Premium UI - visual only */
@keyframes tmV17FadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tmV17PulseLive {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5, 150, 105, .22); }
  50% { transform: scale(1.025); box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
}

@keyframes tmV17Glow {
  0%, 100% { box-shadow: 0 14px 30px rgba(5,150,105,.18); }
  50% { box-shadow: 0 20px 42px rgba(5,150,105,.28); }
}

@keyframes tmV17NumberPulse {
  0% { opacity: .65; transform: translateY(2px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tm-v17-number-pulse {
  animation: tmV17NumberPulse .22s ease-out both;
}

.tm-v17-metrics {
  animation: tmV17FadeUp .45s ease-out both;
}

.tm-v17-metric-card {
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .06);
  padding: 18px 16px;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  backdrop-filter: blur(10px);
}

.tm-v17-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 150, 105, .25);
  box-shadow: 0 24px 52px rgba(15, 23, 42, .10);
}

.tm-v17-metric-number {
  display: block;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
  font-weight: 950;
  color: #059669;
  letter-spacing: -.04em;
}

.tm-v17-metric-label {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #64748b;
}

/* Soft pulse on green pills like Tasa en vivo */
.rounded-full.bg-emerald-50,
[class*="bg-emerald-50"][class*="rounded-full"] {
  animation: tmV17PulseLive 3.2s ease-in-out infinite;
}

/* WhatsApp premium */
#waBtn {
  animation: tmV17Glow 3s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

#waBtn:hover {
  transform: translateY(-1px) scale(1.012);
  filter: saturate(1.06);
}

.fixed.bottom-5.right-5 {
  animation: tmV17Glow 3s ease-in-out infinite;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
}

.tm-v17-wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #bbf7d0;
  box-shadow: 0 0 0 4px rgba(187, 247, 208, .25);
}

/* Instagram premium */
a[href*="instagram.com"] {
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}

a[href*="instagram.com"]:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

/* Premium testimonials */
.tm-v17-premium-testimonial,
.tm-v167-card,
.tm-v166-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.tm-v17-premium-testimonial:hover,
.tm-v167-card:hover,
.tm-v166-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 150, 105, .25);
  box-shadow: 0 16px 32px rgba(15, 23, 42, .10);
}

@media (max-width: 640px) {
  .tm-v17-metrics {
    margin-top: 16px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .tm-v17-metric-card {
    border-radius: 22px;
    padding: 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* TuRemesa V18 Final - visual polish only, no layout changes */
@keyframes tmV18FadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tmV18Pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(5,150,105,.25); }
  50% { transform: scale(1.018); box-shadow: 0 0 0 8px rgba(5,150,105,0); }
}

@keyframes tmV18Glow {
  0%, 100% { box-shadow: 0 14px 30px rgba(5,150,105,.16); }
  50% { box-shadow: 0 20px 44px rgba(5,150,105,.28); }
}

@keyframes tmV18Change {
  0% { opacity: .25; transform: translateY(6px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.tm-v18-trust-suite {
  animation: tmV18FadeUp .42s ease-out both;
}

.tm-v18-testimonial-view {
  min-height: 132px;
}

.tm-v18-testimonial-card {
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.tm-v18-stars {
  color: #059669;
  font-weight: 950;
  letter-spacing: .08em;
  font-size: 13px;
  margin: 0 0 8px;
}

.tm-v18-message {
  color: #334155;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
  margin: 0;
}

.tm-v18-author {
  margin: 10px 0 0;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 950;
}

.tm-v18-change {
  animation: tmV18Change .32s ease-out both;
}

.tm-v18-badge {
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 10px 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tm-v18-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(5,150,105,.25);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

.tm-v18-result-pulse {
  animation: tmV18Change .26s ease-out both;
}

/* Tasa en vivo and WhatsApp premium */
.rounded-full.bg-emerald-50,
[class*="bg-emerald-50"][class*="rounded-full"] {
  animation: tmV18Pulse 3s ease-in-out infinite;
}

#waBtn {
  animation: tmV18Glow 3s ease-in-out infinite;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

#waBtn:hover {
  transform: translateY(-1px) scale(1.012);
  filter: saturate(1.06);
}

.fixed.bottom-5.right-5 {
  animation: tmV18Glow 3s ease-in-out infinite;
}

/* Keep mobile compact */
@media (max-width: 640px) {
  .tm-v18-trust-suite {
    margin-top: 16px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .tm-v18-testimonial-card {
    border-radius: 20px;
    padding: 13px;
  }
  .tm-v18-message {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
