/* ============================================
   NUVAUS — Custom Design Tokens & Utilities
   ============================================ */

/* Tokens consolidados (auto-generados desde design/tokens.json)
   Source of truth: design/tokens.json — regenerar con `node design/build.js`
   Disponibles como var(--rb-*) ruta-b · var(--lg-*) legacy · var(--br-*) brand
   Los hex literales en este archivo son legacy y se migrarán progresivamente. */
@import url('./_tokens.css');

/* Prevent Alpine.js flash */
[x-cloak] { display: none !important; }

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  background-color: #0D0D14;
  overscroll-behavior: none;
  overflow-x: clip; /* clip > hidden: no crea scroll context en mobile */
}

/* Base font override — fallback stack ajustado a Inter para minimizar CLS en font-swap */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: #0D0D14;
  color: #F0F0F5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  touch-action: manipulation; /* evita 300ms delay sin bloquear pinch-zoom */
}

/* ============================================
   GRADIENT UTILITIES
   ============================================ */

.gradient-text {
  background: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
}

.gradient-border {
  border: 1px solid transparent;
  background:
    linear-gradient(#13131F, #13131F) padding-box,
    linear-gradient(135deg, #6C63FF, #00D4FF) border-box;
}

.gradient-border-elevated {
  border: 1px solid transparent;
  background:
    linear-gradient(#1A1A2E, #1A1A2E) padding-box,
    linear-gradient(135deg, #6C63FF, #00D4FF) border-box;
}

/* ============================================
   BUTTONS
   ============================================ */

/* Amber CTA — color de acción principal (insprado en AJJ) */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #c87010 0%, #E8A020 45%, #F5C040 100%);
  color: #0D0D14;
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(232,160,32,0.35), 0 4px 20px rgba(0,0,0,0.3);
  animation: nv-amber-pulse 2.8s ease-in-out infinite;
  will-change: transform;
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(232, 160, 32, 0.55), 0 0 60px rgba(232, 160, 32, 0.2);
  animation: none;
}

.btn-cta:active { transform: translateY(0); }

/* Shimmer interno del btn-cta — usa transform en lugar de left (GPU composited) */
.btn-cta::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-200%) skewX(-20deg);
  will-change: transform;
}
.btn-cta:hover::after {
  animation: btn-shimmer 0.65s ease-out forwards;
}

@keyframes nv-amber-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.015); }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(20px);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Bridge CTA section */
.bridge-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid #2A2A3E;
  border-bottom: 1px solid #2A2A3E;
  background: linear-gradient(180deg, transparent, rgba(108,99,255,0.04) 50%, transparent);
}

/* ============================================
   URGENCY BADGE
   ============================================ */

.nv-urgency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 160, 32, 0.1);
  border: 1px solid rgba(232, 160, 32, 0.35);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #E8A020;
  letter-spacing: 0.01em;
  animation: nv-amber-pulse 2.8s ease-in-out infinite;
}

/* ============================================
   GUARANTEE STRIP
   ============================================ */

.nv-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(13,13,20,0.8) 0%, rgba(26,26,46,0.6) 100%);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 1.25rem;
  padding: 1.5rem 2rem;
  max-width: 40rem;
  width: 100%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ============================================
   WHATSAPP CHAT DEMO
   ============================================ */

.nv-chat-demo {
  background: #111118;
  border: 1px solid #2A2A3E;
  border-radius: 1.25rem;
  overflow: hidden;
  max-width: 20rem;
  width: 100%;
}

.nv-chat-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: #1A2A1F;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nv-chat-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #6C63FF, #00D4FF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nv-chat-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.nv-chat-msg {
  max-width: 82%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.875rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.nv-chat-msg.user {
  align-self: flex-end;
  background: #1F6B3E;
  color: #E8F5E9;
  border-bottom-right-radius: 0.2rem;
}

.nv-chat-msg.bot {
  align-self: flex-start;
  background: #1E1E2E;
  color: #C0C0D8;
  border-bottom-left-radius: 0.2rem;
  border: 1px solid #2A2A3E;
}

.nv-chat-msg.bot strong {
  color: #00D4FF;
  font-weight: 600;
}

.nv-chat-time {
  font-size: 0.625rem;
  color: #8888AA;
  text-align: right;
  margin-top: 0.25rem;
}

