/* ══════════════════════════════════════════════════════════════════════════
   Mendezz — correcciones de accesibilidad/UI globales (auditoría 2026-07-13)
   Cargado site-wide en todo el ecosistema (instituto/hub/ediciones/producciones).
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. FOCO DE TECLADO VISIBLE (WCAG 2.4.7) — faltaba en TODO el sitio (8+ páginas).
   Doble anillo (blanco interior + azul de marca exterior) para ser visible sobre
   cualquier fondo: blanco, el héroe azul, el header, etc. */
:where(a, button, input, select, textarea, [role="button"], summary,
  [tabindex="0"], .xoo-wsc-smr-del, .tm-checkout-item-remove):focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #3B30E8 !important;
	border-radius: 4px !important;
}
/* Foco también para navegadores/entradas que caen a :focus sin :focus-visible */
:where(a, button, [role="button"]):focus:not(:focus-visible) { outline: none; }

/* 2. TABLA "Órdenes recientes" de Mi Cuenta: datos transaccionales en gris
   #A3A5A9 (2.47:1) — el contenido clave era el menos legible. → AA. */
.woocommerce-orders-table td,
.woocommerce-MyAccount-content table.shop_table td,
.woocommerce-MyAccount-content table.woocommerce-table td { color: #2f2f2f !important; }
.woocommerce-orders-table th,
.woocommerce-MyAccount-content table.shop_table th { color: #565a60 !important; }
.woocommerce-MyAccount-content .woocommerce-Address address,
.woocommerce-MyAccount-content p { color: #3a3a3a; }

/* 3. NAV del header BuddyBoss (páginas internas, fondo blanco) en gris #939597
   (3.0:1) → AA. El header del hub/home usa otro markup (.nav, blanco sobre el
   héroe) y NO se ve afectado por estos selectores. */
.site-header .site-navigation a,
.site-header .bb-menu-item-link,
.bb-menu-item-link,
.site-header--bb .menu-item > a,
#masthead .bb-toggle-panel { color: #4a4d52 !important; }

/* 4. Ediciones — botón "Mi Biblioteca" del header: texto navy sobre azul (1.81:1),
   CTA primario ilegible → texto blanco. */
.mzlib-header .mzlib-btn-primary,
.ediciones-header a[class*="biblioteca"],
a.mzlib-mi-biblioteca,
.mzlib-nav a.is-primary { color: #ffffff !important; }
