/* ==========================================================================
   HEADER MARKETPLACE ARCHITECTURAL WHITE CUBE — THE MUSEUM PARADIGM
   Inspirado en Apple App Store y Shopify Editions: contenedor aséptico acromático
   que neutraliza la plataforma y cede todo el protagonismo al comercio exhibido
   ========================================================================== */

:root {
    --m-hdr-bg: #0F172A; /* Grafito profundo arquitectónico */
    --m-hdr-text: #FFFFFF;
    --m-hdr-muted: rgba(255, 255, 255, 0.76);
    --m-hdr-border: rgba(255, 255, 255, 0.12);
    --m-hdr-hover: rgba(255, 255, 255, 0.08);
    --m-hdr-phone-bg: rgba(255, 255, 255, 0.06);
    --m-hdr-phone-border: rgba(255, 255, 255, 0.18);
    --m-hdr-cta-bg: #1E293B; /* Pizarra carbón arquitectónica */
    --m-hdr-cta-text: #FFFFFF;
    --m-hdr-search-btn-bg: #0F172A; /* Grafito neutro */
    --m-hdr-pattern-opacity: 0.05;
}

/* Master Header Container Monocromático Aséptico (Marco de Galería) */
.biz-header-market {
    position: relative;
    width: 100%;
    z-index: 1200;
    /* Fondo con el color de acento elegido por el comercio */
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--m-hdr-bg, var(--biz-accent-color, #2563EB)) 88%, #000000) 0%, 
        var(--m-hdr-bg, var(--biz-accent-color, #2563EB)) 55%,
        color-mix(in srgb, var(--m-hdr-bg, var(--biz-accent-color, #2563EB)) 82%, #000000) 100%
    );
    color: var(--m-hdr-text, #ffffff);
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: visible;
}

/* Trama de Partículas / Olas de Puntos Sutil Arquitectónica */
.biz-header-market::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 12% 40%, rgba(255, 255, 255, 0.18) 1.5px, transparent 1.5px),
        radial-gradient(circle at 88% 30%, rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 75%, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px),
        radial-gradient(circle at 70% 85%, rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
    background-size: 28px 28px, 34px 34px, 22px 22px, 30px 30px;
    opacity: var(--m-hdr-pattern-opacity, 0.05);
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
    -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

/* Variables de acento corporativo dinámicas integradas con la ficha */
.biz-header-market,
.biz-market-navbar {
    --m-accent: var(--biz-accent-color, var(--biz-brand-color, #2563EB));
    --m-accent-dark: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 80%, #000000);
    --m-accent-glow: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 30%, transparent);
    --m-accent-subtle: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 12%, #FFFFFF);
    --m-accent-border: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 30%, transparent);
}

/* Contenedor Responsivo Central con Márgenes Ópticos UI/UX */
.biz-header-market .container,
.biz-market-navbar .container {
    width: 100%;
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 2.5vw, 36px);
    padding-right: clamp(16px, 2.5vw, 36px);
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

/* --------------------------------------------------------------------------
   NIVEL 1: TOP UTILITY BAR (Integrada sobre el Fondo de Acento con Alto Contraste)
   -------------------------------------------------------------------------- */
.biz-market-topbar {
    width: 100%;
    background: rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--m-hdr-border, rgba(255, 255, 255, 0.18));
    font-size: 12.5px;
    font-weight: 500;
    color: var(--m-hdr-muted, rgba(255, 255, 255, 0.88));
    position: relative;
    z-index: 5;
}

.biz-mtopbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    min-height: 38px;
    gap: 16px;
}

.biz-mtopbar-left,
.biz-mtopbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.biz-mtop-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--m-hdr-muted, rgba(255, 255, 255, 0.88));
    font-size: 12.5px;
    white-space: nowrap;
}

/* Dirección del Comercio en la Barra Superior */
.biz-mtop-address {
    color: var(--m-hdr-text, #ffffff) !important;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-weight: 600;
    font-size: 12.5px;
}

.biz-mtop-address:hover {
    opacity: 0.9;
    transform: translateY(-0.5px);
}

.biz-mtop-address svg {
    color: var(--m-hdr-text, #ffffff);
    flex-shrink: 0;
    opacity: 0.95;
}

.biz-mtop-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--m-hdr-muted, rgba(255, 255, 255, 0.88)) !important;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.biz-mtop-link:hover {
    color: var(--m-hdr-text, #ffffff) !important;
    background: var(--m-hdr-hover, rgba(255, 255, 255, 0.14));
    border-color: var(--m-hdr-border, rgba(255, 255, 255, 0.22));
}

.biz-masthead-share-btn {
    padding: 4px 11px !important;
    background: var(--m-hdr-hover, rgba(255, 255, 255, 0.12)) !important;
    border: 1px solid var(--m-hdr-border, rgba(255, 255, 255, 0.22)) !important;
    border-radius: 6px !important;
    color: var(--m-hdr-text, #ffffff) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.biz-masthead-share-btn:hover {
    background: var(--m-hdr-hover, rgba(255, 255, 255, 0.22)) !important;
    transform: translateY(-0.5px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.biz-masthead-share-btn svg {
    color: currentColor;
    transition: transform 0.2s ease;
}

.biz-masthead-share-btn:hover svg {
    transform: scale(1.12);
}

.biz-mtopbar-right .biz-fav-counter-badge {
    background: #0F172A;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9999px;
    padding: 1.5px 6.5px;
    margin-left: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   NIVEL 2: MAIN MARKETPLACE BAR (Logo Cápsula + Buscador Blanco + Call + Acción)
   -------------------------------------------------------------------------- */
.biz-market-mainbar {
    width: 100%;
    background: transparent;
    position: relative;
    z-index: 5;
}

.biz-mmainbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    gap: clamp(18px, 2.2vw, 32px);
    min-height: 76px;
}

/* Marca / Logo — Identidad Editorial Donostia PRO */
.biz-market-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.biz-market-brand:hover {
    opacity: 0.98;
    transform: translateY(-1px);
}

.biz-market-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    padding: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.biz-market-brand:hover .biz-market-logo-wrap {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.35);
    transform: scale(1.04);
}

.biz-market-logo-img {
    width: 100%;
    height: 100%;
    max-height: 42px;
    max-width: 42px;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

/* Tipografía de Marca de Alto Estatus Editorial */
.biz-market-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: left;
    line-height: 1.2;
}

.biz-market-brand-name {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #FFFFFF !important;
    letter-spacing: -0.015em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 7px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: color 0.2s ease;
}

.biz-market-brand:hover .biz-market-brand-name {
    color: #38BDF8 !important;
}

.biz-market-brand-cat {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.biz-market-brand-cat::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38BDF8;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.6);
}

.biz-market-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--m-hdr-bg, #2563EB) 0%, color-mix(in srgb, var(--m-hdr-bg, #2563EB) 80%, #000000) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.biz-market-logo-icon {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.biz-market-logo-monogram {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 1px;
}

/* Área de Búsqueda Exclusiva de la Ficha — Fondo Blanco Total (Inspirado en Market) */
.biz-market-search-area {
    flex: 1;
    max-width: 760px;
    position: relative;
    z-index: 1250;
}

.biz-market-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 9999px;
    height: 50px;
    padding: 3px 5px 3px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.14);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    border: 2px solid transparent;
    position: relative;
}

.biz-market-search-form:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.biz-market-search-form:focus-within {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(255, 255, 255, 0.45), 0 8px 28px rgba(0, 0, 0, 0.22);
}

.biz-msearch-input,
.biz-msearch-input:focus,
.biz-msearch-input:focus-visible,
.biz-market-search-form input,
.biz-market-search-form input:focus,
.biz-market-search-form input:focus-visible,
.biz-market-search-form button,
.biz-market-search-form button:focus,
.biz-market-search-form button:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

/* Píldora de Alcance (Exclusivo del Comercio) — Selector de Categoría / Ámbito */
.biz-msearch-scope-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.biz-msearch-scope-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #64748B;
    flex-shrink: 0;
}

.biz-msearch-scope-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.biz-msearch-divider {
    width: 1px;
    height: 22px;
    background: #cbd5e1;
    margin: 0 10px;
    flex-shrink: 0;
}

.biz-msearch-input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    outline: none !important;
    padding: 0 12px;
    min-width: 0;
}

