/* Botón Flotante (FAB) */
.asistente-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, #3FC0F0, #1898C6); */
  background: linear-gradient(135deg, var(--paleta-principal-isologo-2),var(--paleta-principal-isologo-1));
  border: none;
  box-shadow: 0 4px 15px rgba(24, 152, 198, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: flotarAsistente 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.asistente-fab:hover {
  transform: scale(1.08);
}

.asistente-fab__icon {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
}

@keyframes flotarAsistente {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Modal del Asistente (Usa .chat-modal--open en lugar de .is-active) */
.asistente-modal {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 340px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.asistente-modal.chat-modal--open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.asistente-modal__header {
  background: var(--paleta-principal-isologo-2);
  color: #ffffff;
  padding: 1rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.asistente-modal__title {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}
@media(min-width: 768px){
    .asistente-modal__title{
        font-size: 1.3rem;
    }
}

.asistente-modal__close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

.asistente-modal__body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #f8f9fa;
}

.asistente-mensaje {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  max-width: 85%;
  font-size: 0.9rem;
  line-height: 1.4;
}
@media(min-width: 768px){
    .asistente-mensaje{
        font-size: 1.1rem;
    }
}

.asistente-mensaje.bot {
  background: #ffffff;
  color: #333333;
  align-self: flex-start;
  border: 1px solid #e1e8ed;
}

.asistente-mensaje.user {
  background: #57A5DB;
  color: #ffffff;
  align-self: flex-end;
}

.asistente-modal__footer {
  padding: 0.75rem;
  background: #ffffff;
  border-top: 1px solid #e1e8ed;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

#form-asistente {
  display: flex;
  gap: 0.5rem;
}

#input-asistente {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 0.9rem;
}

#input-asistente:focus {
  border-color: #1898C6;
}

#form-asistente button {
  background: var(--paleta-principal-isologo-2);
  color: white;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

#form-asistente button:hover {
  background: #1274A1;
}

.btn-asistente{
    display: inline-flex;
    align-items: center;
}

.btn-asistente i{
    padding: 0;
    margin:0;
}