diff --git a/wp-content/themes/xmartica/parts/practice-card-tilt/practice-card-tilt.css b/wp-content/themes/xmartica/parts/practice-card-tilt/practice-card-tilt.css index f5ba19d..882bf1e 100644 --- a/wp-content/themes/xmartica/parts/practice-card-tilt/practice-card-tilt.css +++ b/wp-content/themes/xmartica/parts/practice-card-tilt/practice-card-tilt.css @@ -13,6 +13,12 @@ cursor: pointer; } +/* Keep the full-card link above the text layers introduced by the spotlight. */ +body.front-page #primary #soluciones .practice-card-link { + position: absolute; + z-index: 30; +} + #soluciones .practice-card-link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; diff --git a/wp-content/themes/xmartica/parts/spotlight-cursor/spotlight-cursor.css b/wp-content/themes/xmartica/parts/spotlight-cursor/spotlight-cursor.css index 5488541..af5f0ee 100644 --- a/wp-content/themes/xmartica/parts/spotlight-cursor/spotlight-cursor.css +++ b/wp-content/themes/xmartica/parts/spotlight-cursor/spotlight-cursor.css @@ -32,6 +32,13 @@ body.front-page > footer :where(h1, h2, h3, h4, h5, h6, p, a, button, label, li, z-index: 21; } +/* The FAQ control is a positioned UI element, not inline text. Preserve its + right-aligned placement while keeping it above the spotlight. */ +body.front-page #primary .home-faq .home-faq__toggle-icon { + position: absolute; + z-index: 22; +} + /* Tailwind's `isolate`, the hero copy layers and sticky positioning create nested stacking contexts. Flatten/raise those specific contexts so their text is not tinted when the spotlight passes underneath. */ diff --git a/wp-content/themes/xmartica/style.css b/wp-content/themes/xmartica/style.css index cc04651..87c1ab0 100644 --- a/wp-content/themes/xmartica/style.css +++ b/wp-content/themes/xmartica/style.css @@ -754,6 +754,13 @@ body { pointer-events: auto; } + /* The solutions submenu is open by default on mobile. Prevent its invisible + links from receiving hover/click events while the main panel is closed. */ + .site-header__nav:not(.is-open) *, + .site-header__nav:not(.is-open) .xmartica-menu__submenu { + pointer-events: none; + } + .xmartica-menu > li, .xmartica-menu > li > a { width: 100%;