/* ==========================================================================
   WalterSis.com - Global Styles & WaaS Live Preview System
   ========================================================================== */

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

:root {
  --ws-dark: #070b14;
  --ws-slate: #0f172a;
  --ws-blue: #0ea5e9;
  --ws-cyan: #06b6d4;
  --ws-emerald: #10b981;
  --ws-bar-height: 62px;
  --ws-bar-offset: 0px;
}

@media (max-width: 640px) {
  :root {
    --ws-bar-height: 56px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

h1, .ws-hero-title {
  line-height: 1.32 !important;
  letter-spacing: 0.01em !important;
}

h2 {
  line-height: 1.35 !important;
  letter-spacing: 0.005em !important;
}

/* ==========================================================================
   WalterSis Live Preview Top Bar (ThemeForest / Wix Style)
   ========================================================================== */
body.has-ws-preview-bar {
  --ws-bar-offset: var(--ws-bar-height);
  padding-top: var(--ws-bar-height) !important;
}

/* Navegación fija de las 5 demos: SIEMPRE baja con el scroll en Escritorio, Tablet y Celular */
.ws-demo-sticky-nav {
  position: fixed !important;
  top: var(--ws-bar-offset, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 9000 !important;
}

.ws-nav-spacer {
  display: block;
  width: 100%;
  height: 76px;
  flex-shrink: 0;
}

.ws-demo-fixed-offset {
  top: var(--ws-bar-offset, 0px) !important;
}

body.ws-simulator-locked {
  overflow: hidden !important;
}

#ws-live-preview-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--ws-bar-height);
  background: rgba(7, 11, 20, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.25);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: #f8fafc;
  font-family: 'Inter', system-ui, sans-serif;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.ws-bar-left,
.ws-bar-center,
.ws-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ws-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ws-back-btn:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.5);
  color: #38bdf8;
  transform: translateX(-2px);
}

.ws-demo-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #f1f5f9;
}

.ws-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: ws-pulse-green 2s infinite;
}

@keyframes ws-pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.ws-viewport-switcher {
  display: inline-flex;
  align-items: center;
  background: #0f172a;
  padding: 0.25rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  gap: 0.25rem;
}

.ws-vp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-vp-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.ws-vp-btn.active {
  color: #070b14;
  background: linear-gradient(135deg, #38bdf8 0%, #10b981 100%);
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}

.ws-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: 1px solid rgba(52, 211, 153, 0.4);
  text-decoration: none;
  box-shadow: 0 4px 15px -2px rgba(16, 185, 129, 0.45);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ws-cta-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px rgba(16, 185, 129, 0.65);
}

.ws-demo-select {
  background: rgba(15, 23, 42, 0.9);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.45rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.ws-demo-select:focus {
  border-color: #38bdf8;
}

/* ==========================================================================
   Responsive Device Simulator Stage (Tablet & Mobile Live Preview)
   ========================================================================== */
#ws-device-stage {
  position: fixed;
  top: var(--ws-bar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, #1e293b 0%, #070b14 100%);
  z-index: 99990;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 1rem 1.5rem;
  overflow: auto;
}

#ws-device-stage.active {
  display: flex;
}

.ws-device-info-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.85);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.ws-device-frame {
  background: #0f172a;
  border-radius: 28px;
  padding: 12px;
  box-shadow:
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 0 2px rgba(148, 163, 184, 0.2),
    0 0 40px -10px rgba(14, 165, 233, 0.25);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  max-width: 100%;
  flex-shrink: 0;
}

.ws-device-notch {
  width: 90px;
  height: 6px;
  background: #334155;
  border-radius: 9999px;
  margin: 2px auto 10px;
}

.ws-device-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  flex: 1;
}

/* Responsive adjustments for the top bar on small screens */
@media (max-width: 760px) {
  .ws-viewport-switcher {
    display: none;
  }
  .ws-demo-select {
    display: none;
  }
}

@media (max-width: 640px) {
  .ws-back-text-full {
    display: none;
  }
  .ws-demo-badge span.ws-badge-label {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ws-cta-btn span.ws-cta-full {
    display: none;
  }
  .ws-cta-btn span.ws-cta-short {
    display: inline !important;
  }
}

/* ==========================================================================
   Barra de Navegación de Categorías del Catálogo (UX/UI Interactiva)
   ========================================================================== */
.ws-cat-nav-shell {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 1.25rem;
  padding: 0.65rem 0.75rem 0.75rem;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.65);
}

.ws-cat-arrow-btn {
  width: 38px;
  height: 38px;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ws-cat-arrow-btn:hover:not(:disabled) {
  background: #0ea5e9;
  color: #020617;
  border-color: #38bdf8;
  transform: scale(1.05);
}

.ws-cat-arrow-btn:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: rgba(148, 163, 184, 0.15);
  color: #64748b;
}

