/* =========================================================
   Menú de accesibilidad INISA
   ========================================================= */

.buscardor {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* Botón junto a la lupa */
.inisa-a11y-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid #1f2f56;
  border-radius: 50%;
  background: #f0b233;
  color: #1f2f56;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.inisa-a11y-toggle:hover,
.inisa-a11y-toggle:focus-visible {
  background: #ffd36c;
  outline: 3px solid #0d6efd;
  outline-offset: 2px;
}

/* Panel desplegable */
.inisa-a11y-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  max-width: calc(100vw - 30px);
  z-index: 10000;
  background: #fff;
  border: 1px solid #d9dee4;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
  overflow: hidden;
}

.inisa-a11y-panel[hidden] {
  display: none !important;
}

.inisa-a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: #f0b233;
  color: #111;
}

.inisa-a11y-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.inisa-a11y-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

.inisa-a11y-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.inisa-a11y-action {
  min-height: 72px;
  border: 1px solid #d9dee4;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
}

.inisa-a11y-action:hover,
.inisa-a11y-action:focus-visible {
  background: #f3f6f8;
  outline: 2px solid #0d6efd;
}

.inisa-a11y-action.is-active {
  background: #eaf4ff;
  border-color: #0d6efd;
}

.inisa-a11y-reset-wrap {
  padding: 0 14px 14px;
}

.inisa-a11y-reset {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: #0d4f8b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Acciones */
html.inisa-a11y-text-1 {
  font-size: 18px;
}

html.inisa-a11y-text-2 {
  font-size: 20px;
}

body.inisa-a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-weight: 700;
}

body.inisa-a11y-contrast {
  filter: contrast(1.2);
}

body.inisa-a11y-stop-animations *,
body.inisa-a11y-stop-animations *::before,
body.inisa-a11y-stop-animations *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