.biz-msearch-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.biz-msearch-clear {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.biz-msearch-clear:hover {
    color: #0f172a;
}

/* Botón de Búsqueda — Vidrio ahumado y grafito neutro (Disciplina 60-30-10) */
.biz-msearch-btn {
    width: 46px;
    height: 42px;
    border-radius: 9999px;
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.30);
}

.biz-msearch-btn:hover {
    background: #1E293B;
    transform: scale(1.04);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.40);
}

.biz-msearch-btn:active {
    transform: scale(0.96);
}

/* Panel Desplegable de Resultados de Búsqueda In-Page */
.biz-msearch-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    z-index: 1500;
    display: none;
    max-height: 380px;
    overflow-y: auto;
}

.biz-msearch-dropdown.is-active {
    display: block;
    animation: bizSearchSlideDown 0.2s ease-out forwards;
}

@keyframes bizSearchSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.biz-search-header {
    padding: 10px 16px 8px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.biz-search-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.biz-search-item:last-child {
    border-bottom: none;
}

.biz-search-item:hover,
.biz-search-item.is-selected {
    background: #f8fafc;
}

.biz-search-item-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--m-accent-subtle);
    color: var(--m-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.biz-search-item-content {
    flex: 1;
    min-width: 0;
}

.biz-search-item-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 2px;
}

