/* ==========================================================================
   SUNARP - SISTEMA DE IDENTIDAD INSTITUCIONAL (Manual de Reglamentación Gráfica)
   ========================================================================== */

:root {
  --sunarp-gris: #323c37;      /* Corporativo: Pantone 446 C / R50 G60 B55 */
  --sunarp-verde: #8ec321;     /* Complementario Principal: Pantone 368 C / R142 G195 B33 (Prevalece) */
  --sunarp-rojo: #eb3219;      /* Complementario: Pantone 1795 C / R235 G50 B25 */
  --sunarp-amarillo: #ffaf00;  /* Complementario: Pantone 130 C / R255 G175 B0 */
  --sunarp-turquesa: #00a5a5;  /* Complementario: Pantone 321 C / R0 G165 B165 */

  --color-primary: #8ec321;
  --color-secondary: #ffaf00;
  --dark: #323c37;
  --dark-secondary: #262e2a;
}

/* Línea Estructural Sunarp (Pág. 34: 4 módulos en colores complementarios) */
.sunarp-linea-estructural {
  width: 100%;
  height: 4px;
  display: flex;
  background: linear-gradient(
    to right,
    #8ec321 0%, #8ec321 25%,
    #eb3219 25%, #eb3219 50%,
    #ffaf00 50%, #ffaf00 75%,
    #00a5a5 75%, #00a5a5 100%
  );
}

.sunarp-linea-estructural.alt-2px {
  height: 2px;
}

.sunarp-linea-estructural.alt-6px {
  height: 6px;
}

