/* =======================================================================
   DEPORTES CDMX — Header & Footer (chrome.css)
   Chrome global: announcement bar + header (logo, search, actions) +
   category nav con dropdowns + submenu panels mobile + drawer + footer.
   Compatible con WooCommerce (#cartCount via wc-cart-fragments).
   ======================================================================= */

/* --- Hide parent theme chrome so el child se vea puro --- */
.hfg_header,
.hfg_footer,
.nv-navbar,
.hfg_header_layout,
footer.site-footer,
.nv-footer,
.header-main-inner-wrap,
.elementor-location-header,
.elementor-location-footer { display: none !important; }

/* --- Tokens extra --- */
:root {
    --cdmx-header-h: 84px;
    --cdmx-nav-h: 52px;
    --cdmx-ann-h: 38px;
}

/* --- Fondo base (fuerza sobre overrides de Neve) --- */
html,
html body,
body.home,
body.woocommerce,
body.page,
body.wp-theme-neve {
    background: #ECEEF2 !important;
    color: var(--text, #2D3436);
    margin: 0;
}

/* =======================================================================
   ANNOUNCEMENT BAR
   ======================================================================= */
.cdmx-announcement-bar {
    background: #0B0C0C;
    color: rgba(255,255,255,0.9);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.6px;
    line-height: 1;
    min-height: var(--cdmx-ann-h);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cdmx-announcement-bar__inner {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: 11px 24px;
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.cdmx-announcement-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}
.cdmx-announcement-bar__item i { color: var(--mint, #94DEA5); font-size: 0.85rem; }
.cdmx-announcement-bar__sep {
    opacity: 0.25;
    font-size: 0.5rem;
    color: var(--mint, #94DEA5);
}

/* =======================================================================
   SITE HEADER — oscuro (mismo gradient que el footer) para que el logo resalte
   ======================================================================= */
.cdmx-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, #0B0C0C 0%, #042C3E 55%, var(--dark, #023D54) 100%);
    transition: box-shadow 0.28s ease;
}
.cdmx-site-header.is-scrolled {
    box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.4);
}

.cdmx-header-inner {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---- TOP ROW ---- */
.cdmx-header-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    min-height: var(--cdmx-header-h);
    padding: 18px 0;
}

.cdmx-brand,
body .cdmx-site-header .cdmx-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.cdmx-brand img,
body .cdmx-site-header .cdmx-brand img,
body.woocommerce .cdmx-brand img,
body.cdmx-tienda .cdmx-brand img,
body.single-product .cdmx-brand img,
body.archive .cdmx-brand img {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 220px !important;
    display: block !important;
    transition: transform 0.3s ease;
}
.cdmx-brand:hover img { transform: scale(1.03); }
@media (max-width: 768px) {
    .cdmx-brand img,
    body .cdmx-site-header .cdmx-brand img,
    body.woocommerce .cdmx-brand img,
    body.cdmx-tienda .cdmx-brand img,
    body.single-product .cdmx-brand img,
    body.archive .cdmx-brand img {
        height: 34px !important;
        max-height: 34px !important;
    }
}

/* ---- SEARCH (premium: doble shadow, focus con glow mint) ---- */
.cdmx-search {
    position: relative;
    max-width: 580px;
    width: 100%;
    justify-self: center;
}
.cdmx-search__icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--teal, #198E8B);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.22s ease, transform 0.22s ease;
}
.cdmx-search__input {
    width: 100%;
    height: 52px;
    padding: 0 58px 0 50px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #fff;
    font: 500 0.9rem/1 'Montserrat', system-ui, sans-serif;
    color: var(--text, #2D3436);
    transition: border-color 0.22s, box-shadow 0.28s ease;
    outline: none;
    letter-spacing: 0.1px;
    box-shadow:
        inset 0 0 0 1px rgba(2, 61, 84, 0.06),
        0 2px 6px rgba(0, 0, 0, 0.08),
        0 10px 24px -12px rgba(0, 0, 0, 0.25);
}
.cdmx-search__input::placeholder {
    color: #A0A7AE;
    font-weight: 400;
    letter-spacing: 0.2px;
}
.cdmx-search__input:hover {
    box-shadow:
        inset 0 0 0 1px rgba(2, 61, 84, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.10),
        0 12px 28px -14px rgba(0, 0, 0, 0.30);
}
.cdmx-search__input:focus {
    border-color: var(--teal, #198E8B);
    box-shadow:
        inset 0 0 0 1px var(--teal, #198E8B),
        0 0 0 4px rgba(148, 222, 165, 0.28),
        0 12px 28px -10px rgba(25, 142, 139, 0.35);
}
.cdmx-search:focus-within .cdmx-search__icon {
    color: var(--teal, #198E8B);
    transform: translateY(-50%) scale(1.08);
}

/* Atajo ⌘K (decorativo) — pista visual de búsqueda rápida */
.cdmx-search::after {
    content: "⌘K";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #8E959C;
    background: #F2F4F7;
    border: 1px solid #E3E6EA;
    padding: 4px 8px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}
.cdmx-search:focus-within::after { opacity: 0; }

/* Autocomplete */
.cdmx-search__results,
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 48px -12px rgba(2, 61, 84, 0.22);
    border: 1px solid rgba(2, 61, 84, 0.08);
    max-height: 440px;
    overflow-y: auto;
    display: none;
    z-index: 120;
    padding: 6px 0;
}
.cdmx-search__results.is-open,
.search-results.active,
.search-results.visible { display: block; }

.search-results-header {
    padding: 10px 18px 6px;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--text-muted, #636E72);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.search-results a,
.search-results .search-result-item,
.search-results .search-result-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 18px;
    color: var(--text, #2D3436);
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    font-size: 0.85rem;
}
.search-results a:hover { background: #F7F8FA; color: var(--teal, #198E8B); }
.search-result-img { width: 42px; height: 42px; object-fit: contain; border-radius: 6px; background: #F5F5F5; }
.search-result-name { font-weight: 600; }
.search-result-price { font-size: 0.78rem; color: var(--teal, #198E8B); font-weight: 700; }
.cat-count { margin-left: auto; font-size: 0.72rem; color: var(--text-muted, #636E72); font-weight: 600; }
.search-all-link {
    border-top: 1px solid #F0F1F3;
    color: var(--teal, #198E8B) !important;
    font-weight: 700 !important;
    justify-content: center;
    margin-top: 4px;
}
.search-no-results, .search-loading {
    padding: 18px;
    text-align: center;
    color: var(--text-muted, #636E72);
    font-size: 0.85rem;
}

/* ---- ACTIONS ---- */
.cdmx-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-right: -10px; /* compensa el padding del inner para pegarlas al 100% derecho */
    justify-self: end;
}
.cdmx-action {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.22s ease, color 0.22s ease;
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1;
}
.cdmx-action + .cdmx-action::before {
    content: "";
    position: absolute;
    left: -1px;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.cdmx-action i {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.22s;
}
.cdmx-action__label {
    font-size: 0.76rem;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}
.cdmx-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--mint, #94DEA5);
}
.cdmx-action:hover i,
.cdmx-action:hover .cdmx-action__label { color: var(--mint, #94DEA5); }

.cdmx-action--wa i { color: #25D366; }
.cdmx-action--wa:hover i { color: #3ee882; }

.cdmx-action--cart .cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--teal, #198E8B);
    color: #fff;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    margin-left: 2px;
    box-shadow: 0 2px 6px rgba(25, 142, 139, 0.28);
}

/* ---- HAMBURGER ---- */
.cdmx-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 10px;
    transition: background 0.2s;
}
.cdmx-hamburger:hover { background: rgba(255, 255, 255, 0.08); }
.cdmx-hamburger span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.2s; }
.cdmx-hamburger[aria-expanded="true"] span:nth-child(1),
.cdmx-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cdmx-hamburger[aria-expanded="true"] span:nth-child(2),
.cdmx-hamburger.active span:nth-child(2) { opacity: 0; }
.cdmx-hamburger[aria-expanded="true"] span:nth-child(3),
.cdmx-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =======================================================================
   CATEGORY NAV
   ======================================================================= */
.header-row-2-wrap {
    background: #fff;
    border-top: 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 6px 16px -10px rgba(2, 61, 84, 0.25),
        0 1px 0 rgba(2, 61, 84, 0.04);
}
.header-row-2 {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: var(--cdmx-nav-h);
    overflow: visible;
    scrollbar-width: none;
}
.header-row-2::-webkit-scrollbar { display: none; }

.nav-item { position: relative; }
.nav-link,
.nav-direct-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font: 600 0.8rem/1 'Montserrat', sans-serif;
    color: var(--text, #2D3436);
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-radius: 8px;
    position: relative;
    transition: color 0.2s, background 0.2s;
    background: transparent;
}
.nav-link:hover,
.nav-direct-link:hover {
    color: var(--teal, #198E8B);
    background: rgba(25, 142, 139, 0.06);
}
.nav-link.active {
    color: var(--teal, #198E8B);
    background: rgba(25, 142, 139, 0.09);
}
.nav-arrow {
    font-size: 0.58rem;
    opacity: 0.5;
    transition: transform 0.22s ease, opacity 0.2s, color 0.2s;
    margin-left: 2px;
}
.nav-item:hover .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--teal, #198E8B);
}

/* Separador antes de los enlaces directos (Multifuncionales / Paquetes) */
.nav-direct-link:first-of-type { margin-left: 12px; position: relative; }
.nav-direct-link:first-of-type::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: #E8EAED;
}

/* ---- DROPDOWN DESKTOP (premium mega-menu) ---- */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 24px 60px -16px rgba(2, 61, 84, 0.30),
        0 8px 18px -8px rgba(2, 61, 84, 0.12),
        0 0 0 1px rgba(2, 61, 84, 0.04);
    border: 0;
    padding: 12px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
/* Triángulo conector arriba (apunta al nav item) */
.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 26px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -1px -1px 2px rgba(2, 61, 84, 0.04);
    border-radius: 2px;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Items: con accent bar izquierda que aparece en hover */
.nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 18px 12px 22px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text, #2D3436);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.22s ease;
    letter-spacing: 0.1px;
    position: relative;
}
.nav-dropdown a:not(.nav-dropdown__all)::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 20px;
    background: var(--teal, #198E8B);
    border-radius: 3px;
    transition: transform 0.22s ease;
    transform-origin: center;
}
.nav-dropdown a:hover:not(.nav-dropdown__all) {
    background: rgba(25, 142, 139, 0.06);
    color: var(--teal, #198E8B);
    padding-left: 28px;
}
.nav-dropdown a:hover:not(.nav-dropdown__all)::before {
    transform: translateY(-50%) scaleY(1);
}

/* Ocultar iconos sueltos (fa-chevron-right, fa-grip) — reemplazados por accent bar */
.nav-dropdown a i.fa-chevron-right,
.nav-dropdown a i.fa-grip { display: none; }

/* "Ver todo" como botón dark destacado arriba con flecha animada */
.nav-dropdown__all {
    color: #fff !important;
    background: var(--dark, #023D54) !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase;
    font-size: 0.68rem !important;
    margin-bottom: 8px;
    justify-content: space-between !important;
    transition: background 0.25s ease !important;
    overflow: hidden;
}
.nav-dropdown__all::after {
    content: "→";
    font-size: 1rem;
    font-weight: 700;
    margin-left: auto;
    transition: transform 0.25s ease;
    color: var(--mint, #94DEA5);
}
.nav-dropdown__all:hover {
    background: var(--teal, #198E8B) !important;
    color: #fff !important;
}
.nav-dropdown__all:hover::after {
    transform: translateX(4px);
    color: #fff;
}

/* Separador sutil entre "Ver todo" y los items */
.nav-dropdown__all + a { margin-top: 2px; }

/* =======================================================================
   MOBILE SUBMENU PANELS
   ======================================================================= */
.mobile-submenu-panel {
    display: none;
    background: #fff;
    border-top: 1px solid #F0F1F3;
}
.mobile-submenu-panel.active { display: block; animation: cdmxFadeDown 0.25s ease; }
@keyframes cdmxFadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-submenu-card {
    max-width: var(--max-width, 1280px);
    margin: 0 auto;
    padding: 14px 20px 18px;
}
.mobile-submenu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.mobile-submenu-header span {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--dark, #023D54);
    text-transform: uppercase;
    letter-spacing: 1.4px;
}
.mobile-submenu-close {
    border: 0;
    background: #F2F4F7;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: var(--dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.mobile-submenu-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.mobile-submenu-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #F7F8FA;
    color: var(--text, #2D3436);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.mobile-submenu-links a i { color: var(--teal, #198E8B); font-size: 0.72rem; }
.mobile-submenu-links a:hover { background: var(--teal, #198E8B); color: #fff; }
.mobile-submenu-links a:hover i { color: #fff; }

.nav-link.is-open .nav-arrow { transform: rotate(180deg); color: var(--teal); }

/* =======================================================================
   MOBILE DRAWER
   ======================================================================= */
.mobile-drawer-overlay {
    position: fixed; inset: 0;
    background: rgba(2, 61, 84, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 200;
}
.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }

.mobile-drawer {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 340px);
    background: linear-gradient(180deg, #0B0C0C 0%, #042C3E 60%, var(--dark, #023D54) 100%);
    color: #fff;
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px -10px rgba(0, 0, 0, 0.45);
}
.mobile-drawer.open { transform: translateX(0); }

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer-header img { height: 30px; width: auto; }
.mobile-drawer-close {
    width: 38px; height: 38px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.mobile-drawer-close:hover { background: rgba(148, 222, 165, 0.14); }

.mobile-drawer-search { display: none; }

.mobile-drawer-links { flex: 1; overflow-y: auto; padding: 10px 14px; }

.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    border: 0;
    border-radius: 10px;
    letter-spacing: 0.2px;
    transition: background 0.2s, color 0.2s;
}
.mobile-drawer-link:hover,
.mobile-drawer-link:focus-visible {
    background: rgba(148, 222, 165, 0.1);
    color: var(--mint, #94DEA5);
}
.mobile-drawer-link i {
    color: var(--mint, #94DEA5);
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
}

.mobile-drawer-group { margin-bottom: 2px; }
.mobile-drawer-parent {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-drawer-parent .mobile-drawer-arrow {
    margin-left: auto;
    transition: transform 0.22s ease;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}
.mobile-drawer-children {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    margin: 4px 0 6px;
    transition: max-height 0.3s ease;
}
.mobile-drawer-children.open { max-height: 500px; padding: 4px 0; }
.mobile-drawer-children .mobile-drawer-link {
    padding: 10px 14px 10px 36px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    position: relative;
}
.mobile-drawer-children .mobile-drawer-link::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(148, 222, 165, 0.4);
}
.mobile-drawer-children .mobile-drawer-link:hover {
    color: var(--mint, #94DEA5);
    background: rgba(148, 222, 165, 0.08);
}
.mobile-drawer-children .mobile-drawer-link:hover::before { background: var(--mint, #94DEA5); }

.mobile-drawer-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-drawer-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: background 0.2s;
}
.mobile-drawer-wa:hover { background: #128C7E; color: #fff; }

/* =======================================================================
   RESPONSIVE
   ======================================================================= */
@media (max-width: 1024px) {
    .cdmx-header-top { gap: 16px; }
    .cdmx-action__label { display: none; }
    .cdmx-action { padding: 10px; }
    .cdmx-action + .cdmx-action::before { display: none; }
    .nav-link, .nav-direct-link { padding: 10px 12px; font-size: 0.76rem; }
}

@media (max-width: 900px) {
    .header-row-2 { overflow-x: auto; padding: 0 16px; gap: 2px; }
    .nav-dropdown { display: none !important; }
    .nav-item { flex-shrink: 0; }
}

/* Botón buscar mobile oculto por defecto en desktop */
.cdmx-action--search-mobile { display: none; }

@media (max-width: 768px) {
    .cdmx-header-top {
        grid-template-columns: auto 1fr auto;
        gap: 8px;
        min-height: 64px;
        padding: 10px 0;
    }
    /* Oculta search inline desktop y acciones con label */
    .cdmx-search { display: none; }
    .cdmx-action:not(.cdmx-action--cart):not(.cdmx-action--search-mobile) { display: none; }

    /* Logo un toque más chico */
    .cdmx-brand img { height: 34px; }

    /* Iconos mobile elegantes: pill translúcida sobre el fondo dark */
    .cdmx-action--search-mobile,
    .cdmx-action--cart,
    .cdmx-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #fff;
        transition: background 0.22s, border-color 0.22s, transform 0.22s;
        position: relative;
    }
    .cdmx-action--search-mobile:hover,
    .cdmx-action--cart:hover {
        background: rgba(148, 222, 165, 0.14);
        border-color: rgba(148, 222, 165, 0.25);
    }

    /* ---- HAMBURGUESA DESTACADO: botón teal sólido (llamada a la acción del menú) ---- */
    .cdmx-hamburger {
        background: linear-gradient(135deg, var(--teal, #198E8B) 0%, #13716E 100%);
        border: 1px solid rgba(148, 222, 165, 0.35);
        box-shadow:
            0 4px 14px -4px rgba(25, 142, 139, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
        margin-left: 4px;
    }
    .cdmx-hamburger:hover {
        background: linear-gradient(135deg, #1fa29e 0%, var(--teal, #198E8B) 100%);
        border-color: var(--mint, #94DEA5);
        transform: translateY(-1px);
        box-shadow:
            0 6px 18px -4px rgba(25, 142, 139, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }
    .cdmx-hamburger:active { transform: translateY(0); }
    .cdmx-hamburger span { background: #fff; }
    .cdmx-hamburger[aria-expanded="true"],
    .cdmx-hamburger.active {
        background: linear-gradient(135deg, #13716E 0%, var(--dark, #023D54) 100%);
    }
    .cdmx-action--search-mobile i,
    .cdmx-action--cart i { font-size: 1rem; color: #fff; }
    .cdmx-action--cart .cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        background: var(--teal, #198E8B);
        color: #fff;
        border-radius: 20px;
        font-size: 0.6rem;
        font-weight: 800;
        line-height: 1;
        border: 2px solid #0B0C0C;
        margin: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 6px rgba(25,142,139,0.4);
    }
    .cdmx-action + .cdmx-action::before { display: none; }
    .cdmx-hamburger { flex-direction: column; }
    .cdmx-hamburger span { width: 18px; }

    /* Oculta nav desktop y muestra solo drawer */
    .header-row-2-wrap { display: none; }
    .cdmx-header-actions { gap: 6px; }
}

@media (max-width: 600px) {
    .mobile-submenu-links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cdmx-announcement-bar__sep { display: none; }
    .cdmx-announcement-bar__inner { gap: 12px; padding: 8px 16px; }
    .cdmx-header-inner { padding: 0 14px; }
    .cdmx-header-top { gap: 6px; }
}

/* =======================================================================
   MOBILE SEARCH MODAL
   ======================================================================= */
.cdmx-search-modal {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: none;
}
.cdmx-search-modal.open { display: block; }

.cdmx-search-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 12, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: cdmxFadeIn 0.22s ease;
}
@keyframes cdmxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cdmxSlideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cdmx-search-modal__box {
    position: relative;
    max-width: 620px;
    margin: 64px auto 0;
    padding: 0 16px;
    animation: cdmxSlideDown 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}

.cdmx-search-modal__top {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 6px 6px 6px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow:
        0 20px 60px -12px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(148, 222, 165, 0.15);
}
.cdmx-search-modal__icon {
    color: var(--teal, #198E8B);
    font-size: 1.05rem;
    display: inline-flex;
}
.cdmx-search-modal__input {
    flex: 1;
    border: 0;
    outline: none;
    background: transparent;
    height: 52px;
    font: 500 0.95rem 'Montserrat', system-ui, sans-serif;
    color: var(--text, #2D3436);
    letter-spacing: 0.1px;
}
.cdmx-search-modal__input::placeholder { color: #A0A7AE; }
.cdmx-search-modal__close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #F2F4F7;
    color: var(--dark, #023D54);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}
.cdmx-search-modal__close:hover {
    background: var(--teal, #198E8B);
    color: #fff;
}

.cdmx-search-modal__hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 8px 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    letter-spacing: 0.4px;
}
.cdmx-search-modal__hint i { color: var(--mint, #94DEA5); margin-right: 6px; }
.cdmx-search-modal__kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.66rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.cdmx-search-modal__results {
    margin-top: 14px;
    background: #fff;
    border-radius: 14px;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.45);
    display: none;
    padding: 6px 0;
}
.cdmx-search-modal__results.active { display: block; }
.cdmx-search-modal__results a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: var(--text, #2D3436);
    font-size: 0.86rem;
    transition: background 0.18s, color 0.18s;
}
.cdmx-search-modal__results a:hover { background: #F7F8FA; color: var(--teal, #198E8B); }
.cdmx-search-modal__results .search-results-header {
    padding: 10px 18px 6px;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted, #636E72);
}
.cdmx-search-modal__results .search-result-img {
    width: 44px; height: 44px;
    object-fit: contain;
    border-radius: 8px;
    background: #F5F5F5;
}
.cdmx-search-modal__results .search-result-name { font-weight: 600; }
.cdmx-search-modal__results .search-result-price {
    font-size: 0.78rem;
    color: var(--teal, #198E8B);
    font-weight: 700;
    margin-top: 2px;
}
.cdmx-search-modal__results .search-all-link {
    justify-content: center;
    border-top: 1px solid #F0F1F3;
    color: var(--teal, #198E8B) !important;
    font-weight: 700;
    padding: 14px !important;
    margin-top: 4px;
}
.cdmx-search-modal__results .search-no-results,
.cdmx-search-modal__results .search-loading {
    padding: 24px;
    text-align: center;
    color: var(--text-muted, #636E72);
    font-size: 0.88rem;
}

@media (max-width: 480px) {
    .cdmx-search-modal__box { margin-top: 40px; padding: 0 12px; }
    .cdmx-search-modal__top { padding: 5px 5px 5px 14px; gap: 8px; }
    .cdmx-search-modal__input { font-size: 0.9rem; height: 48px; }
    .cdmx-search-modal__close { width: 38px; height: 38px; }
}

/* =======================================================================
   FOOTER
   ======================================================================= */
.cdmx-footer {
    background: linear-gradient(180deg, #0B0C0C 0%, var(--dark, #023D54) 100%);
    color: rgba(255, 255, 255, 0.82);
    padding: 72px 0 0;
    margin-top: 80px;
}
.cdmx-footer__inner { max-width: var(--max-width, 1280px); margin: 0 auto; padding: 0 24px; }
.cdmx-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 56px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.cdmx-footer__brand img {
    height: 44px;
    width: auto;
    margin-bottom: 18px;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}
.cdmx-footer__tagline {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 22px;
    max-width: 340px;
}
.cdmx-footer__social { display: flex; gap: 10px; }
.cdmx-footer__social a {
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-decoration: none;
}
.cdmx-footer__social a:hover {
    background: var(--teal, #198E8B);
    transform: translateY(-2px);
}

.cdmx-footer__col h4 {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin: 0 0 20px;
    position: relative;
}
.cdmx-footer__col h4::after {
    content: "";
    position: absolute;
    left: 0; bottom: -8px;
    width: 28px; height: 2px;
    background: var(--teal, #198E8B);
    border-radius: 2px;
}
.cdmx-footer__col ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.cdmx-footer__col a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.86rem;
    transition: color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.cdmx-footer__col a:hover { color: var(--mint, #94DEA5); transform: translateX(3px); }

.cdmx-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}
.cdmx-footer__contact-item i { color: var(--teal, #198E8B); font-size: 1rem; margin-top: 3px; flex-shrink: 0; }
.cdmx-footer__contact-item a,
.cdmx-footer__contact-item span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
    line-height: 1.55;
    text-decoration: none;
}
.cdmx-footer__contact-item a:hover { color: var(--mint, #94DEA5); }

.cdmx-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}
.cdmx-footer__legal { display: flex; gap: 22px; flex-wrap: wrap; }
.cdmx-footer__legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}
.cdmx-footer__legal a:hover { color: var(--mint, #94DEA5); }

.cdmx-footer__payment { display: flex; gap: 10px; align-items: center; }
.cdmx-footer__payment i { font-size: 1.6rem; color: rgba(255, 255, 255, 0.6); transition: color 0.2s; }
.cdmx-footer__payment i:hover { color: #fff; }

@media (max-width: 1024px) {
    .cdmx-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 42px; }
}
@media (max-width: 600px) {
    .cdmx-footer { padding-top: 56px; margin-top: 48px; }
    .cdmx-footer__grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
    .cdmx-footer__bottom { flex-direction: column; text-align: center; }
}

/* =======================================================================
   WHATSAPP FLOAT + helpers
   ======================================================================= */
.cdmx-whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
    z-index: 90;
    text-decoration: none;
    transition: transform 0.25s;
}
.cdmx-whatsapp-float:hover { transform: scale(1.08); color: #fff; }
@media (max-width: 480px) { .cdmx-whatsapp-float { bottom: 16px; right: 16px; } }

body.cdmx-no-scroll { overflow: hidden; }

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
    background: var(--teal, #198E8B);
    color: #fff;
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    height: auto;
    left: 16px;
    padding: 12px 20px;
    text-decoration: none;
    top: 16px;
    width: auto;
    z-index: 9999;
    border-radius: 8px;
}
