/* === Botón Globe fijo a la derecha de la página === */
#toggle-panel-btn {
  position: fixed;
  top: 10%;
  right: 36px;                  /* Margen derecho */
  left: auto;
  transform: translateY(-50%);
  z-index: 3000;
  background: rgba(12, 28, 38, 0.85);
  border-radius: 48px;
  box-shadow: 0 2px 18px #70dad2aa, 0 4px 32px #3C516855;
  border: 2px solid #70dad2cc;
  padding: 14px;
  outline: none;
  cursor: pointer;
  transition: box-shadow 0.18s, background 0.18s, border-color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#toggle-panel-btn:hover,
#toggle-panel-btn:focus {
  background: rgba(28, 60, 77, 0.97);
  box-shadow: 0 4px 32px #70dad2, 0 2px 12px #3C5168;
  border-color: #5c80bf;
}
#toggle-panel-btn svg {
  display: block;
  width: 1.8em;
  height: 1.8em;
  transition: filter 0.20s;
}
#toggle-panel-btn:hover svg {
  filter: drop-shadow(0 0 7px #70dad2cc);
}

/* === PANEL DE PRESENCIA A LA DERECHA === */
#panel-presencia.overview-panel {
  position: fixed;
  top: 28%;
  right: 120px;
  left: auto;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #0f2027cc 0%, #203a43d9 50%, #2c5364f9 100%);
  border-radius: 16px;
  box-shadow: 0 0 32px #00ffff88, 0 8px 32px #0008 inset;
  color: #eafcff;
  font-family: 'Arial';
  overflow: hidden;
  z-index: 3100;
  border: 1.5px solid #00ffff44;
  padding-bottom: 10px;
  min-width: 340px;
  max-width: 430px;
  transition: opacity 0.28s cubic-bezier(.4, .8, .4, 1), visibility 0.28s;
}

#panel-presencia.hidden {
  opacity: 0;
  visibility: hidden;
  display: none !important;
}
#panel-presencia {
  transition: opacity 0.28s cubic-bezier(.4, .8, .4, 1), visibility 0.28s;
}

/* === Ejemplo de cuerpo interno y filtros, no modificado === */
#panel-presencia .overview-body {
  background: transparent;
}
.overview-filters {
  width: 100%;
  display: flex;
  justify-content: center;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  justify-items: center;
  align-items: end;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}
.filter-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.filter-cell span {
  color: #b4edff;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 1px 6px #0B8383;
}
.filter-apply {
  align-items: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}
.select-container {
  width: 100%;
  position: relative;
}
.select-container select {
  background: linear-gradient(90deg, #101522 60%, #283857 100%);
  border: 1.3px solid #0B8383;
  color: #eafcff;
  width: 100%;
  outline: none;
  appearance: none;
  box-shadow: 0 2px 10px #3C5168 inset;
  text-align: center;
  transition: box-shadow 0.19s;
}
.select-container select:focus {
  background: linear-gradient(90deg, #101522 60%, #283857 100%);
  color: #eafcff;
  border: 1.3px solid #0B8383;
}
.select-container select option {
  background-color: #101522;
  color: #eafcff;
  border: 1.3px solid #0B8383;
}
.select-container::after {
  content: "▼";
  color: #70DAD2;
  position: absolute;
  right: 11px;
  top: 58%;
  transform: translateY(-50%);
  pointer-events: none;
  text-shadow: 0 2px 14px #70DAD2;
}
.futurist-btn {
  border: none;
  font-weight: bold;
  color: #101522;
  background: linear-gradient(135deg, #70dad2, #5c80bf);
  cursor: pointer;
  box-shadow: 0 0 12px #5CB0BF;
  letter-spacing: 0.05em;
  transition: 0.15s;
}
.futurist-btn:hover {
  background-position: right;
  transform: scale(1.05);
  box-shadow: 0 2px 16px #70DAD2;
}
.overview-chart-block {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.donut-center {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -60%);
  text-align: center;
  pointer-events: none;
}
.donut-value {
  font-weight: 900;
  color: #70DAD2;
  text-shadow: 0 0 18px #70DAD2, 0 4px 42px #3C5168;
}
.donut-label {
  letter-spacing: .02em;
  color: #b5e0ff;
  opacity: 0.96;
  text-shadow: 0 0 11px #70DAD2;
}
