/* ===============================
   SALADETA BOT - v2.2
   =============================== */

/* --- Botón flotante --- */
#saladeta-bot-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #2e4d43;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease-in-out;
}

#saladeta-bot-toggle svg {
  width: 36px;
  height: 36px;
  fill: #ffffff;
  transition: transform 0.25s ease;
}

#saladeta-bot-toggle:hover {
  background: #3f6b5c;
  transform: scale(1.05);
}

#saladeta-bot-toggle.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

/* --- Ventana del chat --- */
#saladeta-bot {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 360px;
  max-height: 520px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  z-index: 9998;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  color: #1f2937;
}

#saladeta-bot.open {
  transform: translateY(0);
  opacity: 1;
}

#saladeta-bot.closed {
  transform: translateY(120%);
  opacity: 0;
}

/* --- Cabecera --- */
.bot-header {
  background: linear-gradient(135deg, #2e4d43, #3f6b5c);
  color: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 16px;
}

.bot-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.bot-close:hover {
  transform: scale(1.15);
  color: #c8f1e4; /* tono más claro al pasar el ratón */
}


/* --- Cuerpo --- */
.bot-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8faf9;
}

/* --- Mensajes --- */
.bot-msg {
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 85%;
  line-height: 1.5;
  font-size: 15.5px;
}

.bot-left {
  background: #fff;
  border: 1px solid #e3e8e6;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.bot-right {
  background: #2e4d43;
  color: #fff;
  align-self: flex-end;
  margin-left: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* --- Botones --- */
.bot-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.bot-opt {
  background: #fff;
  color: #1f2937;
  border: 2px solid #2e4d43;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s ease;
}

.bot-opt:hover {
  background: #2e4d43;
  color: #fff;
  transform: translateY(-1px);
}

/* --- Móvil --- */
@media (max-width: 600px) {
  #saladeta-bot {
    width: 92%;
    right: 4%;
    bottom: 80px;
    max-height: 80%;
  }

  #saladeta-bot-toggle {
    width: 64px;
    height: 64px;
  }

  #saladeta-bot-toggle svg {
    width: 32px;
    height: 32px;
  }

  #saladeta-bot-toggle.hidden {
    display: none;
  }
}


