/* ==========================================================================
   ODEBIN ERP - ANIMACIONES Y EFECTOS CINEMÁTICOS & DESTELLOS
   ========================================================================== */

/* Animación Flotante Suave */
@keyframes float-slow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes float-reverse {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(8px) rotate(-0.5deg);
  }
}

.animate-float {
  animation: float-slow 5s ease-in-out infinite;
}

.animate-float-reverse {
  animation: float-reverse 6s ease-in-out infinite;
}

/* Destellos Tecnológicos (Sparkles / Lens Flares) */
@keyframes sparkle-pulse {
  0%, 100% {
    transform: scale(0.6) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2) rotate(45deg);
    opacity: 1;
    filter: drop-shadow(0 0 12px #38bdf8);
  }
}

.destello-tech {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #ffffff 10%, #38bdf8 60%, transparent 80%);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkle-pulse 3s infinite ease-in-out;
}

/* Efecto de Escaneo de Factura en Simulador */
@keyframes scanner-laser {
  0% {
    top: 0%;
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0.2;
  }
}

.scanner-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38bdf8, #22d3ee, transparent);
  box-shadow: 0 0 15px #38bdf8, 0 0 30px #06b6d4;
  animation: scanner-laser 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Marquee Infinito para Rubros o Logos */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Shimmer Button */
@keyframes shimmer-sweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.btn-shimmer {
  background: linear-gradient(
    90deg,
    #015DB2 0%,
    #38bdf8 45%,
    #ffffff 50%,
    #38bdf8 55%,
    #015DB2 100%
  );
  background-size: 200% 100%;
  animation: shimmer-sweep 4s infinite linear;
}

/* Nav Item Hover State (Figma Style) */
.nav-link-figma {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 95px;
  height: 52px;
  padding: 0 1.1rem;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1e293b;
  border-radius: 0.85rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.nav-link-figma:hover,
.nav-link-figma.active {
  background-color: #015DB2;
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(1, 93, 178, 0.35);
}

.nav-link-figma .nav-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 2.75rem;
  height: 3px;
  background-color: #ffffff;
  border-radius: 9999px;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.nav-link-figma:hover .nav-indicator,
.nav-link-figma.active .nav-indicator {
  transform: translateX(-50%) scaleX(1);
}

/* ==========================================================================
   ESCENARIO ORBITAL 3D Y TARJETAS SPOTLIGHT LIGHT TECH
   ========================================================================== */

/* Anillos Orbitales y Brillo Radial del Pedestal */
@keyframes orbit-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbit-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.8;
  }
}

.orbital-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.orbital-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(1, 93, 178, 0.08) 50%, transparent 75%);
  filter: blur(30px);
}

/* Tarjetas de Valor Interactivas con Spotlight */
.spotlight-card-light {
  position: relative;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.06);
}

.spotlight-card-light:hover {
  transform: translateY(-4px) scale(1.01);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(1, 93, 178, 0.45);
  box-shadow: 0 16px 36px -6px rgba(1, 93, 178, 0.16);
}

