/* ========================================
   TrackVa Landing — Custom Styles
   ======================================== */

/* --- Material Symbols --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Base --- */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Hero: ocultar antes de animar --- */
[data-animate="words"],
.hero-cta-animate,
.hero-scarcity-animate,
.hero-animate-in {
  visibility: hidden;
  opacity: 0;
}

.hero-animate-in.is-ready {
  visibility: visible;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* --- Hero Animations --- */
.navbar-animate-in {
  opacity: 0;
  animation: navbarReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes navbarReveal {
  from {
    opacity: 0;
    top: -20px;
  }
  to {
    opacity: 1;
    top: 1.5rem;
  }
}


@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
}

.word-inner {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  animation: revealWord 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay);
}

@keyframes revealWord {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.globe-animate-in {
  opacity: 0;
  transform: scale(0.9);
}

.globe-animate-in.is-ready {
  animation: globeReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes globeReveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- Scroll Animations --- */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--scroll-delay, 0s);
}

.scroll-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Flow Section --- */
.flow-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-line.is-visible {
  transform: scaleX(1);
}

.flow-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flow-icon {
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-card.is-visible .flow-icon {
  transform: scale(1);
}

/* --- Timeline Section --- */
.timeline-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-line.is-visible {
  transform: scaleY(1);
}

.timeline-item {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-right {
  transform: translateX(30px);
}

.timeline-left {
  transform: translateX(-30px);
}

.timeline-item.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-icon {
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-item.is-visible .timeline-icon {
  transform: scale(1);
}

/* --- Founder Section --- */
.founder-photo {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-photo.is-visible {
  opacity: 1;
  transform: scale(1);
}

.founder-item {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.founder-quote-mark {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.founder-quote-mark.is-visible {
  opacity: 0.2;
}

/* --- Pioneros Section --- */
.pionero-item {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pionero-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pionero-benefit {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.pionero-benefit.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.pionero-form {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.pionero-form.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Contact Section --- */
.contact-card {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card.is-visible {
  opacity: 1;
  transform: scale(1);
}

.contact-item {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-info.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-cta {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-cta.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Footer --- */
.footer-col {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-col.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-bottom {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-bottom.is-visible {
  opacity: 1;
}

/* --- CTA Pulse Ripple --- */
.cta-pulse-wrap {
  position: relative;
  display: contents;
}

.cta-pulse {
  position: relative;
}

.cta-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.cta-ripple::before,
.cta-ripple::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(232, 163, 60, 0.6);
  opacity: 0;
}

.cta-pulse.is-pulsing .cta-ripple::before {
  animation: rippleOut 0.7s ease-out forwards;
}

.cta-pulse.is-pulsing .cta-ripple::after {
  animation: rippleOut 0.7s ease-out 0.2s forwards;
}

@keyframes rippleOut {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* --- Globe --- */
#globe-container {
  max-width: 100%;
}

#globe-container canvas {
  cursor: grab !important;
}

#globeViz {
  filter: drop-shadow(0 20px 40px rgba(30, 58, 95, 0.2));
}

@media (max-width: 767px) {
  #globe-container {
    width: 300px !important;
    height: 300px !important;
  }
}

/* --- Calendly Override --- */
.calendly-overlay .calendly-close-overlay {
  background: rgba(12, 26, 46, 0.5) !important;
  backdrop-filter: blur(4px);
}

.calendly-overlay .calendly-popup {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.calendly-overlay .calendly-popup .calendly-popup-content {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(12, 26, 46, 0.3) !important;
}

/* --- Marquee --- */
.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, #f8f9ff, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #f8f9ff, transparent);
}