.nv-typing {
  align-self: flex-start;
  background: #1E1E2E;
  border: 1px solid #2A2A3E;
  border-radius: 0.875rem;
  border-bottom-left-radius: 0.2rem;
  padding: 0.5rem 0.875rem;
  display: flex;
  gap: 3px;
  align-items: center;
}

.nv-typing span {
  width: 5px;
  height: 5px;
  background: #8888AA;
  border-radius: 50%;
  animation: nv-float 1.2s ease-in-out infinite;
  will-change: transform;
}
.nv-typing span:nth-child(2) { animation-delay: 0.2s; }
.nv-typing span:nth-child(3) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .btn-cta { animation: none !important; }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #F0F0F5;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid #2A2A3E;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: #6C63FF;
  color: #6C63FF;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-whatsapp:hover {
  background: #20b858;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

/* ============================================
   HERO — desktop: full viewport, mobile: content height
   ============================================ */

@media (min-width: 768px) {
  #inicio { min-height: 100vh; }
}

/* Botones: permitir wrap en mobile */
@media (max-width: 640px) {
  .btn-cta,
  .btn-primary,
  .btn-outline,
  .btn-whatsapp { white-space: normal; }
}

/* ============================================
   HERO BACKGROUND
   ============================================ */

.hero-bg {
  background:
    radial-gradient(ellipse at 15% 50%, rgba(108, 99, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0, 212, 255, 0.10) 0%, transparent 50%),
    #0D0D14;
}

.dot-pattern {
  background-image: radial-gradient(circle, rgba(42, 42, 62, 0.8) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============================================
   ANIMATIONS — Intersection Observer
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* Reveal — animación CSS pura, sin GSAP (para cards que necesitan render confiable) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }


/* ============================================
   NAV
   ============================================ */

nav.fixed {
  border: none !important;
  border-color: transparent !important;
  outline: none;
}

.nav-scrolled {
  background: #0D0D14;
}
.nav-scrolled::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  background: linear-gradient(to bottom, #0D0D14, transparent);
  pointer-events: none;
}

/* ============================================
   CARDS
   ============================================ */

.card-base {
  background: #13131F;
  border: 1px solid #2A2A3E;
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-base:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #6C63FF;
  box-shadow: 0 16px 48px rgba(108, 99, 255, 0.15), 0 0 32px rgba(0, 212, 255, 0.08);
}

.card-featured {
  background: #13131F;
  border: 1px solid #3A3A5E;
  position: relative;
  border-radius: 1.125rem;
}

/* ============================================
   PROCESS TIMELINE
   ============================================ */

/* ============================================
   COMPARISON TABLE
   ============================================ */

.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #2A2A3E;
}

.compare-row:last-child { border-bottom: none; }

.compare-header {
  background: #13131F;
  border-radius: 0.75rem 0.75rem 0 0;
  font-weight: 700;
  color: #8888AA;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.check-yes {
  color: #6C63FF;
  font-size: 1.25rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.check-yes svg {
  stroke: #6C63FF;
}

.check-no {
  color: #2A2A3E;
  font-size: 1.25rem;
  text-align: center;
}

.check-partial {
  color: #8888AA;
  font-size: 0.875rem;
  text-align: center;
}

/* ============================================
   FORM
   ============================================ */

.form-input {
  width: 100%;
  background: #13131F;
  border: 1px solid #2A2A3E;
  border-radius: 0.625rem;
  padding: 0.875rem 1.125rem;
  color: #F0F0F5;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: #8888AA;
}

.form-input:focus {
  border-color: #6C63FF;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-input option {
  background: #13131F;
  color: #F0F0F5;
}

/* ============================================
   BADGE
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.03em;
  border: 1px solid rgba(108, 99, 255, 0.4);
  background: rgba(108, 99, 255, 0.08);
  color: #A89CFF;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */

.wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  will-change: transform;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 0.875rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
  animation: wa-pulse 3s ease-in-out infinite;
  will-change: transform;
}

.wa-float:hover {
  background: #20b858;
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
  animation: none;
}

@keyframes wa-pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

/* ============================================
   LANG TOGGLE
   ============================================ */

