body{
  margin:0;
  font-family: 'Segoe UI', Arial;
  display:flex;
  height:100vh;
  background:#fff3c2;
}

/* ===== barra ===== */
.barra{
  width:260px;
  background:#8B0000;
  color:#fff;
  padding:20px;
  display:flex;
  flex-direction:column;
}

.barra h2{
  margin:0 0 15px;
  font-size:26px;
}

.historial div{
  background:rgba(255,255,255,0.15);
  margin:6px 0;
  padding:12px;
  border-radius:12px;
  cursor:pointer;
  transition:0.2s;
}

.historial div:hover{
  background:rgba(255,255,255,0.25);
}

/* ===== MAIN ===== */
.main{
  flex:1;
  display:flex;
  flex-direction:column;
}

/* ===== CHAT ===== */
.chat{
  flex:1;
  padding:25px;
  overflow:auto;
  background:#fff3c2;
}

.msg{
  padding:12px 16px;
  border-radius:18px;
  margin:10px 0;
  max-width:70%;
  box-shadow:0 4px 10px rgba(0,0,0,0.08);
}

.user{
  background:#6a1523;
  color:#fff;
  margin-left:auto;
}

.bot{
  background:#fff;
  border:1px solid #e2c9a6;
}

/* ===== INPUT ===== */
.input{
  display:flex;
  padding:15px;
  background:#fff3c2;
  border-top:1px solid #e0c9a6;
}

textarea{
  flex:1;
  resize:none;
  border:none;
  outline:none;
  padding:10px;
  font-size:15px;
  background:transparent;
}

button{
  margin-left:8px;
  padding:10px 14px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:bold;
}

/* botón voz */
.btn-voz{
  background:#f3c75f;
  color:#6a1523;
}

/* botón enviar */
.btn-enviar{
  background:#6a1523;
  color:#fff;
}
.btn-back{
  position: fixed;
  bottom: 20px;
  left: 20px;   
  background: #6a1523;
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.2s;
}

.btn-back:hover{
  background: #6a1523;
  transform: scale(1.05);
}