:root {
  --fucsia: #e6007a;
  --fucsia-suave: #ff80bf;
  --gris-chat: #faf7fa;
}

body {
  background: var(--gris-chat);
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.wa-container {
  max-width: 430px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px #0001;
  background: #fff;
}

.wa-barra {
  display: flex;
  align-items: center;
  padding: 14px;
  background: var(--fucsia);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-radius: 0 0 12px 12px;
}

.wa-perfil {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin-right: 16px;
  border: 3px solid #fff;
  object-fit: cover;
}


.wa-nombre span {
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  display: block;
}
.wa-nombre small {
  color: #ffd6ef;
  font-size: 0.90rem;
}

.wa-chat {
  flex: 1;
  padding: 18px 8px 10px 8px;
  overflow-y: auto;
  background: var(--gris-chat);
  display: flex;
  flex-direction: column;
}

.wa-msg {
  max-width: 75%;
  margin-bottom: 16px;
  padding: 10px 15px;
  border-radius: 16px;
  font-size: 1.01rem;
  line-height: 1.4;
  word-break: break-word;
  box-shadow: 0 2px 8px #0001;
  position: relative;
}

.wa-msg.user {
  align-self: flex-end;
  background: var(--fucsia);
  color: #fff;
  border-bottom-right-radius: 4px;
  text-align: right;
}
.wa-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: #3a3a3a;
  border-bottom-left-radius: 4px;
  border: 1px solid #f4bede;
}

.wa-form {
  display: flex;
  padding: 12px 8px;
  border-top: 1px solid #eee;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

#user-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #e1e1e1;
  font-size: 1rem;
  background: #f8e1f1;
  outline: none;
}

.wa-form button {
  background: var(--fucsia);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  margin-left: 10px;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.15s;
}
.wa-form button:hover {
  background: #ad0057;
}
