/* Página pública de PQRS. --brand viene de la empresa (app_company_preferences.primary_color). */
:root { --brand: #2a00fa; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.45; }
[hidden] { display: none !important; }
.brand { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border-bottom: 3px solid var(--brand); }
.brand img { height: 44px; width: auto; max-width: 140px; object-fit: contain; }
.company { margin: 0; font-weight: 700; font-size: 1.05rem; }
.tagline { margin: 0; color: var(--muted); font-size: .85rem; }
main { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 1.3rem; margin: 0 0 6px; }
h2 { font-size: 1rem; margin: 18px 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.muted { color: var(--muted); font-size: .9rem; }
.center { text-align: center; }
.field { display: block; margin: 14px 0 0; border: 0; padding: 0; }
.field > span, legend { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field em { font-weight: 400; color: var(--muted); font-style: normal; }
input, select, textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: .92rem; }
.check input { width: auto; margin-top: 3px; }
.privacy { background: var(--bg); border-radius: 10px; padding: 12px; margin-top: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-block; width: 100%; margin-top: 18px; padding: 12px 16px; font: inherit; font-weight: 700; color: #fff; background: var(--brand); border: 0; border-radius: 12px; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.error { color: #b91c1c; font-size: .9rem; margin: 12px 0 0; }
.notice { background: #fff; border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: .92rem; }
a { color: var(--brand); }
.ok { width: 56px; height: 56px; margin: 4px auto 10px; border-radius: 50%; background: #dcfce7; color: #16a34a; font-size: 28px; line-height: 56px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.codes div { background: var(--bg); border-radius: 12px; padding: 12px; }
.codes small { display: block; color: var(--muted); }
.codes b { font-size: 1.15rem; letter-spacing: .04em; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e2e8f0; color: #334155; white-space: nowrap; }
.pill.in_progress { background: #dbeafe; color: #1d4ed8; }
.pill.waiting_reporter { background: #fef3c7; color: #b45309; }
.pill.resolved { background: #dcfce7; color: #15803d; }
.subject { font-weight: 600; margin: 6px 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.timeline .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); }
.timeline p { margin: 4px 0 0; white-space: pre-line; }
footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px; font-size: .78rem; color: #94a3b8; }
footer img { height: 14px; opacity: .7; }
