:root{
  --main-header-h: 92px; /* restaurado al valor original */
  --footer-h: 63px; /* incrementado 15px según solicitud */
  --gmpx-color-surface: rgba(0, 0, 0, 0.72);
  --gmpx-color-on-surface: #ffffff;
  --gmpx-color-background: rgba(0, 0, 0, 0.72);
  --gmpx-color-surface-container: rgba(0, 0, 0, 0.2);
  --gmpx-color-surface-container-high: rgba(0, 0, 0, 0.2);
  --gmpx-color-surface-container-low: rgba(0, 0, 0, 0.2);
  --gmpx-color-on-surface-variant: #ffffff;
  --gmpx-color-outline: rgba(255, 255, 255, 0.24);
  --gmpx-color-primary: #8ab4f8;
  --gmpx-elevation-level1: 0 4px 12px rgba(0, 0, 0, 0.35);
  --gmpx-elevation-level2: 0 8px 20px rgba(0, 0, 0, 0.45);
  --gmpx-shape-medium: 4px;
}
html, body {

  #pano::before,
  #pano::after {
    display: none !important;
  }
  height: 100%;
  overflow: hidden;
}
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0 0 calc(var(--footer-h) + 6px) 0; /* reservar espacio extra para evitar solapamientos por sombras */
  background-color: #000b22;
  color: #2e4d3a;
}

#placeSearchInput {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  color: #ffffff !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
}

#placeSearchInput::placeholder,
#placeSearchInput::-webkit-input-placeholder,
#placeSearchInput::-moz-placeholder,
#placeSearchInput:-ms-input-placeholder,
#placeSearchInput::-ms-input-placeholder {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* ── Dropdown clásico de Google Places Autocomplete (pac-container) ──────── */
/* Google lo inyecta en document.body, fuera del árbol del app,              */
/* por eso necesita reglas globales independientes.                           */
.pac-container {
  background: rgba(0, 0, 0, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #e9f3ff !important;
  font-family: 'Segoe UI', sans-serif !important;
  font-size: 13px !important;
}

.pac-item {
  background: transparent !important;
  color: #e9f3ff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 6px 10px !important;
  cursor: pointer !important;
}

.pac-item:hover,
.pac-item-selected {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

.pac-item-query {
  color: #7fc7ff !important;
  font-size: 13px !important;
}

.pac-matched {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.pac-icon {
  filter: invert(1) brightness(0.75) !important;
}

/* Ocultar el logo de Google dentro del dropdown */
.pac-container:after {
  display: none !important;
}

#windowTitleBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: #000b22;
  color: #66b3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  z-index: 5000;
  -webkit-app-region: drag;
  user-select: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

#windowTitleBar span {
  pointer-events: none;
}

#mainHeader {
  display: flex;
  align-items: center;
  background-color: #000b22;
  color: white;
  padding: 15px 0;
  margin-top: 36px;
  -webkit-app-region: no-drag;
}

.header-left {
  width: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding-left: 25px;
  padding-right: 18px;
  box-sizing: border-box;
}

#mainHeader button {
  margin: 0;
  padding: 6px 10px; /* menos padding vertical/horizontal */
  font-size: 13px; /* texto más pequeño */
  border-radius: 4px; /* menos radio para ocupar menos espacio */
  border: none;
  cursor: pointer;
}

.infoLinea {
  display: flex;
  flex: 1;
  gap: 18px;
  font-size: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-left: 20px;
  padding-right: 25px;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.info-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(214, 232, 255, 0.72);
}

.info-value {
  margin-left: 0;
  font-weight: 600;
  color: #d7e8ff;
}

.info-block .info-value {
  font-size: 13px;
}

#fenceValue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#fenceValue::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8f9db4;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}

#fenceValue.fence-active {
  color: #ffb1b1;
}

#fenceValue.fence-active::before {
  background: #ff3a3a;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.35), 0 0 6px rgba(255,58,58,0.6);
}

#fenceValue.fence-inactive {
  color: #c4d5ef;
}

#demStatusValue.dem-in-coverage {
  color: #7dffaa;
}

#demStatusValue.dem-out-coverage {
  color: #ffb347;
}

