/* exo-ux-fixes.css — correcciones de usabilidad (20 nov 2026).
   Hoja aislada: la inyecta _exoma/ux_fixes.py al final del <head>. Para retirarla: python3 _exoma/ux_fixes.py --revert
   Solo estilos por clase; no depende del orden de construcción de las tarjetas. */

/* ───────── 1. Ficha de producto en teléfono: precio, presentación y botón en la primera pantalla ───────── */
@media (max-width: 767px) {
  html body .exp-product .buy__inner { gap: 12px !important; padding-top: 8px !important; }
  html body .exp-product .buy__gallery { height: 250px !important; grid-template-rows: minmax(0, 1fr) 40px !important; gap: 4px !important; padding: 8px 14px 6px !important; }
  html body .exp-product .buy__gallery .exm-v3d { width: 196px !important; height: 196px !important; left: 50% !important; top: 4px !important; transform: translateX(-50%) !important; }
  html body .exp-product .buy__gallery .exm-v3d video { width: 100% !important; height: 100% !important; object-fit: contain !important; }
  html body .exp-product .buy__gallery .buy__main-img { max-height: 196px !important; width: auto !important; }
  html body .exp-product .buy__gallery .buy__thumb { width: 40px !important; height: 40px !important; }
  html body .exp-product .buy__rail { gap: 12px !important; }
  html body .exp-product .buy__name-block { gap: 0 !important; }
  /* nombre a la izquierda, precio a la derecha, existencias debajo en una línea */
  html body .exp-product .buy__title-row { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center !important; column-gap: 12px !important; row-gap: 2px !important; }
  html body .exp-product .buy__title-row > .buy__title { grid-column: 1 !important; grid-row: 1 !important; margin: 0 !important; text-align: left !important; }
  html body .exp-product .buy__title-row > .buy__price-col { grid-column: 2 !important; grid-row: 1 / span 2 !important; margin: 0 !important; padding: 0 !important; align-items: flex-end !important; text-align: right !important; }
  html body .exp-product .buy__title-row > .exo-stock-summary { grid-column: 1 !important; grid-row: 2 !important; margin: 0 !important; justify-content: flex-start !important; }
  html body .exp-product .buy__title-row > .exo-selected-stock { grid-column: 1 / -1 !important; grid-row: 3 !important; margin: 0 !important; display: block !important; text-align: left !important; }
  /* orden del formulario: presentación → botón → certificado → paquetes → descripción → sellos */
  html body .exp-product .buy__form { gap: 14px !important; }
  html body .exp-product .buy__form > * { order: 5; }
  html body .exp-product .buy__form > .ux-pills { order: 1 !important; gap: 6px !important; }
  html body .exp-product .buy__form > .buy__content { display: contents !important; }
  html body .exp-product .buy__form > .buy__content > * { order: 6; }
  html body .exp-product .buy__form > .buy__content > .buy__submit-row { order: 2 !important; }
  html body .exp-product .buy__form > .buy__content > .buy__trust { order: 3 !important; }
  html body .exp-product .buy__form > .exo-coa-wrap { order: 4 !important; }
  html body .exp-product .buy__form > .ux-tiles { order: 4 !important; }
  html body .exp-product .buy__form > .buy__desc { order: 5 !important; }
  html body .exp-product .buy__form > .buy__usps { order: 5 !important; }
}

