:root {
  --user-font-size: 16px;
}

/* Permitir scroll en la página cuando el offcanvas está abierto */
body.offcanvas-open #accessibilityToolbar {
  overflow: auto !important;
}
#accessibilityToolbar .offcanvas-body {
  flex-grow: 1;
  overflow-y: auto;
  background: #EFF1F5;
  color:#000!important;
}
#accessibilityToolbar p{
  color:#000!important;
  font-size:1rem;
}
.acc-shadow-sm{
  box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}
#accessibilityToolbar .offcanvas-title {
  color:#fff!important;
}
#accessibilityToolbar .close-icon {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  height: 37px;
}
/* Estilo del botón de accesibilidad */
#AccButton {
  position: fixed;
  left: 15px;
  bottom: 4rem;
  z-index: 998;
  width: 50px;
  height: 50px;
  font-size: 2rem;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: linear-gradient(to right, rgb(0, 107, 230), rgb(2, 96, 221), rgb(5, 85, 212), rgb(7, 73, 203), rgb(9, 62, 194));
  cursor: pointer;
}

/* Estilo del panel de accesibilidad (Toolbar) */
#accessibilityToolbar {
  max-width: 85% !important;
  color: inherit !important;
  filter: none !important;
  background: linear-gradient(to right, rgb(0, 107, 230), rgb(2, 96, 221), rgb(5, 85, 212), rgb(7, 73, 203), rgb(9, 62, 194));
  border: 0px;
  z-index:999999;
}

/* Botón de desactivación del panel de accesibilidad */

.accOffBnt {
  position: absolute;
  right: 6px;
  width: 40px;
  height: 40px;
  background: #0f3173;
  top: 6px;
  cursor:pointer;
}

/* Estilos del control de tamaño de fuente */
.AccBarbtnText {
  display: flex;
  align-content: center;
  justify-content: space-around;
  align-items: flex-end;
  padding-bottom: 20px;
  font-weight: 700;
}
.acc-control-text-box {
  margin-bottom:10px;
}
.acc-control-text-box p {
  font-weight: 600;
}

.boxAccBtns {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: center;
    align-items: stretch;
}

#resetAlert {
  display:flex;
  justify-content: space-between;
}

#resetAlert small strong {
color:#000;
}

#accessibilityToolbar .btngrey {
  position: relative;
  text-align: center;
  width: 100%;
  height: 114px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-evenly;
  -webkit-appearance: none;
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  border: 2px solid #fff;
  padding: 0.225rem;
  transition: border-color .15sease;
  font-size:1rem;
  line-height:normal;
  font-weight:bold;
}
#accessibilityToolbar .btngrey.active{
  border: 2px solid #166fc7;
  color:#166fc7;
  ;
}
#accessibilityToolbar .btngrey [class^='icon'] , #accessibilityToolbar .btngreyMedium  [class^='icon'] {
  font-size: 20px;
}
#accessibilityToolbar .btngreyMedium {
  position: relative;
  text-align: center;
  width: 100%;
  height: 85px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-evenly;
  -webkit-appearance: none;
  cursor: pointer;
  background: #fff;
  border-radius: 6px;
  border:1px solid #fff;
  padding: 0.225rem;
  transition: border-color .15sease;
  line-height: 15px;
  font-weight: bold;
  font-size: 14px;
}
#accessibilityToolbar .btngreyMedium.active{
  border: 2px solid #166fc7;
  color:#166fc7;
  ;
}
#accessibilityToolbar .btngreyMedium:hover, #accessibilityToolbar .btngreyMedium:focus, #accessibilityToolbar .btngreyMedium:hover {
  border: 2px solid #166fc7;
}
#accessibilityToolbar .btngreyMedium:hover, #accessibilityToolbar .btngreyMedium:focus, #accessibilityToolbar .btngreyMedium:active {
  border: 2px solid #166fc7;
}
#accessibilityToolbar .btngreyMini {
  position: relative;
  text-align: center;
  width: 100%;
  height: 60px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-evenly;
  -webkit-appearance: none;
  cursor: pointer;
  background: #fff;
  border-radius: 6px;
  border:1px solid #fff;
  padding: 0.225rem;
  transition: border-color .15sease;
  line-height: normal;
  font-weight: bold;
}
#accessibilityToolbar .btngreyMini.active{
  border: 2px solid #166fc7;
  color:#166fc7;
  ;
}
#accessibilityToolbar .btngreyMini:hover, #accessibilityToolbar .btngreyMini:focus, #accessibilityToolbar .btngreyMini:hover {
  border: 2px solid #166fc7;
}
#accessibilityToolbar .btngrey:hover, #accessibilityToolbar .btngrey:focus, #accessibilityToolbar .btngrey:active {
  border: 2px solid #166fc7;
}
.AccSliderText{
  display: flex;
  align-content: center;
  justify-content: space-around;
  align-items: flex-end;
  font-weight: 700;
}
.AccSliderSaturation, .AccReadVolume {
  display: flex;
  align-content: center;
  justify-content: space-around;
  align-items: flex-end;
  padding-bottom: 10px;
  font-weight: 700;
}
/* Estilos de accesibilidad */

