:root {
  --primary: #1976d2;
  --secondary: #43a047;
  --bg: #f7f9fc;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --radius: 14px;
}

/* RESET */

* {
  box-sizing: border-box;
  font-family: "Inter", system-ui, sans-serif;
}

html {
  font-size: clamp(14px,3.5vw,16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* CONTENEDOR */

.app {
  width: 100%;
  max-width: 480px;
  padding: clamp(12px,4vw,22px) clamp(12px,4vw,18px) 40px;
}

/* HEADER */

header {
  text-align: center;
  margin-bottom: 24px;
}

header img {
  width: clamp(55px,18vw,75px);
  margin-bottom: 10px;
}

header h1 {
  font-size: clamp(1.1rem,4vw,1.5rem);
  margin: 0;
  font-weight: 600;
}

header p {
  font-size: clamp(.8rem,3vw,.95rem);
  color: var(--muted);
}

/* CARDS */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(14px,3vw,18px);
  margin-bottom: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.card h3 {
  text-align: center;
  margin-bottom: 14px;
}

/* INPUTS */

input, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  font-size: 16px;
  margin-bottom: 12px;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(25,118,210,.15);
}

/* BOTONES */

button {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: clamp(.9rem,3.5vw,1rem);
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
}

button:hover {
  box-shadow: 0 4px 10px rgba(25,118,210,.25);
}

button:active {
  transform: scale(.97);
}

/* USUARIO */

.top-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .8rem;
}

.chip button {
  background: none;
  width: auto;
  padding: 0;
  min-height: auto;
}

/* PREGUNTAS */

.question {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(12px,3vw,14px);
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.question p {
  margin-bottom: 10px;
  font-weight: 500;
}

/* OPCIONES RESPONSIVE REAL */

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.options button {
  flex: 1 1 calc(33.333% - 6px);
  min-width: 90px;
  background: #eef4ff;
  color: var(--primary);
}

.options button.active {
  background: var(--primary);
  color: white;
}

/* BOTON ENVIAR */

.send {
  margin-top: 16px;
  background: var(--primary);
  font-weight: 600;
}

.send:hover {
  background: #1565c0;
}

/* RESULTADO */

#searchResult {
  margin-top: 10px;
  font-size: .85rem;
  line-height: 1.4;
}

/* TABLET */

@media (min-width:768px) {

  .app {
    max-width: 520px;
  }

}

/* CELULARES MUY CHICOS */

@media (max-width:360px) {

  .options button {
    flex: 1 1 100%;
  }

}
