/* Scoped copy of the public Grupo Desarte header. */
.desarte-shared-header,
.desarte-shared-header * {
    box-sizing: border-box;
}

.desarte-shared-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 99999;
    width: 100%;
    color: #003366;
    font-family: 'Quicksand', Arial, sans-serif;
}

.desarte-shared-header a,
.desarte-shared-header button {
    font: inherit;
}

.desarte-shared-header a {
    text-decoration: none;
}

.dsh-topbar {
    background: linear-gradient(90deg, rgba(0, 51, 102, 0.96), rgba(12, 76, 134, 0.94) 52%, rgba(22, 182, 216, 0.94));
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.dsh-topbar__container {
    width: min(100% - 2rem, 1320px);
    margin: 0 auto;
}

.dsh-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.dsh-topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease;
}

.dsh-topbar__link:hover,
.dsh-topbar__link:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.1);
}

.dsh-topbar__icon {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
}

.dsh-mobile-contact {
    display: none;
    background: linear-gradient(90deg, #003366, #16b6d8);
    color: #fff;
}

.dsh-mobile-contact__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 2rem, 1320px);
    min-height: 2.7rem;
    margin: 0 auto;
}

.dsh-mobile-contact a {
    color: #fff;
    font-weight: 700;
}

.dsh-social-links {
    display: inline-flex;
    gap: 0.3rem;
}

.dsh-social-links a {
    display: grid;
    place-items: center;
    width: 1.8rem;
    height: 1.8rem;
    border: 2px solid transparent;
    border-radius: 50%;
}

.dsh-social-links a:hover,
.dsh-social-links a:focus-visible {
    border-color: rgba(255, 255, 255, 0.65);
    background: rgba(0, 51, 102, 0.35);
}

.dsh-social-links svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: #fff;
}

.dsh-navbar {
    position: relative;
    background: #f8f9fa;
}

.dsh-navbar__container {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 6.1rem;
    padding: 0 0.75rem;
}

.dsh-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: 150px;
}

.dsh-brand img {
    display: block;
    width: 150px;
    height: auto;
}

.dsh-navbar__collapse {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
}

.dsh-main-menu,
.dsh-actions,
.dsh-dropdown-menu,
.dsh-mega-grid,
.dsh-mega-pills {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dsh-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
    min-width: 0;
    margin: 0 auto;
}

.dsh-menu-item,
.dsh-action-item {
    position: relative;
    display: flex;
    align-items: center;
}

.dsh-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 2.85rem;
    padding: 0.75rem 0.62rem;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
    font-family: 'Quicksand', Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.dsh-menu-link:hover,
.dsh-menu-link:focus-visible {
    color: #003366;
}

.dsh-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-right: 0.28rem solid transparent;
    border-left: 0.28rem solid transparent;
    border-top: 0.36rem solid currentColor;
}

.dsh-featured-product {
    padding-right: 0.82rem;
    padding-left: 0.82rem;
    border: 1px solid rgba(22, 182, 216, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(22, 182, 216, 0.12), rgba(109, 213, 237, 0.25));
    color: #003366;
    font-weight: 800;
}

.dsh-featured-product:hover,
.dsh-featured-product:focus-visible {
    background: linear-gradient(135deg, rgba(22, 182, 216, 0.22), rgba(109, 213, 237, 0.38));
}

.dsh-dropdown-menu {
    position: absolute;
    top: calc(100% - 0.1rem);
    left: 50%;
    z-index: 20;
    display: none;
    min-width: 15.5rem;
    padding: 0.45rem;
    transform: translateX(-50%);
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 0 0 0.9rem 0.9rem;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.dsh-has-dropdown.is-open > .dsh-dropdown-menu {
    display: block;
}

.dsh-dropdown-menu a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 0.6rem;
    color: #003366;
    font-size: 0.9rem;
    text-align: center;
}

.dsh-dropdown-menu a:hover,
.dsh-dropdown-menu a:focus-visible {
    background: rgba(22, 182, 216, 0.1);
}

.dsh-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-left: auto;
}

.dsh-action-link,
.dsh-mobile-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    color: #003366;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dsh-cart-link,
.dsh-client-link {
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(0, 51, 102, 0.14);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 24px rgba(0, 36, 78, 0.08);
}

.dsh-cart-link:hover,
.dsh-cart-link:focus-visible,
.dsh-client-link:hover,
.dsh-client-link:focus-visible {
    color: #003366;
    background: #fff;
}

.dsh-cta {
    padding: 0.88rem 1.25rem;
    border: 1px solid rgba(0, 51, 102, 0.18);
    background: linear-gradient(90deg, #003366, #0c4c86 58%, #16b6d8);
    color: #fff;
    box-shadow: 0 14px 28px rgba(0, 51, 102, 0.22);
}

.dsh-cta:hover,
.dsh-cta:focus-visible {
    color: #fff;
    transform: translateY(-1px);
}

.dsh-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    padding: 0 0.42rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #e53935, #ff6b6b);
    color: #fff;
    font-size: 0.72rem;
    line-height: 1;
}

.dsh-mobile-cart,
.dsh-menu-toggle {
    display: none;
}

.dsh-mega-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 30;
    width: 100vw;
    padding: 0.75rem 0 0.9rem;
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 0 0 1.75rem 1.75rem;
    background: radial-gradient(circle at top left, rgba(109, 213, 237, 0.14), transparent 30%), linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 253, 0.95));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}

