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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #0f1117;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

header {
  text-align: center;
  padding: 30px 0 20px;
}

header h1 {
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1px;
}

header p {
  color: #888;
  margin-top: 6px;
  font-size: 0.9rem;
}

#chat-box {
  width: 100%;
  max-width: 600px;
  background: #1a1d27;
  border-radius: 16px;
  padding: 20px;
  min-height: 300px;
  max-height: 450px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.msg.usuario {
  align-self: flex-end;
  background: #2563eb;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg.luna {
  align-self: flex-start;
  background: #2a2d3a;
  color: #e0e0e0;
  border-bottom-left-radius: 4px;
}

.msg.sistema {
  align-self: center;
  background: #1e3a2a;
  color: #4ade80;
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: 20px;
}

#controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

#btn-mic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: #2563eb;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}

#btn-mic:hover { background: #1d4ed8; transform: scale(1.05); }
#btn-mic.grabando { background: #dc2626; animation: pulse 1s infinite; }
#btn-mic.procesando { background: #6b7280; cursor: not-allowed; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(220,38,38,0.4); }
  50% { box-shadow: 0 4px 30px rgba(220,38,38,0.8); transform: scale(1.05); }
}

#status {
  color: #888;
  font-size: 0.85rem;
  height: 20px;
}

#btn-reset {
  background: none;
  border: 1px solid #374151;
  color: #6b7280;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

#btn-reset:hover { border-color: #6b7280; color: #9ca3af; }

#panel-citas {
  width: 100%;
  max-width: 600px;
  margin-top: 30px;
}

#panel-citas h2 {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cita-card {
  background: #1a1d27;
  border-left: 3px solid #4ade80;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.cita-card strong { color: #fff; }
.cita-card span { color: #888; }
