:root{--navy:#102c47;--teal:#258f88;--teal-dark:#18756f;--mint:#edf6f3;--ink:#23394a;--muted:#627583;--line:#dce7e5;--gold:#f7f1e5;--white:#fff}*{box-sizing:border-box}body{margin:0;background:#f6f9f8;color:var(--ink);font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}.topbar{min-height:76px;padding:10px max(22px,calc((100vw - 1100px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--navy);color:#fff;box-shadow:0 4px 18px #102c471c}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff}.brand>img{width:52px;height:52px;object-fit:cover;border:2px solid #fff;border-radius:50%;background:#fff;box-shadow:0 2px 10px #071b2c55}.brand-copy{font-weight:800;letter-spacing:.1em;color:#fff}.brand-copy small{display:block;margin-top:2px;font-size:10px;font-weight:600;letter-spacing:.16em;color:#c7d8df}.back{color:#e7f3f0;text-decoration:none;font-size:.9rem;font-weight:650}.back span{margin-left:5px;color:#88c9c0}.wrap{width:min(1100px,calc(100% - 36px));margin:38px auto 80px}.intro{margin-bottom:22px;padding:23px 26px;background:linear-gradient(115deg,#fff 10%,#edf6f3 100%);border:1px solid var(--line);border-radius:20px}.intro h1,.surface h2,.dash-head h2{margin:.2em 0;color:var(--navy);line-height:1.2}.intro h1{font-size:clamp(2rem,5vw,3rem)}p{color:var(--muted)}.surface{margin:16px 0;padding:clamp(18px,3vw,28px);background:var(--white);border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 35px #183b5910}.surface h2{font-size:1.55rem}.surface h3{margin:0 0 12px;color:var(--navy)}.fine{font-size:.83rem}.button{display:inline-flex;min-height:44px;align-items:center;justify-content:center;padding:10px 17px;border:0;border-radius:999px;text-decoration:none;font:700 .9rem system-ui;cursor:pointer}.primary{background:var(--teal);color:#fff}.secondary{background:var(--mint);color:var(--teal-dark)}.field{display:grid;gap:6px;margin:13px 0;color:#344f60;font-weight:650;font-size:.9rem}.field input,.field select,.field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #c5d4d2;border-radius:9px;background:#fff;color:var(--ink);font:400 1rem system-ui}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{outline:3px solid #258f8835;border-color:var(--teal)}.notice{padding:15px 18px;border-radius:12px;background:var(--gold);color:#624914}.notice.error{background:#fff0ed;color:#8c3628}.notice.success{background:#edf6f3;color:var(--teal-dark)}.progress{height:12px;border-radius:20px;background:#e7efed;overflow:hidden;margin:17px 0}.progress span{display:block;width:0;height:100%;background:var(--teal);transition:width .25s}.reward-status{padding:13px 15px;border-radius:12px;background:var(--gold);color:#684e1d;font-weight:700}.visit-list{display:grid;gap:0;margin-top:10px}.visit-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #edf1f0}.visit-row span:last-child{text-align:right;color:var(--muted)}.actions{display:flex;gap:10px;flex-wrap:wrap}.consent-copy{margin:18px 0;padding:18px;background:#f7faf9;border-radius:12px}.consent-copy h3{font-size:1rem;margin:14px 0 2px}.consent-copy p{white-space:pre-wrap;margin:0}.check{display:flex;align-items:flex-start;gap:10px;margin:16px 0}.check input{width:20px;height:20px;flex:none;margin-top:2px;accent-color:var(--teal)}.signature-head,.section-head,.dash-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.signature-head h3{margin:12px 0}#signature{display:block;width:100%;height:180px;border:1px dashed #93aaa6;border-radius:10px;background:#fff;touch-action:none;margin:6px 0 14px}.result{min-height:22px;color:var(--teal-dark);font-weight:650}.dash-head{margin:25px 0 15px}.dash-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dash-grid .surface{margin:0}.wide{grid-column:1/-1}.qr-output{margin-top:15px;text-align:center}.qr-output img{display:block;width:min(260px,100%);margin:12px auto;border:10px solid #fff;box-shadow:0 0 0 1px var(--line);border-radius:8px}.link-output{margin-top:14px;padding:13px;border:1px dashed #93aaa6;border-radius:10px;overflow-wrap:anywhere}.link-output a{color:var(--teal-dark);font-weight:700}.records{display:grid;gap:10px}.record{display:grid;grid-template-columns:1.2fr 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f0}.record strong{color:var(--navy)}.record small{display:block;color:var(--muted)}.record button{min-height:38px}.record-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.danger{background:#fff0ed;color:#8c3628}.empty{padding:15px 0;color:var(--muted)}.detail-signature{display:block;max-width:360px;max-height:150px;margin:10px 0;border:1px solid var(--line)}[hidden]{display:none!important}@media(max-width:760px){.dash-grid{grid-template-columns:1fr}.wide{grid-column:auto}.record{grid-template-columns:1fr auto}.record .record-meta{grid-column:1/-1;grid-row:2}.dash-head{align-items:flex-start}.wrap{margin-top:24px}.topbar{min-height:68px;padding-inline:18px}.brand>img{width:44px;height:44px}.back{font-size:.82rem}.intro{padding:20px 18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media print{body{background:#fff}.topbar,.intro,.back,.button,.signature-head,#signature,#consent-result,.fine{display:none!important}.wrap{width:100%;margin:0}.surface{box-shadow:none;border:0;padding:0}.consent-copy{background:#fff;padding:0}}
/* El emblema mantiene su marco circular; el zoom elimina el margen blanco del archivo original. */
.brand-mark{display:block;flex:0 0 52px;width:52px;height:52px;overflow:hidden;border:2px solid #fff;border-radius:50%;background:#fff;box-shadow:0 2px 10px #071b2c55}
.brand-mark img{display:block;width:100%;height:100%;object-fit:cover;transform:scale(1.13)}
@media(max-width:760px){.brand-mark{flex-basis:44px;width:44px;height:44px}}
.privacy-block{margin:20px 0;padding:16px 18px;background:#fff8e8;border:1px solid #ead7a8;border-radius:12px}.privacy-block>strong{color:#624914}.privacy-block p{margin:7px 0 12px}.privacy-block>a{color:var(--teal-dark);font-weight:700}.privacy-block .check{font-weight:500}
.profile-notice{padding:12px 14px;border-radius:10px;background:#fff8e8;color:#624914;font-size:.88rem}.profile-meta{font-size:.82rem;color:var(--muted)}

#privacy-signature,#admin-signature{display:block;width:100%;height:180px;border:1px dashed #93aaa6;border-radius:10px;background:#fff;touch-action:none;margin:6px 0 14px}
@media print{#privacy-signature{display:none!important}}
