/* === Barra de Accesibilidad GOV.CO – versión SVG (legible) === */
.barra-accesibilidad-govco {
  position: fixed !important;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  background: #004884;
  border-radius: 12px 0 0 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  z-index: 2147483000; /* sobre casi todo */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  animation: fadeIn 0.6s ease;
}

.barra-accesibilidad-govco button {
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  transition: background 0.3s ease;
  border-radius: 6px;
}

.barra-accesibilidad-govco button:hover,
.barra-accesibilidad-govco button:focus-visible {
  background: #3366cc;
  outline: none;
}

.tooltip {
  position: absolute;
  right: 55px;
  background: #3366cc;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px 0 0 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.barra-accesibilidad-govco button:hover .tooltip,
.barra-accesibilidad-govco button:focus .tooltip,
.barra-accesibilidad-govco button:focus-visible .tooltip {
  opacity: 1;
}

/* Íconos como background-image (SVG locales dentro del plugin) */
.govco-adjust,
.govco-font-minimize,
.govco-font-maximize {
  display: inline-block;
  min-width: 22px;
  min-height: 22px;
  background-repeat: no-repeat;
  background-size: 22px 22px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.govco-adjust { background-image: url('../assets/icons/adjust.svg'); }
.govco-font-minimize { background-image: url('../assets/icons/font-minimize.svg'); }
.govco-font-maximize { background-image: url('../assets/icons/font-maximize.svg'); }

.barra-accesibilidad-govco button:hover .govco-adjust,
.barra-accesibilidad-govco button:hover .govco-font-minimize,
.barra-accesibilidad-govco button:hover .govco-font-maximize {
  filter: none;
  transform: scale(1.15);
}

/* Modo oscuro global (no afecta la barra) */
body.govco-modo-oscuro {
  filter: invert(1) hue-rotate(180deg);
}
.barra-accesibilidad-govco { filter: none !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.96); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}
