/* ============================================
   BOTONES NARANJAS
   ============================================ */
.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background-color: #f7931e;
  color: #111111 !important;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: transform 0.1s ease, box-shadow 0.1s ease,
    background-color 0.1s ease;
}

.btn-orange:hover {
  background-color: #ffa733;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

/* ============================================
   PANEL FLOTANTE DEL CHAT
   ============================================ */
#chat-panel {
  position: fixed;
  right: 200px;          /* ⬅️ Mueve el chat más a la izquierda aumentando este valor */
  bottom: 150px;
  z-index: 9990;
  display: none;         /* oculto por defecto */
  background: transparent; /* sin fondo blanco detrás */
}

#chat-panel.open {
  display: block;        /* se muestra cuando JS agrega .open */
}

/* Tarjeta blanca del chat */
.chat-card {
  width: 420px;
  max-width: 120vw;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.42);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
}

/* Área de mensajes */
.chat-messages {
  flex: 1;
  min-height: 200px;
  max-height: 300px;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  padding: 8px 10px;
  overflow-y: auto;
  font-size: 13px;
  margin-bottom: 10px;
}

/* ================================
   BURBUJAS DE MENSAJES ESTILO CHAT
   ================================ */

/* Contenedor general */
.msg {
    padding: 10px 14px;
    border-radius: 14px;
    margin-bottom: 10px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.35;
}

/* MENSAJE DEL USUARIO */
.msg.user {
    background-color: #dff0ff;   /* celestito */
    margin-left: auto;           /* alineado derecha */
    border-radius: 14px 14px 2px 14px;
    color: #003b5c;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* MENSAJE DEL BOT */
.msg.bot {
    background-color: #f5f5f5;   /* gris suave */
    margin-right: auto;          /* alineado izquierda */
    border-radius: 14px 14px 14px 2px;
    color: #222222;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.msg {
    animation: pop 0.12s ease-out;
}

@keyframes pop {
    from { transform: scale(0.96); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Formulario de envío */
.chat-form {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #999999;
  padding: 8px 12px;
  font-size: 13px;
  background-color: #ffffff;
}

.chat-input:focus {
  outline: none;
  border-color: #21a537;
  box-shadow: 0 0 0 2px rgba(33, 165, 55, 0.25);
}

.chat-send {
  border-radius: 999px;
  border: none;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  background-color: #21a537;
  color: #ffffff;
  cursor: pointer;
}

/* ============================================
   LAUNCHER: BURBUJA + RANITA (separados)
   ============================================ */

/* Burbuja (globito) que habla */
.chat-launcher-bubble {
  position: fixed;
  right: 260px;        /* ⬅️ misma columna que el chat */
  bottom: 170px;       /* un poco encima de la rana */
  max-width: 320px;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.30);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  z-index: 9998;
}

/* Piquito del globo */
.chat-launcher-bubble::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: 30px;
  border-width: 10px 0 10px 14px;
  border-style: solid;
  border-color: transparent transparent transparent #ffffff;
}

/* Ranita flotante */
.chat-launcher-frog {
  position: fixed;
  right: 0px;         /* más pegada a la esquina */
  bottom: 35px;
  height: 190px;       /* ⬅️ tamaño de la rana (sube si la quieres más grande) */
  width: auto;
  cursor: pointer;
  z-index: 9997;
  user-select: none;
  animation: bounce 2.5s infinite ease-in-out;
}

/* Animación suave de la rana */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Por si aún existe la clase vieja .frog-floating, la dejamos alineada igual */
.frog-floating {
  height: 190px;
  user-select: none;
}

/* ============================================
   BOTÓN DE CERRAR CHAT (si lo usas)
   ============================================ */
.chat-close {
  position: absolute;
  top: -12px;
  right: -12px;
  background: #ffffff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-weight: bold;
  border: 1px solid #dddddd;
  z-index: 1500;
}
