/* ================= RESET Y FUENTE ================= */
* {
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #6ba3d6 0%, #3a79af 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
}

/* ================= CONTENEDOR PRINCIPAL ================= */
#chatbot {
  width: 100%;
  max-width: 420px;
  height: 90vh;
  background: #f8fafd; /* Fondo claro para resaltar burbujas */
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* ================= HEADER (CON BOTÓN REINICIAR) ================= */
#chat-header {
  background: linear-gradient(135deg, #0D5C8F, #1F8AC0);
  color: white;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#chat-header span {
  font-weight: 700;
  font-size: 1.1rem;
}

#resetBtn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

#resetBtn:hover {
  background: #ff914d; /* Naranja deComidas */
  border-color: #ff914d;
  box-shadow: 0 0 10px rgba(255, 145, 77, 0.4);
}

/* ================= CUERPO DEL CHAT ================= */
#chat-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

/* Burbujas de Mensajes */
.bot, .user {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 14.5px;
  line-height: 1.4;
  color: white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.bot {
  background: linear-gradient(90deg, #4a90e2, #357abd);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.user {
  background: linear-gradient(90deg, #0D5C8F, #09466c);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

/* ================= OPCIONES Y BOTONES ================= */
.option {
  background: white;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  padding: 14px;
  color: #444;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  animation: fadeIn 0.3s ease;
}

.option:hover {
  border-color: #ff914d;
  color: #ff914d;
  transform: translateY(-2px);
  background: #fffaf7;
}

.option strong {
  display: block;
  font-size: 15px;
}

.option small {
  display: block;
  margin: 4px 0;
  font-weight: 400;
}

/* ================= FOOTER (INPUT Y ENVIAR) ================= */
#chat-footer {
  padding: 15px;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#userInput {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e6ed;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}

#userInput:focus {
  border-color: #0D5C8F;
}

#sendBtn {
  background: white;
  color: #0D5C8F;
  border: 2px solid #8cc63f; /* Verde del logo */
  padding: 12px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#sendBtn:hover {
  background: #8cc63f;
  color: white;
  box-shadow: 0 5px 15px rgba(140, 198, 63, 0.3);
}

/* ================= EXTRAS ================= */
.btn-back {
  background: #f0f0f0;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  align-self: flex-start;
  margin-bottom: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar personalizada */
#chat-body::-webkit-scrollbar {
  width: 6px;
}
#chat-body::-webkit-scrollbar-thumb {
  background: #dae1e9;
  border-radius: 10px;
}