/* barra de compra fija (solo teléfono); la crea exo-ux-fixes.js */
.ux-buybar { display: none; }
@media (max-width: 767px) {
  .ux-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; align-items: center; gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .97);
    border-top: 1px solid #dfe3ec; box-shadow: 0 -8px 24px rgba(10, 23, 51, .10);
    transform: translateY(110%); visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
  .ux-buybar.is-on { transform: none; visibility: visible; transition: transform .22s ease; }
  .ux-buybar__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
  .ux-buybar__name { font-size: 13px; color: #4a5568; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ux-buybar__price { font-size: 18px; font-weight: 600; color: #0b1733; }
  .ux-buybar__btn { flex: 0 0 auto; min-height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: #2f5fd6; color: #fff;
    font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  .ux-buybar__btn:focus-visible { outline: 3px solid #0b1733; outline-offset: 2px; }
  /* el botón de WhatsApp sube para no tapar la barra */
  html.ux-buybar-on #exo-wa-fab { bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important; transition: bottom .22s ease; }
  html.ux-buybar-on body { padding-bottom: 72px; }
  html.rbd-open .ux-buybar, html.mm-open .ux-buybar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .ux-buybar, html.ux-buybar-on #exo-wa-fab { transition: none !important; } }

/* ───────── 2. Defectos de maquetación ───────── */
/* 2a. WhatsApp no tapa el botón «Aceptar» del aviso de cookies (la clase y la altura las pone exo-ux-fixes.js) */
html.ux-cookie-on #exo-wa-fab { bottom: calc(var(--ux-cookie-h, 130px) + 12px) !important; transition: bottom .22s ease; }
/* 2b. Cabecera en teléfono: el círculo del carrito ya no se sale por la derecha */
@media (max-width: 767px) {
  html body .navbar-wrap--page > .navbar { min-width: 0 !important; flex: 1 1 0 !important; padding-right: 8px !important; left: 0 !important; margin-left: 0 !important; }
  html body .navbar-wrap--page .navbar__inner { min-width: 0 !important; flex: 1 1 auto !important; }
  html body .navbar-wrap--page > .navbar__side { gap: 6px !important; flex: 0 0 auto !important; }
  html body .navbar__cart .cart-badge, html body .navbar__cart .exm-cart-count { right: 0 !important; }
}
/* 2c. El carrito lateral cerrado no proyecta sombra sobre el borde derecho de la página */
html:not(.rbd-open) .rbd { box-shadow: none !important; }
/* 2d. Sellos de la ficha sin texto (icono suelto) */
.buy__usps .buy__usp:not(:has(p)) { display: none !important; }

/* ───────── 3. Páginas de herramientas: la herramienta antes que la imagen decorativa ───────── */
@media (max-width: 767px) {
  .xt-page .xt-hero { margin-bottom: 12px !important; }
  html body .xt-page .xt-hero figure.xt-hero__media { display: none !important; }
  .xt-page .xt-hero__copy { padding-top: 4px !important; }
  .xt-page .xt-hero__copy .xt-eyebrow { margin-bottom: 6px !important; }
  .xt-page .xt-hero__copy h1 { margin-bottom: 10px !important; }
  .xt-page .xt-hero__links { display: none !important; }       /* siguen en el menú y en el panel lateral */
  .xt-page .xt-workspace > .xt { padding: 14px !important; }
  .xt-page .xt-tabs { flex-direction: row !important; gap: 4px !important; margin-bottom: 14px !important; }
  .xt-page .xt-tabs > * { flex: 1 1 0 !important; min-width: 0 !important; min-height: 44px !important; padding: 6px 4px !important; font-size: 12.5px !important; line-height: 1.15 !important; white-space: normal !important; text-align: center !important; }
}
@media (min-width: 1024px) {
  .xt-page .xt-hero { margin-bottom: 20px !important; align-items: center !important; }
  .xt-page .xt-hero__copy { padding: 4px 0 !important; }
  .xt-page .xt-hero__copy .xt-eyebrow { margin-bottom: 12px !important; }
  .xt-page .xt-hero__copy h1 { font-size: clamp(34px, 3.1vw, 44px) !important; line-height: 1.08 !important; margin-bottom: 14px !important; }
  .xt-page .xt-hero__links { margin-top: 16px !important; }
  .xt-page .xt-hero__media, .xt-page .xt-hero__media img { height: 230px !important; }
  .xt-page .xt-hero__media img { width: 100% !important; object-fit: cover !important; }
  .xt-page .xt-workspace > .xt { padding: 30px 36px !important; }
  .xt-page .xt-tabs { margin-bottom: 22px !important; }
}
/* enlace a la calculadora desde «Reconstitución» en las fichas */
.ux-calc-link { margin: 4px 0 14px !important; }
.ux-calc-link a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid #c9d3ea; border-radius: 12px;
  background: #f3f6fd; color: #1d3f9c; font-weight: 600; text-decoration: none; }
.ux-calc-link a:hover { background: #e8eefb; }
.ux-calc-link a:focus-visible { outline: 3px solid #2f5fd6; outline-offset: 2px; }
/* asesor: «Limpiar conversación» en una sola línea, sin chocar con el título */
.xt-page [data-chat-clear] { white-space: nowrap !important; min-height: 44px; }
.xt-page :has(> [data-chat-clear]) { flex-wrap: wrap !important; row-gap: 2px !important; }
.xt-page :has(> [data-chat-clear]) > [data-chat-clear] { margin-left: auto !important; flex: 0 0 auto !important; }

/* ───────── 4. Certificados: buscador primero ───────── */
.ux-cert-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.ux-cert-jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; white-space: nowrap; border: 1px solid #d5dbe8; border-radius: 999px; background: #fff; color: #0b1733; text-decoration: none; font-size: 13px; }
.ux-cert-jump a:hover { background: #eef2fb; }
.ux-cert-jump a:focus-visible { outline: 3px solid #2f5fd6; outline-offset: 2px; }
.ux-cert-note { margin: 6px 0 10px; font-size: 14px; color: #49536a; }
.exo-coa-registry tr[hidden], .exo-coa-registry .wrap[hidden] { display: none !important; }
#coa-registry-h, #ux-cert-list { scroll-margin-top: 96px; }
@media (max-width: 767px) {
  .exo-prose > .exo-f--cert { margin-top: 10px !important; }
  .exo-prose:has(> .exo-f--cert) > h1 { margin-bottom: 8px !important; }
}

/* ───────── 5. /carrito con el mismo acabado que el carrito lateral (solo estilos; sin tocar su lógica) ───────── */
article:has(> .woocommerce > .woocommerce-cart-form) > .exo-h1 { max-width: 1080px !important; margin: 20px auto 14px !important; padding: 0 16px !important; box-sizing: border-box; }
.woocommerce:has(> .woocommerce-cart-form) { max-width: 1080px !important; margin: 0 auto !important; padding: 0 16px 48px !important; box-sizing: border-box; display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 18px !important; }
@media (min-width: 1024px) { .woocommerce:has(> .woocommerce-cart-form) { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 28px !important; } }
.woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart-form { margin: 0 !important; }
.woocommerce-cart-form table.cart, .woocommerce-cart-form table.cart > tbody { display: block !important; width: 100% !important; border: 0 !important; background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
.woocommerce-cart-form tr.cart_item { display: grid !important; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img name remove" "img price qty" "img sub qty"; column-gap: 14px; row-gap: 4px; align-items: center;
  padding: 16px !important; margin: 0 0 12px !important; background: #fff !important; border: 1px solid #dfe3ec !important; border-radius: 18px !important; }
.woocommerce-cart-form tr.cart_item > * { display: block !important; padding: 0 !important; border: 0 !important; width: auto !important; min-height: 0 !important; text-align: left !important; background: transparent !important; }
.woocommerce-cart-form tr.cart_item > *::before { display: none !important; content: none !important; }
.woocommerce-cart-form .product-thumbnail { grid-area: img; align-self: start; }
.woocommerce-cart-form .product-thumbnail a, .woocommerce-cart-form .product-thumbnail img { display: block !important; width: 64px !important; height: 64px !important; border-radius: 12px; background: #f1f3f8; object-fit: contain; overflow: hidden; font-size: 0 !important; }
.woocommerce-cart-form .product-name { grid-area: name; font-weight: 600 !important; font-size: 16px !important; line-height: 1.3 !important; }
.woocommerce-cart-form .product-name a { color: #0b1733 !important; text-decoration: none !important; }
.woocommerce-cart-form .product-price { grid-area: price; color: #5b6578 !important; font-size: 14px !important; }
.woocommerce-cart-form .product-price::after { content: " c/u"; }
.woocommerce-cart-form .product-subtotal { grid-area: sub; font-weight: 600 !important; font-size: 16px !important; color: #0b1733 !important; }
.woocommerce-cart-form .product-price .amount, .woocommerce-cart-form .product-subtotal .amount { display: inline !important; }
.woocommerce-cart-form .product-remove { grid-area: remove; justify-self: end; }
.woocommerce-cart-form .product-remove a.remove { display: grid !important; place-items: center; width: 44px !important; height: 44px !important; margin: -8px -8px 0 0; border-radius: 50%; color: #5b6578 !important; font-size: 22px !important; line-height: 1 !important; text-decoration: none !important; }
.woocommerce-cart-form .product-remove a.remove:hover { background: #f1f3f8 !important; color: #b42318 !important; }
.woocommerce-cart-form .product-quantity { grid-area: qty; justify-self: end; align-self: end; }
.woocommerce-cart-form .product-quantity .quantity { display: flex !important; align-items: stretch; height: 44px !important; border: 1px solid #d5dbe8 !important; border-radius: 12px !important; overflow: hidden; background: #fff; }
.woocommerce-cart-form .product-quantity .quantity .action { display: grid !important; place-items: center; width: 40px !important; height: auto !important; border: 0 !important; cursor: pointer; }
.woocommerce-cart-form .product-quantity .quantity .minus { order: 1; } .woocommerce-cart-form .product-quantity .quantity input.qty { order: 2; } .woocommerce-cart-form .product-quantity .quantity .plus { order: 3; }
.woocommerce-cart-form .product-quantity .quantity input.qty { width: 44px !important; height: auto !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center !important; font-size: 16px !important; background: transparent !important; -moz-appearance: textfield; }
.woocommerce-cart-form tr:not(.cart_item) { display: block !important; }
.woocommerce-cart-form td.actions { display: flex !important; flex-wrap: wrap; align-items: center; gap: 12px !important; padding: 4px 0 0 !important; border: 0 !important; }
.woocommerce-cart-form td.actions .coupon { display: flex !important; flex: 1 1 320px; gap: 8px !important; margin: 0 !important; }
.woocommerce-cart-form td.actions .coupon label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce-cart-form #coupon_code { flex: 1 1 auto; min-width: 0; height: 48px !important; padding: 0 14px !important; border: 1px solid #d5dbe8 !important; border-radius: 12px !important; background: #fff !important; font-size: 16px !important; box-sizing: border-box; }
.woocommerce-cart-form td.actions .button { height: 48px !important; min-height: 48px !important; padding: 0 18px !important; border: 1px solid #c9d3ea !important; border-radius: 12px !important; background: #fff !important; color: #0b1733 !important; font-size: 15px !important; white-space: nowrap; width: auto !important; flex: 0 0 auto; }
.woocommerce-cart-form td.actions > .button { margin-left: auto !important; border-color: transparent !important; background: transparent !important; color: #1d3f9c !important; text-decoration: underline; }
.woocommerce-cart-form td.actions > .button[disabled] { opacity: .45; }
.woocommerce-cart-form :is(a, button, input):focus-visible { outline: 3px solid #2f5fd6 !important; outline-offset: 2px; }
.woocommerce > .cart-collaterals { margin: 0 !important; width: auto !important; float: none !important; }
.cart-collaterals .cart_totals { width: auto !important; float: none !important; padding: 20px !important; background: #fff !important; border: 1px solid #dfe3ec !important; border-radius: 18px !important; box-sizing: border-box; }
.cart-collaterals .cart_totals > .exo-h2, .cart-collaterals .cart_totals > h2 { margin: 0 0 8px !important; font-size: 18px !important; }
.cart-collaterals .cart_totals table.shop_table, .cart-collaterals .cart_totals table.shop_table > tbody { display: block !important; width: 100% !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; }
.cart-collaterals .cart_totals table.shop_table tr { display: flex !important; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0 !important; border-bottom: 1px solid #edf0f5 !important; }
.cart-collaterals .cart_totals table.shop_table tr > * { display: block !important; padding: 0 !important; border: 0 !important; width: auto !important; background: transparent !important; }
.cart-collaterals .cart_totals table.shop_table tr > *::before { display: none !important; content: none !important; }
.cart-collaterals .cart_totals table.shop_table th { font-weight: 400 !important; color: #5b6578 !important; text-align: left !important; }
.cart-collaterals .cart_totals table.shop_table td { text-align: right !important; color: #0b1733 !important; }
.cart-collaterals .cart_totals #shipping_method { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.cart-collaterals .cart_totals #shipping_method * { color: #0b1733 !important; }
.cart-collaterals .cart_totals tr.order-total { border-bottom: 0 !important; padding-top: 14px !important; }
.cart-collaterals .cart_totals tr.order-total th { color: #0b1733 !important; font-size: 18px !important; }
.cart-collaterals .cart_totals tr.order-total td strong { font-size: 22px !important; }
.cart-collaterals .cart_totals tr.order-total td small { display: block !important; margin-top: 2px; font-size: 12.5px !important; color: #5b6578 !important; }
.cart-collaterals .cart_totals tr.order-total td small .amount { font-size: inherit !important; }
.cart-collaterals .wc-proceed-to-checkout { padding: 12px 0 0 !important; margin: 0 !important; }
.cart-collaterals .wc-proceed-to-checkout a.checkout-button { display: flex !important; align-items: center; justify-content: center; width: 100% !important; min-height: 56px !important; height: auto !important; padding: 0 20px !important; margin: 0 !important; border-radius: 14px !important; font-size: 16px !important; box-sizing: border-box; }
.woocommerce-cart-form table.cart > thead { display: none !important; }
.woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form, .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 1; min-width: 0; }
@media (min-width: 1024px) {
  .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form { grid-column: 1; grid-row: 1; }
  .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 2; grid-row: 1; position: sticky; top: 100px; }
}
.woocommerce-cart-form td.actions .coupon { flex-wrap: nowrap !important; flex-basis: 100% !important; }
.woocommerce-cart-form td.actions .coupon { min-width: 0 !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box; }
.woocommerce-cart-form td.actions .coupon #coupon_code { flex: 1 1 0 !important; width: 0 !important; }

/* ───────── 7. Accesibilidad ───────── */
.ux-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* 7a. carrito lateral cerrado: sus controles no reciben foco */
html:not(.rbd-open) .rbd { visibility: hidden; transition: transform .42s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .42s !important; }
html.rbd-open .rbd { visibility: visible; }
.rbd:focus { outline: none; }
.rbd :is(a, button, input):focus-visible { outline: 3px solid #224ca0 !important; outline-offset: 2px; }
/* 7b. lector de certificados: datos en texto */
.ux-coa-text { padding: 12px 18px 4px; border-top: 1px solid #e3e7ef; background: #fff; color: #0b1733; font-size: 14px; }
.ux-coa-text__h { margin: 0 0 6px; font-weight: 600; }
.ux-coa-text dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; margin: 0 0 8px; }
.ux-coa-text dt { color: #566176; } .ux-coa-text dd { margin: 0; }
.ux-coa-text__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; }
.ux-coa-text__links a { color: #1d3f9c; text-decoration: underline; min-height: 32px; display: inline-flex; align-items: center; }
.coa-modal :is(a, button):focus-visible { outline: 3px solid #224ca0 !important; outline-offset: 2px; }
/* 7c. comparador: opción activa con teclado */
.exo-cmp__sug [data-add].ux-active, .exo-cmp__sug [data-add][aria-selected="true"] { background: #e8eefb !important; outline: 2px solid #224ca0; outline-offset: -2px; }
/* 7e. (auditoría n.º 12) foco visible en listas de presentación y buscador de país */
.exo-dd__list [role="option"]:focus-visible, .xk-ccs input:focus-visible { outline: 3px solid #224ca0 !important; outline-offset: -3px; }
@media (forced-colors: active) { .exo-dd__list [role="option"]:focus-visible, .xk-ccs input:focus-visible, .ux-buybar__btn:focus-visible { outline-color: Highlight !important; } }
/* 7f. (auditoría n.º 11) contraste de textos de apoyo en herramientas, comparador y certificados */
.xt textarea::placeholder { color: #5f6b81 !important; }
.xt-top p, .xt-welcome, .xt-actions small, .xt-hub .exp-art__ex, .xt-section-label, .exo-tool-links a small { color: #5f6b81 !important; }
.xt-guide__item small, .xt-guide__foot { color: #566176 !important; }
.exo-cmp__sug li small, .exo-cmp__table tr.is-same td, .c-v.is-out, .c-no { color: #566176 !important; }
.exp-coa__rep span { color: #076646 !important; }
.xt :is(input, textarea, select, button, a):focus-visible { outline-color: #3666d6 !important; }

/* ───────── 8. Navegación ───────── */
/* menú Catálogo: dos columnas de áreas + una de compra */
.exo-dd.ux-dd--3 { display: grid !important; grid-template-columns: repeat(3, minmax(170px, 1fr)) !important; column-gap: 18px; }
.exo-dd.ux-dd--3 .exo-dd__it { padding-top: 6px !important; padding-bottom: 6px !important; }
/* pie reagrupado: cinco grupos en el espacio de las tres columnas anteriores */
.ux-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 32px 24px; }
@media (min-width: 1024px) { .ux-foot { grid-column: span 3; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 32px; border-left: 1px solid rgba(255, 255, 255, .1); } }
@media (max-width: 639px) { .ux-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; } }
/* teléfono: lupa en la cabecera (el idioma sigue en el menú) */
@media (max-width: 767px) {
  html body .navbar-wrap--page > .navbar__side .rs-pill { display: grid !important; place-items: center; width: 40px !important; height: 40px !important; }
  html body .navbar-wrap--page .navbar__actions .exo-nav__lang { display: none !important; }
}
/* menú móvil: sin la insignia «Lote con COA» en las tarjetas (no todas las presentaciones tienen reporte) */
.exm-mmega .exo-mm__coa { display: none !important; }
/* 1025–1359 px: sin menú de tres rayas a este ancho, así que las seis secciones siguen visibles en formato compacto */
@media (min-width: 1025px) and (max-width: 1359px) {
  html body .navbar__actions .exo-nav__dd, html body .navbar__actions > a.exo-nav__l { display: flex !important; }
  html body nav.navbar .navbar__inner .navbar__link.exo-nav__l, html body nav.navbar .navbar__inner .exo-nav__dd > button.exo-nav__l { font-size: 13px !important; letter-spacing: 0 !important; padding-left: 6px !important; padding-right: 6px !important; margin: 0 !important; white-space: nowrap !important; }
  html body .navbar .exo-nav__chev { width: 10px !important; margin-left: 3px !important; }
  html body nav.navbar .navbar__inner .navbar__logo { position: static !important; transform: none !important; left: auto !important; top: auto !important; margin: 0 6px !important; flex: 0 0 auto !important; }
  html body nav.navbar .navbar__logo img { width: 104px !important; height: auto !important; }
  html body nav.navbar .exo-nav__dd > button .exo-nav__chev { display: none !important; }
  html body .navbar .navbar__inner { gap: 6px !important; padding-left: 14px !important; padding-right: 10px !important; }
  html body .navbar__links, html body .navbar__actions { gap: 0 !important; }
}
@media (min-width: 1025px) and (max-width: 1069px) {
  html body nav.navbar .navbar__inner .navbar__link.exo-nav__l, html body nav.navbar .navbar__inner .exo-nav__dd > button.exo-nav__l { font-size: 12.5px !important; padding-left: 5px !important; padding-right: 5px !important; }
  html body nav.navbar .navbar__logo img { width: 88px !important; }
  html body nav.navbar .navbar__inner .navbar__logo { margin: 0 2px !important; }
}
@media (min-width: 1360px) and (max-width: 1439px) {
  html body nav.navbar .navbar__inner .navbar__link.exo-nav__l, html body nav.navbar .navbar__inner .exo-nav__dd > button.exo-nav__l { font-size: 14px !important; letter-spacing: 0 !important; padding-left: 6px !important; padding-right: 6px !important; margin: 0 !important; white-space: nowrap !important; }
  html body nav.navbar .exo-nav__dd > button .exo-nav__chev { width: 10px !important; margin-left: 3px !important; }
  html body nav.navbar .navbar__inner .navbar__logo { position: static !important; transform: none !important; left: auto !important; top: auto !important; margin: 0 8px !important; flex: 0 0 auto !important; }
  html body nav.navbar .navbar__logo img { width: 124px !important; height: auto !important; }
  html body .navbar__links, html body .navbar__actions { gap: 0 !important; }
  html body .navbar .navbar__inner { gap: 6px !important; }
}
/* con el menú móvil abierto, WhatsApp no tapa el selector de idioma del pie del menú */
body.is-mmega #exo-wa-fab { display: none !important; }
/* pie: los enlaces de redes usan class="exo-social", que en la portada es también la sección de redes (exo-social.css); aquí se anula ese estilo */
footer .exo-social { background: transparent !important; color: inherit !important; padding: 0 !important; order: 0 !important; overflow: visible !important; }

/* ───────── 9. Índices largos: /blog y /compendio (la clase ux-index la pone exo-ux-fixes.js; sin JS queda la lista completa) ───────── */
.ux-idx { max-width: 1240px; margin: 0 auto 18px; padding: 0 16px; box-sizing: border-box; }
.ux-idx__search { display: block; }
.ux-idx__search input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid #c9d3ea; border-radius: 14px; background: #fff; color: #0b1733; font: inherit; font-size: 16px; box-sizing: border-box; }
.ux-idx__search input:focus-visible { outline: 3px solid #2f5fd6; outline-offset: 2px; }
.ux-idx__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ux-idx__chips button { min-height: 40px; padding: 0 14px; border: 1px solid #d5dbe8; border-radius: 999px; background: #fff; color: #0b1733; font: inherit; font-size: 14px; cursor: pointer; }
.ux-idx__chips--az button { min-width: 40px; padding: 0 8px; }
.ux-idx__chips button[aria-pressed="true"] { background: #0b1733; border-color: #0b1733; color: #fff; }
.ux-idx__chips button:focus-visible, .ux-idx__more:focus-visible { outline: 3px solid #2f5fd6; outline-offset: 2px; }
.ux-idx__count { margin: 12px 0 0; font-size: 14px; color: #49536a; }
.ux-idx__empty { text-align: center; color: #49536a; margin: 24px 16px; }
.ux-idx__more { display: block; margin: 22px auto 8px; min-height: 48px; padding: 0 26px; border: 1px solid #c9d3ea; border-radius: 14px; background: #fff; color: #1d3f9c; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ux-idx__more[hidden], .ux-index a.exp-art[hidden] { display: none !important; }
@media (max-width: 767px) {
  .ux-idx__chips:not(.ux-idx__chips--az) { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .ux-idx__chips:not(.ux-idx__chips--az) button { flex: 0 0 auto; }
  /* tarjetas compactas: imagen a la izquierda, título y dos líneas */
  .ux-index .exp-arts__grid { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .ux-index a.exp-art { flex-direction: row !important; align-items: stretch !important; min-height: 96px; }
  .ux-index a.exp-art .exp-art__img { flex: 0 0 96px !important; width: 96px !important; height: auto !important; min-height: 96px; aspect-ratio: auto !important; border-radius: 0 !important; overflow: hidden; }
  html body .ux-index a.exp-art .exp-art__img { position: relative !important; }
  html body .ux-index a.exp-art .exp-art__img img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover !important; }
  .ux-index a.exp-art .exp-art__body { flex: 1 1 auto; min-width: 0; padding: 10px 12px !important; }
  .ux-index a.exp-art .exp-art__t { font-size: 15px !important; line-height: 1.25 !important; }
  html body .ux-index a.exp-art .exp-art__ex { display: -webkit-box !important; -webkit-line-clamp: 2 !important; line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; max-height: calc(2 * 1.35em) !important; font-size: 12.5px !important; line-height: 1.35 !important; margin-top: 4px !important; }
  html body .ux-index a.exp-art .exp-art__t { display: -webkit-box !important; -webkit-line-clamp: 3 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }
}

/* ───────── 10. Pie en teléfono ───────── */
/* teléfono de WhatsApp y canal de la comunidad en líneas separadas (otra regla los dejaba lado a lado sin espacio) */
#brx-footer .mt-5.space-y-2\.5 > a { display: flex !important; width: fit-content; max-width: 100%; min-height: 44px; }
#brx-footer .mt-5.space-y-2\.5 > * + * { margin-top: 4px !important; }
/* enlace de idioma del pie con área táctil de 44 px */
#brx-footer p > a[hreflang] { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
@media (max-width: 1023px) { #brx-footer .ux-foot { margin-top: 20px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); } }

/* ───────── Agotado en inglés: el aviso visible va en inglés ───────── */
html[lang^="en"] .buy__cta.is-notify::after { content: "Notify me when back in stock" !important; }

/* ───────── P09. Salto al contenido principal ───────── */
.skip-link.ux-skip { position: absolute; left: 12px; top: -200px; z-index: 2147483600; padding: 12px 18px; border-radius: 12px; background: #0b1733; color: #fff !important; font-size: 15px; text-decoration: none; }
.skip-link.ux-skip:focus, .skip-link.ux-skip:focus-visible { top: 12px; outline: 3px solid #74a3e8; outline-offset: 2px; }
#contenido { display: block; height: 0; scroll-margin-top: 110px; }
#contenido:focus { outline: none; }

/* ───────── P27. Pausa del movimiento ───────── */
html.ux-paused *, html.ux-paused *::before, html.ux-paused *::after { animation-play-state: paused !important; }
html.ux-paused .exo-hero .exo-hero__slide img { animation: none !important; }
.ux-pause { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.ux-pause i { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.ux-pause.is-paused i { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; border-right: 0; }
.ux-pause:focus-visible { outline: 3px solid #74a3e8; outline-offset: 2px; }
.ux-pause--hero { position: absolute; left: clamp(16px, 4vw, 64px); bottom: 20px; z-index: 4; border: 1px solid rgba(11, 23, 51, .25); background: rgba(255, 255, 255, .92); color: #0b1733; }
.ux-pause--foot { border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: rgba(255, 255, 255, .8); }
.ux-pause--foot:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
.ux-pause-row { display: flex; justify-content: center; margin: 4px 0 0; }
@media (max-width: 767px) { .ux-pause--hero { bottom: 12px; padding: 0 12px; font-size: 12.5px; } }
html.ux-paused body .trustbar .trustbar__inner, html.ux-paused body [class*="marquee"], html.ux-paused body [class*="__track"] { animation-play-state: paused !important; }

/* ───────── Índice de artículos en teléfono: después de la respuesta, plegado ───────── */
@media (max-width: 767px) {
  html body nav.exo-toc.ux-toc-m { position: static !important; display: block !important; width: auto !important; max-height: none !important; }
  .ux-toc__btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 16px; border: 0; background: transparent; color: #0b1733; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer; }
  .ux-toc__btn::after { content: "+"; font-size: 20px; font-weight: 400; }
  nav.exo-toc.ux-toc-m.is-open .ux-toc__btn::after { content: "−"; }
  html body nav.exo-toc.ux-toc-m > ol, html body nav.exo-toc.ux-toc-m > ul { display: none !important; margin: 0 !important; padding: 0 16px 12px 34px !important; }
  html body nav.exo-toc.ux-toc-m.is-open > ol, html body nav.exo-toc.ux-toc-m.is-open > ul { display: block !important; }
  .ux-toc__btn:focus-visible { outline: 3px solid #2f5fd6; outline-offset: -3px; }
}
@media (max-width: 767px) { html body nav.exo-toc.ux-toc-m .exo-toc__t { display: none !important; } }

/* ───────── P06. Contraste y estados (valores de CODEX-ACCESSIBILITY.md §2) ───────── */
.xk-stepper li.is-done .xk-lab { color: #047857 !important; }
.xk-stepper li.is-done .xk-dot { background: #047857 !important; border-color: #047857 !important; }
.xk-green { background: #047857 !important; } .xk-green:hover { background: #065f46 !important; }
.xk-cupok p i { color: #047857 !important; opacity: 1 !important; }
form[data-exo-nl] button[type="submit"]:hover { background: #245ab0 !important; }
.exp-coa__reps p { color: #565b66 !important; }
.exp-login__or { color: #5f6b81 !important; }
.xs-f input, .xs-f select, .xs-f textarea, .xt input, .xt select, .xt textarea, .xk-in { border-color: #64748b !important; }
/* foco siempre visible, también con zoom y en anchos estrechos: anillo de 3 px que no depende de la sombra */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #224ca0 !important; outline-offset: 2px !important; }
:where(.exo-comm, #brx-footer, .exo-jx, .xt-hero, .bg-black) :where(a, button, input):focus-visible { outline-color: #9cc0ff !important; }
@media (forced-colors: active) { :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline-color: Highlight !important; } }
/* controles superpuestos: el botón fijo de WhatsApp y la barra de compra no tapan un control con foco */
html { scroll-padding-bottom: 96px; }

/* ───────── P28. Selectores de presentación del catálogo ───────── */
.exo-dd__list[hidden] { display: none !important; }

/* ───────── P08. Lectura de páginas largas ───────── */
/* texto corrido en una letra de lectura (sistema, sin descargas: no mueve la página), 16 px y gris oscuro; los títulos siguen en la letra de marca */
html body :is(.exo-content--pdp, .exo-content--article) .exo-prose :is(p, li, td, dd, blockquote) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 16px !important; line-height: 1.6 !important; color: #2b3140 !important; letter-spacing: 0 !important;
}
html body :is(.exo-content--pdp, .exo-content--article) .exo-prose :is(p, li) strong { color: #0b1733 !important; }
@media (min-width: 768px) {
  html body :is(.exo-content--pdp, .exo-content--article) .exo-prose :is(p, li, td, dd) { font-size: 17px !important; }
  html body :is(.exo-content--pdp, .exo-content--article) .exo-prose > :is(p, ul, ol), html body .exo-content--pdp .exo-prose > section > :is(p, ul, ol) { max-width: 70ch; }
}
/* secciones plegadas en teléfono */
.ux-sec > h2 { margin-bottom: 0 !important; }
.ux-sec__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 10px 0; border: 0; border-bottom: 1px solid #e3e7ef; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ux-sec__btn::after { content: "+"; flex: 0 0 auto; font-size: 24px; font-weight: 400; line-height: 1; color: #2f5fd6; }
.ux-sec.is-open .ux-sec__btn::after { content: "−"; }
.ux-sec__btn:focus-visible { outline: 3px solid #224ca0; outline-offset: 2px; }
.ux-sec__body { padding-top: 12px; }
/* escala de evidencia */
.ux-grades { margin: 12px 0 16px; padding: 0 14px; border: 1px solid #d5dbe8; border-radius: 12px; background: #f6f8fc; }
.ux-grades > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: #0b1733; }
.ux-grades > p { margin: 0 0 10px !important; }
.ux-grades a { color: #1d3f9c; text-decoration: underline; }
/* Índice en teléfono, orden puramente visual (antes lo movía el script y la página saltaba al cargar con red lenta):
   miga, H1, respuesta y firma; luego el índice plegado; luego el resto del artículo */
@media (max-width: 767px) {
  html body .exo-content__inner--toc { display: flex !important; flex-direction: column !important; gap: 0 !important; }
  html body .exo-content__inner--toc > .exo-prose { display: contents !important; }
  html body .exo-content__inner--toc > .exo-prose > * { order: 3; }
  html body .exo-content__inner--toc > .exo-prose > :is(.exo-bc, h1, h1 + p, h1 + p + p[data-byline]) { order: 1; }
  html body .exo-content__inner--toc > nav.exo-toc { order: 2; position: static !important; margin: 4px 0 18px !important; padding: 0 !important; border: 1px solid #dfe3ec; border-radius: 14px; background: #fff; overflow: hidden; max-height: none !important; }
  /* plegado desde el primer pintado; el script solo convierte el título en botón (misma altura: sin salto) */
  html body .exo-content__inner--toc > nav.exo-toc:not(.is-open) > :is(ol, ul) { display: none !important; }
  html body .exo-content__inner--toc > nav.exo-toc > .exo-toc__t:not([hidden]) { display: flex !important; align-items: center; min-height: 48px; margin: 0 !important; padding: 0 16px !important; font-size: 15px !important; }
}
@media (max-width: 767px) { html body .exo-content__inner--toc > nav.exo-toc { align-self: stretch !important; width: auto !important; } html body .exo-content__inner--toc > nav.exo-toc .ux-toc__btn { width: 100% !important; } }
html body .ux-sec > h2 { display: block !important; width: 100% !important; max-width: none !important; }
html body .ux-sec > h2 > .ux-sec__btn { width: 100% !important; }
html body .exo-content--pdp .exo-prose > section.ux-sec { width: 100% !important; max-width: none !important; display: block !important; }
