/* HV643 · Bono Navideño: compacto, sin animaciones pesadas. */
.hv643-dialog{border:1px solid #dce1e6;border-radius:22px;width:min(600px,calc(100vw - 20px));max-width:none;max-height:92dvh;padding:0;color:#303568;background:white;box-shadow:0 20px 70px #151a3a26;overflow:auto;font:inherit}
.hv643-dialog::backdrop{background:#151a3a80}
.hv643-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #e5e7ed;position:sticky;top:0;z-index:2;background:white}
.hv643-dialog h2,.hv643-dialog h3,.hv643-card h3{margin:0;color:#303568;line-height:1.3}
.hv643-dialog h2{font-size:1.25rem}.hv643-dialog h3{font-size:1.08rem;margin:15px 0 5px}
.hv643-dialog>header button{border:0!important;background:#f1f2f4!important;color:#303568!important;width:34px;height:34px;border-radius:50%;font-size:22px;cursor:pointer}
.hv643-body{padding:22px;display:grid;gap:12px;min-width:0}
.hv643-body p,.hv643-card p{margin:0;line-height:1.5;font-size:15px;color:#687285}
.hv643-body>small{color:#75892e;letter-spacing:.07em;font-weight:800}
.hv643-primary,.hv643-secondary,.hv643-body button:not(.hv643-primary):not(.hv643-secondary){font:inherit;font-size:15px;min-height:43px;padding:9px 15px;border-radius:10px;cursor:pointer;font-weight:750;line-height:1.25;box-sizing:border-box}
.hv643-primary{background:#75892e;color:white;border:1px solid #75892e}
.hv643-secondary,.hv643-body button:not(.hv643-primary):not(.hv643-secondary){background:#fff;color:#303568;border:1px solid #dce0e8}
.hv643-primary:disabled,.hv643-secondary:disabled,.hv643-body button:disabled{opacity:.55;cursor:wait}
.hv643-tip{color:#b62738!important;font-size:15px!important;font-weight:700;line-height:1.5}
.hv643-consent{font-size:14px!important;line-height:1.5}
.hv643-photo{min-height:110px;display:grid;place-items:center;font-size:58px;line-height:1;background:#f5f6ef;border-radius:15px;overflow:hidden;min-width:0}
.hv643-photo img{width:100%;height:100%;max-height:240px;object-fit:contain;display:block}
#hv643-surprise .hv643-body{text-align:center;justify-items:stretch}
#hv643-surprise .hv643-photo{min-height:175px;max-height:260px}
.hv643-card{padding:18px!important;display:grid!important;gap:12px;border:1px solid #e1e5d5!important;background:#fff!important}
.hv643-top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hv643-top small{color:#a64d2e;background:#fff0e5;border-radius:30px;padding:6px 10px;font-weight:750;font-size:13px}
.hv643-reward{display:flex;gap:14px;align-items:center}
.hv643-reward>.hv643-photo{flex:0 0 104px;height:104px;min-height:0;font-size:42px}
.hv643-reward>div:last-child{min-width:0;display:grid;gap:8px;flex:1}
.hv643-reward strong{color:#303568;font-size:1rem}
.hv643-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hv643-actions>*{min-width:0}
.hv643-options{display:grid;gap:9px}
.hv643-trip{text-align:left;transition:transform .15s ease,box-shadow .15s ease}
@media(hover:hover){.hv643-trip:hover{transform:translateY(-3px) scale(1.015);box-shadow:0 8px 20px #30356819}}
@media(prefers-reduced-motion:reduce){.hv643-trip{transition:none}.hv643-trip:hover{transform:none}}
.hv643-owner{width:min(1120px,calc(100vw - 20px))}
.hv643-fields,.hv643-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.hv643-metrics>div{border:1px solid #e1e4eb;border-radius:12px;padding:10px;display:grid;gap:3px}
.hv643-metrics small{color:#6f7784;font-size:13px}
.hv643-metrics strong{font-size:1.25rem;color:#303568}
.hv643-body label{display:grid;gap:5px;min-width:0;font-size:14px;font-weight:700}
.hv643-body input:not([type=checkbox]),.hv643-body select{font:inherit;font-size:15px;min-height:40px;border:1px solid #dce0e7;border-radius:8px;padding:7px 9px;min-width:0;max-width:100%;color:#303568;background:white;box-sizing:border-box}
.hv643-body input[type=file]{font-size:12px;padding:5px}
.hv643-body input[type=checkbox]{accent-color:#75892e}
.hv643-body details{border:1px solid #e5e7ed;border-radius:10px;padding:12px}
.hv643-body summary{cursor:pointer;font-weight:700}
.hv643-trips{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:8px;margin-top:12px}
.hv643-trips label{display:flex;align-items:center}
.hv643-item{display:grid;grid-template-columns:2fr 1fr 1fr 2fr auto;gap:10px;align-items:end;padding:10px 0;border-bottom:1px solid #edf0f3}
.hv643-table-wrap{overflow:auto;max-height:380px;border:1px solid #e6e8ef;border-radius:10px}
.hv643-table-wrap table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}
.hv643-table-wrap th,.hv643-table-wrap td{padding:9px;border-bottom:1px solid #edf0f3;vertical-align:top;white-space:normal}
.hv643-table-wrap th{background:#f4f5f8;color:#303568;position:sticky;top:0;z-index:1}
.hv643-table-wrap td small{display:block;color:#6f7784}
.hv643-table-wrap [hidden]{display:none!important}
.hv643-table-wrap .hv643-actions button{min-height:32px;font-size:13px;padding:5px 9px}
.hv643-org-summary{margin:14px 0;padding:12px 14px;border:1px solid #e1e5d5;border-radius:12px;color:#303568;font-size:15px;background:#f8f9f4}
.hv643-org-summary p{margin:4px 0}
.hv643-org-cell{white-space:normal!important;min-width:130px}
.hv643-org-cell small{display:block;font-size:12px;color:#75892e}
@media(max-width:650px){.hv643-dialog>header,.hv643-body{padding:15px}.hv643-item{grid-template-columns:1fr 1fr}.hv643-item label:first-child,.hv643-item label:nth-child(4){grid-column:1/-1}.hv643-item>button{justify-self:start}.hv643-reward>.hv643-photo{flex-basis:86px;height:86px}.hv643-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hv643-actions>*{flex:1 1 auto}}

/* HV645 · jerarquía compacta, tarjetas y editores secundarios */
.hv645-section{border:1px solid #e2e5e9;border-radius:16px;padding:18px;display:grid;gap:14px;background:#fff;min-width:0}
.hv645-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.hv645-heading h3{margin:3px 0 0;font-size:1.18rem}
.hv645-heading small{font-size:11px;font-weight:800;letter-spacing:.11em;color:#75892e}
.hv645-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hv645-section textarea{font:inherit;font-size:15px;color:#303568;background:#fff;border:1px solid #dce0e7;border-radius:9px;padding:10px;resize:vertical;box-sizing:border-box;width:100%;min-width:0}
#hv645-count{justify-self:end;color:#687285;font-size:12px;font-weight:500}
.hv645-rules{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#f5f6ef;border-radius:12px;padding:12px}
.hv645-rules p{font-size:13px;margin-top:3px}
.hv645-inventory{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.hv645-inventory>div{display:grid;gap:4px;padding:10px 12px;border-radius:10px;background:#f5f6f8;min-width:0}
.hv645-inventory small{font-size:12px;color:#687285}
.hv645-inventory strong{font-size:1.15rem;overflow-wrap:anywhere}
.hv645-inventory>p{grid-column:1/-1;font-size:13px}
.hv645-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:10px}
.hv645-item-card{display:grid;grid-template-columns:74px minmax(0,1fr) auto;align-items:center;gap:12px;border:1px solid #e2e5e9;border-radius:13px;padding:11px;background:white;transition:box-shadow .16s ease,transform .16s ease}
.hv645-item-card>.hv643-photo{width:74px;height:74px;min-height:0;font-size:30px}
.hv645-item-info{min-width:0;display:grid;gap:4px;overflow-wrap:anywhere}
.hv645-item-info p{font-size:13px}
.hv645-item-info small{font-size:12px;color:#687285}
.hv645-item-actions{display:grid;gap:5px}
.hv645-item-actions button{font-size:12px;min-height:30px;padding:6px 9px}
.hv645-trip-list{max-height:45dvh;overflow:auto;display:grid;gap:10px}
.hv645-trip-list label,.hv645-preview-controls label{display:flex;align-items:center;gap:8px}
.hv645-preview-controls{display:grid;gap:10px}
.hv645-preview-stage{border:1px solid #e2e5e9;background:#fff;border-radius:15px;padding:16px;display:grid;gap:12px}
.hv645-preview-stage h2{font-size:1.15rem}
.hv645-surprise-content{display:grid;gap:12px;text-align:center}
.hv645-surprise-content>button{width:100%}
.hv645-surprise-content h3{margin:0}
.hv645-preview-stage .hv643-photo{max-height:180px}
#hv645-preview button[aria-pressed=true]{border-color:#75892e;background:#f2f5e8}
#hv645-item-editor .hv643-photo{max-height:180px}
#hv645-item-editor .hv643-photo .hv643-photo{width:100%;max-height:180px}
@media(hover:hover){.hv645-item-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px #30356812}}
@media(prefers-reduced-motion:reduce){.hv645-item-card{transition:none}.hv645-item-card:hover{transform:none}}
@media(max-width:650px){.hv645-section{padding:12px;gap:10px}.hv645-dates,.hv645-inventory{grid-template-columns:repeat(2,minmax(0,1fr))}.hv645-rules{align-items:stretch;flex-direction:column}.hv645-item-card{grid-template-columns:60px minmax(0,1fr)}.hv645-item-card>.hv643-photo{width:60px;height:60px}.hv645-item-actions{grid-column:1/-1;display:flex}.hv645-item-actions button{flex:1}.hv645-heading button{font-size:13px}.hv645-dates input{width:100%}}

/* HV646 · Solo la caja cerrada se agita; la foto del premio queda inmóvil.
   Transformaciones locales, sin vídeo, imágenes nuevas ni consultas de red. */
.hv646-gift-motion{display:inline-block;transform-origin:50% 85%;font-size:clamp(58px,12vw,82px);line-height:1.05;animation:hv646-gift-burst 1.05s infinite ease-in-out}
@keyframes hv646-gift-burst{
 0%,100%{transform:translate(0,0) rotate(0) scale(1)}
 8%{transform:translate(-6px,0) rotate(-16deg) scale(1.05,.96)}
 16%{transform:translate(6px,-4px) rotate(16deg) scale(.97,1.06)}
 24%{transform:translate(-7px,0) rotate(-19deg) scale(1.06,.94)}
 32%{transform:translate(5px,-3px) rotate(17deg) scale(.98,1.04)}
 40%{transform:translate(0,3px) rotate(-5deg) scale(1.12,.86)}
 54%{transform:translate(0,-24px) rotate(11deg) scale(.94,1.1)}
 66%{transform:translate(-3px,-11px) rotate(-13deg) scale(1.03,1)}
 77%{transform:translate(0,2px) rotate(5deg) scale(1.1,.9)}
 86%{transform:translate(0,-9px) rotate(-8deg) scale(.99,1.04)}
 94%{transform:translate(2px,0) rotate(5deg) scale(1)}
}
@media(prefers-reduced-motion:reduce){.hv646-gift-motion{animation:none!important;transform:none!important}}

/* HV647 · Control visual del reparto */
.hv647-coverage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.hv647-coverage-grid>div{background:#f5f6f8;border-radius:10px;padding:10px;display:grid;gap:4px}
.hv647-coverage-grid small{font-size:12px;color:#687285}
.hv647-coverage-grid strong{font-size:1.25rem}
#hv647-coverage{display:grid;gap:9px}
.hv647-meter{height:7px;border-radius:20px;background:#e5e8e1;overflow:hidden}
.hv647-meter span{display:block;height:100%;background:#75892e;transition:width .2s ease}
.hv647-good{color:#456b28!important;font-weight:700}
.hv647-warn{color:#b62738!important;font-weight:700}
.hv647-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}
.hv647-state{font-size:12px}.hv647-state.missing{color:#b62738}.hv647-state.assigned{color:#456b28}
.hv647-help{font-size:13px!important}
@media(max-width:650px){.hv647-coverage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hv647-filters{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.hv647-meter span{transition:none}}

/* HV648 · impacto de reducir piezas en el borrador */
.hv648-impact{color:#9a532b!important;background:#fff4e9;border-radius:10px;padding:10px 12px;font-size:14px!important;line-height:1.5}.hv648-impact[hidden]{display:none!important}

/* HV653: seguimiento solo propietario */
.hv653-table table{min-width:720px}.hv653-state{display:inline-block;border-radius:7px;padding:4px 7px;background:#f1f2f4;color:#465066;font-weight:700}.hv653-state[data-state=accepted]{background:#e6f4e9;color:#23683c}.hv653-state[data-state=declined],.hv653-state[data-state=revoked]{background:#fbe9ec;color:#992b3d}.hv653-state[data-state=other]{background:#eaf0fa;color:#304c86}#hv653-tracking .hv643-metrics strong{font-variant-numeric:tabular-nums}

/* HV654 · navegación por módulos, sin duplicar métricas ni renderizar todas las secciones a la vista. */
#hv643-owner [hidden]{display:none!important}
#hv643-owner .hv654-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:4px 0 18px;border-bottom:1px solid #e5e7eb;flex-wrap:wrap}
#hv643-owner .hv654-summary h3{font-size:clamp(1.3rem,3vw,1.8rem);margin:6px 0 10px;letter-spacing:-.025em}
.hv654-kicker{font-size:11px;font-weight:800;letter-spacing:.12em;color:#737c89}
.hv654-state{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:#465066}
.hv654-state:before{content:"";width:7px;height:7px;border-radius:50%;background:#a0a6af}
.hv654-state[data-state=active]:before{background:#75892e}
.hv654-state[data-state=paused]:before{background:#b28b40}
#hv643-owner-status:empty{display:none}
.hv654-intro{margin-bottom:14px!important}
.hv654-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:5px 3px 16px}
#hv643-owner button.hv654-option{display:grid;grid-template-columns:48px minmax(0,1fr) 16px;align-items:center;gap:14px;text-align:left;padding:23px 18px;min-height:110px;border:1px solid #e2e5e9;background:#fff;border-radius:14px;box-shadow:0 2px 5px #30356808;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.hv654-option strong{display:block;font-size:16px;letter-spacing:-.01em;color:#303568}
.hv654-option small{display:block;font-size:13px;font-weight:500;line-height:1.4;color:#687285;margin-top:5px}
.hv654-icon{width:44px;height:44px;border-radius:11px;background:#f3f5ef;color:#63762a;display:grid;place-items:center}
.hv654-icon svg{width:25px;height:25px}
.hv654-arrow{font-size:23px;color:#9299a4;font-weight:400}
@media(hover:hover){#hv643-owner button.hv654-option:hover{transform:translateY(-6px) scale(1.018);border-color:#b2bd91;box-shadow:0 15px 28px #30356820;z-index:1}}
#hv643-owner button.hv654-option:focus-visible{outline:2px solid #75892e;outline-offset:3px}
#hv643-owner button.hv654-option:active{transform:scale(.985)}
#hv643-owner button.hv654-back{border:0;background:transparent;padding:4px 0;min-height:32px;font-size:14px;text-align:left;color:#303568}
.hv654-panel{min-width:0;animation:hv654-in .18s ease-out}
@keyframes hv654-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.hv654-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hv654-details>div{display:grid;gap:5px;padding:13px;border:1px solid #e5e7eb;border-radius:10px}
.hv654-details small{font-size:13px;color:#687285}
.hv654-control{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f6f7f8;border-radius:12px;padding:14px;flex-wrap:wrap}
.hv654-control>div{flex:1 1 240px}
.hv654-control p{margin-top:4px!important;font-size:13px}
.hv654-note{font-size:13px!important;color:#687285}
.hv654-draft-actions{border-top:1px solid #e5e7eb;padding-top:14px}
@media(max-width:650px){.hv654-grid{grid-template-columns:1fr;gap:10px}.hv654-details{grid-template-columns:1fr}#hv643-owner button.hv654-option{min-height:86px;padding:16px}.hv654-summary h3{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){#hv643-owner button.hv654-option,.hv654-panel{transition:none!important;animation:none!important;transform:none!important}}

/* HV656: aviso discreto, legible y posterior a las acciones. */
.hv643-body p.hv656-consent,.hv645-surprise-content p.hv656-consent{font-size:12px!important;line-height:1.55;color:#626b79!important;font-weight:400;margin:1px 0 0}

/* HV657: aviso compacto; el consentimiento sigue siendo visible y legible. */
.hv643-body p.hv657-compact-consent,.hv645-surprise-content p.hv657-compact-consent{font-size:max(7px,0.4375rem)!important;line-height:1.55;color:#626b79!important;text-align:center}
