html.lectura-texto-grande { font-size: 112.5% !important; }
html.lectura-texto-muy-grande { font-size: 125% !important; }

html.lectura-enlaces-subrayados a {
  text-decoration-line: underline !important;
  text-underline-offset: 0.15em;
}

html.lectura-contraste-alto {
  --color-text-primary: #000;
  --color-text-secondary: #000;
  --color-text-muted: #1a1a1a;
  --color-brand-dark: #000;
  --color-brand-forest: #0b330b;
  --color-brand-moss: #1c3a0e;
  --color-brand-sage: #fff;
  --color-background: #fff;
  --color-surface: #fff;
  --color-surface-secondary: #fff;
  --color-surface-hover: #f2f2f2;
  --color-border: #000;
}

html.lectura-contraste-alto body {
  background: #fff !important;
  color: #000 !important;
}

html.lectura-contraste-alto [class*="text-brand-dark/"],
html.lectura-contraste-alto [class*="text-text-"] {
  color: #000 !important;
}

html.lectura-sin-movimiento { scroll-behavior: auto !important; }

html.lectura-sin-movimiento *,
html.lectura-sin-movimiento *::before,
html.lectura-sin-movimiento *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

.lectura-disparador {
  position: fixed;
  left: 1.5rem;
  bottom: 4.5rem;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 9999px;
  background: #132a13;
  color: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.25);
  cursor: pointer;
}

.lectura-icono { display: inline-flex; }

.lectura-icono svg { width: 1.5rem; height: 1.5rem; }

.lectura-icono--chico svg { width: 1.25rem; height: 1.25rem; }

.lectura-disparador:hover { background: #31572c; }

.lectura-disparador:focus-visible {
  outline: 3px solid #dab730;
  outline-offset: 2px;
}

.lectura-panel {
  position: fixed;
  left: 1.5rem;
  bottom: 8rem;
  z-index: 9001;
  width: min(20rem, calc(100vw - 2rem));
  max-height: calc(100vh - 9rem);
  overflow: auto;
  padding: 1rem 1.25rem;
  border: 1px solid #132a13;
  border-radius: 0.75rem;
  background: #fff;
  color: #132a13;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.2);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}

.lectura-panel[hidden] { display: none; }

.lectura-panel :focus-visible {
  outline: 3px solid #132a13;
  outline-offset: 2px;
}

.lectura-encabezado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.lectura-titulo {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #132a13;
}

.lectura-cerrar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #132a13;
  cursor: pointer;
}

.lectura-cerrar:hover { background: #f1f5e9; }

.lectura-grupo {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
}

.lectura-leyenda {
  margin-bottom: 0.25rem;
  padding: 0;
  font-weight: 600;
}

.lectura-opcion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  color: #132a13;
  cursor: pointer;
}

.lectura-opcion input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: #132a13;
}

.lectura-nota {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: #3b4a3b;
}

.lectura-restablecer {
  padding: 0.5rem 1rem;
  border: 2px solid #132a13;
  border-radius: 0.5rem;
  background: #fff;
  color: #132a13;
  font-weight: 600;
  cursor: pointer;
}

.lectura-restablecer:hover { background: #f1f5e9; }

@media (max-width: 640px) {
  .lectura-disparador,
  .lectura-panel { left: 1rem; }
}

@media (min-width: 1024px) {
  .panel-app .lectura-disparador,
  .panel-app .lectura-panel { left: 17.5rem; }
}
