/* SGWeb accesibilidad · sgdesign.com.co · 25-nov-2026 */

/* 2.4.7 Foco visible */
:focus-visible { outline: 3px solid #4977b5 !important; outline-offset: 2px !important; }

/* 2.4.1 Enlace para saltar al contenido: oculto hasta recibir el foco */
.sgweb-saltar { position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: #fff; color: #080808; padding: 12px 18px; font-weight: 600; text-decoration: none; }
.sgweb-saltar:focus { left: 12px; top: 12px; }

/* 1.4.3 Contraste: botón "Cotizar" del encabezado.
   Normal: texto #050505 sobre #e31e24 = 4.35:1 → blanco 4.69:1.
   Hover/foco: #e31e24 sobre #050505 = 4.27:1 → #e53036 4.59:1.
   (El color original viene del CSS adicional del personalizador: .ast-builder-button-wrap .ast-custom-button).
   En páginas internas ese CSS no carga y Astra lo deja gris (#808285 con blanco = 3.85:1): se iguala al inicio en todo el sitio. */
html body .ast-builder-button-wrap .ast-custom-button-link .ast-custom-button { color: #fff !important; background: #e31e24 !important; border-color: #e31e24 !important; }
html body .ast-builder-button-wrap .ast-custom-button-link:hover .ast-custom-button,
html body .ast-builder-button-wrap .ast-custom-button-link:focus-visible .ast-custom-button { color: #e53036 !important; background: #050505 !important; border-color: #e31e24 !important; }

/* 1.4.3 Contraste: números 01/02/03 en rojo sobre negro (#e31e24 4.27:1 → #e53036 4.59:1) */
strong[style*="E31E24" i] { color: #e53036 !important; }

/* 1.4.3 Enlace "Ir al contenido" de Astra: azul #0d6efd sobre fondo oscuro = 4.48:1 → blanco sobre negro */
a.skip-link.screen-reader-text { color: #fff !important; background: #080808 !important; }

/* 1.4.3 Menú sobre encabezado transparente (inicio): "Portafolio" salía #000 sobre el hero oscuro (1.03:1) → blanco.
   "Tienda" (menu-item-2432) conserva su rojo de diseño, que sí cumple. */
body.home.ast-theme-transparent-header #ast-desktop-header .main-header-menu > .menu-item:not(.menu-item-2432) > .menu-link { color: #fff !important; }
body.home.ast-theme-transparent-header #ast-desktop-header .main-header-menu > .menu-item:not(.menu-item-2432) > .menu-link:hover,
body.home.ast-theme-transparent-header #ast-desktop-header .main-header-menu > .menu-item:not(.menu-item-2432) > .menu-link:focus-visible { color: #ff5a5f !important; }

/* ---------- Encabezado: el transparente solo donde hay un hero oscuro debajo (inicio y Contáctanos) ----------
   En el resto tapaba el título y la ruta de navegación (contenido oculto detrás del menú). */
body.ast-theme-transparent-header:not(.home):not(.page-id-2480) #masthead { position: relative !important; background: #fff; border-bottom: 1px solid #e5e5e5; }

/* 1.4.3 Asterisco de campos obligatorios de WooCommerce: #ff0000 sobre blanco = 4.0:1 → #cc0000 5.89:1 */
.woocommerce form .required, .woocommerce-form-row .required { color: #cc0000 !important; }

/* ---------- Tienda (complementa sgdesign-storefront.css) ---------- */
.sg-shop-eyebrow { color: #ff6b6f !important; }                                     /* 3.58:1 → 6.04:1 sobre el degradado */
.woocommerce ul.products li.product .ast-woo-product-category { color: #a8a8a8 !important; } /* 3.72:1 → 7.0:1 */
.woocommerce ul.products li.product .price del,
.woocommerce ul.products li.product .price del * { color: #a8a8a8 !important; }      /* precio tachado 3.55:1 → 7.0:1 */
.woocommerce ul.products li.product .button { color: #fff !important; }             /* #050505 sobre rojo 4.35:1 → blanco 4.69:1 */
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .button:focus-visible { color: #ff5a5f !important; background: #050505 !important; }

/* 2.4.7 / 2.4.11 Botón de carrito sobre la imagen del producto (Astra): solo aparecía con :hover o con foco en la imagen,
   y al pasarle el foco con Tab se escondía teniendo el foco. Visible mientras haya foco dentro de la tarjeta. */
li.product:focus-within .ast-on-card-button,
.astra-shop-thumbnail-wrap:focus-within .ast-on-card-button { visibility: visible !important; opacity: 1 !important; }

/* Botones de la cuadrícula (tienda y relacionados): ganarle al orden de carga de sgdesign-storefront.css */
html body.woocommerce ul.products li.product .button, html body .woocommerce ul.products li.product .button { color: #fff !important; }
html body.woocommerce ul.products li.product .button:hover, html body.woocommerce ul.products li.product .button:focus-visible,
html body .woocommerce ul.products li.product .button:hover, html body .woocommerce ul.products li.product .button:focus-visible { color: #ff5a5f !important; background: #050505 !important; }

/* 2.1.1 Insignia de reCAPTCHA: iframe de Google con enlaces que no se alcanzan con teclado.
   Google permite ocultarla si el formulario muestra el aviso con sus enlaces (está en el formulario de Contáctanos). */
.grecaptcha-badge { visibility: hidden !important; }
.sg-recaptcha-aviso { font-size: 13px; color: inherit; opacity: .85; }

/* Menú móvil de redes (lista nueva del ítem 2132): tamaños fijos para que el botón Contáctanos no se encoja */
ul.cont-redesMobile { gap: 16px; margin: 0; padding: 14px 20px; list-style: none; flex-wrap: wrap; }
ul.cont-redesMobile > li { flex: none; list-style: none; margin: 0; }
ul.cont-redesMobile > li > a { display: block; padding: 4px !important; line-height: 0; }
ul.cont-redesMobile img { display: block; max-width: none; height: auto; }
ul.cont-redesMobile img.btnMobile { width: 100px; }
ul.cont-redesMobile img.btnIconosMobile { width: 30px; }
/* Ícono del menú del celular en el inicio: blanco sobre el encabezado oscuro, como en Contáctanos */
body.home .ast-mobile-header-wrap .menu-toggle .ast-mobile-svg { fill: #fff !important; color: #fff !important; }

/* 1.4.3 Menú desplegable del celular (fondo #f9f9f9): Portafolio azul #0d6efd 4.27:1 → #1a1a1a; Tienda #e31e24 4.45:1 → #c8161d 5.56:1 */
#ast-mobile-header .main-header-menu .menu-link { color: #1a1a1a !important; }
#ast-mobile-header .main-header-menu .menu-item-2432 > .menu-link { color: #c8161d !important; }

/* 1.4.3 Precios de los planes en el inicio: en celular bajan a 22px peso 600 (rojo sobre #1e1e1e = 3.55:1, mínimo 4.5).
   En negrita (700) cuentan como texto grande (mínimo 3:1) y se conserva el rojo de marca. */
.elementor-element-4a887f5 .elementor-heading-title,
.elementor-element-6228874 .elementor-heading-title,
.elementor-element-e38c589 .elementor-heading-title { font-weight: 700 !important; }
/* En el menú del celular Astra trata la lista como submenú (bloques a lo ancho): se mantiene en fila */
#ast-mobile-header ul.cont-redesMobile, .ast-mobile-header-content ul.cont-redesMobile { display: flex !important; flex-direction: row !important; align-items: center; position: static !important; width: auto !important; border: 0 !important; background: none !important; box-shadow: none !important; }
#ast-mobile-header ul.cont-redesMobile > li, .ast-mobile-header-content ul.cont-redesMobile > li { width: auto !important; border: 0 !important; }
