/* ══════════════════════════════════════════
   WIDGET DE ACCESIBILIDAD — Asociación Valor Tres
   ══════════════════════════════════════════ */

/* ── Botón flotante ── */
.acc-btn {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 9998;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 24px rgba(21,101,166,.35), 0 2px 8px rgba(0,0,0,.18);
  transition: transform .25s, box-shadow .25s, background .2s;
  outline: none;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.acc-btn-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}
.acc-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 36px rgba(21,101,166,.5);
}
.acc-btn:focus-visible {
  outline: 3px solid #1565a6;
  outline-offset: 3px;
}
.acc-btn.active {
  box-shadow: 0 4px 28px rgba(21,101,166,.7), 0 2px 8px rgba(0,0,0,.25);
}

/* ── Panel ── */
.acc-panel {
  position: fixed;
  bottom: 5.6rem;
  right: 1.8rem;
  z-index: 9997;
  width: 292px;
  background: #0f2f2a;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.97);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.acc-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ── Encabezado ── */
.acc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.3rem .9rem;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.acc-panel-title {
  font-size: .98rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
  font-family: 'Parkinsans', sans-serif;
}
.acc-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  padding: .3rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.acc-close:hover { color: #fff; background: rgba(255,255,255,.1); }

/* ── Lista ── */
.acc-list {
  list-style: none;
  padding: .45rem 0;
  margin: 0;
}
.acc-list li { margin: 0; }

/* ── Ítem ── */
.acc-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .68rem 1.3rem;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: rgba(255,255,255,.82);
  font-size: .875rem;
  font-family: 'Parkinsans', sans-serif;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
  transition: background .16s, color .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.acc-item:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.acc-item:focus-visible {
  outline: 2px solid #64b5f6;
  outline-offset: -2px;
}
.acc-item--active {
  background: rgba(100,181,246,.13) !important;
  color: #64b5f6 !important;
  border-left-color: #64b5f6;
}
.acc-item--active .acc-icon { color: #64b5f6; }

/* ── Icono de ítem ── */
.acc-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .16s;
}
.acc-item:hover .acc-icon { color: rgba(255,255,255,.9); }

/* ── Restablecer ── */
.acc-reset {
  padding: .7rem 1.3rem 1rem;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex;
  justify-content: center;
}
.acc-reset-btn {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  font-family: 'Parkinsans', sans-serif;
  padding: .42rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.acc-reset-btn:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.35);
}

/* ══════════════════════════════════════════
   EFECTOS APLICADOS
   ══════════════════════════════════════════ */

body.acc-no-animations *,
body.acc-no-animations *::before,
body.acc-no-animations *::after {
  animation: none !important;
  transition: none !important;
}

body.acc-headings h1,
body.acc-headings h2,
body.acc-headings h3,
body.acc-headings h4,
body.acc-headings h5,
body.acc-headings h6 {
  outline: 2px dashed #1565a6 !important;
  outline-offset: 4px;
}

body.acc-readable,
body.acc-readable p,
body.acc-readable li,
body.acc-readable span,
body.acc-readable a {
  font-family: 'Arial', 'Helvetica', sans-serif !important;
  letter-spacing: .04em !important;
  line-height: 1.9 !important;
}

body.acc-contrast-bright { background: #fff !important; color: #000 !important; }
body.acc-contrast-bright * { background-color: #fff !important; color: #000 !important; border-color: #000 !important; box-shadow: none !important; }
body.acc-contrast-bright a { color: #00008B !important; }
body.acc-contrast-bright .acc-btn { background: #fff !important; }
body.acc-contrast-bright .acc-panel { background: #002244 !important; }
body.acc-contrast-bright .acc-panel * { background-color: transparent !important; color: #fff !important; }

body.acc-contrast-dark { background: #000 !important; color: #fff !important; }
body.acc-contrast-dark * { background-color: #111 !important; color: #fff !important; border-color: #444 !important; box-shadow: none !important; }
body.acc-contrast-dark a { color: #90caf9 !important; }
body.acc-contrast-dark .acc-btn { background: #fff !important; }
body.acc-contrast-dark .acc-panel { background: #1a1a1a !important; }
body.acc-contrast-dark .acc-panel * { background-color: transparent !important; color: #fff !important; }

body.acc-underline a { text-decoration: underline !important; text-underline-offset: 3px; }

body.acc-links-marked a::after { content: ' 🔗'; font-size: .75em; }

/* ── Responsivo mobile ── */
@media (max-width: 600px) {
  .acc-btn {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 52px;
    height: 52px;
  }
  .acc-btn-img {
    width: 52px;
    height: 52px;
  }
  .acc-panel {
    right: 1rem;
    left: 1rem;
    width: auto;
    bottom: 5rem;
    border-radius: 16px;
  }
}
