* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #e5ddd5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-banner {
  width: 100%;
  background: #222;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.phone {
  width: 100%;
  max-width: 420px;
  height: min(85vh, 720px);
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  background: #e5ddd5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.wa-header {
  background: #075e54;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  flex-shrink: 0;
}

.wa-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.wa-header-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wa-header-info span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.wa-chat {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wa-day {
  align-self: center;
  background: #e1f2fb;
  color: #555;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.msg {
  max-width: 78%;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.35;
  white-space: pre-wrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.msg-in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 0;
}

.msg-out {
  align-self: flex-end;
  background: #dcf8c6;
  border-top-right-radius: 0;
}

.msg-typing {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 0;
  color: #999;
  font-style: italic;
}

.msg-error {
  align-self: center;
  background: #ffe0e0;
  color: #900;
  font-size: 0.8rem;
}

.wa-input-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
  background: #f0f0f0;
  flex-shrink: 0;
}

.wa-input-bar input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  outline: none;
}

.wa-input-bar button {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  flex-shrink: 0;
}

.wa-input-bar button:disabled {
  opacity: 0.5;
  cursor: default;
}

.turno-section {
  width: 100%;
  max-width: 420px;
  margin: 1.5rem auto 2rem;
  padding: 0 0.5rem;
}

.turno-section h2 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.75rem;
}

.turno-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #fff;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.turno-form input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
}

.btn-turno {
  border: none;
  border-radius: 6px;
  background: #128c7e;
  color: #fff;
  padding: 0.7rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.turno-status {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
}
