/* ================================================================
   Modern Blue Theme — Header & Footer  (prefijo: mbt-)
   ================================================================ */

/* ----------------------------------------------------------------
   HEADER
   ---------------------------------------------------------------- */

.mbt-header {
    background: #1C2B3A;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 200;
    font-family: 'Barlow', sans-serif;
    /* reset TwentyTwentyFive block spacing */
    margin-block-start: 0 !important;
}

/* --- Logo --- */

.mbt-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.mbt-logo-diamonds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.mbt-logo-diamonds span {
    display: block;
    border-radius: 2px;
    transform: rotate(45deg);
    width: 10px;
    height: 10px;
}

.mbt-logo-diamonds .d1 { background: #7BBF3A; margin: 1px 0 0 3px; }
.mbt-logo-diamonds .d2 { background: #3A8FD4; margin: 1px 3px 0 0; }
.mbt-logo-diamonds .d3 { background: #C8D830; margin: 0 0 1px 3px; }
.mbt-logo-diamonds .d4 { background: #8A9BAA; margin: 0 3px 1px 0; }

.mbt-logo-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #fff;
    letter-spacing: .3px;
    line-height: 1;
    white-space: nowrap;
}

.mbt-logo-text small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #6A8099;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Barra de búsqueda --- */

.mbt-search {
    flex: 1;
    max-width: 460px;
    display: flex;
    align-items: center;
    background: #243447;
    border-radius: 6px;
    border: 1px solid #2F4260;
    overflow: hidden;
    height: 37px;
}

.mbt-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff !important;
    font-size: 13px;
    padding: 0 12px;
    flex: 1;
    min-width: 0;
    font-family: 'Barlow', sans-serif;
    box-shadow: none !important;
}

.mbt-search input::placeholder {
    color: #6A8099 !important;
    opacity: 1;
}

.mbt-search button {
    background: #3A8FD4;
    border: none;
    color: #fff;
    width: 37px;
    height: 37px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: background .15s;
    box-shadow: none;
}

.mbt-search button:hover { background: #2270AE; }

/* --- Botón toggle búsqueda mobile --- */

.mbt-search-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #A8BFCF;
    font-size: 20px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color .15s;
    align-items: center;
}

.mbt-search-toggle:hover,
.mbt-search-toggle.active { color: #fff; }

/* --- Panel búsqueda mobile --- */

.mbt-search-mobile {
    background: #1C2B3A;
    border-top: 1px solid #2F4260;
    display: flex;
    align-items: center;
    overflow: hidden;
    max-height: 0;
    padding: 0 16px;
    transition: max-height .2s ease, padding .2s ease;
    position: sticky;
    top: 58px;
    z-index: 199;
}

.mbt-search-mobile.mbt-search-open {
    max-height: 64px;
    padding: 11px 16px;
}

.mbt-search-mobile input {
    flex: 1;
    background: #243447;
    border: 1px solid #2F4260;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    color: #fff;
    font-size: 14px;
    padding: 0 14px;
    height: 42px;
    font-family: 'Barlow', sans-serif;
    min-width: 0;
    box-shadow: none;
}

.mbt-search-mobile input::placeholder {
    color: #6A8099;
    opacity: 1;
}

.mbt-search-mobile button {
    background: #3A8FD4;
    border: none;
    color: #fff;
    width: 44px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 0 6px 6px 0;
    flex-shrink: 0;
    transition: background .15s;
}

.mbt-search-mobile button:hover { background: #2270AE; }

/* --- Acciones del header --- */

.mbt-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.mbt-cart {
    position: relative;
    color: #A8BFCF;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.mbt-cart:hover { color: #fff; }

.mbt-cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #3A8FD4;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mbt-cart-badge[hidden] { display: none; }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */

.mbt-footer {
    background: #1C2B3A;
    border-top: 1px solid #2F4260;
    padding: 48px 20px 0;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    color: #D0E4F0;
    margin-block-start: 0 !important;
}

.mbt-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
}

.mbt-footer-brand .mbt-logo-text {
    font-size: 18px;
}

.mbt-footer-desc {
    margin: 12px 0 0;
    color: #6A8099;
    line-height: 1.65;
    font-size: 13px;
}

.mbt-footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6A8099;
    margin: 0 0 16px;
}

.mbt-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mbt-footer-list li {
    color: #D0E4F0;
    line-height: 1.45;
}

.mbt-footer-list a {
    color: #D0E4F0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color .15s;
}

.mbt-footer-list a:hover { color: #3A8FD4; }

.mbt-social-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mbt-footer-copy {
    border-top: 1px solid #2F4260;
    margin: 40px auto 0;
    padding: 20px 0 24px;
    text-align: center;
    color: #6A8099;
    font-size: 12px;
    max-width: 1140px;
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */

@media (max-width: 768px) {
    .mbt-search         { display: none; }
    .mbt-search-toggle  { display: flex; }
    .mbt-footer-grid    { grid-template-columns: 1fr; gap: 32px; }
}

/* ----------------------------------------------------------------
   BOTÓN FLOTANTE WHATSAPP
   ---------------------------------------------------------------- */

.mbt-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.mbt-whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.mbt-whatsapp-float svg {
    width: 32px;
    height: 32px;
}
