/* Pymetech Mega Menu Visual — BEGIN. No layout, width, padding or breakpoint overrides. */
/* Publicaciones has no blue hero: use the established header surface from the
 * first paint. Positioning also enables the existing menu-overlay observer. */
body.page-id-9839:not(.elementor-editor-active) .elementor-location-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    isolation: isolate;
    background-color: rgba(5, 26, 43, .62);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
    backdrop-filter: blur(14px) saturate(1.18);
}
body.page-id-9839.admin-bar:not(.elementor-editor-active) .elementor-location-header {
    top: var(--wp-admin--admin-bar--height, 32px);
}

body.pym-mega-overlay-ready::after {
    content: "";
    position: fixed;
    /* One continuous veil behind the transparent header and hero; navbar stays above it. */
    inset: 0;
    z-index: 999;
    background: rgba(8, 20, 35, .34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
body.pym-mega-overlay-open::after { opacity: 1; }

/* The existing positioned header remains above the veil; Elementor controls the panels. */
body.pym-mega-overlay-ready .elementor-location-header.pym-mega-desktop,
body.pym-mega-overlay-ready .elementor-location-header.pym-mega-layer { z-index: 1000 !important; }
.elementor-location-header.pym-mega-desktop .mega-servicios-pymetech {
    background-color: #fff !important;
    border-color: rgba(10, 86, 140, .08) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(15, 40, 65, .10);
}
.elementor-location-header.pym-mega-desktop .mega-card-08 {
    border-color: rgba(10, 86, 140, .07) !important;
}
/* Service hover backgrounds, shadows, transforms and transitions belong to Elementor. */
.elementor-location-header.pym-mega-desktop .mega-service-08 .elementor-widget-text-editor {
    opacity: .86;
}
/* About cards: respond to the whole card, without changing Elementor backgrounds. */
.elementor-location-header .mega-menu-nosotros .mega-service-08 .mega-service-title-08 .elementor-heading-title {
    transition: color .2s ease;
}
.elementor-location-header .mega-menu-nosotros .mega-service-08:hover .mega-service-title-08 .elementor-heading-title {
    color: #0A578C;
}
@media (prefers-reduced-motion: reduce) {
    body.pym-mega-overlay-ready::after,
    .elementor-location-header .mega-menu-nosotros .mega-service-08 .mega-service-title-08 .elementor-heading-title,
    .elementor-location-header.pym-mega-desktop .mega-service-08 {
        transition: none !important;
    }
}
/* Pymetech Mega Menu Visual — END */
