/*
 * Tulogica — Landing 3D & AI Pro Enhancement Layer
 * Apilado sobre main.css — sin sobreescribir variables base
 */

/* ═══════════════════════════════════════════════
   KEYFRAMES NUEVOS
════════════════════════════════════════════════ */
@keyframes tilt3d {
  0%,100% { transform: perspective(1200px) rotateX(4deg) rotateY(-4deg) }
  25%      { transform: perspective(1200px) rotateX(2deg) rotateY(6deg)  }
  50%      { transform: perspective(1200px) rotateX(-3deg) rotateY(3deg) }
  75%      { transform: perspective(1200px) rotateX(5deg) rotateY(-2deg) }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(var(--orbit-r,110px)) rotate(0deg) }
  to   { transform: rotate(360deg) translateX(var(--orbit-r,110px)) rotate(-360deg) }
}
@keyframes orbitReverse {
  from { transform: rotate(0deg) translateX(var(--orbit-r,140px)) rotate(0deg) }
  to   { transform: rotate(-360deg) translateX(var(--orbit-r,140px)) rotate(360deg) }
}
@keyframes neuralPulse {
  0%,100% { opacity:.18; transform:scale(1)   }
  50%     { opacity:.42; transform:scale(1.05) }
}
@keyframes dataDrift {
  0%   { transform:translateY(0) translateX(0); opacity:0 }
  15%  { opacity:1 }
  85%  { opacity:1 }
  100% { transform:translateY(-220px) translateX(var(--dx,20px)); opacity:0 }
}
@keyframes tokenFlow {
  0%   { transform:translateX(-8px); opacity:0 }
  20%  { opacity:1 }
  80%  { opacity:1 }
  100% { transform:translateX(8px);  opacity:0 }
}
@keyframes gridReveal {
  from { opacity:0; transform:scaleY(0); transform-origin:bottom }
  to   { opacity:1; transform:scaleY(1) }
}
@keyframes counterUp {
  from { transform:translateY(20px); opacity:0 }
  to   { transform:translateY(0);    opacity:1 }
}
@keyframes ringExpand {
  0%   { transform:scale(.7); opacity:.6 }
  100% { transform:scale(1.6); opacity:0 }
}
@keyframes floatCard {
  0%,100% { transform:translateY(0) rotate(-1deg) }
  50%     { transform:translateY(-10px) rotate(1deg) }
}
@keyframes shimmerSlide {
  0%   { left:-120% }
  100% { left:140%  }
}
@keyframes aiBlink {
  0%,100% { opacity:1 }
  50%     { opacity:.3 }
}
@keyframes glowBreath {
  0%,100% { box-shadow:0 0 40px rgba(37,99,235,.35), 0 0 80px rgba(6,182,212,.15) }
  50%     { box-shadow:0 0 70px rgba(37,99,235,.6),  0 0 140px rgba(6,182,212,.3) }
}
@keyframes scanLine {
  0%   { top:0% }
  100% { top:100% }
}
@keyframes particleRise {
  0%   { transform:translateY(0) scale(1); opacity:.7 }
  100% { transform:translateY(-80px) scale(0); opacity:0 }
}
@keyframes hueRotate {
  0%   { filter:hue-rotate(0deg) }
  100% { filter:hue-rotate(360deg) }
}

/* ═══════════════════════════════════════════════
   HERO 3D — VISUAL UPGRADE
════════════════════════════════════════════════ */

/* Perspectiva 3D en el dashboard hero */
.hero-visual--pro {
  perspective: 1400px;
}
.dashboard--pro {
  transform-style: preserve-3d;
  animation: tilt3d 12s ease-in-out infinite, floatY 7s ease-in-out infinite;
  will-change: transform;
  transition: transform .4s ease;
}
.dashboard--pro:hover {
  animation-play-state: paused;
  transform: perspective(1400px) rotateX(0deg) rotateY(0deg) scale(1.02) !important;
}

/* Glow hero más dramático */
.visual-glow {
  position: absolute;
  left: -80px; top: 50%;
  transform: translateY(-50%);
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.45) 0%, rgba(6,182,212,.18) 45%, transparent 70%);
  filter: blur(80px);
  animation: glowBreath 5s ease-in-out infinite;
  pointer-events: none;
}

/* Float cards con 3D sutil */
.hero-float--pro {
  transform-style: preserve-3d;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hero-float--pro:hover {
  transform: translateY(-4px) rotateX(6deg) !important;
  box-shadow: 0 32px 80px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.15) !important;
}

