﻿/* === Base rápida y reset suave === */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #222;
  background: #f5f6fb;
}

/* === Contenedores === */
.intro, #app, .result {
  max-width: 860px;
  margin: 24px auto;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e7e9f3;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .06);
}

.intro h1, .intro h2 { margin-top: 0; }

/* === Botones === */
.btn {
  background: #eef1ff;
  border: 1px solid #d7ddff;
  color: #1b1f3b;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .02s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn:hover { background: #e5e9ff; border-color: #c9d2ff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

.btn.primary {
  background: linear-gradient(90deg, #7c9cff, #78e3a0);
  border: none;
  color: #0e1121;
  font-weight: 700;
}
.btn.primary:hover { filter: brightness(0.97); }

/* === Opciones === */
.choice {
  display: block;
  width: 100%;
  text-align: left;
  margin: 10px 0;
  padding: 12px 14px;
  background: #f9fafc;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  color: #222;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.choice:hover {
  background: #f2f5ff;
  border-color: #ccd7ff;
  box-shadow: 0 2px 8px rgba(44, 76, 255, .08);
}

/* Checkboxes dentro de las frases de desempate */
.choice input[type="checkbox"] {
  transform: scale(1.3);
  margin-top: 3px;
}

/* Etiqueta para mostrar el tipo (en desempate) */
.pill {
  background: #edf0ff;
  border: 1px solid #d7ddff;
  color: #1b1f3b;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

/* === Progreso === */
.progress {
  height: 10px;
  background: #e9ecf6;
  border-radius: 999px;
  overflow: hidden;
  margin: 15px 0 18px;
}
.progress > div {
  height: 100%;
  background: linear-gradient(90deg, #7c9cff, #78e3a0);
}

/* === Navegación inferior === */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

/* === Resultados === */
.result h2 { margin-top: 0; }
.result ul { margin: 8px 0 0 20px; }

/* === Accesibilidad y foco === */
button:focus, .btn:focus, .choice:focus, a.btn:focus {
  outline: 3px solid #8fb3ff;
  outline-offset: 2px;
}

/* === Helpers responsivos === */
@media (max-width: 640px) {
  .nav { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
