/* ═══════════════════════════════════════════════════════════
   HERO ENTRANCE ANIMATIONS (page load — no JS needed)
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

.pill-badge    { animation: fadeSlideUp 0.7s 0.10s cubic-bezier(0.16,1,0.3,1) both; }
.hero-title    { animation: fadeSlideUp 0.7s 0.22s cubic-bezier(0.16,1,0.3,1) both; }
.hero-subtitle { animation: fadeSlideUp 0.7s 0.34s cubic-bezier(0.16,1,0.3,1) both; }
.hero-actions  { animation: fadeSlideUp 0.7s 0.46s cubic-bezier(0.16,1,0.3,1) both; }
.hero-visual   { animation: fadeSlideUp 0.9s 0.30s cubic-bezier(0.16,1,0.3,1) both; }

/* ═══════════════════════════════════════════════════════════
   HERO BACKGROUND — animated gradient blobs
   ═══════════════════════════════════════════════════════════ */
@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -25px) scale(1.07); }
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(42,123,146,0.13) 0%, transparent 68%);
  border-radius: 50%;
  animation: blobDrift 13s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -5%;
  left: -6%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(67,121,238,0.09) 0%, transparent 68%);
  border-radius: 50%;
  animation: blobDrift 17s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity  0.68s cubic-bezier(0.16,1,0.3,1),
    transform 0.68s cubic-bezier(0.16,1,0.3,1);
}
[data-animate].visible {
  opacity: 1;
  transform: none;
}
[data-delay="1"].visible { transition-delay: 0.08s; }
[data-delay="2"].visible { transition-delay: 0.17s; }
[data-delay="3"].visible { transition-delay: 0.26s; }
[data-delay="4"].visible { transition-delay: 0.35s; }
[data-delay="5"].visible { transition-delay: 0.44s; }

/* ═══════════════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════════════ */
.stats-section {
  background: white;
  border-top: 1px solid #eef0f4;
  border-bottom: 1px solid #eef0f4;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 0;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 28px;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: 800;
  color: var(--deep);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -2px;
}
.stat-unit {
  font-size: 30px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: -1px;
}
.stat-value--usd span {
  font-size: 42px;
  color: var(--teal);
  letter-spacing: -1px;
}
.stat-label {
  font-size: 13.5px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.stat-sep {
  width: 1px;
  height: 56px;
  background: #e4e8ee;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .stats-grid {
    flex-wrap: wrap;
    gap: 32px;
    padding: 40px 0;
  }
  .stat-sep { display: none; }
  .stat-item { flex: 1 1 40%; }
}

/* ═══════════════════════════════════════════════════════════
   NAV — underline hover + active indicator
   ═══════════════════════════════════════════════════════════ */
.nav a:not(.btn) {
  position: relative;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width 0.24s ease;
}
.nav a:not(.btn):hover::after,
.nav a:not(.btn).active::after {
  width: 100%;
}
.nav a:not(.btn).active {
  color: var(--deep);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU — smooth slide-down
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav {
    display: flex !important;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.35s cubic-bezier(0.16,1,0.3,1),
      opacity   0.28s ease;
    z-index: 998;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid #f0f2f5;
    font-size: 16px;
  }
  .nav a:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════════════════════
   FEATURE CARDS — better hover
   ═══════════════════════════════════════════════════════════ */
.feature-card {
  border: 1px solid transparent;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.feature-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 24px 52px rgba(42,123,146,0.13);
  border-color: rgba(42,123,146,0.18);
}

/* ═══════════════════════════════════════════════════════════
   ADVANTAGE ITEMS — slide-right on hover
   ═══════════════════════════════════════════════════════════ */
.advantage-item {
  transition: transform 0.25s ease;
  padding: 4px 0;
}
.advantage-item:hover { transform: translateX(7px); }

/* ═══════════════════════════════════════════════════════════
   PILL BADGE — branded gradient tint
   ═══════════════════════════════════════════════════════════ */
.pill-badge {
  background: linear-gradient(135deg,
    rgba(42,123,146,0.07) 0%,
    rgba(67,121,238,0.07) 100%);
  border-color: rgba(42,123,146,0.22);
  color: var(--deep);
}
.pill-badge span { color: var(--teal); }

/* ═══════════════════════════════════════════════════════════
   CTA SECTION — gradient side
   ═══════════════════════════════════════════════════════════ */
.cta-text {
  background: linear-gradient(145deg, var(--deep) 0%, var(--teal) 100%);
  position: relative;
  overflow: hidden;
}
.cta-text::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   FORM — ring focus
   ═══════════════════════════════════════════════════════════ */
.form-group input:focus,
.form-group select:focus {
  box-shadow: 0 0 0 3px rgba(67,121,238,0.13);
}

/* ═══════════════════════════════════════════════════════════
   BTN — subtle scale on active
   ═══════════════════════════════════════════════════════════ */
.btn-primary:active { transform: translateY(0) scale(0.97); }

/* ═══════════════════════════════════════════════════════════
   HEADER — sharper scroll shadow
   ═══════════════════════════════════════════════════════════ */
.header.scrolled {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* ═══════════════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════════════ */
.hero { padding: 0; }          /* padding vive en cada .slide */

.slide {
  width: 100%;
  padding: 180px 0 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  position: absolute;
  top: 0; left: 0;
}
/* Slide 1 permanece en flujo normal → determina la altura del hero */
.slide:first-child { position: relative; }

.slide.slide--active {
  opacity: 1;
  pointer-events: all;
}

/* Dots de navegación */
.slider-nav {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(42,123,146,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  /* Expand tap area to 48x48 without changing visual size */
  position: relative;
}
.slider-dot::after {
  content: '';
  position: absolute;
  inset: -20px;
}
.slider-dot.active {
  background: var(--teal);
  width: 26px;
  border-radius: 4px;
}

/* Slide 2 — checklist */
.hero-checklist {
  list-style: none;
  margin: 24px 0 32px;
}
.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 11px 0;
  border-bottom: 1px solid #f0f2f5;
}
.hero-checklist li:last-child { border-bottom: none; }
.hc-check {
  color: var(--teal);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}

/* Slide 3 — stats mini-panel */
.hero-slide-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 24px 0 36px;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 20px 28px;
  max-width: 400px;
  border: 1px solid #eef0f4;
}
.hss-item { flex: 1; text-align: center; }
.hss-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 4px;
}
.hss-label {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}
.hss-sep {
  width: 1px;
  height: 44px;
  background: #e4e8ee;
  flex-shrink: 0;
  margin: 0 16px;
}

