/* ===== Gestión de sitio · Hallazgos y condiciones ===== */
.stage { position: relative; }
/* barra fija de subvistas, bajo las pestañas y a todo el ancho */
.hz-subbar { grid-area: sub; display: none; align-items: center; gap: 12px; padding: 9px 18px; background: #f4f9f7; border-bottom: 1px solid #d5e6e0; box-shadow: 0 4px 12px rgba(13,41,51,.05); z-index: 5; }
.hz-on .hz-subbar { display: flex; }
.hz-subnav { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid #d5e6e0; box-shadow: 0 1px 3px rgba(13,41,51,.06); }
.hz-subnav button { border: 0; background: transparent; color: #3d5a62; font: inherit; font-size: .82rem; font-weight: 700; padding: 8px 15px; border-radius: 9px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.hz-subnav button:hover { background: #e6f5ef; color: #0d2933; }
.hz-subnav button.active { background: var(--mint); color: var(--deep); font-weight: 800; box-shadow: 0 2px 6px rgba(32,220,137,.35); }
.hz-subnav button:focus-visible { outline: 2px solid #0b7a55; outline-offset: 2px; }
.hz-board-open .stage .map-shell { display: none; }

/* marcadores */
.hz-markers { position: absolute; inset: 0; pointer-events: none; }
.appview-program .hz-markers, .appview-program .hz-drawer { display: none !important; }
.appmode-polygons .hz-markers { opacity: .35; }
.appmode-polygons .hz-markers .hz-pin { pointer-events: none; }
.hz-pin { position: absolute; transform: translate(-50%, -50%); width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2.5px #c62828, 0 2px 5px rgba(13,41,51,.3); cursor: pointer; pointer-events: auto; z-index: 3; transition: opacity .15s ease, box-shadow .15s ease; }
.hz-pin.two { width: 30px; height: 30px; }
.hz-pin.three { width: 36px; height: 36px; }
.hz-pin.closed { box-shadow: 0 0 0 2.5px #1e9e57, 0 2px 5px rgba(13,41,51,.3); }
.hz-pin.dim { opacity: .3; }
.hz-pin.hl { z-index: 5; box-shadow: 0 0 0 3.5px #c62828, 0 0 0 7px rgba(198,40,40,.18); }
.hz-pin.sel { z-index: 6; box-shadow: 0 0 0 3.5px #c62828, 0 0 0 10px rgba(198,40,40,.24); }
.hz-pin.draft { box-shadow: 0 0 0 3px #e0801a, 0 0 0 9px rgba(224,128,26,.25); z-index: 7; pointer-events: none; }
.hz-pin.radar::before, .hz-pin.radar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #c62828; animation: hzRadar 1.8s ease-out infinite; pointer-events: none; }
.hz-pin.draft.radar::before, .hz-pin.draft.radar::after { border-color: #e0801a; }
.hz-pin.radar::after { animation-delay: .9s; }
@keyframes hzRadar { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2.3); opacity: 0; } }
.pulse-lite .hz-pin.radar::before, .pulse-lite .hz-pin.radar::after { animation-timing-function: steps(12, end); }
@media (prefers-reduced-motion: reduce) { .hz-pin.radar::before, .hz-pin.radar::after { animation: none; opacity: .5; } }
.map-world.live-zoom .hz-pin { transform: translate(-50%, -50%) scale(var(--inverse-live-scale)); }
.hz-days { position: absolute; left: 80%; top: -11px; padding: 0 4px; border-radius: 6px; background: #c62828; color: #fff; font-size: 10px; font-weight: 800; line-height: 15px; white-space: nowrap; }
.hz-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 5px 9px; border-radius: 8px; background: var(--deep); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.25); pointer-events: none; display: none; }
.hz-pin.hl .hz-tip { display: block; }

/* marcador (icono dividido) reutilizable */
.hz-mk { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2.5px #c62828; }
.hz-mk.two { width: 30px; height: 30px; }
.hz-mk.three { width: 36px; height: 36px; }
.hz-mk.closed { box-shadow: 0 0 0 2.5px #1e9e57; }
.hz-ico { display: block; }
.hz-split { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1.5px; margin-left: -.75px; background: currentColor; opacity: .55; }
.hz-y { position: absolute; inset: 0; width: 100%; height: 100%; }
.hz-a2, .hz-b2 { position: absolute; top: 8.5px; }
.hz-a2 { left: 2px; } .hz-b2 { right: 2px; }
.hz-a3, .hz-b3, .hz-c3 { position: absolute; }
.hz-a3 { left: 5px; top: 6px; } .hz-b3 { right: 5px; top: 6px; } .hz-c3 { left: 12px; bottom: 3px; }
.hz-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }

/* panel izquierdo */
#panelHz { gap: 14px; }
.hz-add { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 2px solid var(--mint); border-radius: 10px; background: var(--mint); color: var(--deep); font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; width: 100%; }
.hz-add.on { background: transparent; color: var(--mint); }
.hz-card { padding: 12px; border-radius: 12px; background: #173f4a; border: 1px solid #e0801a; display: grid; gap: 12px; transform-origin: top; }
.hz-card.hz-anim, .hz-done.hz-anim, .hz-act.hz-anim { animation: hzExpand .28s ease-out; transform-origin: top; }
@keyframes hzExpand { from { opacity: 0; transform: scaleY(.9); } to { opacity: 1; transform: none; } }
.hz-card-head { display: flex; justify-content: space-between; align-items: center; }
.hz-card-head b { font-size: 1rem; }
.hz-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #3a5c66; background: transparent; color: #fff; font-size: 1rem; cursor: pointer; }
.hz-step { font-size: .66rem; letter-spacing: .1em; font-weight: 800; color: #9ff0c9; text-transform: uppercase; }
.hz-field { display: grid; gap: 5px; }
.hz-field input[type=text], .hz-field textarea { border-radius: 8px; border: 0; padding: 8px 10px; font: inherit; font-size: .8rem; color: var(--ink); background: #fff; }
.hz-field textarea { resize: vertical; min-height: 54px; }
.hz-note { font-size: .72rem; color: #b9d2cb; line-height: 1.35; }
.hz-note b { color: #fff; }
.hz-warn { font-size: .72rem; color: #ffd27a; min-height: 1em; }
.hz-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.hz-tile { position: relative; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; border-radius: 8px; border: 1px solid #3a5c66; background: transparent; color: #fff; font: inherit; font-size: .62rem; font-weight: 700; line-height: 1.1; cursor: pointer; }
.hz-tile[aria-pressed="true"] { border: 2px solid #ff8a80; background: #3b2322; }
.hz-tile .hz-dot { width: 22px; height: 22px; }
.hz-bang { position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #c62828; color: #fff; font-size: 10px; font-weight: 900; line-height: 14px; text-align: center; }
.hz-items { display: grid; gap: 8px; }
.hz-group { display: grid; gap: 3px; }
.hz-group > span { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; }
.hz-group > span i { width: 12px; height: 12px; border-radius: 50%; }
.hz-check { display: flex; gap: 7px; align-items: flex-start; font-size: .72rem; line-height: 1.35; color: #d7eeea; cursor: pointer; }
.hz-check input { accent-color: var(--mint); margin: 1px 0 0; }
.hz-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hz-photo { position: relative; height: 54px; border-radius: 8px; background: #cfdcd8 center/cover no-repeat; }
.hz-photo button { position: absolute; right: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--deep); color: #fff; font-size: .75rem; cursor: pointer; }
.hz-photo-add { height: 54px; border-radius: 8px; border: 2px dashed #3a5c66; background: transparent; color: #9ff0c9; font: inherit; font-size: .66rem; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.hz-actions { display: flex; gap: 6px; }
.hz-primary { flex: 1; min-height: 42px; border: 0; border-radius: 9px; background: var(--mint); color: var(--deep); font: inherit; font-weight: 800; font-size: .82rem; cursor: pointer; }
.hz-primary:disabled { background: #3a5c66; color: #9fc4ba; cursor: not-allowed; }
.hz-secondary { min-height: 42px; padding: 0 12px; border: 1px solid #3a5c66; border-radius: 9px; background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; }
.hz-done { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: #0f4a3a; border: 1px solid var(--mint); font-size: .76rem; }
.hz-done > b { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--mint); color: var(--deep); display: grid; place-items: center; }
.hz-done span { flex: 1; line-height: 1.35; }
.hz-done span small { color: #b9d2cb; font-size: .72rem; }
.hz-done button { min-height: 32px; padding: 0 10px; border: 1px solid var(--mint); border-radius: 8px; background: transparent; color: var(--mint); font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; }
.hz-filter { display: grid; gap: 8px; }
.hz-seg { display: flex; border-radius: 9px; overflow: hidden; border: 1px solid #3a5c66; }
.hz-seg button { flex: 1; border: 0; background: transparent; color: #b9d2cb; font: inherit; font-size: .74rem; font-weight: 700; padding: 7px 0; cursor: pointer; }
.hz-seg button.on { background: var(--mint); color: var(--deep); }
.hz-ptrow { display: flex; align-items: center; gap: 9px; font-size: .8rem; cursor: pointer; }
.hz-ptrow input { accent-color: var(--mint); }
.hz-ptrow .hz-dot { width: 22px; height: 22px; }
.hz-ptrow span { flex: 1; }

/* panel derecho */
#hzPanel { display: grid; gap: 12px; align-content: start; }
.hz-kicker { font-size: .66rem; letter-spacing: .1em; font-weight: 800; color: #9ff0c9; text-transform: uppercase; }
.hz-title { font-size: 1.2rem; font-weight: 800; margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.hz-title i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.hz-org { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; border-top: 1px solid #173f4a; font-size: .72rem; }
.hz-org b { letter-spacing: .1em; }
.hz-org span { color: #9fc4ba; font-size: .66rem; }
.hz-owner { padding: 9px 11px; border-radius: 11px; background: #173f4a; display: grid; gap: 6px; transition: background .15s ease, box-shadow .15s ease; }
.hz-owner.hl { background: #24606e; box-shadow: 0 0 0 2px var(--mint); }
.hz-owner-top { display: flex; align-items: baseline; gap: 8px; }
.hz-owner-top em { font-style: normal; font-weight: 800; color: #9fc4ba; }
.hz-owner-top b:nth-of-type(1) { flex: 1; font-size: .88rem; }
.hz-owner-top strong { font-size: 1.2rem; }
.hz-owner-top small { color: #ffb4a3; font-weight: 700; font-size: .72rem; }
.hz-bar { height: 6px; border-radius: 3px; background: var(--deep); }
.hz-bar i { display: block; height: 6px; border-radius: 3px; }
.hz-owner-sub { display: flex; justify-content: space-between; gap: 8px; font-size: .68rem; color: #b9d2cb; }
.hz-empty { font-size: .76rem; color: #9fc4ba; padding: 8px 0; }
.hz-owners2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hz-own { padding: 8px 10px; border-radius: 9px; background: #173f4a; font-size: .72rem; transition: background .15s ease, box-shadow .15s ease; }
.hz-own.hl { background: #24606e; box-shadow: 0 0 0 2px var(--mint); }
.hz-own small { display: block; font-size: .6rem; letter-spacing: .08em; font-weight: 800; }
.hz-own b { font-size: .8rem; }
.hz-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.hz-stats div { padding: 9px 4px; border-radius: 10px; background: #173f4a; }
.hz-stats b { display: block; font-size: 1.2rem; }
.hz-stats span { font-size: .66rem; color: #b9d2cb; }
.hz-sum { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: .6rem; color: #b9d2cb; }
.hz-sum div { display: grid; justify-items: center; gap: 4px; }
.hz-sumk { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.hz-sumk b { position: absolute; right: -6px; top: -6px; width: 15px; height: 15px; border-radius: 50%; color: #fff; font-size: 10px; line-height: 15px; }
.hz-list { display: grid; gap: 7px; }
.hz-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; align-items: center; padding: 8px 10px; border: 0; border-radius: 11px; background: #173f4a; color: #fff; text-align: left; font: inherit; cursor: pointer; transition: background .15s ease, box-shadow .15s ease; }
.hz-row.hl { background: #24606e; box-shadow: 0 0 0 2px var(--mint); }
.hz-row.sel { background: #fff; color: var(--ink); }
.hz-row > span:nth-child(2) { min-width: 0; display: grid; }
.hz-row small { font-size: .68rem; font-weight: 700; color: #9fc4ba; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-row.sel small { color: #647c82; }
.hz-row strong { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-row em { font-style: normal; font-weight: 800; }
.hz-row em.old { color: #ffb4a3; }
.hz-row.sel em.old { color: #a33b1f; }
.hz-mkwrap { display: grid; place-items: center; }

/* ficha (cajón y hoja inferior) */
.hz-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; color: var(--ink); box-shadow: -18px 0 40px rgba(3,32,38,.28); display: flex; flex-direction: column; z-index: 12; animation: hzSlide .28s ease-out; }
.hz-drawer[hidden] { display: none; }
@keyframes hzSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.hz-f-head { padding: 16px 20px 10px; border-bottom: 1px solid #e3efeb; display: grid; gap: 8px; }
.hz-f-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hz-f-tags > span { padding: 3px 9px; border-radius: 6px; font-size: .72rem; font-weight: 800; }
.hz-f-code { color: #647c82; padding: 0 !important; }
.hz-f-close { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #d8e7e3; background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.hz-f-title { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.hz-f-body { padding: 12px 20px; display: grid; gap: 12px; align-content: start; flex: 1; min-height: 0; overflow-y: auto; }
.hz-f-sec { font-size: .66rem; letter-spacing: .1em; font-weight: 800; color: #0b7a55; text-transform: uppercase; }
.hz-f-sec.red { color: #a33b1f; }
.hz-cond { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 10px; background: #f3f7f5; font-size: .8rem; line-height: 1.4; }
.hz-cond.closed { opacity: .6; }
.hz-cond .hz-mk { width: 26px; height: 26px; box-shadow: 0 0 0 2px #c62828; }
.hz-cond.closed .hz-mk { box-shadow: 0 0 0 2px #1e9e57; }
.hz-cond > span:last-child { display: grid; gap: 4px; }
.hz-cond small { color: #28444c; font-size: .74rem; }
.hz-mini { justify-self: start; min-height: 30px; padding: 0 10px; border: 1px solid #c9dcd6; border-radius: 8px; background: #fff; font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.hz-closed-tag { justify-self: start; padding: 3px 9px; border-radius: 6px; background: #dff5e8; color: #0b6b4a; font-size: .72rem; font-weight: 800; }
.hz-gal { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 150px; }
.hz-gal.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hz-gal.n2 { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
.hz-gal button { border: 0; border-radius: 10px; background: #cfdcd8 center/cover no-repeat; cursor: zoom-in; min-height: 0; }
.hz-gal.n3 button:first-child { grid-row: span 2; }
.hz-nophoto { height: 60px; border-radius: 10px; background: #f3f7f5; display: grid; place-items: center; color: #647c82; font-size: .76rem; }
.hz-f-desc { margin: 4px 0 0; font-size: .82rem; line-height: 1.5; color: #28444c; white-space: pre-wrap; }
.hz-f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; font-size: .8rem; }
.hz-f-grid small { display: block; font-size: .66rem; color: #647c82; font-weight: 700; text-transform: uppercase; }
.hz-hist { display: grid; gap: 4px; border-top: 1px solid #e3efeb; padding-top: 10px; }
.hz-ev { border-radius: 10px; }
.hz-ev.open { background: #f3f7f5; }
.hz-ev > button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border: 0; background: transparent; font: inherit; font-size: .8rem; text-align: left; color: var(--ink); cursor: pointer; }
.hz-ev > button i { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.hz-ev > button b { white-space: nowrap; }
.hz-ev > button span { flex: 1; }
.hz-ev > button em { font-style: normal; color: #647c82; font-size: .72rem; }
.hz-ev-body { display: flex; gap: 10px; padding: 0 10px 10px 29px; animation: hzExpand .25s ease-out; }
.hz-ev-body .hz-thumbs { display: flex; gap: 6px; flex: none; }
.hz-ev-body .hz-thumbs button { width: 84px; height: 64px; border: 0; border-radius: 8px; background: #cfdcd8 center/cover no-repeat; cursor: zoom-in; }
.hz-ev-body div:last-child { display: grid; gap: 3px; font-size: .76rem; line-height: 1.45; color: #28444c; align-content: start; }
.hz-ev-body small { color: #647c82; }
.hz-f-foot { padding: 12px 20px; border-top: 1px solid #e3efeb; display: flex; gap: 8px; background: #f7fbf9; flex-wrap: wrap; }
.hz-f-foot .hz-primary { color: var(--deep); }
.hz-f-foot .hz-light { min-height: 42px; padding: 0 14px; border: 1px solid #c9dcd6; border-radius: 10px; background: #fff; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; color: var(--ink); }
.hz-f-closed { padding: 12px 20px; border-top: 1px solid #e3efeb; background: #dff5e8; color: #0b6b4a; font-size: .8rem; font-weight: 700; }
.hz-act { margin: 12px 20px 0; padding: 12px; border-radius: 12px; background: #fff7ec; border: 1px solid #e0801a; display: grid; gap: 8px; }
.hz-act-head { display: flex; justify-content: space-between; align-items: center; }
.hz-act-head b { font-size: .88rem; }
.hz-act-head button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #f3e2cc; font-size: .95rem; cursor: pointer; }
.hz-act small { font-size: .74rem; color: #6b4a00; }
.hz-act textarea { border-radius: 8px; border: 1px solid #e8d2b4; padding: 8px 10px; font: inherit; font-size: .8rem; resize: vertical; min-height: 54px; }
.hz-act .hz-warn { color: #a33b1f; }
.hz-act-photo { display: flex; gap: 8px; align-items: center; }
.hz-act-photo label { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 2px dashed #e0a15a; border-radius: 8px; background: #fff; color: #8a4b00; font-size: .76rem; font-weight: 700; cursor: pointer; }
.hz-act-photo .hz-photo { width: 64px; height: 46px; }
.hz-act .hz-actions .hz-secondary { color: var(--ink); border-color: #e8d2b4; background: #fff; }
.hz-sheet { position: absolute; left: 14px; right: 14px; bottom: 0; max-height: min(460px, 70%); background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -18px 40px rgba(3,32,38,.3); z-index: 15; display: flex; flex-direction: column; animation: hzUp .3s ease-out; overflow: hidden; }
.hz-sheet[hidden] { display: none; }
@keyframes hzUp { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.hz-sheet .hz-drawer-inner { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.hz-sheet-dim { position: absolute; inset: 0; background: rgba(4,25,31,.3); z-index: 14; }
.hz-sheet-dim[hidden] { display: none; }
.hz-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(4,25,31,.85); display: grid; place-items: center; padding: 30px; }
.hz-lightbox[hidden] { display: none; }
.hz-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.hz-lightbox button { position: absolute; right: 20px; top: 20px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; font-size: 1.3rem; cursor: pointer; }

/* tablero y dueños */
.hz-board { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 12px; align-content: start; color: var(--ink); padding-bottom: 20px; }
.hz-board[hidden] { display: none; }
.hz-b-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hz-b-head h2 { margin: 0; font-size: 1.3rem; }
.hz-b-head .hz-legend { font-size: .74rem; color: #4b6870; flex: 1; }
.hz-b-head select, .hz-b-seg { font: inherit; font-size: .78rem; }
.hz-b-seg { display: flex; border: 1px solid #d8e7e3; border-radius: 9px; overflow: hidden; background: #fff; }
.hz-b-seg button { border: 0; background: transparent; padding: 7px 12px; font: inherit; font-weight: 600; color: #4b6870; cursor: pointer; }
.hz-b-seg button.on { background: #e3f8ee; color: #0b6b4a; font-weight: 800; }
.hz-b-head select { padding: 7px 10px; border: 1px solid #d8e7e3; border-radius: 9px; background: #fff; font-weight: 600; }
.hz-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 1.3fr; gap: 12px; }
.hz-kpi { position: relative; background: #fff; border-radius: 14px; padding: 12px 16px; border: 1px solid #dcebe6; }
.hz-kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hz-kpi-top span { font-size: .66rem; font-weight: 800; letter-spacing: .06em; color: #647c82; text-transform: uppercase; }
.hz-i { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid #647c82; background: #fff; color: #4b6870; font: italic 700 13px Georgia, serif; line-height: 1; padding: 0; cursor: pointer; }
.hz-kpi strong { display: block; font-size: 2.1rem; line-height: 1.1; margin-top: 4px; }
.hz-kpi strong small { font-size: .95rem; font-weight: 700; color: #4b6870; }
.hz-kpi > p { margin: 0; font-size: .72rem; color: #647c82; }
.hz-kpi .up { color: #a33b1f; font-weight: 700; } .hz-kpi .down { color: #0b7a55; font-weight: 700; }
.hz-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: 320px; padding: 14px 16px; border-radius: 12px; background: var(--deep); color: #e6f4f0; box-shadow: 0 14px 34px rgba(3,32,38,.35); font-size: .8rem; line-height: 1.5; }
.hz-pop.right { left: auto; right: 0; }
.hz-pop header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.hz-pop header b { color: var(--mint); }
.hz-pop header button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: #173f4a; color: #fff; cursor: pointer; }
.hz-pop p { margin: 0 0 6px; }
.hz-age { background: var(--deep); color: #fff; border-radius: 14px; padding: 12px 16px; display: grid; gap: 7px; align-content: start; }
.hz-age > span { font-size: .66rem; font-weight: 800; letter-spacing: .06em; color: #9ff0c9; text-transform: uppercase; }
.hz-agebar { display: flex; height: 16px; border-radius: 5px; overflow: hidden; background: #173f4a; }
.hz-agelbl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: .68rem; color: #d7eeea; }
.hz-agelbl b { font-size: 1rem; color: #fff; display: block; }
.hz-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; align-items: start; }
.hz-box { background: #fff; border-radius: 14px; border: 1px solid #dcebe6; padding: 14px 18px; display: grid; gap: 8px; align-content: start; }
.hz-box h3 { margin: 0; font-size: .95rem; }
.hz-box-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.hz-box-head span { font-size: .72rem; color: #647c82; }
.hz-barrow { display: grid; grid-template-columns: 26px 112px 1fr; align-items: center; gap: 8px; font-size: .8rem; }
.hz-barrow > div { display: flex; align-items: center; gap: 6px; }
.hz-seg2 { display: flex; height: 18px; font-size: 11px; font-weight: 800; color: #fff; min-width: 4px; }
.hz-seg2 i { font-style: normal; display: grid; place-items: center; overflow: hidden; }
.hz-seg2 i:first-child { background: var(--deep); border-radius: 4px 0 0 4px; }
.hz-seg2 i:last-child { background: #d64545; border-radius: 0 4px 4px 0; }
.hz-seg2 i:only-child { border-radius: 4px; }
.hz-rank { display: grid; grid-template-columns: 20px 1fr auto auto; gap: 0 10px; align-items: center; padding: 5px 10px; border-radius: 9px; font-size: .8rem; }
.hz-rank.hz-top { background: #fdf1ee; }
.hz-rank em { font-style: normal; font-weight: 800; color: #647c82; }
.hz-rank.hz-top em { color: #a33b1f; }
.hz-rank small { display: block; font-size: .66rem; color: #647c82; }
.hz-rank strong { font-size: 1.05rem; }
.hz-rank span.c { font-weight: 700; color: #a33b1f; min-width: 22px; text-align: right; }
.hz-orgtag { font-size: .66rem; letter-spacing: .08em; font-weight: 800; margin-top: 4px; }
.hz-dist { display: flex; height: 22px; border-radius: 6px; overflow: hidden; font-size: 11px; font-weight: 800; color: #fff; background: #eef3f1; }
.hz-dist i { font-style: normal; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.hz-combo { display: grid; grid-template-columns: 38px 1fr auto; gap: 7px 10px; align-items: center; font-size: .8rem; }
.hz-oldrow { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; font: inherit; font-size: .8rem; text-align: left; padding: 4px 8px; margin: 0 -8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.hz-oldrow:hover { background: #eef5f2; }
.hz-oldrow small { display: block; font-size: .68rem; color: #647c82; }
.hz-oldrow em { font-style: normal; font-weight: 800; }
.hz-closedcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; font-size: .8rem; }
.hz-closedcols > div { display: grid; gap: 4px; align-content: start; }
.hz-closedcols p { margin: 0; display: flex; gap: 8px; }
.hz-closedcols p span:first-child { flex: 1; }
.hz-closedcols p span.c { color: #0b7a55; width: 22px; text-align: right; }
.hz-trend svg { display: block; width: 100%; height: 90px; }
.hz-trend .lbl { display: flex; justify-content: space-between; font-size: .66rem; color: #647c82; padding: 0 4px; }
.hz-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.hz-table th { text-align: left; color: #647c82; font-size: .64rem; letter-spacing: .04em; padding: 6px; border-bottom: 1px solid #dcebe6; }
.hz-table td { padding: 9px 6px; border-top: 1px solid #eef3f1; }
.hz-table .r { text-align: right; }
.hz-table tr.hz-top td { background: #fdf1ee; }
.hz-heat { display: grid; gap: 4px; font-size: .78rem; align-items: center; }
.hz-heat > span.c { height: 34px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; }
.hz-note2 { font-size: .74rem; color: #647c82; line-height: 1.5; margin: 0; }
@media (max-width: 1200px) { .hz-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hz-cols { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .hz-drawer { width: 100%; } }

/* v3.0 — integración con la estructura del Radar */
#polyPanel[hidden], #hzPanel[hidden] { display: none !important; }
.poly.hz-sel { stroke-width: 4; fill-opacity: .45; }
.poly.hz-hl { stroke-width: 3.5; fill-opacity: .5; }
.poly.hz-dim { fill-opacity: .12; stroke-opacity: .6; }
.poly-label.hz-sel, .poly-label.hz-hl { background: var(--poly-color); color: #fff; }
.poly-label.hz-dim { opacity: .7; }
.map-shell.hz-picking .map-wrap { cursor: crosshair; }
.hz-plus { color: #e0801a; font-size: 16px; line-height: 1; }
.hz-seg2 i.a { background: var(--deep); border-radius: 4px 0 0 4px; }
.hz-seg2 i.b { background: #d64545; border-radius: 0 4px 4px 0; }
.hz-seg2 i.a:only-child, .hz-seg2 i.b:only-child { border-radius: 4px; }
.hz-barrow > div > b { min-width: 22px; }
.hz-goto { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid #c9dcd6; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.hz-f-close.nm { margin-left: 0; }
.hz-f-note { font-size: .74rem; color: #647c82; }
.hz-sheet .hz-gal, .hz-sheet .hz-nophoto { max-width: 560px; }
.hz-b-head select { width: auto; }
.hz-link { border: 0; background: none; color: #0b7a55; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; padding: 0; }
.hz-legend-k { font-size: .74rem; color: #647c82; font-weight: 700; }
.hz-table-wrap { overflow-x: auto; }
.hz-heat-h { display: grid; justify-items: center; gap: 2px; font-size: .62rem; color: #647c82; }
.hz-heat-h small { font-size: .62rem; }
.hz-heat-name { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.hz-heat-name i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hz-heat-t { text-align: center; }
.hz-owner-top .provisional-tag, .hz-own .provisional-tag, .hz-rank .provisional-tag { color: #3b2a00; }
.hz-row .hz-mk, .hz-oldrow .hz-mk, .hz-combo .hz-mk { box-shadow: 0 0 0 2px #c62828; }
.hz-row .hz-mk.closed { box-shadow: 0 0 0 2px #1e9e57; }
.hz-subnav .hz-narrow { display: none; }
.hz-owners2 .hz-own-col { display: grid; gap: 6px; align-content: start; }
.hz-own-col > small { font-size: .6rem; letter-spacing: .08em; font-weight: 800; }
@media (min-width: 901px) { .hz-on #leftClose, .hz-on #rightClose { display: none; } }
@media (max-width: 900px) {
  .hz-subnav { flex-wrap: wrap; }
  .hz-subnav .hz-narrow { display: inline-block; background: #fff; }
  .hz-board-open .hz-subnav .hz-narrow { display: none; }
.hz-owners2 .hz-own-col { display: grid; gap: 6px; align-content: start; }
.hz-own-col > small { font-size: .6rem; letter-spacing: .08em; font-weight: 800; }
  .hz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hz-ptrow input, .hz-check input { width: auto; flex: none; padding: 0; }
.hz-ptrow .hz-dot { flex: none; }
.hz-table { table-layout: fixed; min-width: 860px; }
.hz-table th:nth-child(1) { width: 17%; } .hz-table th:nth-child(2) { width: 21%; }

/* v3.2 — dueños de área en una pantalla */
.hz-duenos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.hz-duenos .hz-dheat { grid-column: 1 / -1; }
.hz-dbox { padding: 10px 14px; gap: 4px; }
.hz-table.hz-compact { min-width: 0; font-size: .74rem; }
.hz-table.hz-compact th { padding: 4px 5px; font-size: .6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-table.hz-compact td { padding: 4px 5px; line-height: 1.25; }
.hz-table.hz-compact th:nth-child(1), .hz-table.hz-compact th:nth-child(2) { width: auto; }
.hz-ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hz-prov-dot { font-style: normal; font-size: .58rem; font-weight: 800; text-transform: uppercase; padding: 0 5px; border-radius: 999px; background: #ffd27a; color: #3b2a00; vertical-align: 1px; }
.hz-heat.hz-compact { gap: 3px; font-size: .74rem; }
.hz-heat.hz-compact > span.c { height: 24px; border-radius: 5px; font-size: .74rem; }
.hz-heat.hz-compact .hz-heat-h { flex-direction: row; }
.hz-heat-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz-heat-name { min-width: 0; }
@media (max-width: 1300px) { .hz-duenos { grid-template-columns: 1fr; } }

/* v3.2 — lista de hallazgos */
.hz-lfilters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hz-lfilters input[type=search] { flex: 1 1 280px; width: auto; padding: 8px 12px; border: 1px solid #d8e7e3; border-radius: 9px; font-size: .82rem; }
.hz-lfilters select { width: auto; padding: 7px 10px; border: 1px solid #d8e7e3; border-radius: 9px; font-size: .78rem; background: #fff; font-weight: 600; }
.hz-lista { min-width: 900px; }
.hz-lista td small { display: block; color: #647c82; font-size: .68rem; overflow: hidden; text-overflow: ellipsis; }
.hz-lista td b { overflow: hidden; text-overflow: ellipsis; }
.hz-lista .hz-mk { transform: scale(.85); transform-origin: left center; box-shadow: 0 0 0 2px #c62828; }
.hz-lista .hz-mk.closed { box-shadow: 0 0 0 2px #1e9e57; }
.hz-lrow { cursor: pointer; }
.hz-lrow:hover td, .hz-lrow:focus-visible td { background: #eef5f2; outline: none; }
.hz-sortable { cursor: pointer; user-select: none; }
.hz-sortable:hover { color: #0b7a55; }
.hz-st { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .68rem; font-weight: 800; }
.hz-st.open { background: #fbe3dd; color: #a33b1f; } .hz-st.closed { background: #dff5e8; color: #0b6b4a; }
.hz-old { color: #a33b1f; }
.hz-empty-row { text-align: center; color: #647c82; padding: 18px !important; }

/* v3.2 — notificaciones */
.notif-menu { position: relative; }
.notif-menu[hidden] { display: none; }
.notif-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: transparent; color: #dff8f0; display: grid; place-items: center; cursor: pointer; padding: 0; }
.notif-btn:hover { border-color: var(--mint); }
.notif-btn.has-unread { color: #ffd27a; border-color: rgba(255,210,122,.6); }
.notif-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #e5484d; color: #fff; font-size: .66rem; font-weight: 900; line-height: 19px; text-align: center; box-shadow: 0 0 0 2px var(--deep); }
.notif-count[hidden] { display: none; }
.notif-dropdown { position: absolute; right: -48px; top: calc(100% + 10px); width: min(380px, calc(100vw - 20px)); max-height: 70vh; overflow-y: auto; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 44px rgba(3,32,38,.35); z-index: 60; padding: 8px; }
.notif-dropdown[hidden] { display: none; }
.nd-head { padding: 6px 8px 8px; display: grid; gap: 2px; border-bottom: 1px solid #e3efeb; margin-bottom: 4px; }
.nd-head small { color: #647c82; font-size: .7rem; }
.nd-item { width: 100%; display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; padding: 8px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.nd-item:hover { background: #eef5f2; }
.nd-item.unread { background: #fff5e0; }
.nd-item.unread:hover { background: #ffecc4; }
.nd-text { display: grid; gap: 1px; min-width: 0; font-size: .8rem; }
.nd-text small { color: #647c82; font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-item .hz-mk { box-shadow: 0 0 0 2px #c62828; }
.nd-item .hz-mk.closed { box-shadow: 0 0 0 2px #1e9e57; }
.nd-empty { margin: 0; padding: 14px 8px; font-size: .8rem; color: #647c82; line-height: 1.45; }
.hz-table.hz-compact th { white-space: normal; overflow: visible; line-height: 1.15; vertical-align: bottom; font-size: .58rem; }
.hz-dbox .hz-table.hz-compact td { padding: 3px 5px; }
.hz-heat.hz-compact { gap: 2px 3px; }
.hz-heat.hz-compact > span.c { height: 21px; font-size: .7rem; }
.hz-heat.hz-compact .hz-heat-h { display: flex; align-items: center; justify-content: center; gap: 4px; }
.hz-heat.hz-compact .hz-heat-h .hz-dot { width: 20px; height: 20px; }
.hz-heat.hz-compact .hz-heat-name { font-size: .72rem; }
.hz-board .hz-b-head h2 { font-size: 1.2rem; }
@media (min-width: 1750px) { .hz-duenos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); } .hz-duenos .hz-dheat { grid-column: auto; } }
.hz-prov-dot { display: inline-block; width: 8px; height: 8px; padding: 0; border-radius: 50%; background: #f5b400; vertical-align: 1px; margin-left: 3px; }
.hz-heat-h .hz-dot + small { display: none; }

/* v3.3 — dueños de área: tablas a la izquierda, matriz a la derecha */
.hz-duenos { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) !important; align-items: stretch; }
.hz-duenos .hz-dheat { grid-column: auto !important; display: flex; flex-direction: column; gap: 10px; }
.hz-dleft { gap: 6px; align-content: start; }
.hz-dtable { margin-bottom: 8px; }
.hz-dtable th { font-size: .58rem; }
.hz-dtable td.hz-big { font-size: .9rem; font-weight: 800; }
.hz-table .hz-red { color: #a33b1f; } .hz-table th.hz-red { color: #a33b1f; }
.hz-table .hz-red.b { font-weight: 800; }
.hz-table .hz-green { color: #0b7a55; font-weight: 700; }
.hz-matrix { gap: 4px; font-size: .74rem; align-items: center; }
.hz-matrix > .c { height: 30px; border-radius: 6px; display: grid; place-items: center; font-weight: 800; font-size: .78rem; border: 0; padding: 0; font-family: inherit; }
.hz-matrix > button.c { cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.hz-matrix > button.c:hover { transform: scale(1.06); box-shadow: 0 0 0 2px #0d2933; }
.hz-matrix > .hz-c0 { background: #f3f7f5; }
.hz-matrix .hz-heat-h { display: grid; justify-items: center; gap: 3px; }
.hz-matrix .hz-heat-h .hz-dot + small { display: block; font-size: .6rem; color: #647c82; }
.hz-matrix .hz-heat-name { font-size: .74rem; }
.hz-heat-tl { font-size: .66rem; color: #647c82; font-weight: 700; }
.hz-heat-tt { text-align: center; font-size: .76rem; }
.hz-quick { margin-top: auto; padding: 12px 14px; border-radius: 12px; background: var(--deep); color: #e6f4f0; font-size: .8rem; line-height: 1.5; }
.hz-quick b { color: var(--mint); }
@media (max-width: 1250px) { .hz-duenos { grid-template-columns: 1fr !important; } }

/* v3.3 — leyenda al pie del mapa de hallazgos */
.hz-legend-bar { display: none; position: absolute; left: 15px; bottom: 15px; z-index: 7; align-items: center; gap: 16px; max-width: calc(100% - 200px); padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.95); border: 1px solid #dcebe6; box-shadow: 0 5px 14px rgba(16,46,56,.12); font-size: .74rem; color: #28444c; overflow: hidden; white-space: nowrap; }
.hz-on:not(.hz-board-open) .hz-legend-bar { display: flex; }
.hz-lg { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.hz-lg-muted { color: #647c82; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hz-lg-days { padding: 0 5px; border-radius: 6px; background: #c62828; color: #fff; font-size: .66rem; line-height: 16px; }
.hz-lg-mk { position: relative; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #c62828; }
.hz-lg-mk::after { content: ""; position: absolute; left: 50%; top: 3px; bottom: 3px; width: 1.5px; margin-left: -.75px; background: #c62828; opacity: .6; }
@media (max-width: 900px) { .hz-lg-muted { display: none; } .hz-legend-bar { max-width: calc(100% - 180px); gap: 10px; flex-wrap: wrap; white-space: normal; } }
.hz-matrix > span.c { height: 30px; }
/* la vista cabe en una pantalla: cada tarjeta se desplaza por dentro si hay muchos dueños o polígonos */
@media (min-width: 1251px) {
  .hz-duenos { height: calc(100vh - 250px); height: calc(100dvh - 250px); min-height: 440px; }
  .hz-duenos > .hz-box { min-height: 0; overflow-y: auto; }
  .hz-dtable thead th { position: sticky; top: -14px; background: #fff; z-index: 1; }
}

/* v3.4 — cursor sobre polígonos seleccionables */
.map-wrap.hz-over-poly:not(.panning) { cursor: pointer; }
