/* ==============================
   ACCESIBILIDAD - ESTILOS PERSONALIZADOS
   Colores institucionales: #4c594f (verde grisáceo oscuro) y #a4a69c (gris claro)
   ============================== */

/* Panel flotante */
#accesibilidad-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: rgba(76, 89, 79, 0.9); /* #4c594f con transparencia */
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Botón principal (♿) */
#accesibilidad-boton {
  background-color: #4c594f;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#accesibilidad-boton:hover,
#accesibilidad-boton:focus {
  background-color: #a4a69c;
  color: #000;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Botones del panel */
#accesibilidad-panel button {
  background-color: #a4a69c;
  color: #000;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#accesibilidad-panel button:hover,
#accesibilidad-panel button:focus {
  background-color: #fff;
  color: #000;
  outline: 2px solid #4c594f;
}

/* Estado de alto contraste */
body.alto-contraste {
  background-color: #000 !important;
  color: #fff !important;
}

body.alto-contraste a {
  color: #00ffff !important;
}

body.alto-contraste img {
  filter: brightness(0.8) contrast(1.2);
}

/* Tooltip accesible (opcional) */
#accesibilidad-tooltip {
  position: absolute;
  bottom: 100%;
  right: 0;
  background-color: #a4a69c;
  color: #000;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

#accesibilidad-boton:hover + #accesibilidad-tooltip,
#accesibilidad-boton:focus + #accesibilidad-tooltip {
  opacity: 1;
}