.lang-toggle {
  display: flex;
  background: #13131F;
  border: 1px solid #2A2A3E;
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: #8888AA;
  background: transparent;
}

.lang-btn.active {
  background: linear-gradient(135deg, #6C63FF, #00D4FF);
  color: #fff;
}

/* ============================================
   FOOTER LINK
   ============================================ */

.footer-link {
  color: #8888AA;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9375rem;
}

.footer-link:hover {
  color: #F0F0F5;
}

/* ============================================
   MOBILE MENU DRAWER
   ============================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(13, 13, 20, 0.98);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

/* ============================================
   SECTION LAYOUT
   ============================================ */

.section-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-py {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6C63FF;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: #F0F0F5;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #8888AA;
  max-width: 42rem;
}

/* ============================================
   STATS BAR
   ============================================ */

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.stat-value {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #6C63FF, #00D4FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: #8888AA;
}

/* ============================================
   FEATURE CHECKMARK
   ============================================ */

.feature-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #C0C0D8;
  line-height: 1.5;
}

.feature-check svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   RESPONSIVE HELPERS
   ============================================ */

/* Mobile: contener todo dentro del viewport */
@media (max-width: 640px) {
  .stat-label { font-size: 0.75rem; }
  .card-featured { transform: scale(1); }
  .compare-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  .wa-float span { display: none; }
  .wa-float { padding: 1rem; border-radius: 50%; }
  .btn-cta,
  .btn-primary,
  .btn-outline { white-space: normal; text-align: center; }
  section { overflow-x: clip; }
}

/* Tabla comparativa: ocultar columna Freelancer en móviles */
@media (max-width: 480px) {
  .compare-row {
    grid-template-columns: 1.6fr 1fr 1fr;
    font-size: 0.75rem;
  }
  .compare-row > div:nth-child(4) {
    display: none;
  }
}

/* ============================================
   HERO — Aurora animada + orbes flotantes
   ============================================ */

.hero-bg {
  position: relative;
  overflow: clip; /* contiene canvas + ::before en mobile */
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(108, 99, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(0, 212, 255, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* hero-bg::after y hero-orbs eliminados — filter:blur(70px) escapa overflow:hidden en Chrome */

/* ============================================
   PROCESO — Cards elevadas v2
   ============================================ */

.proceso-card {
  position: relative;
  background: #13131F;
  border: 1px solid #2A2A3E;
  border-radius: 1rem;
  padding: 1.75rem;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.proceso-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 99, 255, 0.45);
  box-shadow: 0 12px 32px rgba(108, 99, 255, 0.12);
}

/* Número decorativo de fondo */
.proceso-bg-number {
  position: absolute;
  bottom: -0.75rem;
  right: 0.5rem;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 6.5rem;
  line-height: 1;
  color: #F0F0F5;
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

/* Línea de acento gradiente superior */
.proceso-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6C63FF, #00D4FF);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.proceso-card:hover .proceso-accent-line {
  opacity: 1;
}

/* Label "Paso 01" */
.proceso-step-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #00D4FF;
  margin-bottom: 0.875rem;
}

/* Contenedor del ícono 48x48 */
.proceso-icon-wrap {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(108, 99, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.35s ease;
}

.proceso-card:hover .proceso-icon-wrap {
  background: rgba(108, 99, 255, 0.28);
}

/* Línea conectora horizontal entre cards — desktop */
.proceso-connector {
  position: absolute;
  top: 2.75rem;
  left: calc(12.5% + 1.5rem);
  right: calc(12.5% + 1.5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.35) 25%, rgba(0, 212, 255, 0.35) 75%, transparent);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   BTN PRIMARY — Shimmer en hover
   ============================================ */

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-200%) skewX(-20deg);
  will-change: transform;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
}

.btn-primary:hover::after {
  animation: btn-shimmer 0.65s ease-out forwards;
}

@keyframes btn-shimmer {
  0%   { transform: translateX(-200%) skewX(-20deg); }
  100% { transform: translateX(280%) skewX(-20deg); }
}

/* Las animaciones de entrada ahora usan IntersectionObserver + CSS transitions
   GSAP ya no se usa para fade-in/reveal */

/* ============================================
   NOISE TEXTURE — Grain sutil sobre toda la página
   ============================================ */