.biz-search-item-snippet {
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
    white-space: normal;
}

.biz-search-item-snippet mark {
    background: var(--m-accent-subtle);
    color: var(--m-accent);
    font-weight: 700;
    padding: 0 2px;
    border-radius: 2px;
}

.biz-search-item-badge {
    font-size: 10px;
    font-weight: 700;
    color: var(--m-accent);
    background: var(--m-accent-subtle);
    padding: 2px 7px;
    border-radius: 9999px;
    flex-shrink: 0;
}

.biz-search-empty {
    padding: 24px 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.biz-search-empty strong {
    color: #0f172a;
    display: block;
    margin-bottom: 4px;
}

/* Efecto de Pulso de Resaltado en el Elemento Encontrado */
@keyframes bizTargetMatchPulse {
    0% {
        box-shadow: 0 0 0 0 var(--m-accent-glow);
        transform: scale(1);
    }
    30% {
        box-shadow: 0 0 0 14px var(--m-accent-glow);
        transform: scale(1.015);
    }
    100% {
        box-shadow: 0 0 0 0 transparent;
        transform: scale(1);
    }
}

.biz-element-matched-pulse {
    animation: bizTargetMatchPulse 1.4s ease-out 2 !important;
    position: relative;
    z-index: 50;
    outline: 2.5px solid var(--m-accent) !important;
    outline-offset: 4px;
    border-radius: 8px;
    transition: outline 0.3s ease;
}

/* Acciones a la Derecha */
.biz-market-actions {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.6vw, 24px);
    flex-shrink: 0;
}

/* Teléfono Directo — Icono Circular + Tipografía Blanca Brillante */
.biz-market-phone-box {
    display: flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
}

.biz-mphone-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--m-hdr-phone-border, rgba(255, 255, 255, 0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--m-hdr-text, #ffffff);
    background: var(--m-hdr-phone-bg, rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.biz-market-phone-box:hover .biz-mphone-circle {
    transform: scale(1.06);
    background: var(--m-hdr-hover, rgba(255, 255, 255, 0.25));
}

.biz-mphone-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.biz-mphone-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--m-hdr-muted, rgba(255, 255, 255, 0.82));
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.biz-mphone-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--m-hdr-text, #ffffff) !important;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.biz-mphone-val:hover {
    opacity: 0.9;
}