/* HIGHT CONTRAST*/
.high-contrast {
  background: black !important;
  color: yellow !important;
}

body.high-contrast {
  background: black !important;
  color: yellow !important;
}

.high-contrast a {
  color: yellow !important;  /* Asegura que los enlaces también tengan texto amarillo */
}

body.high-contrast > header, body.high-contrast #header_content, body.high-contrast .bgd-upper-menu{
  background: black !important;
  color: yellow !important;
}

.high-contrast h2,
.high-contrast h3,
.high-contrast h4,
.high-contrast p,
.high-contrast section,
.high-contrast article,
.high-contrast footer {
  background: black !important;
  color: yellow !important;
}
/* Ajuste de accesibilidad: mantener legibilidad en alto contraste */
body.high-contrast #fontSizeValue {
  color: yellow !important;
}
/* Asegúrate que afecte el offcanvas */
body.high-contrast #accessibilityToolbar,
body.high-contrast #accessibilityToolbar * {
  filter: none !important;
  background: inherit;
  color: inherit;
}


/* INVERT COLOR */
body.invert-colors * {
  filter: invert(1);
}
.invert-colors {
  filter: invert(1);
}
/*Mantener en invert-color del menu de nuestro framework importante*/
header.invert-colors .header_mobile .header_menu.active {
  height: 100vh;
}

/* SATURATION */
.low-saturation-0 {
  filter: saturate(0);
}
body.low-saturation-0 * {
  filter: saturate(0);
}


/* MONOCHROME */
header.monochrome, main.monochrome *, footer.monochrome {
  filter: grayscale(1);
}
/*Mantener en monochrome el menu de nuestro framework importante*/
header.monochrome .bgd-upper-menu {
  z-index:-1;
}
header.monochrome .header_mobile .header_menu.active {
  height: 100vh;
}

/* LINEA GUÍA-MARCADOR */

.linea-guia-active {
  position: absolute;
  background-color: rgba(255, 255, 0, 0.5);
  height: 10px;
  width: 100%;
  left: 0;
  pointer-events: none;
  z-index: 999;
}

/* CAMBIO FUENTE*/

#fontSizeRange {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: blue; /* Color del control */
}

/* Mostrar el tamaño de la fuente seleccionado */
#fontSizeValue {
  display: inline-block;
  margin-left: 10px;
  font-weight: bold;
}

/* Espaciado entre palabras */
.spacing-ws-1 {
  word-spacing: 0.1em;
}

.spacing-ws-2 {
  word-spacing: 0.25em;
}

.spacing-ws-3 {
  word-spacing: 0.5em;
}

/* Espaciado entre letras */
.spacing-ls-1 {
  letter-spacing: 0.05em;
}

.spacing-ls-2 {
  letter-spacing: 0.15em;
}

.spacing-ls-3 {
  letter-spacing: 0.3em;
}

[aria-pressed="true"] {
  background-color: var(--bs-primary); /* o el color que uses para resaltar */
  color: white;
}

/* HIGHLIGHT LINKS*/

.highlight-links {
  outline: 3px solid yellow !important;
  background-color: rgba(255, 255, 0, 0.2) !important;
  color: black !important;
}


/* EFFECTS AND ICONS */
.acc-fade-in {
  opacity: 1;
  transition: opacity 1.5s ease-out;
}

.acc-fade-out {
  opacity: 0;
  transition: opacity 1.5s ease-out;
}

.icon-acc-uniF158 {
  display: none;
  margin-left: 5px;
  font-size: 1.2em; /* Ajusta el tamaño del icono */
}

.icon-acc-uniF158.visible {
    display: inline-block;
    position: absolute;
    font-size: 12px;
    top: 3px;
    right: 3px;
}