@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Geist:wght@500;600;700;800&display=swap');
:root{font-family:"DM Sans",system-ui,sans-serif;color:#142d3b;background:#e9f0ee;--navy:#0f212d;--navy2:#173846;--accent:#ffac62;--paper:#f8fbf8;--line:#cbd9d4;--muted:#48606a}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.65;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ad4c13;outline-offset:2px}h1,h2{font-family:Geist,system-ui,sans-serif;letter-spacing:-.045em;margin:0}p{line-height:1.55;margin:8px 0}label{display:grid;gap:7px;font-size:.83rem;font-weight:750;min-width:0}
.top{display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:white;padding:13px clamp(15px,5vw,64px)}.wordmark{display:flex;gap:9px;align-items:center;font-weight:800;color:inherit;text-decoration:none}.mark{width:30px;height:30px;display:grid;place-items:center;background:var(--accent);color:var(--navy);font-size:20px;border-radius:5px}.outline{background:transparent;border:1px solid #789099;border-radius:6px;color:#fff;padding:8px 12px}.workspace{width:min(1180px,100%);padding:25px clamp(14px,4vw,45px) 40px;margin:auto}
.mast,.access-hero{background:linear-gradient(135deg,var(--navy),var(--navy2));color:#fff;position:relative;overflow:hidden;border-radius:18px 18px 50px 18px}.mast{padding:24px clamp(18px,5vw,48px);margin-bottom:17px}.mast::after{content:"";position:absolute;width:180px;height:180px;right:-25px;top:30px;transform:rotate(-20deg);background:repeating-linear-gradient(0deg,transparent 0 17px,#f8a96d54 18px 19px);pointer-events:none}.mast h1,.access-hero h1{position:relative;font-size:clamp(2.4rem,7vw,4.7rem);line-height:.95;z-index:1}.mast h1 span,.access-hero h1 span{color:var(--accent)}.mast p{color:#ccdadb;margin-top:17px;position:relative;z-index:1}.kicker{display:block;font-size:.68rem;font-weight:800;letter-spacing:.13em;color:#96420f;margin-bottom:11px}.mast .kicker{color:var(--accent)}
.sheet-grid{display:grid;grid-template-columns:1fr 1.32fr;gap:16px;align-items:start}.sheet{background:var(--paper);border:1px solid var(--line);padding:clamp(16px,3vw,28px);border-radius:13px;box-shadow:0 6px 17px #14313b0d}.votes{grid-column:2;grid-row:1/3}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:18px}.section-title span{font:700 .9rem monospace;background:#ffe5d0;border-radius:5px;padding:6px;color:#74360f}.section-title h2{font-size:1.4rem}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}input,select{height:44px;width:100%;min-width:0;border:1px solid #b9ccc5;border-radius:7px;background:#fff;color:var(--navy);padding:9px 10px}.vote-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.vote{background:#eef4f0;border:1px solid var(--line);padding:7px;display:grid;grid-template-columns:1fr 48px;align-items:center;gap:5px;border-radius:8px}.vote span{display:flex;align-items:center;gap:5px;font-size:.76rem;overflow-wrap:anywhere}.vote img{width:22px;height:22px;object-fit:contain}.vote input{text-align:center;padding:3px;font-variant-numeric:tabular-nums;height:36px}.total{display:flex;justify-content:space-between;align-items:center;background:var(--navy);color:#fff;border-radius:8px;padding:12px;margin-top:14px;font-weight:700}.total output{font-family:Geist,sans-serif;color:var(--accent);font-size:1.65rem}
.drop{position:relative;text-align:center;padding:13px;border:1px dashed #c59879;border-radius:9px;background:#fff3e8;color:#6e3314;cursor:pointer}.drop>span{font-size:1.5rem}.drop small{font-weight:500}.drop input{position:absolute;inset:0;opacity:0;height:100%;cursor:pointer}.drop:focus-within{outline:3px solid #ad4c13}.evidence img{max-width:100%;max-height:330px;margin:12px auto 0;border-radius:8px}.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:15px}.actions p{color:var(--muted);font-size:.83rem}.primary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:45px;border:0;border-radius:7px;padding:10px 16px;font-weight:800;background:var(--accent);color:var(--navy)}.actions .primary{margin-left:auto}.primary:hover{background:#ff9a47}
.access-page{min-height:100vh;background:linear-gradient(145deg,#e8e9e4,#f6f8f5)}.access{width:min(940px,100%);margin:auto;padding:clamp(15px,5vw,55px);display:grid;grid-template-columns:1.12fr 1fr;gap:17px;align-items:stretch}.access-hero{min-height:445px;padding:26px;display:flex;flex-direction:column;justify-content:space-between}.access-hero .wordmark{position:relative;z-index:1}.motif{position:absolute;right:19px;top:67px;display:flex;gap:9px;align-items:end;height:118px;transform:rotate(-12deg);opacity:.75}.motif i{display:block;width:15px;height:27%;background:var(--accent);border-radius:2px}.motif i:nth-child(2){height:48%}.motif i:nth-child(3){height:74%}.motif i:nth-child(4){height:100%}.login{display:flex;flex-direction:column;gap:14px;justify-content:center}.login h2{font-size:2.4rem}.login p{color:var(--muted);margin:0}.login #error{color:#9d302b;font-weight:700}.login #error:empty{display:none}
#popupOverlay{position:fixed;inset:0;background:#0e2735a3;display:none;align-items:center;justify-content:center;padding:18px;z-index:5}#popupOverlay.visible{display:flex}#popupBox{background:var(--paper);border:1px solid var(--line);border-radius:14px;width:min(385px,100%);padding:24px}#popupBox p{white-space:pre-line;color:var(--muted);margin:12px 0}#popupBox button{justify-content:center;width:100%}
@media(max-width:700px){.sheet-grid,.access{grid-template-columns:1fr;gap:11px}.votes{grid-column:auto;grid-row:auto}.mast{margin-bottom:11px}.access-hero{min-height:220px}.motif{top:38px;height:87px}.workspace{padding-top:15px}.actions .primary{white-space:nowrap}.vote img{width:18px;height:18px}}
@media(max-width:355px){.vote-grid{grid-template-columns:1fr}.vote{grid-template-columns:1fr 74px}}

[hidden]{display:none!important}
.popup-heading{display:flex;align-items:center;gap:10px}
.popup-heading #popupIcon{display:grid;place-items:center;flex:none;width:30px;height:30px;background:#ffe5d0;border-radius:8px;font-size:1rem;line-height:1}
.act-preview{margin:0}
.act-preview figcaption{font-size:.9rem;font-weight:800;margin-bottom:10px}
.act-photo{position:relative;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;background:#eef4f0;overflow:hidden}
.act-photo img{display:block;margin:0;max-width:100%;max-height:390px;object-fit:contain}
.act-photo button{position:absolute;right:8px;top:8px;min-width:42px;min-height:42px;border:1px solid #d08959;border-radius:100%;background:#fff6ed;color:#792f10;font-size:1.35rem;line-height:1;box-shadow:0 2px 8px #0f212d33}
#popupHeading,.popup-heading{display:flex;align-items:center;gap:12px}
.popup-heading h2{line-height:1.15}
.popup-heading #popupIcon{line-height:1}
.picker-field{display:grid;gap:7px;min-width:0}
.picker-field label{font-weight:750}
.picker-trigger{width:100%;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 10px;border:1px solid #aebfbb;border-radius:7px;background:#fff;color:#223b47;text-align:left}
.picker-trigger.has-value{background:#fff3e5;border-color:#dba378}
.picker-trigger span:last-child{background:#ffe4c9;color:#74360f;border-radius:4px;padding:4px 6px;flex:none}
.picker-dialog{position:fixed;margin:auto;width:min(92vw,420px);max-height:min(76dvh,630px);padding:18px;border:1px solid #b7c8c3;border-radius:14px;background:#f8fbf8;color:#142d3b}
.picker-dialog::backdrop{background:#10242eb8}
.picker-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.picker-header button{border:0;border-radius:6px;width:42px;height:42px;background:#ffe4c9;color:#71340f;font-size:1.4rem}
.picker-options{display:grid;gap:7px;max-height:48dvh;overflow:auto;margin-top:9px;overscroll-behavior:contain}
.picker-choice{min-height:44px;padding:9px 12px;border:1px solid #d1ddd8;border-radius:8px;text-align:left;color:#192e38;background:#fff}
.picker-choice[aria-pressed=true]{font-weight:800;background:#ffdfbc;border-color:#c77438}
.picker-empty{font-size:.88rem;color:var(--muted)}

/* El WebView conserva el teclado de PIN; el espejo muestra los votos. */
.vote .voto-campo { position:relative; display:block; min-width:0 }
.vote .voto-campo input { display:block; color:transparent; caret-color:var(--navy); font-family:monospace }
.vote .voto-vista { position:absolute; inset:0; display:grid; place-items:center; pointer-events:none; color:var(--navy); font:inherit; font-family:monospace; font-variant-numeric:tabular-nums }
.vote .voto-vista:empty::before { content:"0"; color:var(--muted) }
