/* Encuesta — card tipo review (claro sobre fondo oscuro) */
:root {
  --ink: #111;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --pill: #f3f3f3;
  --bg: #2c2c2c;
  --card: #fff;
  --teal: #1aa89a;
  --font: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
[hidden] { display: none !important; }
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255,255,255,.08), transparent 55%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem 2.5rem;
}

.sheet {
  width: min(100%, 420px);
  background: var(--card);
  border-radius: 28px;
  padding: 1.35rem 1.35rem 1.6rem;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  position: relative;
}

.sheet__hero {
  width: min(78%, 260px);
  margin: -2.6rem auto 0.85rem;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
  display: grid;
  place-items: center;
}
.sheet__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 78%;
  display: block;
  transform: scale(1.08);
}
.sheet__hero-fallback {
  display: none;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f5f1ea;
}
.sheet__hero--fallback .sheet__hero-fallback { display: block; }
.sheet__hero--fallback { background: linear-gradient(145deg, #222, #444); }

.sheet__eyebrow {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sheet__title {
  margin: 0.35rem 0 1rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.35;
}
.sheet__hint {
  margin: 0.45rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.stars {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.stars button {
  width: 2.55rem;
  height: 2.55rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #cfcfcf;
}
.stars button svg { width: 100%; height: 100%; display: block; }
.stars button[aria-pressed="true"],
.stars button.is-on {
  color: #111;
}

.block {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.block h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}
.block__sub {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.pills--row { grid-template-columns: 1fr 1fr; }
.pills--visit {
  grid-template-columns: 1fr;
}
.pills--visit button {
  text-align: left;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 16px;
}
.visit-lead {
  font-size: 1.15rem !important;
  letter-spacing: -0.01em;
}
.visit-other {
  margin-top: 0.65rem;
  margin-bottom: 0;
}
.pills button {
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 0.75rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.pills button:hover { border-color: #bbb; }
.pills button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pills button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 46%;
}
.pills--visit button:last-child:nth-child(odd) {
  justify-self: stretch;
  min-width: 0;
}

.nps {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.22rem;
}
.nps button {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fafafa;
  padding: 0.5rem 0;
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}
.nps button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.nps-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.dims { display: grid; gap: 1.1rem; }
.dim {
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafafa;
}
.dim-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}
.dim-q {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}
.scale-ends {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.scale-ends span:last-child { text-align: right; }
.scale-ends__mid { text-align: center; color: #999; }
.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}
.scale__btn {
  border: 1.5px solid #ddd;
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem 0;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}
.scale__btn:hover { border-color: #bbb; }
.scale__btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.scale-pick {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  min-height: 1em;
}

.dim-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.dim .stars {
  justify-content: flex-start;
  gap: 0.3rem;
}
.dim .stars button {
  width: 1.85rem;
  height: 1.85rem;
}

textarea, input {
  width: 100%;
  border: 1.5px solid #e2e2e2;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
  background: #fafafa;
}
textarea { min-height: 88px; resize: vertical; }
textarea:focus, input:focus {
  outline: none;
  border-color: #bbb;
  background: #fff;
}

.cta {
  width: 100%;
  margin-top: 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.95rem 1rem;
  cursor: pointer;
}
.cta:disabled { opacity: 0.45; cursor: not-allowed; }

.msg {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.msg--err { color: #c0392b; }
.msg--ok { color: var(--teal); }

.sheet--done {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.done__text {
  margin: 0.5rem auto 0;
  color: var(--muted);
  max-width: 28ch;
  line-height: 1.45;
}

@media (max-width: 420px) {
  .sheet { border-radius: 24px; padding: 1.15rem 1.05rem 1.4rem; }
  .sheet__hero { margin-top: -2.1rem; }
}