.dsh-has-dropdown.is-open > .dsh-mega-menu {
    display: block;
}

.dsh-mega-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 0.75rem;
    width: min(1920px, calc(100vw - 20px));
    margin: 0 auto;
}

.dsh-mega-feature {
    position: relative;
    overflow: hidden;
    padding: 1.1rem;
    border-radius: 1.35rem;
    color: #fff;
    background: linear-gradient(160deg, #003366 0%, #0d4a83 58%, #6dd5ed 130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 32px rgba(0, 51, 102, 0.2);
}

.dsh-mega-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dsh-mega-kicker::before {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
    content: '';
}

.dsh-mega-feature h2 {
    margin: 0;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: clamp(1.05rem, 0.85vw + 0.85rem, 1.5rem);
    line-height: 1.05;
}

.dsh-mega-feature p {
    margin: 0.65rem 0 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.6;
}

.dsh-mega-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #003366;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.81rem;
    font-weight: 800;
}

.dsh-mega-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dsh-mega-pills span {
    padding: 0.45rem 0.58rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.68rem;
}

.dsh-mega-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.6rem;
    align-content: start;
}

.dsh-mega-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(0, 51, 102, 0.1);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.dsh-mega-card:hover,
.dsh-mega-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(0, 51, 102, 0.22);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.dsh-mega-thumb {
    position: relative;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.08), rgba(109, 213, 237, 0.12));
}

.dsh-mega-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.dsh-mega-card:hover .dsh-mega-thumb img {
    transform: scale(1.04);
}

.dsh-mega-body {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.7rem 0.7rem;
}

.dsh-mega-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.6rem;
    background: rgba(0, 51, 102, 0.08);
    color: #003366;
    font-size: 0.82rem;
}

.dsh-mega-body strong,
.dsh-mega-body small {
    display: block;
}

.dsh-mega-body strong {
    color: #0f172a;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 1.2;
}

.dsh-mega-body small {
    margin-top: 0.25rem;
    color: #667085;
    font-size: 0.63rem;
}

@media (max-width: 1600px) {
    .dsh-mega-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1399px) {
    .dsh-mobile-cart,
    .dsh-menu-toggle {
        display: inline-flex;
    }

    .dsh-mobile-cart {
        margin-left: auto;
        margin-right: 0.45rem;
        padding: 0.7rem 0.95rem;
        border: 1px solid rgba(0, 51, 102, 0.18);
        background: rgba(255, 255, 255, 0.88);
    }

    .dsh-desktop-cart { display: none; }

    .dsh-menu-toggle {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.28rem;
        width: 2.8rem;
        height: 2.8rem;
        padding: 0;
        border: 1px solid rgba(0, 51, 102, 0.18);
        border-radius: 0.6rem;
        background: #fff;
        cursor: pointer;
    }

    .dsh-menu-toggle span {
        display: block;
        width: 1.35rem;
        height: 0.14rem;
        border-radius: 999px;
        background: #003366;
    }

    .dsh-navbar__collapse {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 5.5rem);
        overflow-y: auto;
        padding: 0.75rem 1rem 1rem;
        border-top: 1px solid rgba(0, 51, 102, 0.08);
        background: #f8f9fa;
        box-shadow: 0 18px 35px rgba(15, 23, 42, 0.13);
    }

    .dsh-navbar__collapse.is-open { display: block; }

    .dsh-main-menu,
    .dsh-actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.25rem;
    }

    .dsh-main-menu { justify-content: center; }
    .dsh-actions { margin-top: 0.75rem; }

    .dsh-menu-item,
    .dsh-action-item { flex: 1 1 auto; justify-content: center; }

    .dsh-menu-link,
    .dsh-action-link { width: 100%; justify-content: center; }

    .dsh-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        transform: none;
        border: 0;
        border-radius: 0.75rem;
        background: transparent;
        box-shadow: none;
        text-align: center;
    }

    .dsh-mega-menu {
        position: static;
        width: 100%;
        transform: none;
        border: 0;
        border-radius: 1rem;
        background: transparent;
        box-shadow: none;
    }

    .dsh-mega-shell {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .dsh-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .dsh-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
    .dsh-topbar { display: none; }
    .dsh-mobile-contact { display: block; }
}

@media (max-width: 768px) {
    .dsh-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsh-main-menu,
    .dsh-actions { flex-direction: column; }
    .dsh-menu-item,
    .dsh-action-item { width: 100%; }
}

@media (max-width: 575px) {
    .dsh-brand { width: 90px; }
    .dsh-brand img { width: 90px; }
    .dsh-mobile-cart { width: 2.7rem; min-width: 2.7rem; height: 2.7rem; padding: 0; }
    .dsh-mobile-cart span:not(.dsh-cart-badge) {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .dsh-mega-grid { grid-template-columns: 1fr; }
    .dsh-mega-card { grid-template-columns: 58px minmax(0, 1fr); grid-template-rows: none; min-height: 58px; border: 0; background: transparent; box-shadow: none; }
    .dsh-mega-thumb { width: 58px; height: 58px; border-radius: 0.75rem; }
    .dsh-mega-body { padding: 0.65rem 0.75rem; }
    .dsh-mega-body strong { color: #003366; font-size: 1rem; }
}

/* Astra remains available as a safe fallback when this plugin is disabled. */
body.desarte-shared-header-active #masthead {
    display: none !important;
}