.info-block.info-last {
  min-width: 180px;
  max-width: 260px;
}

.infoLinea .project-menu-wrapper {
  margin-left: auto;
  align-self: center;
  gap: 6px;
}

.lang-toggle-btn {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #a8c8ff;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.lang-toggle-btn:hover {
  background: rgba(50, 100, 200, 0.45);
  border-color: rgba(100, 180, 255, 0.65);
  color: #daeeff;
}

.lang-opt {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
  transition: color 0.15s;
}

.lang-opt.lang-active {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-opt:hover {
  color: rgba(255, 255, 255, 0.65);
}

.lang-sep {
  opacity: 0.35;
}

.project-menu-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.project-menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: #f3f8ff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.project-menu-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.project-menu-toggle:focus-visible {
  outline: 2px solid rgba(80, 172, 255, 0.9);
  outline-offset: 2px;
}

.project-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 18, 40, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 1400;
  backdrop-filter: blur(8px);
}

.project-menu-panel[hidden] {
  display: none;
}

.project-menu-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.project-menu-action {
  flex: 1 1 0;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 12px;
  border: 1px solid rgba(149, 194, 255, 0.35);
  background: linear-gradient(180deg, rgba(96, 154, 255, 0.28) 0%, rgba(61, 113, 198, 0.32) 100%);
  color: #c8dcff;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.project-menu-action.active {
  background: linear-gradient(180deg, rgba(180, 215, 255, 0.26) 0%, rgba(140, 190, 255, 0.20) 100%);
  border-color: rgba(200, 225, 255, 0.50);
  color: #ffffff;
}

.project-menu-action:not(.active):hover {
  background: linear-gradient(180deg, rgba(120, 170, 255, 0.40) 0%, rgba(80, 130, 210, 0.45) 100%);
}

.project-menu-panels {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.project-menu-section[hidden] {
  display: none;
}

.project-menu-placeholder {
  margin: 0;
  font-size: 13px;
  color: rgba(205, 220, 255, 0.78);
  line-height: 1.4;
}

.project-menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-menu-section label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #8fb8ff;
  text-transform: uppercase;
}

.project-menu-row {
  display: flex;
  gap: 8px;
}

.project-menu-panel input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(150, 180, 220, 0.35);
  background: rgba(0, 27, 68, 0.65);
  color: #f3f8ff;
  font-size: 13px;
}

.project-menu-panel select {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(150, 180, 220, 0.35);
  background: rgba(0, 27, 68, 0.65);
  color: #f3f8ff;
  font-size: 13px;
}

.project-menu-panel select:focus {
  outline: 2px solid rgba(116, 190, 255, 0.42);
  outline-offset: 1px;
  border-color: rgba(116, 190, 255, 0.42);
}

.project-menu-panel input[type="text"]::placeholder {
  color: rgba(195, 214, 240, 0.6);
}

.project-menu-panel button:not(.project-menu-action) {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: linear-gradient(180deg, rgba(96, 154, 255, 0.28) 0%, rgba(61, 113, 198, 0.32) 100%);
  color: #c8dcff;
  border: 1px solid rgba(149, 194, 255, 0.35);
  box-shadow: 0 4px 10px rgba(3, 24, 50, 0.26);
}

.project-menu-panel button:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.project-menu-footer {
  display: flex;
  justify-content: flex-end;
}

.project-menu-close {
  background: linear-gradient(180deg, #ffe1e1 0%, #ff7373 45%, #ba1c1c 100%) !important;
  color: #fffefa !important;
  border-color: rgba(136, 14, 32, 0.35) !important;
  box-shadow: 0 6px 12px rgba(92, 15, 28, 0.3) !important;
}

.project-menu-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: rgba(198, 216, 238, 0.7);
}

.project-menu-wrapper.open .project-menu-toggle {
  background: rgba(255, 255, 255, 0.22);
}

/* Control de altura de cámara en la botonera inferior */
h1 {
  text-align: center;
  background-color: #2e7d32;
  color: white;
  padding: 20px;
  margin: 0;
  font-size: 36px;
}

/* Título principal */
.titulo {
  font-size: 24px;
  font-weight: bold;
  white-space: nowrap;
}

