/* ==========================================================================
   WHATSAPP WIDGET (Elegante y no intrusivo)
   ========================================================================== */

.wa-widget { 
  position: fixed; 
  bottom: 2rem; 
  right: 2rem; 
  z-index: 9999; 
  display: flex; 
  flex-direction: column; 
  align-items: flex-end; 
}

/* El botón flotante rediseñado - más sutil pero llamativo */
.wa-float { 
  width: 65px; 
  height: 65px; 
  background: rgba(37, 211, 102, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff; 
  border: 1px solid rgba(255,255,255,0.4); 
  border-radius: 50%; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  cursor: pointer; 
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3), inset 0 0 0 1px rgba(255,255,255,0.2); 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; 
  position: relative; 
}

@media (hover: hover) and (pointer: fine) { 
  .wa-float:hover { 
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4), inset 0 0 0 1px rgba(255,255,255,0.5); 
  } 
}

/* Pulsación sutil y elegante */
.wa-float::before { 
  content: ''; 
  position: absolute; 
  width: 100%; 
  height: 100%; 
  background: var(--c-wa); 
  border-radius: 50%; 
  z-index: -1; 
  animation: wa-pulse 3s infinite cubic-bezier(0.16, 1, 0.3, 1); 
}
@keyframes wa-pulse { 
  0% { transform: scale(1); opacity: 0.6; } 
  100% { transform: scale(1.6); opacity: 0; } 
}

/* El Panel de Chat (Minimalista y Glassmorphism) */
.wa-box { 
  width: 320px; 
  background: rgba(255, 255, 255, 0.85); 
  backdrop-filter: blur(25px); 
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 20px; 
  box-shadow: 0 25px 50px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.5) inset; 
  margin-bottom: 1rem; 
  overflow: hidden; 
  transform-origin: bottom right; 
  transform: scale(0.9) translateY(20px); 
  opacity: 0; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  pointer-events: none; 
}
.wa-box.active { 
  transform: scale(1) translateY(0); 
  opacity: 1; 
  pointer-events: auto; 
}

.wa-header { 
  background: linear-gradient(135deg, #25D366, #128C7E); 
  color: #fff; 
  padding: 1.2rem; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}
.wa-info h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.2rem; }
.wa-info p { font-size: 0.8rem; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 6px; }
.online-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; box-shadow: 0 0 8px rgba(255,255,255,0.5); }
.wa-close { background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; opacity: 0.7; transition: opacity 0.3s; }
.wa-close:hover { opacity: 1; }

.wa-body { padding: 1.5rem; }
.wa-message { 
  background: #fff; 
  padding: 1rem; 
  border-radius: 0 12px 12px 12px; 
  font-size: 0.95rem; 
  color: #333; 
  line-height: 1.5; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
  margin-bottom: 1.5rem; 
  position: relative; 
}
.wa-message::before { content: ''; position: absolute; top: 0; left: -10px; border: 10px solid transparent; border-top-color: #fff; border-right-color: #fff; }

.wa-btn { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px; 
  width: 100%; 
  background: var(--c-wa); 
  color: #fff; 
  text-decoration: none; 
  border: none; 
  cursor: pointer; 
  padding: 0.9rem; 
  border-radius: 100px; 
  font-weight: 600; 
  font-family: var(--font-main); 
  font-size: 1rem; 
  transition: transform 0.3s; 
}
@media (hover: hover) and (pointer: fine) { 
  .wa-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px var(--c-wa-glow); } 
}
