/* brand.css — Sistema visual compartido (landing /consulta y /test).
   Paleta inspirada en abogadobrett.com: tinta, crema, rojo CTA, verde WhatsApp.
   PLACEHOLDER: ajustar a la guía de marca final de Johan (logo, tipografías). */
:root {
  --ink: #1b1b1f;
  --muted: #5f6066;
  --bg: #ffffff;
  --cream: #faf6ef;
  --line: #e7e2d9;
  --red: #d0282e;
  --red-dark: #a81f24;
  --green: #25d366;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  --maxw: 760px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 20px 80px; }
header.bar {
  background: var(--ink); color: #fff; padding: 14px 20px; text-align: center;
  font-weight: 700; letter-spacing: .3px;
}
header.bar span { color: var(--red); }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; margin: .2em 0 .3em; }
h2 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
p.lead { font-size: 1.1rem; color: var(--muted); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px; margin: 18px 0;
}
.placeholder {
  border: 1px dashed var(--red); background: #fff7f7; color: var(--red-dark);
  border-radius: 10px; padding: 10px 14px; font-size: .85rem; margin: 12px 0;
}
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .95rem; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); border-color: var(--red); }
.btn {
  display: inline-block; cursor: pointer; border: none; border-radius: 999px;
  padding: 14px 26px; font-size: 1rem; font-weight: 700; text-decoration: none; text-align: center;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-wa { background: var(--green); color: #fff; }
.btn-block { display: block; width: 100%; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; }
.choices { display: grid; gap: 10px; margin: 8px 0; }
.choice {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 16px;
  cursor: pointer; font-weight: 600; transition: .15s;
}
.choice:hover, .choice.sel { border-color: var(--red); background: #fff7f7; }
.muted { color: var(--muted); font-size: .9rem; }
.hide { display: none !important; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid #fff6; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.diag { white-space: pre-wrap; }
footer.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 30px 20px; }
a { color: var(--red-dark); }