/* ─── Partículas de datos flotando ─── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(99,179,255,.6);
  animation: particleRise var(--dur, 4s) ease-out var(--delay, 0s) infinite;
}
.hero-particle:nth-child(2n)  { background: rgba(34,211,238,.5); width:3px; height:3px; }
.hero-particle:nth-child(3n)  { background: rgba(167,139,250,.5); width:5px; height:5px; }

/* ─── Neural network de fondo hero ─── */
.hero-neural {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .12;
}
.hero-neural svg {
  width: 100%; height: 100%;
  animation: neuralPulse 6s ease-in-out infinite;
}

/* ─── Data stream tokens sobre el dashboard ─── */
.data-token {
  position: absolute;
  background: rgba(6,182,212,.15);
  border: 1px solid rgba(6,182,212,.35);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  color: #22D3EE;
  white-space: nowrap;
  pointer-events: none;
  animation: dataDrift var(--dur,5s) ease-in var(--delay,0s) infinite;
}

/* ═══════════════════════════════════════════════
   OMNICANAL 3D — ORBITAL HUB
════════════════════════════════════════════════ */
.omni-hub-3d {
  position: relative;
  width: 320px; height: 320px;
  margin: auto;
}
.omni-hub-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  z-index: 10;
  box-shadow: 0 0 0 12px rgba(37,99,235,.12), 0 0 0 24px rgba(37,99,235,.06),
              0 0 60px rgba(37,99,235,.5);
  animation: glowBreath 4s ease-in-out infinite;
}
.omni-orbit-track {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.1);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.omni-orbit-track-1 { width: 180px; height: 180px; animation: neuralPulse 8s ease-in-out infinite; }
.omni-orbit-track-2 { width: 280px; height: 280px; animation: neuralPulse 10s ease-in-out 2s infinite; }

.omni-planet {
  position: absolute;
  top: 50%; left: 50%;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin: -24px 0 0 -24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transform-origin: center center;
  cursor: default;
  transition: transform .3s ease;
}
.omni-planet:hover { transform: translateX(var(--px)) translateY(var(--py)) scale(1.2) !important; }

/* ─── Líneas de conexión animadas ─── */
.omni-line {
  position: absolute;
  top: 50%; left: 50%;
  height: 1.5px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(37,99,235,.6), transparent);
  pointer-events: none;
}
.omni-line::after {
  content: '';
  position: absolute;
  top: -2px; right: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22D3EE;
  animation: dataDrift 3s ease-in-out infinite var(--delay,0s);
}

/* ═══════════════════════════════════════════════
   ROI — CONTADORES ANIMADOS + BARRA 3D
════════════════════════════════════════════════ */
.roi-card {
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: default;
}
.roi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(6,182,212,.04));
  opacity: 0;
  transition: opacity .3s;
}
.roi-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 24px 64px rgba(37,99,235,.25), 0 0 0 1px rgba(37,99,235,.25);
}
.roi-card:hover::before { opacity: 1; }

/* Shimmer sobre roi-card */
.roi-card::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  animation: shimmerSlide 4s ease-in-out infinite;
  pointer-events: none;
}

.roi-card-num {
  position: relative;
  z-index: 1;
}
/* Número contando animado */
.roi-card-num.is-counting {
  animation: counterUp .6s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)) both;
}

/* Comparativo con barras 3D */
.compare-card {
  position: relative;
  transition: transform .35s ease, box-shadow .35s ease;
}
.compare-card:hover {
  transform: translateY(-4px);
  z-index: 2;
}
.compare-item {
  position: relative;
  overflow: hidden;
}
.compare-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #2563EB, #06B6D4);
  animation: gridReveal .6s ease both;
  animation-delay: var(--delay, 0s);
}
.compare-after .compare-item::after { width: 100%; }
.compare-before .compare-item::after { width: 35%; background: rgba(90,120,136,.4); }

/* ═══════════════════════════════════════════════
   STEPS — TIMELINE 3D CON CONECTOR ANIMADO
════════════════════════════════════════════════ */
.steps-timeline {
  position: relative;
}
/* Línea de progreso animada */
.steps-timeline::before {
  content: '';
  position: absolute;
  top: 44px; left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, #2563EB 0%, #06B6D4 50%, #8B5CF6 100%);
  border-radius: 2px;
  z-index: 0;
}
/* Punto de progreso animado sobre la línea */
.steps-timeline::after {
  content: '';
  position: absolute;
  top: 36px; left: calc(12.5% + 20px);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 0 4px rgba(34,211,238,.25), 0 0 20px rgba(34,211,238,.6);
  z-index: 2;
  animation: stepProgress 8s ease-in-out infinite;
}
@keyframes stepProgress {
  0%   { left: calc(12.5% + 20px) }
  33%  { left: calc(37.5% + 10px) }
  66%  { left: calc(62.5% + 0px)  }
  100% { left: calc(87.5% - 20px) }
}

