/* CAP Consejo Nacional | interfaz de acreditacion 2.0 */
:root{--navy:#202831;--navy2:#333b43;--gold:#bea14d;--gold2:#d4bc78;--ink:#252c34;--muted:#727780;--border:#e4e3dd;--bg:#f6f5f1;--green:#167552;--soft:#eaf5ee}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,"Segoe UI",Arial,sans-serif}
button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.57;cursor:not-allowed}
.topbar{background:#fff;border-bottom:3px solid var(--gold);padding:17px max(24px,calc((100vw - 1330px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:94px}
.brand{display:flex;align-items:center;gap:17px}.brandmark{display:grid;place-items:center;color:var(--gold);height:58px;width:58px;flex:none}.brand strong{display:block;font-size:13px;font-weight:750;letter-spacing:1.1px;line-height:1.45}.brand small{display:block;color:#74777b;font-size:12px;margin-top:2px}.account{display:flex;align-items:center;gap:14px;font-weight:600}.account span{max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.textbtn{border:1px solid var(--border);border-radius:7px;background:#fff;padding:9px 13px;color:var(--ink);font-weight:650}
.container{max-width:1330px;padding:34px 24px 85px;margin:auto}.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.7px;color:var(--gold)}h1{font-size:clamp(29px,3.2vw,43px);font-weight:680;line-height:1.16;letter-spacing:-1.15px;margin:12px 0 12px}h2{font-size:20px;margin:0;letter-spacing:-.3px}
.hero{background:linear-gradient(110deg,#222a31,#363d42);color:#fff;border-radius:13px;padding:39px 42px;position:relative;overflow:hidden;border-bottom:4px solid var(--gold)}.hero:after{content:"";position:absolute;width:240px;height:240px;right:-70px;top:-90px;transform:rotate(30deg);border:2px solid #c5aa5850;pointer-events:none}.hero p{color:#d6d7d8;font-size:15px;margin:0}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}.stats article{padding:23px 25px;background:#fff;border:1px solid var(--border);border-radius:11px;border-top:3px solid var(--gold);box-shadow:0 4px 14px #23272b06}.stats span{display:block;font-size:13px;color:var(--muted)}.stats strong{font-size:31px;color:var(--navy);display:block;margin-top:6px;font-variant-numeric:tabular-nums}
.panel{background:white;border:1px solid var(--border);border-radius:13px;overflow:hidden;box-shadow:0 7px 24px #23272b08}.panel-head{padding:25px 27px;display:flex;align-items:center;justify-content:space-between;gap:18px}.panel-head p{margin:7px 0 0;color:var(--muted)}.actions{display:flex;flex-wrap:wrap;gap:9px}
.filters{display:grid;grid-template-columns:2fr 1.05fr 1.1fr auto;align-items:end;gap:13px;background:#f9f9f7;padding:20px 27px;border-block:1px solid var(--border)}label{display:flex;flex-direction:column;gap:6px;color:#555d65;font-size:12px;font-weight:700}input,select{width:100%;background:#fff;border:1px solid #d6d8d9;color:var(--ink);border-radius:7px;padding:10px 12px;min-height:44px;outline:none}input:focus,select:focus{border-color:var(--gold);box-shadow:0 0 0 3px #bea14d2b}
.primary,.outline{padding:10px 16px;border-radius:7px;min-height:44px;white-space:nowrap;font-weight:750}.primary{background:#a88632;color:#fff;border:1px solid #a88632}.primary:hover{background:#8c6d23}.outline{color:#343b43;background:#fff;border:1px solid #cbd0d3}.outline:hover{background:#f7f7f4}
.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}thead{background:#f9f9f7}th{padding:16px 15px;text-align:left;white-space:nowrap;text-transform:uppercase;letter-spacing:.55px;font-size:11px;color:#666c71;border-bottom:1px solid var(--border)}td{padding:14px 15px;border-bottom:1px solid #ededeb;vertical-align:middle}tbody tr:hover{background:#fcfbf7}.person{font-weight:750;min-width:190px}.secondary{color:var(--muted);font-size:12px;margin-top:3px}.pill{display:inline-block;border-radius:5px;border:1px solid #e2d4a9;background:#fbf7e9;color:#776323;padding:5px 9px;font-size:11px;font-weight:800}.deliver{border:1px solid #cbd0cf;background:#fff;color:#48524c;padding:8px 12px;border-radius:7px;min-width:112px;font-weight:700;font-size:12px}.deliver:hover:not(:disabled){border-color:var(--gold);background:#fffcf3}.deliver.done{background:var(--soft);border-color:#b9dbc7;color:var(--green)}.action-link{border:0;background:none;color:#84671d;font-size:12px;font-weight:700;text-decoration:underline;margin:2px 6px 2px 0}.table-foot{display:flex;justify-content:space-between;gap:10px;padding:19px 27px;color:var(--muted);font-size:12px}.error{color:#ab3939;font-size:13px;line-height:1.5}
.login-wrap{min-height:65vh;display:grid;place-items:center}.login-card{width:min(100%,475px);background:#fff;border:1px solid var(--border);border-radius:12px;padding:43px;border-top:5px solid var(--gold);box-shadow:0 16px 40px #222a3112}.login-card h1{font-size:33px}.login-card p{color:var(--muted);line-height:1.7}.login-card form{display:grid;gap:17px;margin-top:23px}.login-card button{width:100%}
footer{text-align:center;padding:23px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}dialog{border:0;border-radius:13px;max-width:min(740px,96vw);width:100%;padding:0;box-shadow:0 24px 75px #101a285c}dialog::backdrop{background:#121a20a6}.modal{padding:29px}.modal-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:22px}.iconbutton{border:0;background:none;color:#71777e;font-size:28px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.modal-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:23px}.history-entry{padding:14px 0;border-bottom:1px solid var(--border)}.history-entry strong,.history-entry span{display:block}.history-entry span{font-size:12px;color:var(--muted);margin-top:5px}
#importDialog{width:min(95vw,1050px);max-width:1050px}.import-counts{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.import-counts>div{background:#f7f7f3;border:1px solid var(--border);border-radius:7px;padding:12px 23px;min-width:120px;display:flex;flex-direction:column}.import-counts strong{font-size:26px}.preview-table{max-height:340px;overflow:auto}.import-ok{font-weight:800;color:var(--green)}.import-skip{font-weight:800;color:#996d1e}#importForm input[type=file]{max-width:540px}.toast{position:fixed;right:24px;bottom:25px;background:#293b30;color:#fff;padding:14px 18px;border-radius:9px;max-width:420px;box-shadow:0 15px 34px #0b172639;z-index:10000;font-weight:650}.toast.error{background:#8c3434;color:white}
@media(max-width:950px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.search-label{grid-column:span 2}.panel-head{align-items:start;flex-direction:column}}
@media(max-width:620px){.topbar{padding:13px 15px}.brandmark{width:43px;height:43px}.brandmark svg{width:36px}.brand strong{font-size:10px}.brand small{font-size:10px}.account{flex-direction:column;align-items:end;gap:4px}.container{padding:18px 12px 60px}.hero{padding:27px 23px}.stats{grid-template-columns:1fr;gap:9px}.stats article{padding:13px 18px}.stats strong{font-size:24px}.filters,.form-grid{grid-template-columns:1fr}.search-label{grid-column:auto}.panel-head,.filters,.table-foot{padding:17px}.table-foot{flex-direction:column}.login-card,.modal{padding:22px}.toast{left:12px;right:12px;bottom:12px}}

/* CAP Bienal 2.2 — Vista de atención móvil; escritorio sin cambios funcionales */
.mobile-results,.mobile-context{display:none}
.history-person{margin:5px 0 0;color:var(--muted);font-size:13px;font-weight:550}
.sheet-eyebrow{font-weight:800;font-size:10px;letter-spacing:1px;color:#a78b45}
.history-entry{display:flex;align-items:flex-start;gap:13px;padding:18px 0}
.history-icon{height:34px;width:34px;display:grid;place-items:center;border-radius:50%;background:#e5f4ec;color:#167552;font-weight:800;flex:none}
.history-reversed .history-icon{background:#fbf0e3;color:#a26d1d}
.history-details{flex:1;min-width:0}.history-details strong{font-size:14px}.history-operator{color:#69737c}
.sheet-handle{display:none}
@media(max-width:700px){
 body{background:#f3f3f0;font-size:14px}
 .topbar{padding:11px 14px;min-height:70px;gap:9px;align-items:center}
 .brand{gap:7px;min-width:0}.brandmark{width:37px;height:37px}.brandmark svg{width:33px;height:33px}
 .brand strong{font-size:9px;letter-spacing:.35px;line-height:1.2}.brand small{font-size:9px;line-height:1.25;max-width:185px}
 .account{gap:4px;min-width:0}.account span{font-size:10px;max-width:110px}.textbtn{font-size:11px;padding:6px 8px}
 .container{padding:12px 12px 50px}
 .hero{padding:18px 20px;border-radius:12px}.hero h1{font-size:25px;margin:8px 0}.hero p{font-size:12px;line-height:1.45}
 .hero .eyebrow{font-size:9px;letter-spacing:1px}
 .stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
 .stats article{padding:12px 8px;border-radius:9px;text-align:center;border-top:2px solid var(--gold)}
 .stats span{font-size:10px;line-height:1.25;min-height:25px}.stats strong{font-size:23px;margin-top:5px}
 .panel{background:transparent;border:0;box-shadow:none;overflow:visible}
 .panel-head{padding:9px 3px 13px;gap:9px}.panel-head h2{font-size:19px}.panel-head p{font-size:12px;margin:2px 0 0}
 .actions{width:100%}.actions button{flex:1;min-width:120px}
 .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px;background:#fff;border:1px solid var(--border);border-radius:13px}
 .filters label{font-size:11px}.filters .search-label{grid-column:1/-1}.filters input{font-size:16px;min-height:50px;border-radius:10px;background:#fafafa}
 .filters select{font-size:13px;min-height:45px}.filters #searchButton{grid-column:1/-1;min-height:44px}
 .desktop-results{display:none}.mobile-results{display:grid;gap:12px;margin-top:13px}
 .mobile-context{display:block;color:#707881;font-size:11px;margin:11px 4px}
 .table-foot{display:none}.panel>.error{margin:15px 4px}
 .attendee-card{background:#fff;border:1px solid #e3e4df;border-radius:15px;box-shadow:0 6px 18px #29312b0a;padding:17px;min-width:0}
 .card-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.card-regional{font-weight:750;font-size:10px;letter-spacing:.65px;color:#687078;text-align:right}
 .card-person{font-size:19px;line-height:1.3;letter-spacing:-.35px;margin:12px 0 8px;overflow-wrap:anywhere}
 .card-meta{display:flex;gap:3px 12px;flex-wrap:wrap;color:#5d6670;font-size:12px;margin-bottom:9px}.card-email{overflow-wrap:anywhere;max-width:100%}
 .card-status{display:inline-block;border-radius:20px;padding:4px 9px;font-size:11px;font-weight:750;margin:3px 0 13px}
 .card-status.pending{color:#876622;background:#fff5df}.card-status.complete{color:#146b4b;background:#e5f4eb}
 .card-deliveries{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-top:1px solid #edf0ed;padding-top:13px}
 .card-delivery{min-width:0}.card-action-label{display:block;font-size:10px;letter-spacing:.45px;font-weight:800;color:#565c62;margin-bottom:6px}
 .mobile-delivery-btn{width:100%;min-height:54px;border-radius:10px;border:1px solid #af8b38;background:#a88632;color:#fff;font-weight:800;font-size:13px;padding:9px 4px;white-space:normal;overflow-wrap:anywhere}
 .mobile-delivery-btn.done{color:#116a48;background:#eaf6ef;border:1px solid #b2d9c1}
 .mobile-delivery-btn:disabled:not(.saving){opacity:1}.mobile-delivery-btn.saving{opacity:.6}
 .card-bottom{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid #edf0ed;margin-top:14px;padding-top:13px}
 .card-history{border:0;background:none;color:#8d6d26;font-weight:800;font-size:13px;padding:8px 0;text-align:left;min-height:40px}
 .card-edit{border:1px solid #d6d9d6;background:#fff;border-radius:7px;padding:8px 13px;min-height:40px;font-weight:700}
 .mobile-empty{background:#fff;border:1px solid var(--border);border-radius:14px;text-align:center;padding:38px 17px}.mobile-empty strong{font-size:18px}.mobile-empty p{color:var(--muted)}
 .history-sheet{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:100%;max-height:86dvh;overflow-y:auto;border-radius:19px 19px 0 0;box-shadow:0 -15px 50px #1520213d}
 .history-sheet .modal{padding:13px 20px 25px}.history-sheet .sheet-handle{display:block;height:5px;width:46px;background:#d7d9da;border-radius:5px;margin:0 auto 18px}
 .history-sheet .modal-head{margin-bottom:7px}.history-sheet h2{font-size:20px;margin:4px 0}
 .history-sheet .history-entry{padding:15px 0}.history-sheet .iconbutton{min-width:44px;min-height:44px}
 .history-sheet::backdrop{background:#11191d9a}
 .form-grid{grid-template-columns:1fr}.login-card{padding:27px 22px}.toast{bottom:15px}
}
@media(max-width:355px){.card-deliveries{gap:7px}.mobile-delivery-btn{font-size:12px}.brand small{max-width:145px}.stats strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