#infoBox {
  position: absolute;
  top: 97px;
  right: 10px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
}

#footerLogo {
  height: 32px; /* reducir ligeramente el logo del footer */
  margin-right: 10px;
}
.icon.heading { color: #1976d2; }
.icon.pitch { color: #388e3c; }
.icon.zoom { color: #fbc02d; }
.icon.distance { color: #d32f2f; }

#contenedor {
  display: flex;
  height: calc(100vh - var(--main-header-h) - var(--footer-h) - 36px);
  width: 100%;
}

#mapContainer {
  order: 3;
  width: 66.66%;
  height: 100%;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pegman-control-wrapper {
  margin: 0 10px 16px 0;
}

.pegman-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.pegman-toggle-btn:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
}

.pegman-toggle-btn:active {
  transform: scale(0.94);
}

.pegman-toggle-btn:focus-visible {
  outline: 2px solid #0b7dda;
  outline-offset: 3px;
}

.pegman-toggle-btn .pegman-icon {
  width: 18px;
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 56'%3E%3Ccircle cx='18' cy='9.5' r='8.2' fill='%23fbbc04'/%3E%3Cpath d='M18 18c7.2 0 13 5.8 13 13v10.2c0 2.6-2.1 4.8-4.8 4.8h-3.4V52c0 2.2-1.8 4-4 4h-1.6c-2.2 0-4-1.8-4-4v-6h-3.4C7.1 46 5 43.8 5 41.2V31c0-7.2 5.8-13 13-13Z' fill='%23ef6c00'/%3E%3Cpath d='M12.2 31.8c0-3.2 2.6-5.8 5.8-5.8s5.8 2.6 5.8 5.8-2.6 5.8-5.8 5.8-5.8-2.6-5.8-5.8Z' fill='%23fff' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: filter 0.2s ease;
}

.pegman-toggle-btn.active {
  background: #0b7dda;
  border-color: #0a63c8;
  box-shadow: 0 6px 14px rgba(11, 125, 218, 0.4);
}

.pegman-toggle-btn.active .pegman-icon {
  filter: brightness(2.4);
}

.map-tilt-btn svg {
  transition: filter 0.2s ease;
}

.map-tilt-btn.active svg {
  filter: drop-shadow(0 0 5px rgba(100, 200, 255, 0.9)) brightness(1.4);
}

#divisor {
  order: 2;
  width: 2px;
  background: linear-gradient(to bottom, #ccc, #999);
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

#pano {
  position: relative;
  order: 1;
  width: 33.33%;
  height: 100%;
}

#pano::before,
#pano::after,
#panoMarkerOverlay,
#floatingRegisterButtonWrap,
#zoomFullscreenOverlay {
  display: none !important;
}

#pano .widget-scene-click-target,
#pano .widget-scene-click-overlay {
  background: transparent !important;
}

/* Unificar estilo de controles nativos de Google Maps (Mapa/Satélite y Full Screen) */
#map .gm-style-mtc button,
#map .gm-fullscreen-control {
  border-radius: 10px !important;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

#map .gm-style-mtc button:hover,
#map .gm-fullscreen-control:hover {
  background: rgba(0, 0, 0, 0.62) !important;
}

#map .gm-style-mtc button[aria-pressed='true'] {
  background: rgba(0, 0, 0, 0.68) !important;
}

#map .gm-style-mtc button,
#map .gm-style-mtc button span {
  color: #ffffff !important;
}

#map .gm-fullscreen-control img {
  filter: brightness(0) invert(1);
}

#zoomFullscreenOverlay:focus {
  outline: 2px solid #39ff14;
  outline-offset: 2px;
}

#markBtnFloating:hover,
#markBtnFloating:focus,
#markBtnFloating.active,
#markBtnFloating.pending,
#markBtnFloating.pending.pulse {
  border-radius: 4px;
  background: linear-gradient(180deg, #8fe07b 0%, #59c14a 55%, #2fa83a 100%);
  color: #06210e;
  border: 1px solid rgba(20,120,40,0.28);
  box-shadow: 0 6px 14px rgba(12,72,28,0.16), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: none;
  animation: none;
}