.step-item {
  position: relative;
  z-index: 1;
  transition: transform .3s ease;
}
.step-item:hover { transform: translateY(-8px); }

.step-num {
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step-item:hover .step-num {
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(37,99,235,.2), 0 0 30px rgba(37,99,235,.4) !important;
}

/* ═══════════════════════════════════════════════
   TESTIMONIOS — CARDS 3D CON SPOTLIGHT
════════════════════════════════════════════════ */
.testi-card {
  position: relative;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  cursor: default;
  transform-style: preserve-3d;
}
.testi-card:hover {
  transform: translateY(-10px) rotateX(4deg) scale(1.02);
  box-shadow: 0 32px 80px rgba(0,0,0,.15), 0 0 0 1px rgba(37,99,235,.2);
  z-index: 5;
}
/* Spotlight cursor effect (JS añade --mx,--my) */
.testi-card::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 70%);
  top: calc(var(--my,50%) - 100px);
  left: calc(var(--mx,50%) - 100px);
  pointer-events: none;
  transition: top .15s ease, left .15s ease;
}
/* Shimmer en hover */
.testi-card::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  transition: left .5s ease;
  pointer-events: none;
}
.testi-card:hover::after { left: 140%; }

/* Card featured con efecto especial */
.testi-card.featured {
  animation: glowBreath 5s ease-in-out infinite;
}

/* Métrica en testimonios con badge animado */
.testi-metric {
  position: relative;
  overflow: hidden;
}
.testi-metric::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(37,99,235,.08), transparent);
  animation: shimmerSlide 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   PLATFORM TABS — PANTALLAS CON SCANLINE IA
════════════════════════════════════════════════ */
.product-screen {
  position: relative;
  overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.product-screen:hover {
  transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 40px 100px rgba(0,0,0,.6), 0 0 60px rgba(37,99,235,.2) !important;
}

/* Línea de escaneo IA */
.product-screen::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.6), transparent);
  top: 0;
  animation: scanLine 4s linear infinite;
  pointer-events: none;
  z-index: 10;
}

/* Badge IA parpadeante */
.ai-tag {
  position: relative;
}
.ai-tag::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22D3EE;
  margin-right: 6px;
  vertical-align: middle;
  animation: aiBlink 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34,211,238,.8);
}

/* ═══════════════════════════════════════════════
   SECURITY — CARDS CON EFECTO HOLOGRÁFICO
════════════════════════════════════════════════ */
.security-card {
  position: relative;
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: default;
}
.security-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.15);
}
/* Efecto holográfico en hover */
.security-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(37,99,235,.1) 0%,
    rgba(6,182,212,.08) 33%,
    rgba(139,92,246,.1) 66%,
    rgba(37,99,235,.08) 100%);
  background-size: 200% 200%;
  opacity: 0;
  transition: opacity .3s;
  animation: hueRotate 8s linear infinite;
}
.security-card:hover::before { opacity: 1; }

.security-icon {
  transition: transform .3s ease;
}
.security-card:hover .security-icon {
  transform: scale(1.2) rotate(-5deg);
}

/* ═══════════════════════════════════════════════
   INTEGRATIONS — CHIPS CON EFECTO MAGNÉTICO
════════════════════════════════════════════════ */
.int-chip {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .25s ease;
  cursor: default;
}
.int-chip:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(37,99,235,.2);
  background: rgba(37,99,235,.12) !important;
  border-color: rgba(37,99,235,.4) !important;
}

.int-featured-card {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.int-featured-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 20px 60px rgba(37,99,235,.2);
}
.int-featured-card::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent);
  transition: left .5s ease;
}
.int-featured-card:hover::after { left: 140%; }

/* API Code box con scanline */
.int-api-code {
  position: relative;
  overflow: hidden;
  transition: transform .3s ease;
}
.int-api-code:hover { transform: perspective(600px) rotateY(-4deg); }
.int-api-code::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.5), transparent);
  top: 0;
  animation: scanLine 3s linear infinite;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   USE CASES — MOCKUP 3D
════════════════════════════════════════════════ */
.sol-mockup {
  transition: transform .4s cubic-bezier(.34,1.2,.64,1), box-shadow .4s ease;
}
.sol-mockup:hover {
  transform: perspective(1000px) rotateX(3deg) rotateY(-4deg) translateY(-6px);
  box-shadow: 0 40px 100px rgba(0,0,0,.2), 0 0 60px rgba(var(--sol-accent-rgb, 37,99,235),.15) !important;
}

