/* Accesibilidad: panel Escuchar página (TTS) */
.a11y-tts-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.a11y-tts-toggle {
  border: 0;
  border-radius: 999px;
  background: #2b8888;
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.a11y-tts-toggle:hover,
.a11y-tts-toggle:focus-visible {
  background: #246f6f;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.a11y-tts-toggle[aria-pressed="true"] {
  background: #1f5f5f;
}

.a11y-tts-controls {
  display: none;
  gap: 0.35rem;
  background: #18223c;
  color: #fff;
  padding: 0.45rem;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.a11y-tts-panel.is-open .a11y-tts-controls {
  display: flex;
}

.a11y-tts-controls button {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.a11y-tts-controls button:hover,
.a11y-tts-controls button:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: 2px solid #ff6845;
  outline-offset: 1px;
}

.a11y-tts-status {
  font-size: 0.72rem;
  color: #d1d5db;
  max-width: 14rem;
  text-align: right;
  padding: 0 0.2rem;
}

.a11y-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #18223c;
  color: #fff;
  padding: 0.65rem 1rem;
  z-index: 100000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}

.a11y-skip-link:focus {
  left: 0;
}

@media (max-width: 640px) {
  .a11y-tts-panel {
    right: 0.65rem;
    bottom: 0.65rem;
  }
  .a11y-tts-toggle {
    padding: 0.65rem 0.85rem;
    font-size: 0.82rem;
  }
}
