/* Estilos del widget de WhatsApp */
#whatsapp-widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  opacity: 0;
  /* Se cambia la transición para que el chat aparezca más suave */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: scale(0.95);
  pointer-events: none;
}
#whatsapp-widget-container.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#whatsapp-chat-box {
  background-color: #ffffff;
  width: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  position: relative;
}

.header {
  background-color: #25d366;
  padding: 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  object-fit: cover;
  border: 2px solid #25d366;
}

.info {
  display: flex;
  flex-direction: column;
}

.name {
  font-weight: 600;
  color: white;
  margin: 0;
  font-size: 1.1rem;
}

.status {
  font-size: 0.9rem;
  color: white;
  margin: 0;
}

.body {
  padding: 20px;
  text-align: center;
}

.body p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.whatsapp-btn:hover {
  background-color: #128c7e;
}

.whatsapp-icon {
  margin-right: 8px;
  color: white;
}

/* Estilos para el botón de cerrar */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-btn:hover {
  background-color: #e0e0e0;
  color: #333;
}
.close-icon {
  width: 24px;
  height: 24px;
}

/* Estilos para el botón flotante */
.whatsapp-btn-float {
  position: fixed;
  bottom: 50px;
  right: 50px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: scale(0.95);
  pointer-events: none;
}
.whatsapp-btn-float.show {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.whatsapp-btn-float img {
  width: 40px;
  height: 40px;
  color: white;
}
/* --- ESTILOS AGREGADOS PARA RESPONSIVIDAD --- */
@media (max-width: 768px) {
	#whatsapp-chat-box {
		width: 60vw; /* Usa el 60% del ancho del viewport */
		max-width: none; /* Elimina la anchura máxima para móviles */
	}
	#whatsapp-widget-container {
	  position: fixed;
	  bottom: 20px;
	  right: 10px;
	  
	}
}
  @media (max-width: 576px) {
	#whatsapp-chat-box {
		width: 90vw; /* Usa el 90% del ancho del viewport */
		max-width: none; /* Elimina la anchura máxima para móviles */
	}
	#whatsapp-widget-container {
	  position: fixed;
	  bottom: 20px;
	  right: 10px;
	  
	}
}