/* Shimmer automático en mockup */
.sol-mockup::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent);
  animation: shimmerSlide 6s ease-in-out infinite;
  pointer-events: none;
}

/* Burbuja IA con typing animado mejorado */
.sol-bubble-out {
  position: relative;
  overflow: hidden;
}
.sol-bubble-out::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.4), transparent);
  animation: shimmerSlide 2.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   CTA FINAL — GRADIENTE ANIMADO 3D
════════════════════════════════════════════════ */
.cta-final {
  position: relative;
  overflow: hidden;
}
/* Orbs dinámicos de fondo */
.cta-final::before {
  content: '';
  position: absolute;
  top: -100px; left: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.3), transparent 60%);
  animation: glowBreath 6s ease-in-out infinite;
  pointer-events: none;
}
.cta-final::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.25), transparent 60%);
  animation: glowBreath 8s ease-in-out 2s infinite;
  pointer-events: none;
}

/* Botón CTA con efecto glow en hover */
.btn-white {
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.btn-white:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 40px rgba(255,255,255,.4);
}

/* ═══════════════════════════════════════════════
   HERO — NUEVA SECCIÓN AI STATS TICKER
════════════════════════════════════════════════ */
.ai-live-ticker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.ai-ticker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  animation: tokenFlow 6s ease-in-out var(--delay,0s) infinite;
}
.ai-ticker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22D3EE;
  animation: aiBlink 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(34,211,238,.8);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   NUEVA SECCIÓN: AI NEURAL GLOBE
════════════════════════════════════════════════ */
.ai-globe-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  background: linear-gradient(160deg, #03071e 0%, #050d2e 50%, #030a1c 100%);
}
.ai-globe-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .ai-globe-section .container { grid-template-columns: 1fr; gap: 48px; }
  .ai-globe-wrap { display: none; }
}
.ai-globe-content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}
.ai-globe-content p {
  color: rgba(255,255,255,.6);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 32px;
}

/* Globe SVG animado */
.ai-globe-wrap {
  position: relative;
  width: 380px; height: 380px;
  margin: auto;
}
.ai-globe-core {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(37,99,235,.6) 0%, rgba(6,182,212,.3) 50%, rgba(3,7,30,.8) 100%);
  box-shadow: inset -30px -30px 60px rgba(0,0,0,.5),
              inset 20px 20px 40px rgba(37,99,235,.2),
              0 0 80px rgba(37,99,235,.4);
  animation: glowBreath 6s ease-in-out infinite;
  overflow: hidden;
}
/* Latitud/longitud lines dentro del globo */
.ai-globe-grid {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  opacity: .25;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(34,211,238,.5) 28px, rgba(34,211,238,.5) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(34,211,238,.5) 28px, rgba(34,211,238,.5) 29px);
  animation: hueRotate 20s linear infinite;
}

/* Puntos de conexión orbitales */
.globe-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 12px rgba(34,211,238,.8);
  transform-origin: 190px 190px;
  animation: orbit var(--dur, 8s) linear var(--delay, 0s) infinite;
}
.globe-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(34,211,238,.4);
  animation: ringExpand 2s ease-out infinite;
}
/* Arcos de datos */
.globe-arc {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: 0 0;
  pointer-events: none;
}

/* Stats flotantes del globo */
.globe-stat {
  position: absolute;
  background: rgba(3,7,30,.85);
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 12px;
  padding: 10px 14px;
  backdrop-filter: blur(20px);
  z-index: 5;
  animation: floatCard 5s ease-in-out infinite;
}
.globe-stat:nth-child(2) { animation-delay: -2s; }
.globe-stat:nth-child(3) { animation-delay: -4s; }
.globe-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #22D3EE;
  line-height: 1;
}
.globe-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

/* Anillos orbitales alrededor del globo */
.globe-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,.2);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.globe-ring-1 { width: 420px; height: 420px; animation: neuralPulse 8s ease-in-out infinite; }
.globe-ring-2 { width: 480px; height: 480px; animation: neuralPulse 10s ease-in-out 1s infinite; border-style: dashed; }
.globe-ring-3 { width: 540px; height: 540px; animation: neuralPulse 12s ease-in-out 2s infinite; }

