/* =========================================================
   MIXMARKET · HEADER
   Un único componente para escritorio y móvil
   ========================================================= */

.mm-global-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid #3264ff;
    box-shadow: 0 3px 14px rgba(16, 24, 40, .06);
}

.mm-global-header,
.mm-global-header * {
    box-sizing: border-box;
}

.mm-global-header-inner {
    width: 100%;
    max-width: 1440px;
    min-height: 82px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
}

.mm-global-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.mm-global-logo span {
    display: inline-block;
    padding: 10px 17px;
    border-radius: 7px;
    background: #2613b5;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.mm-global-logo strong {
    color: #ffa733;
    font-weight: 800;
}

.mm-global-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(20px, 2.4vw, 38px);
}

.mm-global-nav a {
    min-width: 58px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    gap: 5px !important;
    color: #151515 !important;
    text-decoration: none !important;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600 !important;
    transition: color .18s ease, transform .18s ease;
}

.mm-global-nav a:hover {
    color: #2613b5 !important;
    transform: translateY(-1px);
}

.mm-global-nav strong {
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
}

.mm-global-label-short {
    display: none;
}

.mm-global-icon {
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    min-height: 29px !important;
    max-width: 29px !important;
    max-height: 29px !important;
    display: block !important;
    flex: 0 0 29px !important;
    margin: 0 auto !important;
    font-size: 0 !important;
    line-height: 0 !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 29px 29px !important;
}

.mm-icon-store {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232613b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-12A7 7 0 0 0 5 9c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E") !important;
}

.mm-icon-offers {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232613b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12l-8 8-9-9V4h7l10 8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E") !important;
}

.mm-icon-reviews {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232613b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.2 6.4 20.2 7.5 14 3 9.6l6.2-.9L12 3z'/%3E%3C/svg%3E") !important;
}

.mm-icon-account {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232613b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a5 5 0 0 1 5-5h6a5 5 0 0 1 5 5v2'/%3E%3C/svg%3E") !important;
}

/* =========================================================
   MÓVIL
   Logo y cuatro acciones visibles, sin JavaScript
   ========================================================= */

@media (max-width: 900px) {
    .mm-global-header {
        position: relative;
    }

    .mm-global-header-inner {
        min-height: 0;
        padding: 10px 8px 7px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .mm-global-logo span {
        padding: 8px 13px;
        border-radius: 6px;
        font-size: 25px;
        letter-spacing: -.8px;
    }

    .mm-global-nav {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: stretch;
        justify-content: stretch;
        gap: 3px;
        padding-top: 7px;
        border-top: 1px solid #eeecf5;
    }

    .mm-global-nav a {
        width: 100%;
        min-width: 0;
        min-height: 55px;
        padding: 4px 2px;
        gap: 4px !important;
        border-radius: 8px;
    }

    .mm-global-nav a:hover,
    .mm-global-nav a:focus {
        background: #f6f4ff;
        transform: none;
    }

    .mm-global-nav strong {
        max-width: 100%;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mm-global-label-full {
        display: none;
    }

    .mm-global-label-short {
        display: inline;
    }

    .mm-global-icon {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        max-width: 24px !important;
        max-height: 24px !important;
        flex-basis: 24px !important;
        background-size: 24px 24px !important;
    }
}

@media (max-width: 360px) {
    .mm-global-nav strong {
        font-size: 10px;
    }

    .mm-global-logo span {
        font-size: 23px;
    }
}