.nv-noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 997;
  opacity: 0.3;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

#nv-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #6C63FF, #00D4FF);
  z-index: 1001;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.7), 0 0 24px rgba(0, 212, 255, 0.3);
}

/* ============================================
   STAT PILLS — Flotantes estilo AJJ
   ============================================ */

.nv-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nv-stat-pill {
  background: rgba(108, 99, 255, 0.07);
  border: 1px solid rgba(108, 99, 255, 0.22);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  animation: nv-float 4s ease-in-out infinite;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.nv-stat-pill:hover {
  border-color: rgba(108, 99, 255, 0.5);
  background: rgba(108, 99, 255, 0.13);
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.15);
}

.nv-stat-pill:nth-child(2) { animation-delay: 0.55s; }
.nv-stat-pill:nth-child(3) { animation-delay: 1.1s; }
.nv-stat-pill:nth-child(4) { animation-delay: 1.65s; }

.nv-stat-num {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  background: linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nv-stat-lbl {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8888AA;
  line-height: 1.5;
}

/* ============================================
   DYNAMIC EFFECTS — Adaptados de AJJ Proposal
   ============================================ */

/* Float para stat items del hero */
@keyframes nv-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Glow pulsante para card destacada */
@keyframes nv-card-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(108, 99, 255, 0), 0 4px 16px rgba(0, 0, 0, 0.2); }
  50%       { box-shadow: 0 0 28px rgba(108, 99, 255, 0.22), 0 0 60px rgba(0, 212, 255, 0.08), 0 4px 16px rgba(0, 0, 0, 0.2); }
}

/* Dot pulsante para badge del hero */
@keyframes nv-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* Shimmer para texto gradiente del hero */
@keyframes nv-shimmer-move {
  0%   { background-position: 100% center; }
  100% { background-position: -100% center; }
}

/* Float escalonado en stat items del hero */
#inicio .stat-item              { animation: nv-float 4s ease-in-out infinite; }
#inicio .stat-item:nth-child(1) { animation-delay: 0s; }
#inicio .stat-item:nth-child(3) { animation-delay: 0.55s; }
#inicio .stat-item:nth-child(5) { animation-delay: 1.1s; }
#inicio .stat-item:nth-child(7) { animation-delay: 1.65s; }

/* Glow pulsante en card destacada (featured) */
.card-featured { animation: nv-card-glow 3s ease-in-out infinite; }

/* Dot live en badge del hero */
.hero-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00D4FF;
  flex-shrink: 0;
  animation: nv-dot-pulse 2s ease-in-out infinite;
}

/* Shimmer en gradient-text del hero (solo dentro de #inicio) */
#inicio .gradient-text {
  background: linear-gradient(90deg, #6C63FF 0%, #00D4FF 30%, #A89CFF 60%, #6C63FF 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nv-shimmer-move 5s linear infinite;
}