.floating-register-secondary {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 8px 14px;
  font-size: 18px !important;
  white-space: nowrap;
  border-radius: 4px;
  background: linear-gradient(180deg, #2e4f88 0%, #1f3e73 55%, #163260 100%);
  color: #ffffff;
  border: 1px solid rgba(26, 53, 102, 0.75);
  box-shadow: 0 6px 14px rgba(6, 22, 52, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: none;
  animation: none;
}

.floating-register-secondary:hover,
.floating-register-secondary:focus,
.floating-register-secondary.active,
.floating-register-secondary.pending,
.floating-register-secondary.pending.pulse {
  background: linear-gradient(180deg, #355a98 0%, #254984 55%, #1b3a6f 100%);
  color: #ffffff;
  border: 1px solid rgba(39, 73, 131, 0.95);
  box-shadow: 0 8px 18px rgba(7, 21, 49, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: none;
  animation: none;
}

.map-toggle-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 950;
  pointer-events: auto;
  justify-content: center;
}

.toggle-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(180deg, #e6f3ff 0%, #c9e6ff 45%, #b0d9ff 100%);
  color: #ffffff;
  border: 1px solid rgba(6,33,59,0.12);
  border-top: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 6px 12px rgba(3,24,50,0.18), inset 0 1px 0 rgba(255,255,255,0.35);
  text-shadow: 0 1px 0 rgba(0,0,0,0.25);
  transition: transform 160ms cubic-bezier(.2,.9,.3,1), box-shadow 160ms ease, background 160ms ease;
}

.toggle-pill:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 22px rgba(3,24,50,0.20), inset 0 1px 0 rgba(255,255,255,0.35);
}

.toggle-pill:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 6px 14px rgba(3,24,50,0.22), inset 0 1px 0 rgba(255,255,255,0.35);
}

.toggle-pill:focus-visible {
  outline: 2px solid rgba(120, 190, 255, 0.95);
  outline-offset: 3px;
}

.toggle-pill.inactive {
  transform: none;
  box-shadow: 0 4px 8px rgba(3,24,50,0.16), inset 0 1px 0 rgba(255,255,255,0.28);
  opacity: 0.9;
  color: #d8d8d8;
}

#toggleTreesBtn.toggle-pill {
  background: linear-gradient(180deg, rgba(255, 215, 218, 0.5) 0%, rgba(255, 96, 100, 0.5) 45%, rgba(176, 17, 35, 0.5) 100%);
}

#toggleTreesBtn.toggle-pill.inactive {
  background: linear-gradient(180deg, rgba(247, 178, 184, 0.5) 0%, rgba(224, 86, 93, 0.5) 45%, rgba(142, 13, 29, 0.5) 100%);
}

.marker-style-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(120,220,100,0.35);
  background: rgba(8,28,10,0.72);
  color: #a8e870;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
  white-space: nowrap;
}

#mapBottomLeftControls {
  position: absolute;
  bottom: 20px;
  left: 12px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

#mapBottomLeftControls .map-control-wrapper.map-bottom-inline-control {
  margin: 0;
  align-self: center;
}

.map-reset-north-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255,200,80,0.38);
  background: rgba(26,18,4,0.75);
  color: #ffd070;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
  white-space: nowrap;
}
.map-tilt-inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(90,180,255,0.38);
  background: rgba(4,18,28,0.75);
  color: #8fd2ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  user-select: none;
  white-space: nowrap;
}
.map-tilt-inline-btn:hover {
  background: rgba(8,35,55,0.9);
  border-color: rgba(130,205,255,0.65);
}
.map-tilt-inline-btn.active {
  background: rgba(8,40,66,0.95);
  color: #d5f0ff;
  border-color: rgba(150,220,255,0.78);
}
.map-reset-north-btn:hover {
  background: rgba(55,38,5,0.9);
  border-color: rgba(255,220,100,0.65);
}
.marker-style-toggle-btn:hover {
  background: rgba(15,50,18,0.88);
  border-color: rgba(140,240,110,0.55);
}
.marker-style-toggle-btn.circle-mode {
  color: #ff9090;
  background: rgba(28,5,5,0.72);
  border-color: rgba(220,80,80,0.4);
}
.marker-style-toggle-btn.circle-mode:hover {
  background: rgba(55,10,10,0.88);
  border-color: rgba(240,100,100,0.6);
}