/* Clases utilitarias de color institucional */
.bg-sunarp-gris { background-color: var(--sunarp-gris) !important; color: #fff !important; }
.bg-sunarp-verde { background-color: var(--sunarp-verde) !important; color: #fff !important; }
.bg-sunarp-rojo { background-color: var(--sunarp-rojo) !important; color: #fff !important; }
.bg-sunarp-amarillo { background-color: var(--sunarp-amarillo) !important; color: #323c37 !important; }
.bg-sunarp-turquesa { background-color: var(--sunarp-turquesa) !important; color: #fff !important; }

.text-sunarp-gris { color: var(--sunarp-gris) !important; }
.text-sunarp-verde { color: var(--sunarp-verde) !important; }
.text-sunarp-rojo { color: var(--sunarp-rojo) !important; }
.text-sunarp-amarillo { color: var(--sunarp-amarillo) !important; }
.text-sunarp-turquesa { color: var(--sunarp-turquesa) !important; }

/* Contenedor A (Págs. 29-33: Estructura modular con 4 esquinas redondeadas) */
.sunarp-contenedor-a,
.popular-courses-items .item,
.about-area .our-features .item,
.top-cat-items .item {
  border-radius: 12px !important;
  overflow: hidden;
  transition: all 0.3s ease;
}

.navbar-brand>img {
  height: 90px;
}
.blog-area .sidebar .sidebar-item .title h4 {
  font-size: 18px;
}
.blog-area .sidebar .sidebar-item .title h4 a {
  text-decoration: underline;
}
.clear {
  clear: both;
}
.adviros-details-area .tab-content table tr th {
  padding: 15px;
}
.pagination {
  padding-bottom: 40px;
}
.pagination svg {
  height: 24px;
}
.pagination > nav > .flex-1 {
  display: none;
}
.blog-area .sidebar .sidebar-item form input[type="submit"] {
  height: 38px;
}
.blog-area .sidebar .sidebar-item.category li.active a {
  font-weight: bold;
}
.leccion-group {
  text-align: center;
}
.leccion-group > .btn {
  margin: 10px !important;
  padding: 20px 10px !important;
  text-align: center;
  width: 23%;
  border-radius: 10px;
}
.leccion-group > .btn i {
  font-size: 40px;
}
.leccion-group > .btn span {
  font-size: 18px;
  display: block;
  margin-top: 10px;
}
.what-learn-area .info h2 {
  margin-bottom: 10px !important;
}
.adviros-details-area .tab-content .info form textarea[name="contenido"] {
  min-height: 100px;
}
#respuestas_tabla .form-control,
#entregas_tabla .form-control {
  box-shadow: none;
}
.item .sedes {
  position: absolute;
  top: 10px;
  z-index: 9;
  left: 10px;
}
#modalNuevaPregunta textarea {
  min-height: 0 !important;
}
.acciones .detalles {
  margin-right: 10px;
  background-color: #198754 !important;
}
.autosave {
  display: inline-block;
}
.tabla_calificaciones th,
.tabla_calificaciones td {
  border: 1px solid #000 !important;
}
.tabla_calificaciones .leccion_titulo {
  cursor: pointer;
  max-width: 100px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-xs {
  height: 30px;
  padding: 5px 10px;
  font-size: 14px;
  line-height: 1.5;
  width: 60px;
  box-shadow: none;
}
.ui-widget.ui-widget-content {
  z-index: 9999;
}
.tipo_respuesta {
  position: relative;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 25px;
  margin: 0 auto;
}
.tipo_respuesta .tooltip {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX( -50% );
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.tipo_respuesta .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX( -50% );
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}
.tipo_respuesta:hover .tooltip {
  opacity: 1;
}
.dashboard-buscador {
  margin-right: 15px;
}
.dashboard-buscador input {
  border-radius: 5px 0 0 5px;
}
.dashboard-buscador button {
  border-radius: 0 5px 5px 0;
}
.certificado-box {
  border: 1px solid #eaeaea;  
  border-radius: 13px;
  padding: 20px;
  margin-bottom: 20px;
}
.reportes {
  max-width: 1000px;
  margin: 0 auto;
}
.cursos-matriculados a {
  text-decoration: underline;
}
.doble_cabecera .exportar {
  background-color: #28a745 !important;
  margin-left: 5px;
}
.select2-container--default .select2-search--inline .select2-search__field {
  width: 100% !important;
  border: 0 !important;
}
.cursos-tab .nav-link {
  background-color: #757575;
  color: #fff;
}
.cursos-tab .nav-link:hover {
  background-color: #ffc107;
  color: #000;
}
.cursos-tab .nav-link.active {
  background-color: #ffc107;
}
.comentar {
  text-align: right;
}
.comentar .btn-link {
  color: #666;
  text-decoration: none;
}
.comentario {
  margin-bottom: 15px;
}
.acciones .borrar.clonar {
  background-color: #ed9200 !important;
}
#tabla-cursos .dropdown-menu.show {
  left: -104px !important;
  width: 120px;
  font-size: 12px;
  min-width: 0;
}
#tabla-cursos .dropdown-menu.show li {
  margin-bottom: 0;
}
#tabla-cursos .dropdown-menu.show a {
  width: 120px;
  color: var(--bs-dropdown-link-color);
  background: transparent;
  display: block;
}
#tabla-cursos .dropdown-toggle {
  font-size: 11px;
}
.text-danger {
  color: red;
  font-weight: bold;
}
.course-details-area .tab-content ul li {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.course-details-area .tab-content ul li i.icono-oculto {
  color: var(--sunarp-gris, #323c37);
}
.lecciones_listado .items_datos {
  width: calc( 100% - 260px );
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
}
.lecciones_listado .items_datos .item {
  padding: 0 !important;
  margin-right: 5px !important;
  display: flex !important;
  justify-content: flex-start;
  align-items: center;
}
.lecciones_listado .items_datos .item i {
  margin: 0 !important;
}
.lecciones_listado .items_datos .item.mover {
  cursor: move;
}
.lecciones_listado .items_datos .item:last-child {
  margin-right: 0 !important;
}
.lecciones_listado .item.info {
  width: 260px;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
}
.lecciones_listado .item.name {
  margin-right: 15px !important;
}
.lecciones_listado .item.name i {
  margin-right: 5px !important;
}
.lecciones_listado .item.name *:last-child {
  margin-right: 0 !important;
}
.lecciones_listado .item.name span {
  width: max-content;
}
.listado_lecciones_crear {
  padding: 0;
}
.listado_lecciones_crear li {
  margin: 0 !important;
  border-bottom: 1px solid rgba( 0, 0, 0, 0.175 );
}
.listado_lecciones_crear li:first-child {
  border-radius: 4px 4px 0 0;
}
.listado_lecciones_crear li:last-child {
  border-radius: 0 0 4px 4px;
  border-bottom: none;
}
.listado_lecciones_crear li:hover {
  background-color: #c2c2c2;
}
.listado_lecciones_crear li a {
  padding: 0 !important;
}
.listado_lecciones_crear li a:hover {
  background-color: transparent;
}
.table-calificaciones .badge {
  border: 0;
}
.select2-selection__rendered:after {
  content: ' ';
  display: block;
  clear: both;
}

/* --- 3er nivel de menú (desktop) --- */
@media (min-width: 1024px) {
  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu {
    overflow: visible;
  }

  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu li.dropdown {
    position: relative;
  }

  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu ul.dropdown-menu {
    left: 100%;
    top: 0;
    margin-top: -1px;
    display: none;
  }

  nav.navbar.validnavs ul.nav li.dropdown ul.dropdown-menu li.dropdown:hover > ul.dropdown-menu {
    display: block;
  }
}

/* --- 3er nivel de menú (mobile) --- */
@media (max-width: 1023px) {
  nav.navbar.validnavs ul.nav ul.dropdown-menu ul.dropdown-menu {
    display: none;
    float: none;
    left: 0;
    position: relative;
    width: 100%;
    padding-left: 15px;
    background: transparent;
    box-shadow: none;
  }

  nav.navbar.validnavs ul.nav ul.dropdown-menu li.dropdown.on > ul.dropdown-menu {
    display: block;
  }
}

/* ==========================================================================
   MEJORAS DE ACCESIBILIDAD Y DISEÑO
   ========================================================================== */

/* ---------------------------------------------------
   1. CONTRASTE
   --------------------------------------------------- */

/* Botón INGRESAR: Verde Sunarp (prevalente) con texto blanco y hover definido */
.popular-courses .bottom-info a {
  background-color: var(--color-primary, #8ec321);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}
.popular-courses .bottom-info a:hover {
  background-color: #7cb01c !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(142, 195, 33, 0.4);
}

/* Precio: texto blanco sobre fondo Gris Sunarp */
.popular-courses .thumb .price {
  background-color: var(--dark, #323c37);
  color: #ffffff;
  font-weight: 700;
}
.thumb iframe {
  max-width: 100%;
}
/* Footer: texto con armonía sobre fondo Gris Sunarp */
footer .f-item p,
footer .f-item li,
footer .f-item .address li {
  color: #d6ded9;
}

footer .f-item a {
  color: #d6ded9;
}
footer .f-item a:hover {
  color: var(--color-primary, #8ec321);
}

/* Footer subscribe placeholder */
footer.bg-dark .subscribe form input::-webkit-input-placeholder,
footer.bg-dark .subscribe form input::-moz-placeholder,
footer.bg-dark .subscribe form input:-ms-input-placeholder,
footer.bg-dark .subscribe form input:-moz-placeholder {
  color: #8fa096;
}

/* Hero: refuerzo de legibilidad con text-shadow sutil */
.banner-area .content h1,
.banner-area .content h2,
.banner-area .content h3,
.banner-area .content p {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Stats sobre fondo oscuro: refuerzo */
.fun-fact .info .timer {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------------------------------------------------
   2. TIPOGRAFÍA RESPONSIVE
   --------------------------------------------------- */

/* Escala base: mínimo 14px en móvil */
html {
  font-size: 16px;
}

body {
  font-size: clamp(0.875rem, 0.85rem + 0.1vw, 1rem);
  line-height: 1.65;
}

/* Títulos con escala fluida */
.banner-area .content h1 {
  font-size: clamp(2rem, 1.2rem + 4vw, 3.75rem) !important;
}

.banner-area .content h3 {
  font-size: clamp(1.25rem, 0.8rem + 2vw, 2.25rem) !important;
}

.banner-area .content p {
  font-size: clamp(0.9rem, 0.85rem + 0.25vw, 1.1rem);
}

.about-area h2,
.popular-courses h2,
.fun-factor-area h2,
.testimonials-area h2,
.wcs-area h2 {
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
}

.about-area h4,
.popular-courses h4,
.top-cat-items h4 {
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
}

/* Texto de cuerpo nunca menor a 14px */
p, li, td, th, span, a, label, input, select, textarea, button {
  font-size: inherit;
}

small, .small {
  font-size: clamp(0.8125rem, 0.8rem + 0.05vw, 0.875rem);
}

/* Botón INGRESAR: tamaño mínimo legible */
.popular-courses .bottom-info a {
  font-size: clamp(0.75rem, 0.72rem + 0.15vw, 0.85rem);
  padding: 6px 22px;
}

/* ---------------------------------------------------
   3. FOCO DE TECLADO (:focus-visible)
   --------------------------------------------------- */

/* Restaurar indicadores de foco visibles en elementos interactivos */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary, #8ec321) !important;
  outline-offset: 2px;
}

/* Enlaces del menú principal */
nav.navbar.validnavs ul.nav > li > a:focus-visible {
  outline: 2px solid var(--color-primary, #8ec321) !important;
  outline-offset: -2px;
}

/* Tarjetas de curso clickeables */
.popular-courses-items .item a:focus-visible,
.popular-courses-items .item:focus-within {
  outline: 2px solid var(--color-primary, #8ec321) !important;
  outline-offset: 2px;
  border-radius: 12px;
}

/* Íconos de categorías clickeables */
.about-area .our-features .item a:focus-visible,
.about-area .our-features .item:focus-within {
  outline: 2px solid var(--color-primary, #8ec321) !important;
  outline-offset: 2px;
}

/* Íconos del header (search, user, menu) */
.attr-nav a:focus-visible,
.navbar-toggle:focus-visible {
  outline: 2px solid var(--color-primary, #8ec321) !important;
  outline-offset: 2px;
}

/* Tarjetas de modalidades */
.top-cat-items .item a:focus-visible,
.top-cat-items .item:focus-within {
  outline: 2px solid var(--color-primary, #8ec321) !important;
  outline-offset: 2px;
  border-radius: 12px;
}

/* Footer links */
footer a:focus-visible {
  outline: 2px solid var(--color-primary, #8ec321) !important;
  outline-offset: 2px;
}

/* No mostrar doble outline en inputs que ya tienen su propio estilo */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 1px;
}

/* ---------------------------------------------------
   4. TARJETAS DE CURSOS (Contenedor A)
   --------------------------------------------------- */

/* Transición base */
.popular-courses-items .item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e7ece9;
}

.popular-courses-items .item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 35px rgba(50, 60, 55, 0.16);
}

/* Imagen con zoom sutil en hover */
.popular-courses-items .thumb {
  overflow: hidden;
}
.popular-courses-items .thumb img {
  transition: transform 0.4s ease;
}
.popular-courses-items .item:hover .thumb img {
  transform: scale(1.05);
}

/* Precio con fondo más contrastante */
.popular-courses .thumb .price {
  background: var(--dark, #323c37);
  color: #ffffff;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}

/* Rating stars en Amarillo Sunarp (Pantone 130 C) */
.popular-courses .bottom-info .rating i {
  color: var(--sunarp-amarillo, #ffaf00);
}

/* Separación en bottom-info: precio + botón respiran mejor */
.popular-courses .bottom-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  gap: 8px;
}

.popular-courses .bottom-info .rating {
  flex: 1 1 100%;
}
.popular-courses .bottom-info ul {
  float: none;
}
.popular-courses .bottom-info .price-btn {
  float: none;
  padding: 0;
  margin-left: auto;
}
.popular-courses .bottom-info a {
  float: none;
}

/* ---------------------------------------------------
   5. ICONOS DE CATEGORÍA
   --------------------------------------------------- */

/* Transición hover */
.about-area .our-features .item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 5px;
}
.about-area .our-features .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 33, 71, 0.15);
}

/* Icono con animación sutil */
.about-area .our-features .item .icon i {
  transition: transform 0.3s ease;
}
.about-area .our-features .item:hover .icon i {
  transform: scale(1.1);
}

/* Texto de categoría con buen contraste */
.about-area .our-features .item .info h4 {
  color: var(--sunarp-gris, #323c37);
}

/* Tarjetas de modalidades: hover feedback */
.top-cat-items .item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0px 1px 5px #0000003d;
}
.top-cat-items .item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 33, 71, 0.2);
}

/* ---------------------------------------------------
   6. RESPONSIVE: ESTADÍSTICAS Y FOOTER
   --------------------------------------------------- */

@media (max-width: 767px) {
  /* Stats: 2 columnas en móvil */
  .fun-factor-area .fun-fact {
    width: 50%;
    float: left;
    margin-bottom: 15px;
  }
  .fun-factor-area .fun-fact:nth-child(2n+1) {
    clear: left;
  }
  .fun-factor-area .row > div {
    width: 100%;
  }
  .fun-factor-area .item {
    padding: 5px;
  }

  /* Números más pequeños en móvil pero legibles */
  .fun-fact .info .timer {
    font-size: 28px;
  }
  .fun-fact .info .medium {
    font-size: 13px;
  }

  /* Footer: columnas apiladas */
  footer .f-item {
    margin-bottom: 30px;
  }

  /* Evitar overflow horizontal */
  .fun-factor-area,
  footer .f-items,
  .popular-courses.carousel-shadow .owl-stage-outer {
    overflow: hidden;
  }

  /* Hero en móvil */
  .banner-area .content h1 {
    line-height: 1.2;
  }

  /* Categorías: 2 columnas */
  .about-area .our-features .col-md-3 {
    width: 50%;
    float: left;
  }
}

@media (max-width: 480px) {
  /* Stats: 1 columna en pantallas muy chicas */
  .fun-factor-area .fun-fact {
    width: 100%;
    float: none;
  }

  /* Categorías: 1 columna */
  .about-area .our-features .col-md-3 {
    width: 100%;
    float: none;
  }

  /* Precio + botón apilados */
  .popular-courses .bottom-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .popular-courses .bottom-info .price-btn {
    margin-left: 0;
  }
}

/* ==========================================================================
   7. BARRA DE ACCESIBILIDAD FLOTANTE
   ========================================================================== */

.a11y-toolbar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  font-family: var(--font-default);
}

.a11y-toolbar-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sunarp-gris, #323c37);
  color: #fff;
  border: 2px solid var(--sunarp-turquesa, #00a5a5);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(50, 60, 55, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.a11y-toolbar-toggle:hover,
.a11y-toolbar-toggle:focus-visible {
  background: var(--sunarp-turquesa, #00a5a5);
  color: #ffffff;
  transform: scale(1.08);
  outline: none;
}

.a11y-toolbar-panel {
  display: none;
  position: absolute;
  bottom: 58px;
  right: 0;
  width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(50, 60, 55, 0.2);
  padding: 18px 16px 12px;
  border: 1px solid #e0e0e0;
}

.a11y-toolbar-title {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--sunarp-gris, #323c37);
  margin-bottom: 14px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.a11y-group {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.a11y-group:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
}

.a11y-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  margin-bottom: 6px;
}

.a11y-btn-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.a11y-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 36px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  background: #f5f5f5;
  color: #333;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.a11y-btn:hover {
  background: #e8e8e8;
}
.a11y-btn.active {
  background: var(--sunarp-turquesa, #00a5a5);
  color: #fff;
  border-color: var(--sunarp-turquesa, #00a5a5);
}
.a11y-btn i {
  font-size: 13px;
}
.a11y-btn span {
  font-size: 11px;
  font-weight: 700;
}

.a11y-reset-all {
  width: 100%;
  margin-top: 2px;
  height: 36px;
  background: #f0f0f0;
  color: #666;
  font-weight: 600;
  font-size: 12px;
}
.a11y-reset-all:hover {
  background: #e0e0e0;
  color: #333;
}

/* ==========================================================================
   8. DARK MODE — activado por data-a11y-mode="dark"
   ========================================================================== */

body.a11y-dark {
  background-color: #1a1a2e;
  color: #d0d0d0;
}

body.a11y-dark h1,
body.a11y-dark h2,
body.a11y-dark h3,
body.a11y-dark h4,
body.a11y-dark h5,
body.a11y-dark h6 {
  color: #e8e8e8;
}

body.a11y-dark p,
body.a11y-dark li,
body.a11y-dark span {
  color: #c8c8c8;
}

body.a11y-dark a {
  color: #9fc5ff;
}

body.a11y-dark .popular-courses-items .info {
  background: #252540;
}

body.a11y-dark .popular-courses-items .item {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

body.a11y-dark .about-area.default-padding.bg-gray,
body.a11y-dark .popular-courses.bg-gray {
  background: #1e1e32 !important;
}

body.a11y-dark .about-area .our-features .item {
  background: #252540;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

body.a11y-dark .about-area .our-features .item .info h4 {
  color: #e8e8e8;
}

body.a11y-dark .about-area .our-features .item .info p {
  color: #b0b0b0;
}

body.a11y-dark .top-cat-items .item a::after {
  background: rgba(26, 26, 46, 0.85);
}

body.a11y-dark .wcs-area.bg-dark {
  background: #16162a !important;
}

body.a11y-dark .popular-courses .bottom-info {
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.a11y-dark .popular-courses .bottom-info ul li {
  background: #2a2a45;
  color: #c8c8c8;
}

body.a11y-dark .popular-courses .thumb .price {
  background: var(--sunarp-verde, #8ec321);
  color: #ffffff;
}

body.a11y-dark .a11y-toolbar-panel {
  background: #252540;
  border-color: #444;
  color: #c8c8c8;
}

body.a11y-dark .a11y-toolbar-title {
  color: #e8e8e8;
}

body.a11y-dark .a11y-label {
  color: #888;
}

body.a11y-dark .a11y-btn {
  background: #333350;
  color: #c0c0c0;
  border-color: #555;
}

body.a11y-dark .a11y-btn.active {
  background: var(--sunarp-turquesa, #00a5a5);
  color: #ffffff;
  border-color: var(--sunarp-turquesa, #00a5a5);
}

body.a11y-dark .a11y-group {
  border-bottom-color: #333;
}

/* ==========================================================================
   9. ALTO CONTRASTE — activado por data-a11y-mode="high"
   ========================================================================== */

body.a11y-high-contrast {
  background-color: #000 !important;
  color: #fff !important;
}

body.a11y-high-contrast * {
  background-image: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3,
body.a11y-high-contrast h4,
body.a11y-high-contrast h5,
body.a11y-high-contrast h6 {
  color: #ffd700 !important;
}

body.a11y-high-contrast p,
body.a11y-high-contrast li,
body.a11y-high-contrast span,
body.a11y-high-contrast td,
body.a11y-high-contrast th,
body.a11y-high-contrast label {
  color: #fff !important;
}

body.a11y-high-contrast a {
  color: #ffff00 !important;
  text-decoration: underline !important;
}

body.a11y-high-contrast a:hover,
body.a11y-high-contrast a:focus {
  color: var(--sunarp-verde, #8ec321) !important;
}

body.a11y-high-contrast .popular-courses-items .info,
body.a11y-high-contrast .about-area .our-features .item,
body.a11y-high-contrast .popular-courses-items .item {
  background: #000 !important;
  border: 2px solid #fff !important;
}

body.a11y-high-contrast .popular-courses .bottom-info a,
body.a11y-high-contrast .popular-courses .thumb .price {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #ff0 !important;
}

body.a11y-high-contrast .about-area.default-padding.bg-gray,
body.a11y-high-contrast .popular-courses.bg-gray,
body.a11y-high-contrast .wcs-area.bg-dark,
body.a11y-high-contrast footer {
  background: #000 !important;
}

body.a11y-high-contrast footer .f-item p,
body.a11y-high-contrast footer .f-item li {
  color: #fff !important;
}

body.a11y-high-contrast .shadow.dark::after,
body.a11y-high-contrast .shadow.dark-hard::after {
  background: #000 !important;
  opacity: 0.85 !important;
}

/* ==========================================================================
   10. TOGGLES DE ACCESIBILIDAD
   ========================================================================== */

/* Line height aumentado */
body.a11y-line-height {
  line-height: 2 !important;
}

/* Letter spacing */
body.a11y-letter-spacing {
  letter-spacing: 0.12em !important;
}

/* Word spacing */
body.a11y-word-spacing {
  word-spacing: 0.2em !important;
}

/* Dyslexia-friendly font */
body.a11y-dyslexia,
body.a11y-dyslexia * {
  font-family: 'OpenDyslexic', 'Comic Sans MS', 'Verdana', sans-serif !important;
}

/* Underline all links */
body.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Big cursor */
body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><polygon points="2,2 30,16 2,30 12,16" fill="%238ec321" stroke="%23323c37" stroke-width="2"/></svg>') 2 2, auto !important;
}

body.a11y-big-cursor a,
body.a11y-big-cursor button,
body.a11y-big-cursor [role="button"],
body.a11y-big-cursor input[type="submit"],
body.a11y-big-cursor .a11y-btn {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><rect x="4" y="4" width="24" height="24" rx="2" fill="%238ec321" stroke="%23323c37" stroke-width="2"/><rect x="12" y="10" width="8" height="12" rx="1" fill="%23323c37"/></svg>') 4 4, pointer !important;
}

/* Hide images — deja alt text visible */
body.a11y-hide-images img {
  opacity: 0.12 !important;
  filter: blur(2px);
}

/* Grayscale — usa SVG filter para no romper position:fixed */
body.a11y-grayscale {
  filter: url(#a11y-grayscale-filter) !important;
}
nav[role="navigation"] svg {
    width: 32px;
}
/* ==========================================================================
   11. RESPONSIVE DE LA TOOLBAR
   ========================================================================== */

@media (max-width: 480px) {
  .a11y-toolbar {
    bottom: 12px;
    right: 12px;
  }

  .a11y-toolbar-panel {
    width: 260px;
    right: -5px;
  }
}