/* ─── Lista de capacidades IA ─── */
.ai-capabilities {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0 32px;
}
.ai-cap-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(37,99,235,.06);
  border: 1px solid rgba(37,99,235,.15);
  border-radius: 12px;
  transition: all .25s ease;
  cursor: default;
}
.ai-cap-item:hover {
  background: rgba(37,99,235,.12);
  border-color: rgba(37,99,235,.3);
  transform: translateX(6px);
}
.ai-cap-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(37,99,235,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.ai-cap-text strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ai-cap-text span {
  color: rgba(255,255,255,.45);
  font-size: 12px;
}

/* ═══════════════════════════════════════════════
   NUEVA SECCIÓN: LIVE METRICS DASHBOARD
════════════════════════════════════════════════ */
.live-metrics-section {
  padding: 80px 0;
  background: linear-gradient(160deg, #04091c 0%, #060f2a 60%, #03071a 100%);
  position: relative;
  overflow: hidden;
}
.live-metrics-section::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,.12), transparent 70%);
  pointer-events: none;
}
.live-metrics-header {
  text-align: center;
  margin-bottom: 60px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #22D3EE;
  letter-spacing: .05em;
  margin-bottom: 20px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22D3EE;
  animation: aiBlink 1.4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(34,211,238,.8);
}
.live-metrics-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.15;
}
.live-metrics-header p {
  color: rgba(255,255,255,.5);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* Grid de métricas en tiempo real */
.live-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .live-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .live-metrics-grid { grid-template-columns: 1fr; }
}

.live-metric-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.live-metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  border-color: rgba(37,99,235,.3);
}
.live-metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--card-color, linear-gradient(90deg, #2563EB, #06B6D4));
  border-radius: 2px 2px 0 0;
}
.live-metric-card::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  animation: shimmerSlide 5s ease-in-out infinite;
  pointer-events: none;
}

.live-metric-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--icon-bg, rgba(37,99,235,.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.live-metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.live-metric-label {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  margin-bottom: 12px;
}
.live-metric-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}
.live-metric-delta.up   { background: rgba(34,197,94,.12); color: #4ade80; }
.live-metric-delta.down { background: rgba(239,68,68,.12);  color: #f87171; }

/* Sparkline mini */
.live-sparkline {
  position: absolute;
  bottom: 16px; right: 16px;
  opacity: .5;
}

/* ─── Terminal de actividad en tiempo real ─── */
.live-activity-terminal {
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
}
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.terminal-dot { width:10px; height:10px; border-radius:50%; }
.terminal-dot:nth-child(1) { background:#ff5f57; }
.terminal-dot:nth-child(2) { background:#febc2e; }
.terminal-dot:nth-child(3) { background:#28c840; }
.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
  font-family: monospace;
}
.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  max-height: 200px;
  overflow: hidden;
  position: relative;
}
.terminal-line {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
  animation: fadeUp .4s ease both;
}
.terminal-line:nth-child(1) { animation-delay: .1s; }
.terminal-line:nth-child(2) { animation-delay: .3s; }
.terminal-line:nth-child(3) { animation-delay: .5s; }
.terminal-line:nth-child(4) { animation-delay: .7s; }
.terminal-line:nth-child(5) { animation-delay: .9s; }
.terminal-time { color: rgba(255,255,255,.25); flex-shrink: 0; }
.terminal-event { color: #22D3EE; flex-shrink: 0; font-weight: 700; }
.terminal-msg   { color: rgba(255,255,255,.6); }
.terminal-ok    { color: #4ade80; flex-shrink: 0; }
.terminal-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,.4));
  pointer-events: none;
}
.terminal-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: #22D3EE;
  margin-left: 4px;
  vertical-align: middle;
  animation: aiBlink 1s step-end infinite;
}

/* ═══════════════════════════════════════════════
   HERO — ANNOUNCEMENT BADGE MEJORADO
════════════════════════════════════════════════ */
.hero-announce {
  position: relative;
  overflow: hidden;
}
.hero-announce::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  animation: shimmerSlide 3s ease-in-out infinite 1s;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   PLAN CARDS — 3D HOVER CON REFLEJO
════════════════════════════════════════════════ */
.plan-card {
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.plan-card:hover {
  transform: translateY(-12px) rotateX(3deg);
  z-index: 3;
}
.plan-card::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  transition: left .5s ease;
  pointer-events: none;
}
.plan-card:hover::after { left: 140%; }

.plan-card.popular {
  animation: glowBreath 5s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   REDUCE-MOTION (ACCESIBILIDAD)
════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .dashboard--pro,
  .hero-float--pro,
  .ai-globe-core,
  .globe-dot,
  .live-metric-card,
  .testi-card,
  .sol-mockup,
  .plan-card,
  .security-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .product-screen::before,
  .ai-tag::before,
  .live-dot,
  .terminal-cursor {
    animation: none !important;
  }
}
