/* ==========================================================
   Dreams Flying — Mini widget de WhatsApp (burbuja + panel)
   ========================================================== */

/* Ocultar el widget cuando el menú móvil está abierto */
body.menu-open .dfw-wrapper{
  display: none !important;
}

/* ---------- Panel de mini chat ---------- */
.dfw-panel{
  position: absolute;
  right: 0;
  bottom: 76px; /* 60px del boton + 16px de separacion (mismo valor que antes tenia el margin-bottom) */
  z-index: 1; /* por encima del boton .dfw-bubble, que esta despues en el DOM */
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  border: 1px solid rgba(90,162,226,0.22);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(10,23,48,0.16), 0 4px 14px rgba(10,23,48,0.08);
  overflow: hidden;
  transform: translateY(20px) scale(0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .3s ease, visibility .3s ease;
}
.dfw-panel.active{
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dfw-panel-header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, #5AA2E2, #1c62a0);
  position: relative;
}
/* Avatar de Sol: foto real (assets/img/sol-asesora.webp), recortada circular
   con object-fit:cover via .dfw-avatar-img (no se deforma). */
.dfw-avatar{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf5ff, #cfe6fb);
  border: 2px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #1c62a0;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.dfw-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dfw-header-text{
  display: flex;
  flex-direction: column;
  color: #fff;
  line-height: 1.3;
}
.dfw-header-text strong{
  font-size: 0.95rem;
}
.dfw-status{
  font-size: 0.72rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 5px;
}
.dfw-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #bbf7d0;
  box-shadow: 0 0 6px #bbf7d0;
}
.dfw-close{
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background .2s ease;
}
.dfw-close:hover{ background: rgba(255,255,255,0.3); }

.dfw-panel-body{
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dfw-bubble-bot{
  background: rgba(90,162,226,0.08);
  border: 1px solid rgba(90,162,226,0.18);
  border-radius: 14px;
  padding: 12px 14px;
  color: #0a1730;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: dfw-fade-in .4s ease;
}
@keyframes dfw-fade-in{
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dfw-quick-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dfw-quick-btn{
  text-align: left;
  background: rgba(90,162,226,0.07);
  border: 1px solid rgba(90,162,226,0.32);
  color: #0a1730;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.dfw-quick-btn:hover{
  background: rgba(90,162,226,0.16);
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(90,162,226,0.18);
}

.dfw-panel-footer{
  padding: 10px 16px 14px;
  font-size: 0.68rem;
  color: rgba(10,23,48,.5);
  text-align: center;
  border-top: 1px solid rgba(90,162,226,0.14);
}

@media (max-width: 420px){
  .dfw-panel{ width: 280px; }
}


/* ==========================================================
   BURBUJA FLOTANTE — reglas estrictas, al final para ganar
   ========================================================== */

.dfw-wrapper {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  width: 60px !important;
  height: 60px !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* Burbuja flotante cerrada: icono oficial de WhatsApp (SVG blanco, inline
   en whatsapp-widget.js) sobre el circulo azul de marca. La foto real de
   Sol va solo en el header del panel abierto (.dfw-avatar-img). */
.dfw-bubble {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #5AA2E2, #1c62a0) !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(28,98,160,0.35) !important;
  box-sizing: border-box !important;
}

.dfw-bubble .dfw-wa-symbol {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  font-family: 'Sora', sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  line-height: 1 !important;
  overflow: hidden !important;
  transform: none !important;
  position: static !important;
}

.dfw-bubble-img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