#togglePanoramasBtn.toggle-pill {
  background: linear-gradient(180deg, #d9e7ff 0%, #4d8df0 45%, #0f2e81 100%);
}

#togglePanoramasBtn.toggle-pill.inactive {
  background: linear-gradient(180deg, #b7c9f3 0%, #3f74d6 45%, #0c2466 100%);
}

#panoMarkerOverlay .pano-debug-marker {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 2px solid rgba(240, 157, 67, 0.95);
  border-radius: 50%;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
  background: rgba(240, 157, 67, 0.0);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#panoMarkerOverlay .pano-debug-label {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 10px 7px 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.62);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

#panoMarkerOverlay .pano-debug-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(240, 157, 67, 0.95);
  box-shadow: 0 0 6px rgba(240, 157, 67, 0.75);
  pointer-events: none;
}

#panoMarkerOverlay .pano-tree-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#panoMarkerOverlay .pano-tree-marker::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 112, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

#panoMarkerOverlay .pano-tree-marker.pano-tree-marker--active::before {
  background: rgba(0, 255, 116, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

#panoMarkerOverlay .pano-tree-marker .pano-tree-label {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translate(-50%, 0);
  padding: 3px 7px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  pointer-events: none;
}

#panoMarkerOverlay .pano-tree-marker.pano-tree-marker--neighbor .pano-tree-label {
  color: #ffffff;
}

#panoMarkerOverlay .pano-tree-marker.pano-tree-marker--active .pano-tree-label {
  color: #ffffff;
}

#panoramaOverlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

#panoramaOverlay .overlay-debug-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 6px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
}

#panoramaOverlay .overlay-debug-info {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.58);
  color: #fff;
  font-size: 12px;
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

#panoramaOverlay .overlay-tree-marker {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #16a34a;
  background: rgba(34,197,94,0.85);
  box-shadow: 0 0 10px rgba(0,0,0,0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#panoramaOverlay .overlay-tree-marker[data-active="0"] {
  opacity: 0.35;
}

#panoramaOverlay .overlay-tree-marker[data-same-pano="0"] {
  background: rgba(59,130,246,0.85);
  border-color: #2563eb;
}

#panoramaOverlay .overlay-tree-marker span {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

/* Cruce metálico con cilindros */
#pano::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg,
      transparent calc(50% - 3px),
      rgba(188, 18, 9, 0.82) calc(50% - 2px),
      rgba(255, 68, 28, 0.98) calc(50% - 1px),
      #ffe0d6 50%,
      rgba(255, 68, 28, 0.98) calc(50% + 1px),
      rgba(188, 18, 9, 0.82) calc(50% + 2px),
      transparent calc(50% + 3px)),
    linear-gradient(180deg,
      transparent calc(50% - 3px),
      rgba(0, 70, 196, 0.82) calc(50% - 2px),
      rgba(0, 138, 255, 0.98) calc(50% - 1px),
      #6ee0ff 50%,
      rgba(0, 138, 255, 0.98) calc(50% + 1px),
      rgba(0, 70, 196, 0.82) calc(50% + 2px),
      transparent calc(50% + 3px));
  background-repeat: no-repeat;
  background-size: 5px 100%, 100% 5px;
  background-position: center;
  filter: drop-shadow(0 0 16px rgba(32, 126, 255, 0.35));
  pointer-events: none;
  z-index: 10;
}

#pano::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.75);
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.3) 22%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0, 128, 72, 0.3) 0%, transparent 40%),
    radial-gradient(circle, #5fffba 0%, #2ae684 40%, #04bb5a 75%, #01753a 100%);
  box-shadow:
    0 0 12px rgba(40, 240, 140, 0.6),
    inset 0 0 4px rgba(255, 255, 255, 0.65);
  z-index: 11;
  pointer-events: none;
}

#pano.hide-crosshair::before,
#pano.hide-crosshair::after {
  content: none !important;
  background: none !important;
  box-shadow: none !important;
  filter: none !important;
}

