/* Cartografía y controles limitados al explorador de preview. */
.opec-map { min-width: 0; margin: 0; padding: 14px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.opec-map-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.opec-map-territory { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; min-width: 0; }
.opec-map .opec-map-territory h4 { margin: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.opec-map-territory p { margin: 0; color: var(--accent-text); font-size: 13px; font-weight: 700; line-height: 1.5; font-variant-numeric: tabular-nums; }
.opec-map-territory p::before { content: '— '; }
.opec-map-territory small { flex-basis: 100%; color: var(--muted); font-size: 10px; }
.opec-map .opec-map-heading .button { flex-shrink: 0; min-height: 32px; padding: 5px 8px; font-size: 10px; }
.opec-map .opec-map-hover { min-height: 2.6em; margin: 0; color: var(--ink); font-size: 11px; line-height: 1.3; transition: color .12s ease; }
.opec-map-stage { position: relative; flex: 1; min-height: 180px; overflow: hidden; }
.opec-map .opec-map-canvas { width: 100%; height: 100%; touch-action: pan-y; }
.opec-map .opec-map-canvas svg { display: block; width: 100%; height: 100%; overflow: hidden; user-select: none; }
.opec-map svg.is-zoomed { cursor: grab; }
.opec-map svg.is-dragging { cursor: grabbing; }
.opec-map .opec-map-canvas path { fill: var(--sky); stroke: #164b7e; stroke-width: 1; cursor: pointer; }
.opec-map .opec-map-canvas path:hover, .opec-map .opec-map-canvas path:focus { fill: #94c9e9; stroke: var(--ink); stroke-width: 2; outline: none; }
.opec-map .opec-map-canvas path.is-selected { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.opec-map .opec-map-canvas path.is-unmapped { fill: var(--line); stroke-dasharray: 3 2; cursor: help; }
.opec-map .opec-map-canvas path:focus-visible { stroke: var(--ink); stroke-width: 3.5; stroke-dasharray: 4 2; }
.opec-map-zoom { position: absolute; bottom: 4px; left: 0; display: flex; gap: 4px; align-items: center; z-index: 2; }
.opec-map-zoom > button, .opec-map-help summary { display: grid; place-items: center; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 15px; cursor: pointer; list-style: none; }
.opec-map-help summary::-webkit-details-marker { display: none; }
.opec-map-zoom > button:hover, .opec-map-help summary:hover { border-color: var(--accent-text); }
.opec-map-help-content { position: absolute; z-index: 3; left: 0; bottom: 44px; width: min(310px, calc(100vw - 100px)); padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 11px; line-height: 1.5; }
.opec-map-help-content p { margin: 0 0 8px; }
.opec-map-help-content button { min-height: 32px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 11px; }
.opec-map .opec-map-bogota { position: absolute; right: 0; bottom: 4px; min-height: 34px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-size: 10px; }
@media (max-width: 700px) {
  .opec-map { padding: 10px; }
  .opec-map-zoom { gap: 2px; }
  .opec-map-zoom > button, .opec-map-help summary { width: 42px; height: 42px; }
  .opec-map .opec-map-bogota, .opec-map .opec-map-heading .button { min-height: 42px; }
  .opec-map-help-content { bottom: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .opec-map .opec-map-hover { transition: none; }
}