/* Accesibilidad — sin animaciones */
@media (prefers-reduced-motion: reduce) {
  .hero-bg::before,
  .hero-bg::after,
  .hero-orb,
  .proceso-card,
  .btn-primary::after,
  #inicio .stat-item,
  .card-featured,
  .hero-live-dot,
  #inicio .gradient-text,
  .nv-stat-pill,
  .nv-noise {
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   LOSS BANNER
   ============================================ */
.nv-loss-banner {
  background: linear-gradient(135deg, rgba(255,77,77,.09), rgba(255,179,0,.04));
  border: 1px solid rgba(255,77,77,.25);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  margin-bottom: 3.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  position: relative;
  overflow: hidden;
  animation: loss-border-pulse 3s ease-in-out infinite;
}
.nv-loss-banner::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,77,77,0.06), transparent);
  transform: skewX(-20deg);
  animation: loss-shimmer 4s ease-in-out infinite 1s;
}
@keyframes loss-border-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); border-color: rgba(255,77,77,.25); }
  50%       { box-shadow: 0 0 24px rgba(255,77,77,.12); border-color: rgba(255,77,77,.45); }
}
@keyframes loss-shimmer {
  0%   { left: -60%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 160%; opacity: 0; }
}
@media (max-width: 640px) {
  .nv-loss-banner { grid-template-columns: 1fr; padding: 1.5rem; margin-bottom: 2.5rem; }
}
.nv-loss-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: rgba(255,77,77,.12);
  color: #FF4D4D;
  flex-shrink: 0;
  animation: icon-bounce 2.5s ease-in-out infinite;
}
@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}
.nv-loss-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  margin-bottom: 0.5rem;
  color: #F0F0F5;
}
.nv-loss-sub { color: #8888AA; font-size: 0.875rem; line-height: 1.65; }
.nv-loss-sub strong { color: #FFB300; }
.nv-loss-numbers { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-top: 1.125rem; }
.nv-loss-num {
  background: rgba(255,77,77,.07);
  border: 1px solid rgba(255,77,77,.18);
  border-radius: 0.75rem;
  padding: 0.75rem 1.125rem;
  text-align: center;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nv-loss-num:hover {
  transform: translateY(-4px);
  background: rgba(255,77,77,.14);
}
.nv-loss-num-val {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #FF4D4D;
  display: block;
}
.nv-loss-num-lbl { font-size: 0.6875rem; color: #8888AA; text-transform: uppercase; letter-spacing: .08em; }

/* ============================================
   INTERACTIVE CHATBOT
   ============================================ */
.nv-ichat-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) { .nv-ichat-inner { grid-template-columns: 1fr; gap: 2.5rem; } }
.nv-ichat-pitch h2 {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
  font-size: clamp(1.375rem, 3vw, 2.25rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.nv-ichat-pitch p { color: #8888AA; font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.5rem; }
.nv-ichat-proofs { display: flex; flex-direction: column; gap: 0.625rem; }
.nv-ichat-proof-row { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: #F0F0F5; }
.nv-ichat-proof-icon {
  width: 2rem; height: 2rem; border-radius: 0.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(108,99,255,.12); font-size: 0.875rem;
}
.nv-ichat-ui {
  background: #13131F;
  border: 1px solid rgba(108,99,255,.35);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 48px rgba(108,99,255,.1);
}
.nv-ichat-header {
  background: #1A1A2E;
  border-bottom: 1px solid #2A2A3E;
  padding: 0.9375rem 1.1875rem;
  display: flex; align-items: center; gap: 0.6875rem;
}
.nv-ichat-av {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #6C63FF, #00D4FF);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.nv-ichat-hname { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-weight: 700; font-size: 0.8125rem; margin-bottom: 0.125rem; }
.nv-ichat-hstatus { font-size: 0.6875rem; color: #00E5A0; display: flex; align-items: center; gap: 0.25rem; }
.nv-ichat-hstatus::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #00E5A0; flex-shrink: 0; animation: nv-pulse 2s ease infinite;
}
.nv-ichat-feed {
  padding: 1rem 0.9375rem; min-height: 240px; max-height: 320px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; scroll-behavior: smooth;
}
.nv-ichat-feed::-webkit-scrollbar { width: 3px; }
.nv-ichat-feed::-webkit-scrollbar-thumb { background: #2A2A3E; border-radius: 99px; }
.nv-bwrap { display: flex; flex-direction: column; }
.nv-bwrap.nv-user { align-items: flex-end; }
.nv-bwrap.nv-bot  { align-items: flex-start; }
.nv-bubble {
  max-width: 84%; padding: 0.625rem 0.875rem; font-size: 0.8125rem; line-height: 1.55;
  animation: nv-popin .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes nv-popin { from { opacity:0; transform:scale(.9) translateY(6px); } to { opacity:1; transform:scale(1) translateY(0); } }
.nv-bubble.nv-user {
  background: linear-gradient(135deg, #6C63FF, #5248D0); color: white;
  border-radius: 1.0625rem 1.0625rem 0.25rem 1.0625rem;
}
.nv-bubble.nv-bot {
  background: #1A1A2E; color: #F0F0F5; border: 1px solid #2A2A3E;
  border-radius: 1.0625rem 1.0625rem 1.0625rem 0.25rem;
}
.nv-btime { font-size: 0.625rem; color: #8888AA; margin-top: 0.1875rem; padding: 0 0.1875rem; }
.nv-typing-wrap { padding: 0 0.9375rem; display: none; }
.nv-typing-wrap.show { display: block; }
.nv-typing-dots {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: #1A1A2E; border: 1px solid #2A2A3E;
  border-radius: 1.0625rem 1.0625rem 1.0625rem 0.25rem;
  padding: 0.8125rem 1rem; animation: nv-popin .3s cubic-bezier(.34,1.56,.64,1);
}
.nv-dot { width: 7px; height: 7px; border-radius: 50%; background: #8888AA; animation: nv-dbounce 1.2s ease infinite; }
.nv-dot:nth-child(2) { animation-delay: .2s; }
.nv-dot:nth-child(3) { animation-delay: .4s; }
@keyframes nv-dbounce { 0%,80%,100%{ transform:translateY(0); opacity:.4; } 40%{ transform:translateY(-7px); opacity:1; } }
.nv-quick-qs { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0 0.9375rem 0.75rem; }
.nv-quick-q {
  font-size: 0.75rem; padding: 0.3125rem 0.6875rem; border-radius: 99px;
  background: rgba(108,99,255,.09); border: 1px solid rgba(108,99,255,.22);
  color: #8B85FF; cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif;
}
.nv-quick-q:hover { background: rgba(108,99,255,.18); border-color: #6C63FF; }
.nv-ichat-input-row {
  border-top: 1px solid #2A2A3E; padding: 0.8125rem 0.9375rem;
  background: #1A1A2E; display: flex; gap: 0.5625rem; align-items: flex-end;
}
.nv-ichat-inp {
  flex: 1; background: #13131F; border: 1px solid #2A2A3E; border-radius: 0.6875rem;
  padding: 0.625rem 0.8125rem; font-size: 0.8125rem; font-family: 'Inter', sans-serif;
  color: #F0F0F5; outline: none; resize: none; max-height: 90px; transition: border-color .2s;
}
.nv-ichat-inp:focus { border-color: #6C63FF; }
.nv-ichat-inp::placeholder { color: #8888AA; }
.nv-ichat-send {
  width: 2.5rem; height: 2.5rem; border-radius: 0.6875rem; flex-shrink: 0;
  background: linear-gradient(135deg, #6C63FF, #00D4FF);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: white; transition: opacity .2s, transform .15s;
}
.nv-ichat-send:hover { opacity: .85; }
.nv-ichat-send:active { transform: scale(.93); }
.nv-ichat-send:disabled { opacity: .35; cursor: not-allowed; }
.nv-ichat-send svg { width: 1rem; height: 1rem; }
.nv-ichat-footer { padding: 0.5rem 0.9375rem 0.8125rem; text-align: center; font-size: 0.6875rem; color: #8888AA; }
.nv-ichat-live-badge {
  display: inline-flex; align-items: center; gap: 0.4375rem;
  background: rgba(0,229,160,.1); border: 1px solid rgba(0,229,160,.25);
  border-radius: 99px; padding: 0.3125rem 0.75rem;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em;
  color: #00E5A0; font-family: 'Inter', sans-serif;
}
.nv-ichat-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #00E5A0;
  flex-shrink: 0; animation: nv-pulse 2s ease infinite;
}

/* ============================================================
   DIAGNOSTICO — Quiz styles
   ============================================================ */
.quiz-progress-bar {
  width: 100%; height: 6px; background: #1A1A2E; border-radius: 99px; overflow: hidden;
}
.quiz-progress-fill {
  height: 100%; border-radius: 99px; transition: width .4s ease;
  background: linear-gradient(90deg, #6C63FF, #00D4FF);
}
.quiz-option {
  background: #13131F; border: 1px solid #2A2A3E; border-radius: 0.75rem;
  padding: 0.875rem 1rem; cursor: pointer; transition: all .2s ease;
  color: #F0F0F5; display: block; width: 100%;
}
.quiz-option:hover { border-color: #6C63FF; background: rgba(108,99,255,.05); }
.quiz-option.selected {
  border-color: #6C63FF; background: rgba(108,99,255,.1);
  box-shadow: 0 0 0 1px #6C63FF;
}
.score-bar {
  width: 100%; height: 8px; background: #1A1A2E; border-radius: 99px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; border-radius: 99px; transition: width .8s ease;
  background: linear-gradient(90deg, #6C63FF, #00D4FF);
}