button {
  margin: 10px;
  padding: 10px 20px;
  font-size: 16px;
}
header {
  display: flex;
  align-items: center;
  font-size: 14px;
  padding: 10px;
  background-color: #f0f0f0;
}
.botonera {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0 20px; /* quitar padding vertical para que la altura sea exacta */
  box-sizing: border-box;
  background: #000b22;
  color: #fff;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.25);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4000;
  height: var(--footer-h);
}

.snap-attributes-bar {
  display: flex;
}

.record-status-legend {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
  scrollbar-width: thin;
}

.record-status-legend__title {
  color: #ffffff;
  font-weight: 700;
}

.record-status-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(235, 243, 255, 0.92);
}

.record-status-legend__swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.record-status-legend__swatch--complete {
  background: #20a44b;
}

.record-status-legend__swatch--partial {
  background: #f28c18;
}

.record-status-legend__swatch--empty {
  background: #dc2f2f;
}

.snap-attributes-content {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: calc(var(--footer-h) - 8px);
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 187, 245, 0.45) rgba(0, 11, 34, 0.2);
}

.snap-attributes-content::-webkit-scrollbar {
  height: 6px;
}

.snap-attributes-content::-webkit-scrollbar-track {
  background: rgba(3, 12, 28, 0.35);
}

.snap-attributes-content::-webkit-scrollbar-thumb {
  background: rgba(140, 184, 246, 0.55);
  border-radius: 999px;
}

.snap-attr-empty {
  color: rgba(212, 228, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
}

.snap-attr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid rgba(141, 184, 245, 0.36);
  background: rgba(9, 26, 58, 0.78);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  color: #d8e8ff;
  font-size: 13px;
  line-height: 1;
}

.snap-attr-label {
  color: rgba(171, 201, 248, 0.9);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.snap-attr-value {
  color: #f2f7ff;
  font-weight: 600;
}

.snap-panorama-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 3100;
  max-height: 33%;
  padding: 12px 14px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 225, 34, 0.38);
  background: linear-gradient(180deg, rgba(17, 18, 22, 0.50), rgba(12, 12, 15, 0.50));
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: auto;
}

.snap-panorama-card__title {
  color: #ff9f1a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 221, 0, 0.45);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.snap-panorama-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.snap-panorama-card__section {
  grid-column: 1 / -1;
  color: #ff9f1a;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 224, 90, 0.28);
}

.snap-panorama-card__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.snap-panorama-card__label {
  color: #ff9f1a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.snap-panorama-card__value {
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.18;
  word-break: break-word;
}

@media (max-width: 820px) {
  .snap-panorama-card {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: 42%;
    padding: 10px 11px 9px;
  }

  .snap-panorama-card__grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .snap-panorama-card__value {
    font-size: 15px;
  }
}

#logo {
  height: 60px;
  margin-right: 15px;
}

#footerLogo {
  height: 38px;
  margin-right: 14px;
}

.botonera-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.auto-nearest-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #c9dcff;
  cursor: pointer;
  user-select: none;
}

.auto-nearest-toggle input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.auto-nearest-toggle.active span {
  color: #72ffb1;
  font-weight: 600;
}

