/* ==========================================================================
   ACELERADOR WEB PRO - ESTILOS PERSONALIZADOS
   Inspirado en Aethera AI Framer & Scalable Framer
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #06070a;
  --bg-secondary: #0b0d13;
  --bg-card: rgba(15, 18, 26, 0.75);
  --bg-card-hover: rgba(22, 27, 40, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.35);
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: #f1f5f9;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(6, 7, 10, 1) 50%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #06070a;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* ==========================================================================
   ANIMACIÓN FADE-IN BLUR ON SCROLL
   ========================================================================== */
.blur-reveal {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, filter, transform;
}

.blur-reveal.revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* Retardos progresivos para elementos en cascada */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* ==========================================================================
   EFECTOS GLASSMORPHISM Y GLOW
   ========================================================================== */
.glass-panel {
  background: rgba(14, 17, 25, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(14, 17, 25, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 35px -10px rgba(99, 102, 241, 0.25),
              inset 0 1px 1px 0 rgba(255, 255, 255, 0.15);
}

.glow-border:hover {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.3);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-primary {
  background: linear-gradient(135deg, #ffffff 10%, #a5b4fc 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 60%, #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   CARROUSELES VERTICALES INVERTIDOS (TESTIMONIOS ESTILO SCALABLE FRAMER)
   ========================================================================== */
.testimonials-viewport {
  position: relative;
  height: 640px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  will-change: transform;
}

.marquee-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Columna 1 y 3: Se mueve de abajo a arriba */
.marquee-up {
  animation: scrollUp 32s linear infinite;
}

/* Columna 2: Invertida, se mueve de arriba a abajo */
.marquee-down {
  animation: scrollDown 34s linear infinite;
}

/* Pausar al hacer hover para facilitar lectura */
.testimonials-viewport:hover .marquee-up,
.testimonials-viewport:hover .marquee-down {
  animation-play-state: paused;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-50% - 0.625rem));
  }
}

@keyframes scrollDown {
  0% {
    transform: translateY(calc(-50% - 0.625rem));
  }
  100% {
    transform: translateY(0);
  }
}

/* ==========================================================================
   ELEMENTOS DE DECORACIÓN Y FONDOS
   ========================================================================== */
.hero-spotlight {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.18) 0%, rgba(56, 189, 248, 0.08) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.radial-grid {
  /* Cuadrícula eliminada para un fondo liso y limpio */
}

/* Shimmer animation on buttons */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}
.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: shimmer 6s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(30deg); }
  20% { transform: translateX(100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* Pulse badge ring */
.badge-ping {
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Modal Transitions */
.modal-overlay {
  transition: opacity 0.3s ease;
}
.modal-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-hidden .modal-content {
  transform: scale(0.95) translateY(10px);
}

/* Hide scrollbar for clean horizontal carousel */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   PRICING RESPONSIVE CAROUSEL & GRID SYSTEM
   ========================================================================== */
.pricing-carousel-container {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1.25rem;
  padding: 0.75rem 1rem 1.5rem 1rem;
  scroll-padding: 0 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pricing-carousel-container::-webkit-scrollbar {
  display: none;
}

.pricing-carousel-card {
  flex: 0 0 85vw;
  min-width: 270px;
  max-width: 325px;
  scroll-snap-align: center;
  scroll-snap-stop: normal;
  box-sizing: border-box;
}

/* Desktop Grid: Centered, Equal Widths, Clean Gap */
@media (min-width: 768px) {
  .pricing-carousel-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    overflow: visible;
    padding: 0;
    max-width: 64rem; /* 1024px */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .pricing-carousel-card {
    flex: initial;
    min-width: 0;
    max-width: none;
    width: 100%;
    scroll-snap-align: none;
  }
}
