/* ---------- Estilos generales ---------- */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

/* ---------- Contenedor principal ---------- */
.container {
  width: 100%;
  max-width: 800px;
}

/* ---------- Header ---------- */
header {
  background-color: #0d465f;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 8px 8px 0 0;
}
header h1 {
  margin: 0;
  font-size: 24px;
}

/* ---------- Card ---------- */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: -8px;
}

/* ---------- Inputs ---------- */
input[type="text"] {
  width: 95%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ---------- Botones ---------- */
button {
  padding: 10px 15px;
  margin-right: 5px;
  border-radius: 5px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background-color: #329a37;
  color: white;
  transition: background 0.2s ease;
}
button:hover { background-color: #8b1a3f; }
button.secondary { background-color: #777; }
button.secondary:hover { background-color: #555; }

/* ---------- Salida ---------- */
.out {
  margin-top: 15px;
  background: #cce9eb;
  padding: 12px;
  border-radius: 8px;
  font-family: monospace;
  white-space: pre-wrap;
}

/* ---------- Detalles de participantes ---------- */
details {
  margin-top: 15px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 12px;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: background 0.2s ease;
}
details[open] { background-color: #e0f7fa; }
details summary {
  font-weight: bold;
  outline: none;
}
details ul {
  margin-top: 8px;
  margin-left: 20px;
  padding-left: 0;
}
details ul li {
  margin-bottom: 4px;
}