/* Sellos 3D con Escala y Halo Holográfico */
.sello-stage-item {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sello-stage-item:hover {
  transform: scale(1.16) translateY(-8px);
  z-index: 40 !important;
  filter: drop-shadow(0 20px 35px rgba(1, 93, 178, 0.35));
}

/* ==========================================================================
   BOTÓN FLOTANTE CON MASCOTA ODE.PNG Y WIDGET DE PREGUNTAS
   ========================================================================== */
@keyframes float-mascot-btn {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float-btn {
  animation: float-mascot-btn 3.2s ease-in-out infinite;
}

@keyframes mascot-wave {
  0%, 100% {
    transform: rotate(0deg);
  }
  20%, 60% {
    transform: rotate(6deg) scale(1.05);
  }
  40%, 80% {
    transform: rotate(-4deg) scale(1.05);
  }
}

.mascot-avatar:hover {
  animation: mascot-wave 1.2s ease-in-out infinite;
}

/* ==========================================================================
   BARRA DE MÉTRICAS DINÁMICAS Y COMPACTAS (UI/UX OPTIMIZADO)
   ========================================================================== */

/* Anillo de calibre circular animado (+10 Años) */
.gauge-ring-fill {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Onda de emisión continua de comprobantes (+15M) */
@keyframes wave-glow {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(1, 93, 178, 0.3));
    stroke-width: 2.2;
  }
  50% {
    filter: drop-shadow(0 0 7px rgba(14, 165, 233, 0.75));
    stroke-width: 2.8;
  }
}

.wave-stroke-anim {
  animation: wave-glow 2.4s ease-in-out infinite;
}

/* Pulso cardíaco EKG nítido y continuo (24/7) */
@keyframes ekg-stroke-loop {
  0% {
    stroke-dashoffset: 200;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -200;
  }
}

.ekg-active-line {
  stroke-dasharray: 100 100;
  animation: ekg-stroke-loop 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  filter: drop-shadow(0 0 3px rgba(16, 185, 129, 0.5));
}

/* ==========================================================================
   FUSIÓN FLUIDA ENTRE HERO Y SECCIÓN 02 (UNION BANNER)
   ========================================================================== */
.hero-transition-banner {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
}

/* ==========================================================================
   SECCIÓN 04: PANAL HEXAGONAL CON RAYO LÁSER PERIMETRAL (BORDER BEAM)
   ========================================================================== */

/* Fondo de Matriz de Puntos Tecnológicos (como en Figma) */
.bg-tech-dots {
  background-image: radial-gradient(rgba(1, 93, 178, 0.12) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}

/* Animación del Rayo Láser que recorre los 6 bordes del hexágono */
@keyframes hex-laser-loop {
  0% {
    stroke-dashoffset: 440;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.hex-border-beam {
  stroke-dasharray: 85 355;
  animation: hex-laser-loop 4.5s linear infinite;
  filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.85));
}

/* Desfases estacionales para crear el efecto de red viva / circuito activo */
.hex-pod-1 .hex-border-beam { animation-delay: 0s; }
.hex-pod-2 .hex-border-beam { animation-delay: -0.6s; }
.hex-pod-3 .hex-border-beam { animation-delay: -1.2s; }
.hex-pod-4 .hex-border-beam { animation-delay: -1.8s; }
.hex-pod-5 .hex-border-beam { animation-delay: -2.4s; }
.hex-pod-6 .hex-border-beam { animation-delay: -3.0s; }
.hex-pod-7 .hex-border-beam { animation-delay: -0.3s; }
.hex-pod-8 .hex-border-beam { animation-delay: -0.9s; }
.hex-pod-9 .hex-border-beam { animation-delay: -1.5s; }
.hex-pod-10 .hex-border-beam { animation-delay: -2.1s; }
.hex-pod-11 .hex-border-beam { animation-delay: -2.7s; }
.hex-pod-12 .hex-border-beam { animation-delay: -3.3s; }
.hex-pod-13 .hex-border-beam { animation-delay: -0.8s; }
.hex-pod-14 .hex-border-beam { animation-delay: -1.7s; }
.hex-pod-15 .hex-border-beam { animation-delay: -2.6s; }

/* Tarjeta Hexagonal Interactiva */
.hex-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hex-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(1, 93, 178, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
}

.hex-card:hover .hex-border-beam {
  animation-duration: 2.2s;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 1)) drop-shadow(0 0 3px #015DB2);
}

.hex-card:hover .hex-icon-center {
  transform: scale(1.15);
  color: #015DB2;
}

.hex-card:hover .hex-glow-core {
  opacity: 0.8;
  transform: scale(1.25);
}

.hex-card:hover .hex-poly-bg {
  fill: #ffffff;
}

/* ==========================================================================
   SLIDER ESTILIZADO DE LA CALCULADORA DE TELEMETRÍA
   ========================================================================== */
#calc-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
  transition: all 0.2s ease;
}

#calc-slider:hover {
  background: #cbd5e1;
}

#calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #015DB2;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(1, 93, 178, 0.45);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 16px rgba(1, 93, 178, 0.65);
}

#calc-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #015DB2;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(1, 93, 178, 0.45);
  cursor: pointer;
}