/* Botones: base (claros sobre fondo oscuro) */
button {
  margin: 0;
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* Botón secundario (neutral) */
#undoBtn, #exportBtn, #importLayerBtn, #loadFenceBtn, #takePhotoBtn, #toggleDemCalibrationBtn {
  background: linear-gradient(180deg,#e9eef0 0%, #dfe9ec 100%);
  color: #0b2530;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

#toggleDemCalibrationBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

#drawGuideLineBtn,
#undoBtn {
  white-space: normal;
  line-height: 1.1;
}

#loadFenceBtn.fence-active,
#importLayerBtn.layer-active,
#loadDemBtn.dem-active {
  background: linear-gradient(180deg, #ffcc88 0%, #ff9933 55%, #e07a00 100%);
  color: #3d1a00;
  border: 1px solid rgba(180,80,0,0.3);
  border-top: 1px solid rgba(255,220,130,0.6);
  box-shadow: 0 6px 12px rgba(180,80,0,0.22), inset 0 1px 0 rgba(255,255,255,0.3);
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

/* Botón Dibujar Línea Guía */
#drawGuideLineBtn {
  background: linear-gradient(180deg, #e9eef0 0%, #dfe9ec 100%);
  color: #0b2530;
  border: 1px solid rgba(0,0,0,0.06);
  border-top: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 6px 12px rgba(3,24,50,0.18), inset 0 1px 0 rgba(255,255,255,0.35);
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  transition: transform 160ms cubic-bezier(.2,.9,.3,1), box-shadow 160ms ease;
}
#drawGuideLineBtn:hover {
  transform: translateY(-2px);
}
#drawGuideLineBtn.guide-line-active {
  background: linear-gradient(180deg, #ffcc88 0%, #ff9933 55%, #e07a00 100%);
  color: #3d1a00;
  border: 1px solid rgba(180,80,0,0.3);
  border-top: 1px solid rgba(255,220,130,0.6);
  box-shadow: 0 6px 12px rgba(180,80,0,0.22), inset 0 1px 0 rgba(255,255,255,0.3);
  text-shadow: 0 1px 0 rgba(255,255,255,0.25);
}

/* Estilo base para botones de acción. El color verde y la animación
   se aplican únicamente cuando el elemento tiene la clase .pending */
.boton-accion {
  /* estilo 3D metálico azul claro (solo apariencia) */
  background: linear-gradient(180deg, #e6f3ff 0%, #c9e6ff 45%, #b0d9ff 100%);
  color: #06213b; /* texto en azul oscuro para contraste */
  border: 1px solid rgba(6,33,59,0.12);
  border-top: 1px solid rgba(255,255,255,0.6); /* ligero bisel superior */
  box-shadow: 0 6px 12px rgba(3,24,50,0.18), inset 0 1px 0 rgba(255,255,255,0.35);
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
  transition: transform 160ms cubic-bezier(.2,.9,.3,1), box-shadow 160ms ease;
}

/* Contenedor para controles personalizados del mapa (alineado con controles nativos) */
.map-control-wrapper {
  margin: 8px 8px 0 8px; /* separar del borde superior y laterales */
  display: inline-block;
}

/* Variante neutral para controles del mapa (Distancia e Inclinar/Girar) */
.map-control-wrapper .boton-accion.neutral {
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}

.map-control-wrapper .boton-accion.neutral:hover {
  background: rgba(0, 0, 0, 0.62);
}

/* Botón Distancia junto a Mapa/Satélite */
.map-control-wrapper.map-measure-top-control {
  margin: 0 0 0 6px;
  display: inline-flex;
  vertical-align: top;
}

.map-control-wrapper .boton-accion.neutral.map-measure-maptype-btn {
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 0;
  padding: 0 17px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
}

.map-control-wrapper .boton-accion.neutral.map-measure-maptype-btn:hover {
  background: rgba(0, 0, 0, 0.62);
}

.map-control-wrapper .boton-accion.neutral.map-measure-maptype-btn.active {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Hover states */
#markBtn { font-size: 15px; font-weight: 700; }
#markBtn:hover { transform: translateY(-2px); }
#markBtn.register-motion-dimmed,
#markBtnFloating.register-motion-dimmed {
  opacity: 0.35;
  pointer-events: none;
}
#undoBtn:hover, #exportBtn:hover, #importLayerBtn:hover, #loadFenceBtn:hover, #takePhotoBtn:hover { transform: translateY(-2px); }

/* Mantener animación y resaltado para boton-accion (definición única más abajo) */

/* Pegman control styles */
.pegman-control-wrapper {
  margin: 0 10px 16px 0;
}

.pegman-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.pegman-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.pegman-toggle-btn:active {
  transform: scale(0.94);
}

.pegman-toggle-btn:focus-visible {
  outline: 2px solid #0b7dda;
  outline-offset: 3px;
}

.pegman-toggle-btn .pegman-icon {
  width: 18px;
  height: 26px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 56'%3E%3Ccircle cx='18' cy='9.5' r='8.2' fill='%23fbbc04'/%3E%3Cpath d='M18 18c7.2 0 13 5.8 13 13v10.2c0 2.6-2.1 4.8-4.8 4.8h-3.4V52c0 2.2-1.8 4-4 4h-1.6c-2.2 0-4-1.8-4-4v-6h-3.4C7.1 46 5 43.8 5 41.2V31c0-7.2 5.8-13 13-13Z' fill='%23ef6c00'/%3E%3Cpath d='M12.2 31.8c0-3.2 2.6-5.8 5.8-5.8s5.8 2.6 5.8 5.8-2.6 5.8-5.8 5.8-5.8-2.6-5.8-5.8Z' fill='%23fff' opacity='.55'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: filter 0.2s ease;
}

.pegman-toggle-btn.active {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.pegman-toggle-btn.active .pegman-icon {
  filter: brightness(2.4);
}

.etiqueta-flotante {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #003366;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-family: sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0.95;
}

/* Botón de acción (tomar foto) - posicionamiento relativo para badge */
.boton-accion {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Tooltip pequeño para indicar flujo: registrar -> tomar foto */
.boton-accion[data-hint]:hover::after,
[data-hint]:hover::after {
  content: attr(data-hint);
  position: absolute;
  top: -48px; /* desplazar un poco más para caber varias líneas */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  display: inline-block; /* asegurar que respeta min/max width */
  box-sizing: border-box;
  min-width: 280px; /* ancho mínimo: prueba solicitada */
  /* permitir multilínea y que el texto se ajuste al ancho
    aumentar el tamaño (al menos el doble) pero no superar el viewport */
  white-space: normal; /* permite wrapping automático */
  max-width: min(1000px, 90vw);
  /* evitar cortar palabras en medio: permitir wrapping en espacios y usar guiones suaves */
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
  text-align: center;
  font-size: 12px;
  z-index: 200000;
}

/* En el panel flotante derecho, mostrar hint hacia la izquierda para evitar corte en borde de pantalla */
#floatingRegisterButtonWrap [data-hint]:hover::after,
#floatingRegisterButtonWrap .boton-accion[data-hint]:hover::after {
  top: 50%;
  left: auto;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  min-width: 220px;
  max-width: min(440px, 76vw);
  text-align: left;
}

/* Asegurar que cualquier elemento con data-hint actúe como contenedor posicionable */
[data-hint] {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Highlight sutil cuando hay un punto pendiente */
.boton-accion.pending {
  /* verde metálico inspirado en el logo (resaltar acción requerida) */
  background: linear-gradient(180deg, #8fe07b 0%, #59c14a 55%, #2fa83a 100%);
  color: #06210e; /* texto oscuro sobre verde */
  border: 1px solid rgba(20,120,40,0.28);
  box-shadow: 0 6px 14px rgba(12,72,28,0.16), inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* Estado activo/elevado para botones (hover o toggled active) */
.boton-accion.active,
.boton-accion:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 30px rgba(3,24,50,0.22), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* pequeña animación para llamar la atención (verde suave) */
@keyframes pulseSmall {
  0% { box-shadow: 0 0 0 0 rgba(34,139,34,0.12); }
  70% { box-shadow: 0 0 0 8px rgba(34,139,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,139,34,0); }
}
.boton-accion.pending.pulse {
  animation: pulseSmall 1.6s infinite ease-out;
}

/* Elevación ligera en hover para reforzar la sensación 3D */
.boton-accion:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 22px rgba(3,24,50,0.20), inset 0 1px 0 rgba(255,255,255,0.35);
}

.eye-care-reminder {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1200;
  max-width: min(88%, 760px);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: pre-line;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.eye-care-reminder.visible {
  opacity: 1;
  visibility: visible;
}

@keyframes eyeCareBlinkFast {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.eye-care-reminder.visible.blink {
  animation: eyeCareBlinkFast 0.56s linear infinite;
}

/* Input de altura de cámara: ancho reducido a 6 caracteres para ocupar menos espacio */

/* ── Marcadores de árbol sobre el panorama (HTML overlay) ── */
.ptm {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  z-index: 901;
}
.ptm-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #ffffa0 0%, #fbff00 45%, #ff0000 100%);
  border: 1.5px solid #cc0000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.55);
}
.ptm--active .ptm-dot {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 50% 35%, #a7ff9f 0%, #39FF14 45%, #0b3f0b 100%);
  border-color: #0b3f0b;
}
.ptm-lbl {
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  line-height: 1.3;
}