/* Caja de Acción en Cabecera — Exclusividad de Encapsulado Táctil Sólido con Relieve y Flecha */
.biz-market-cart-box {
    background: linear-gradient(135deg, #16A34A 0%, #15803D 100%) !important;
    color: #FFFFFF !important;
    padding: 8px 16px 8px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    box-sizing: border-box;
    text-decoration: none;
    box-shadow: 0 4px 14px -1px rgba(22, 163, 74, 0.45), 0 2px 4px -1px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.40), inset 0 -2px 0 rgba(0, 0, 0, 0.18) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
}

.biz-market-cart-box:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%) !important;
    box-shadow: 0 8px 24px -2px rgba(22, 163, 74, 0.55), inset 0 1px 1.5px rgba(255, 255, 255, 0.50), inset 0 -2px 0 rgba(0, 0, 0, 0.20) !important;
    filter: brightness(1.04);
}

.biz-market-cart-box:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.40), inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

.biz-mcart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.biz-mcart-icon svg {
    width: 22px;
    height: 22px;
}

.biz-mcart-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.biz-mcart-title {
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.15;
}

.biz-mcart-sub {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    line-height: 1.1;
}

.biz-mcart-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    color: rgba(255, 255, 255, 0.92);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.biz-market-cart-box:hover .biz-mcart-arrow {
    transform: translateX(3px);
}

/* Botón Hamburguesa Móvil */
.biz-market-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: var(--m-hdr-hover, rgba(255, 255, 255, 0.14));
    border: 1px solid var(--m-hdr-border, rgba(255, 255, 255, 0.25));
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    backdrop-filter: blur(8px);
}

.biz-toggle-bar {
    width: 20px;
    height: 2.2px;
    background: var(--m-hdr-text, #ffffff);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* --------------------------------------------------------------------------
   NIVEL 3: BOTTOM CATEGORY & NAVIGATION BAR (Barra Blanca Nítida & Sticky)
   Inspirada fielmente en la fila de navegación blanca de la imagen de referencia
   -------------------------------------------------------------------------- */
.biz-market-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1100;
    /* Barra de navegación en alto contraste (blanco puro) frente al menú principal de acento */
    background: #FFFFFF;
    border-top: none;
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.08);
    transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] .biz-market-navbar {
    background: var(--surface-3-glass, rgba(30, 41, 63, 0.94));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.65);
}

/* Estado Normal en Reposo */
.biz-mnavbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    min-height: 54px;
    gap: 16px;
    position: relative;
    box-sizing: border-box;
    transition: min-height 0.28s cubic-bezier(0.16, 1, 0.3, 1), padding 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transición al hacer Scroll */
