/* WAS Click To Chat — Estilos Front (v1.5) */
.was-ctc-root {
  position: fixed;
  z-index: 99998;
}

/* Botón flotante principal (ahora sin fondo) */
.was-ctc-btn {
  position: fixed;
  width: 70px; /* Icono más grande */
  height: 70px;
  background: transparent; /* Sin fondo verde */
  box-shadow: none; /* Sin sombra */
  cursor: pointer;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.was-ctc-btn:hover {
  transform: scale(1.1);
}
.was-ctc-btn img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); /* Sombra solo en el logo */
}

/* Burbuja de Bienvenida Interactiva */
.was-ctc-bubble {
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  color: #333;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  overflow: hidden;
  z-index: 99998;
  display: none; /* Se muestra con JS */
  border: 1px solid #e9e9e9;
}
.was-ctc-bubble.open {
  display: block;
  animation: wasFadeInUp 0.4s ease-out;
}

/* Botón de cerrar 'X' (más grande y mejor posicionado) */
.was-ctc-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.08);
  border: 0;
  border-radius: 50%;
  color: #666;
  cursor: pointer;
  width: 28px;
  height: 28px;
  line-height: 28px;
  font-size: 20px;
  font-weight: bold;
  z-index: 10;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.was-ctc-close:hover {
  background: rgba(0,0,0,0.2);
  color: #000;
  transform: scale(1.1);
}

/* Cabecera de la burbuja */
.was-ctc-bubble header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  background-color: #f7f7f7;
}
.was-ctc-bubble header img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.was-ctc-bubble header div {
  flex: 1;
}
.was-ctc-bubble h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111;
}
.was-ctc-bubble p.subtitle {
  margin: 2px 0 0;
  font-size: 13px;
  color: #555;
}

/* Cuerpo de la burbuja y formulario */
.was-ctc-bubble .body {
  padding: 16px;
  background: #fff;
  border-top: 1px solid #e9e9e9;
}
.was-ctc-bubble textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  min-height: 70px;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.was-ctc-bubble textarea:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2);
}

/* Botón de Enviar Mensaje */
.was-ctc-send-btn {
  width: 100%;
  background: #25D366;
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.was-ctc-send-btn:hover {
  background: #128C7E;
}

/* Preguntas predeterminadas */
.was-ctc-presets {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed #e0e0e0;
}
.was-ctc-presets ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.was-ctc-presets li {
  font-size: 13px;
  color: #005a9c;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  transition: background-color 0.2s, color 0.2s;
  text-align: center;
}
.was-ctc-presets li:hover {
  background-color: #f0f8ff;
  border-color: #bce3ff;
  color: #004085;
}


@keyframes wasFadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}