/* Botón flotante */
#chat-container {
    position: fixed;
    bottom: 170px; /* Lo subimos para que libre el footer y quede donde marcaste */
    right: 20px;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#chat-button {
    background-color: #e8f3ee;
    color: #198754;
    border: 1px solid #198754;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    font-size: 24px;
    transition: transform 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: breathe 2s ease-in-out infinite;
}

#chat-button i{
    display: inline-block; /* ESTO ES LO QUE FALTA */
    animation: beat 2s ease-in-out infinite;
  text-decoration: none;
}


/*Estilos con animation contorno respirando*/
@keyframes breathe {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(25, 135, 84, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/*Estilos de animacion del icono latiendo*/
@keyframes beat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

#chat-button:hover {
    transform: scale(1.1);
}

/* Ventana de Chat */
#chat-window {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: #1e4d2b;
    color: white;
    padding: 15px;
    font-weight: bold;
}

#chat-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 14px;
    background-color: #f9f9f9;
}

.chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    background: white;
}

#chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
}

#send-btn {
    background: #28a745;
    color: white;
    border: none;
    margin-left: 8px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
}
/* Estilo para los botones de sugerencia */
.btn-sugerencia {
    background-color: #f0f0f0; /* Gris muy claro */
    border: none;               /* ELIMINA EL MARCO NEGRO */
    border-radius: 20px;       /* Forma de píldora/ovalada */
    padding: 8px 16px;         /* Espaciado interno */
    margin: 4px;               /* Separación entre botones */
    cursor: pointer;
    font-size: 13px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 5px;                  /* Espacio para el icono */
    transition: background 0.2s;
}

.btn-sugerencia:hover {
    background-color: #e2e2e2; /* Cambio sutil al pasar el mouse */
}