/* Estilos generales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  width: 100%;
  display: flex;
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  background-color: #f8f9fa;
}

/* Contenedor principal */
.main-container {
  display: flex;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  gap: 2rem;
}

/* Sidebar */
.sidebar {
  width: 320px;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar img {
  max-width: 180px;
  margin: 0 auto;
}

/* Pasos */
.steps {
  flex: 1;
}

.steps hr {
  border: none;
  height: 1px;
  background: #e9ecef;
  margin: 1rem 0;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.step-item:hover {
  background: #f8f9fa;
}

.step-item.active {
  background: #fff3f3;
  color: #FE4140;
}

.step-number {
  width: 28px;
  height: 28px;
  background: #dee2e6;
  color: #495057;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.step-item.active .step-number {
  background: #FE4140;
  color: white;
}

.step-clock {
  font-size: 12px;
  color: #868e96;
  margin-left: auto;
}

/* Chat container */
.chat-container {
  flex: 1;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-box {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Mensajes */
.user-message, .bot-message {
  max-width: 80%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  line-height: 1.5;
}

.user-message {
  background: #f8f9fa;
  margin-left: auto;
  color: #495057;
}

.bot-message {
  background: #fff3f3;
  margin-right: auto;
  color: #212529;
}

/* Input área */
.chat-input {
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 1rem;
}

#userInput {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 1rem;
  color: #495057;
  transition: all 0.3s ease;
}

#userInput:focus {
  outline: none;
  border-color: #FE4140;
  box-shadow: 0 0 0 3px rgba(254, 65, 64, 0.1);
}

.send-button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: #FE4140;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.send-button:hover {
  background: #e63535;
}

/* Mensaje de bienvenida */
.mensaje_contenedor {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mensaje_indicativo {
  font-size: 1.125rem;
  font-weight: 500;
  color: #212529;
  margin: 0;
}

/* Alerta info */
.alerta_contenedor {
  margin-top: 1rem;
}

.tarjeta_info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff3f3;
  padding: 1rem;
  border-radius: 8px;
}

.icono_info {
  font-size: 1.25rem;
}

.alerta_mensaje {
  margin: 0;
  font-size: 0.875rem;
  color: #495057;
  line-height: 1.5;
}

/* Animaciones */
.animate__animated {
  animation-duration: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .sidebar {
    width: 100%;
    padding: 1.5rem;
  }

  .chat-container {
    height: 60vh;
  }
}

}