@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
  --rosa: #f8c7d6;
  --celeste: #c8ecf7;
  --lila: #e5d3f2;
  --amarillo: #fff6c1;
  --gris-suave: #f0f0f0;
  --texto: #333;
  --fuente: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: var(--fuente);
  background: linear-gradient(to bottom right, var(--celeste), var(--lila));
  color: var(--texto);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  background: linear-gradient(120deg, var(--rosa), var(--celeste));
  text-align: center;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
  margin: 0;
  font-size: 2rem;
}

header a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--texto);
  background: var(--amarillo);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

header a:hover {
  background: #fce689;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

#chat-comision {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chat-mensajes {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--gris-suave);
}

.chat-mensajes .yo {
  align-self: flex-end;
  background: var(--rosa);
  padding: 0.6rem 1rem;
  border-radius: 12px 12px 0 12px;
  max-width: 75%;
  word-wrap: break-word;
}

.chat-mensajes .admin {
  align-self: flex-start;
  background: var(--celeste);
  padding: 0.6rem 1rem;
  border-radius: 12px 12px 12px 0;
  max-width: 75%;
  word-wrap: break-word;
}

#form-chat {
  display: flex;
  border-top: 2px solid var(--gris-suave);
  padding: 1rem;
  gap: 1rem;
  background: white;
}

#input-chat {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid var(--lila);
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  background: #fff;
}

#input-chat:focus {
  border-color: var(--rosa);
}

#form-chat button {
  background: var(--rosa);
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#form-chat button:hover {
  background: #f3aebe;
}
