/* Estilos públicos: encuesta, agradecimiento, muro y avisos.
   Los colores del negocio llegan como variables --primary, --on-primary, --bg y --text. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; padding: 16px;
  font-family: var(--font);
  font-size: 16px; line-height: 1.5;
  background: var(--bg); color: var(--text);
  display: flex; justify-content: center; align-items: flex-start;
}
a { color: var(--primary); }
.card {
  width: 100%; max-width: 440px; margin-top: 16px;
  background: #fff; color: #1e293b;
  border-radius: 16px; padding: 24px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}
.center { text-align: center; }
.muted { color: #64748b; }
.small, .fineprint { font-size: .85rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.brand { text-align: center; margin-bottom: 8px; }
.brand-logo { max-width: 120px; max-height: 90px; object-fit: contain; }
.brand-name { margin: 6px 0 0; font-size: 1.4rem; color: var(--text); }
.card .brand-name { color: #1e293b; }
.branch-badge {
  display: table; margin: 4px auto 16px; padding: 3px 12px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .85rem;
}

/* Formulario */
.survey label, .block label { display: block; margin: 14px 0 4px; font-weight: 600; font-size: .95rem; }
.survey input[type="text"], .survey input[type="tel"], textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: inherit;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
}
textarea { resize: vertical; }
button, input, textarea, select { font-family: inherit; }
input:focus, textarea:focus, .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
.survey .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.alert {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  padding: 10px 12px; border-radius: 10px; margin: 0 0 8px;
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Estrellas sin JavaScript: radios en orden 5..1 mostrados de derecha a izquierda */
.rating { border: 0; margin: 0; padding: 0; text-align: center; }
.rating legend { font-weight: 600; margin: 0 auto 6px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label {
  font-size: 2.6rem; line-height: 1; cursor: pointer; color: #cbd5e1;
  padding: 4px; margin: 0; transition: transform .12s, color .12s;
}
.stars input:checked ~ label,
.stars label:hover, .stars label:hover ~ label { color: #f59e0b; }
.stars input:focus-visible + label { outline: 3px solid var(--primary); border-radius: 8px; }
.stars label:active { transform: scale(1.12); }

.btn {
  display: block; width: 100%; margin-top: 18px; padding: 14px 16px;
  font: inherit; font-weight: 700; text-align: center; text-decoration: none;
  background: var(--primary); color: var(--on-primary);
  border: 2px solid var(--primary); border-radius: 12px; cursor: pointer;
}
.btn-outline { background: #fff; color: #1e293b; border-color: #cbd5e1; }
.btn-whatsapp { background: #128c4b; border-color: #128c4b; color: #fff; }
.block { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.block p { margin: 0 0 6px; }
.confirm-buttons { display: grid; gap: 8px; margin-top: 8px; }
.confirm-buttons .btn { margin-top: 0; }
.js-only { display: none; }
.js .js-only { display: block; }

/* Muro */
.wall-body { display: block; }
.wall { max-width: 960px; margin: 0 auto; }
.wall-list {
  list-style: none; padding: 0; margin: 20px 0;
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.wall-card {
  background: #fff; color: #1e293b; border-radius: 14px; padding: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  border-top: 4px solid var(--accent);
}
.wall-stars { color: #f59e0b; margin: 0; letter-spacing: 2px; }
.wall-comment { margin: 8px 0; white-space: pre-line; overflow-wrap: anywhere; }
.wall-meta { margin: 0; font-size: .85rem; color: #64748b; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 32px; }

/* Aviso de privacidad */
.prose h3 { margin: 20px 0 4px; font-size: 1.05rem; }
.prose ul { padding-left: 20px; }