.biz-market-navbar.is-sticky {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] .biz-market-navbar.is-sticky {
    background: rgba(11, 15, 25, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 25px -4px rgba(0, 0, 0, 0.55);
}

.biz-market-navbar.is-sticky .biz-mnavbar-inner {
    min-height: 54px;
    padding: 7px 0;
}

/* Botón: SECCIONES DEL COMERCIO (Color de Acento del Comercio sobre la Barra Blanca) */
.biz-mnav-cat-wrapper {
    position: relative;
}

.biz-mnav-categories-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--biz-merchant-brand-color, var(--biz-accent-color, var(--biz-brand-color, #2563EB)));
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    height: 40px;
    padding: 0 18px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--biz-merchant-brand-color, var(--biz-accent-color, var(--biz-brand-color, #000))) 30%, transparent);
}

.biz-mnav-categories-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--biz-merchant-brand-color, var(--biz-accent-color, var(--biz-brand-color, #000))) 40%, transparent);
    transform: translateY(-1px);
}

.biz-mnav-cat-icon {
    font-size: 14px;
    line-height: 1;
}

.biz-chevron-cat-btn {
    transition: transform 0.2s ease;
}

.biz-mnav-categories-btn[aria-expanded="true"] .biz-chevron-cat-btn {
    transform: rotate(180deg);
}

/* Menú Desplegable de Secciones del Comercio */
.biz-categories-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 18px 40px -4px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.04);
    min-width: 280px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1200;
}

.biz-categories-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.biz-cat-dropdown-header {
    padding: 6px 12px 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: #94a3b8;
    text-transform: uppercase;
}

.biz-cat-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 6px;
}

.biz-cat-drop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    border-radius: 7px;
    transition: background 0.15s ease, color 0.15s ease;
}

.biz-cat-drop-item:hover {
    background: var(--m-accent-subtle, #f8fafc);
    color: var(--m-accent, #0F172A);
}

.biz-cat-drop-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #F1F5F9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.biz-cat-drop-item:hover .biz-cat-drop-icon {
    transform: scale(1.08);
    background: var(--m-accent, #0F172A);
    color: #ffffff;
}

.biz-cat-drop-badge {
    margin-left: auto;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
    background: #F1F5F9;
    color: #475569;
    letter-spacing: 0.3px;
}

/* Enlaces Principales de Navegación — Tipografía Editorial Mayúscula Monocromática */
.biz-mnav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    height: auto;
}

.biz-mnav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    color: #334155 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    background: transparent !important;
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
    box-shadow: none !important;
    transform: none !important;
}

[data-theme="dark"] .biz-mnav-link {
    color: rgba(255, 255, 255, 0.88) !important;
}

.biz-mnav-link:hover {
    color: var(--biz-accent-color, var(--biz-brand-color, #2563EB)) !important;
    background: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 10%, transparent) !important;
}

/* Enlace Activo: Cápsula de Acento */
.biz-mnav-link.active {
    color: var(--biz-accent-color, var(--biz-brand-color, #2563EB)) !important;
    font-weight: 850 !important;
    background: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 12%, transparent) !important;
    border-color: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 30%, transparent) !important;
}

.biz-chevron-sub {
    color: #94A3B8;
    transition: transform 0.2s ease;
}

.biz-mnav-link:hover .biz-chevron-sub {
    color: var(--biz-accent-color, var(--biz-brand-color, #2563EB));
}

/* Badge Flotante "NUEVO" — Speech Bubble en Color de Acento */
.biz-has-hot-badge {
    position: relative;
}

.biz-hot-bubble {
    position: absolute;
    top: -7px;
    right: 6px;
    background: var(--biz-accent-color, var(--biz-brand-color, #2563EB));
    color: #FFFFFF;
    font-size: 8.5px;
    font-weight: 850;
    letter-spacing: 0.6px;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.1;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #000)) 30%, transparent);
    pointer-events: none;
    text-transform: uppercase;
    transition: top 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}

.biz-hot-bubble::after {
    content: '';
    position: absolute;
    bottom: -3.5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 3.5px 3.5px 0 3.5px;
    border-style: solid;
    border-color: var(--biz-accent-color, var(--biz-brand-color, #2563EB)) transparent transparent transparent;
}

/* Punto de Estado desactivado / oculto */
.biz-status-dot-mini,
.biz-dispatch-pulse-dot {
    display: none !important;
}

/* Enlaces y Menú Desplegable de Subpáginas */
.biz-mnav-subpage-link span {
    max-width: 230px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.biz-mnav-dropdown-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.biz-mnav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
}

.biz-mnav-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    background: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 15%, transparent);
    color: var(--biz-accent-color, var(--biz-brand-color, #2563EB));
}

.biz-mnav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 250px;
    max-width: 340px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
    padding: 6px;
    z-index: 1050;
    display: none;
    flex-direction: column;
    gap: 3px;
}

[data-theme="dark"] .biz-mnav-dropdown-menu {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.biz-mnav-dropdown-menu.is-open {
    display: flex;
    animation: bizDropFadeIn 0.18s ease-out;
}

@keyframes bizDropFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.biz-mnav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #1e293b;
    transition: background 0.15s ease, color 0.15s ease;
}

[data-theme="dark"] .biz-mnav-dropdown-item {
    color: #f1f5f9;
}

.biz-mnav-dropdown-item:hover {
    background: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 10%, transparent);
    color: var(--biz-accent-color, var(--biz-brand-color, #2563EB));
}

.biz-mnav-drop-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--biz-accent-color, var(--biz-brand-color, #2563EB)) 12%, transparent);
    color: var(--biz-accent-color, var(--biz-brand-color, #2563EB));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.biz-mnav-drop-texts {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.biz-mnav-drop-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.biz-mnav-drop-sub {
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="dark"] .biz-mnav-drop-sub {
    color: #94a3b8;
}

/* Enlaces Promo a la Derecha */
.biz-mnav-right-promo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.biz-mnav-promo-link {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748B;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 7px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

[data-theme="dark"] .biz-mnav-promo-link {
    color: rgba(255, 255, 255, 0.7);
}

.biz-mnav-promo-link:hover {
    color: #0F172A;
    background: #F1F5F9;
}

[data-theme="dark"] .biz-mnav-promo-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.biz-mnav-promo-highlight {
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #334155;
    text-decoration: none;
    padding: 6px 13px;
    border-radius: 7px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    transition: all 0.2s ease;
    white-space: nowrap;
}

[data-theme="dark"] .biz-mnav-promo-highlight {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.biz-mnav-promo-highlight:hover {
    color: #0F172A;
    background: #E2E8F0;
    border-color: #CBD5E1;
    transform: translateY(-1px);
}

[data-theme="dark"] .biz-mnav-promo-highlight:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.2);
}

/* Barra de Progreso de Lectura */
.biz-reading-progress-track {
    width: 100%;
    height: 3px;
    background: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

.biz-reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--m-accent, var(--biz-accent-color, var(--biz-brand-color, #2563EB)));
    transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (Tablets y Smartphones)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .biz-market-phone-box {
        display: none;
    }
}

@media (max-width: 992px) {
    .biz-market-search-area {
        max-width: none;
    }
    .biz-mnav-right-promo {
        display: none;
    }
    .biz-mmainbar-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 0;
    }
    .biz-market-search-area {
        order: 3;
        width: 100%;
        margin-top: 4px;
    }
    .biz-market-brand {
        order: 1;
        gap: 10px;
    }
    .biz-market-logo-wrap {
        width: 40px;
        height: 40px;
    }
    .biz-market-logo-img {
        max-height: 34px;
        max-width: 34px;
    }
    .biz-market-brand-name {
        font-size: 15px !important;
    }
    .biz-market-brand-cat {
        font-size: 10px !important;
    }
    .biz-market-actions {
        order: 2;
        margin-left: auto;
    }
    .biz-market-mobile-toggle {
        display: flex;
        order: 4;
    }
    
    .biz-market-navbar {
        display: none;
    }
    .biz-market-navbar.mobile-open {
        display: block;
        background: #ffffff;
        padding: 12px 0;
        border-bottom: 2px solid #e2e8f0;
    }
    .biz-mnavbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .biz-mnav-links {
        flex-direction: column;
        height: auto;
        align-items: stretch;
        gap: 4px;
    }
    .biz-mnav-link {
        padding: 10px 14px;
        border-radius: 6px;
        background: #f8fafc !important;
    }
    .biz-hot-bubble {
        top: 8px;
        right: 14px;
    }
    .biz-mnav-categories-btn {
        width: 100%;
        justify-content: space-between;
    }
    .biz-categories-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 8px;
        border: 1px solid #e2e8f0;
    }
    .biz-mnav-dropdown-wrap {
        width: 100%;
        display: block;
    }
    .biz-mnav-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    .biz-mnav-dropdown-menu {
        position: static;
        width: 100%;
        max-width: none;
        box-shadow: none;
        margin-top: 4px;
        border: 1px solid #e2e8f0;
    }
}

@media (max-width: 640px) {
    .biz-market-topbar {
        font-size: 11px;
    }
    .biz-mtopbar-inner {
        padding: 4px 0;
        justify-content: space-between;
    }
    .biz-mtopbar-right .biz-mtop-link:not(#bizPremenuFavsLink):not([data-action="open-schedule"]) {
        display: none;
    }
    .biz-market-cart-box {
        padding: 6px 14px;
        height: 42px;
    }
    .biz-mcart-sub {
        display: none;
    }
    .biz-msearch-scope-pill {
        display: none;
    }
    .biz-msearch-divider {
        display: none;
    }
    .biz-mtop-address {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