.ws-cat-scrollbar-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(2, 6, 23, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 9999px;
  margin-top: 0.55rem;
  cursor: pointer;
  overflow: hidden;
  user-select: none;
}

.ws-cat-scrollbar-thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  min-width: 48px;
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 50%, #10b981 100%);
  border-radius: 9999px;
  cursor: grab;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.65);
  transition: background 0.15s ease;
}

.ws-cat-scrollbar-thumb:hover,
.ws-cat-scrollbar-thumb.dragging {
  background: linear-gradient(90deg, #38bdf8 0%, #22d3ee 50%, #34d399 100%);
  cursor: grabbing;
}

/* Utility Animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.glow-blue {
  box-shadow: 0 0 40px -10px rgba(14, 165, 233, 0.35);
}

.glow-emerald {
  box-shadow: 0 0 40px -10px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   Funko Walter - Asistente Interactivo Animado (Bobblehead & Rig)
   ========================================================================== */
#walter-assistant-root {
  position: fixed !important;
  bottom: 22px !important;
  right: 22px !important;
  left: auto !important;
  width: auto !important;
  max-width: calc(100vw - 28px) !important;
  z-index: 99980 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  pointer-events: none !important;
  font-family: 'Inter', system-ui, sans-serif;
}

#walter-assistant-root * {
  pointer-events: auto;
}

/* Panel de Diálogo / Burbuja Interactiva de Walter */
.walter-dialog-card {
  width: 365px !important;
  max-width: calc(100vw - 28px) !important;
  background: rgba(10, 15, 29, 0.98) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  border-radius: 1.25rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.85rem;
  color: #f8fafc;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.9),
    0 0 30px -5px rgba(14, 165, 233, 0.3);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.walter-dialog-card.minimized {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Animaciones del Rig SVG de Funko Walter (De pie firme sobre su base) */
@keyframes funkoBobbleHead {
  0%, 100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-1.8deg);
  }
  70% {
    transform: rotate(1.8deg);
  }
}

@keyframes funkoTalkingHead {
  0%, 100% {
    transform: rotate(0deg) translateY(0px);
  }
  25% {
    transform: rotate(-2.8deg) translateY(1px);
  }
  50% {
    transform: rotate(2.2deg) translateY(0px);
  }
  75% {
    transform: rotate(-1.8deg) translateY(1px);
  }
}

@keyframes funkoEyeBlink {
  0%, 92%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.08);
  }
}

@keyframes funkoArmWave {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-14deg);
  }
}

@keyframes funkoArmTalk {
  0%, 100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(-22deg);
  }
  70% {
    transform: rotate(-8deg);
  }
}

.walter-svg-head {
  transform-origin: 110px 130px;
  animation: funkoBobbleHead 4s ease-in-out infinite;
}

.walter-talking .walter-svg-head {
  animation: funkoTalkingHead 0.55s ease-in-out infinite;
}

.walter-svg-eyes {
  transform-origin: 110px 92px;
  animation: funkoEyeBlink 4.2s infinite;
}

.walter-svg-arm-right {
  transform-origin: 144px 138px;
  animation: funkoArmWave 3.2s ease-in-out infinite;
}

.walter-talking .walter-svg-arm-right {
  animation: funkoArmTalk 0.7s ease-in-out infinite;
}

.walter-svg-whole {
  display: block;
}

/* Botón Avatar Flotante de Funko Walter */
.walter-avatar-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid #38bdf8;
  border-radius: 9999px;
  padding: 0.35rem 1rem 0.35rem 0.45rem;
  cursor: pointer;
  box-shadow:
    0 15px 35px -5px rgba(0, 0, 0, 0.75),
    0 0 25px rgba(14, 165, 233, 0.4);
  transition: all 0.25s ease;
}

.walter-avatar-trigger:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #10b981;
  box-shadow:
    0 20px 40px -5px rgba(0, 0, 0, 0.85),
    0 0 30px rgba(16, 185, 129, 0.5);
}

.walter-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.7rem;
  border-radius: 0.65rem;
  font-size: 0.73rem;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.walter-quick-chip:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Ocultar barra de scroll horizontal en filtros móviles */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Ajustes 100% Responsive para el Asistente en Pantallas Móviles */
@media (max-width: 640px) {
  #walter-assistant-root {
    bottom: 0.85rem;
    right: 0.85rem;
    left: 0.85rem;
  }

  .walter-dialog-card {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1rem;
  }

  .walter-avatar-trigger {
    padding: 0.25rem 0.85rem 0.25rem 0.35rem;
  }
}


