/* =========================================
   BOTÓN DE ACCESIBILIDAD FLOTANTE
========================================= */
.btn-accesibilidad {
  position: fixed;
  top: 50%;
  right: 20px;
  /* Lo ubica a 20px del borde derecho */
  transform: translateY(-50%);
  /* Ajuste matemático para que el centro del botón coincida con el 50% de la pantalla */
  z-index: 1000;
  /* Asegura que quede por encima de otros elementos y carruseles */

  /* Estilos visuales basados en tu imagen */
  background-color: #003366;
  /* Azul oscuro */
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  /* Borde blanco exterior */

  /* Centrado del icono interno */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Sombra y animación */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.btn-accesibilidad img {
  width: 35px;
  /* Tamaño del icono interno */
  height: auto;
}

/* Efecto al pasar el mouse por encima */
.btn-accesibilidad:hover {
  transform: translateY(-50%) scale(1.1);
  /* Lo hace un poco más grande */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Adaptación para pantallas de celular */
@media (max-width: 768px) {
  .btn-accesibilidad {
    width: 50px;
    height: 50px;
    right: 10px;
  }

  .btn-accesibilidad img {
    width: 25px;
  }
}

.bg-accesibilidad {
  background-color: #e6dfdf;
}

.high-contrast,
.high-contrast div,
.high-contrast section,
.high-contrast nav,
.high-contrast footer,
.high-contrast a,
.high-contrast p,
.high-contrast h1,
.high-contrast h2,
.high-contrast h3,
.high-contrast button {
  background-color: #001219 !important;
  color: #fcf300 !important;
  font-weight: 800 !important;
  background-image: none !important;
  border-color: #fcf300 !important;
}

.high-contrast img {
  background-color: transparent !important;
}

.link-contrast a {
  background-color: #001219 !important;
  color: #fcf300 !important;
  font-weight: 800 !important;
  text-decoration: underline !important;
}

.font-access,
.font-access *,
.font-access :not(.btn-accesibilidad) {
  font-size: 24px !important;
}

.espaciado {
  letter-spacing: 2px !important;
}

/* BOTÓN ACTIVO */
button.activo {
  background-color: #0d6efd !important;
  color: #fff !important;
}


/* MODO OSCURO */
.modo-oscuro,
.modo-oscuro div,
.modo-oscuro section,
.modo-oscuro nav,
.modo-oscuro footer {
  background-color: #121212 !important;
  color: #ffffff !important;
}

.modo-oscuro a {
  color: #4dabf7 !important;
}

/* MODO DISLEXIA */
.dislexia {
  font-family: Arial, Verdana, sans-serif !important;
  letter-spacing: 1.5px;
  line-height: 1.8;
}
