/* =========================================================
   IslaMarket - Header limpio y estable
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.is-site,
body.is-panel {
    overflow-x: hidden;
}

/* =========================================================
   Base
   ========================================================= */
.im-sitehead {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #dfe5ea;
}

    .im-sitehead .container {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 0 24px;
    }

.im-sitehead__top {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 58px;
}

.im-sitehead__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #111827;
    font-weight: 900;
    font-size: 18px;
    white-space: nowrap;
    flex: 0 0 auto;
}

    .im-sitehead__brand img {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: block;
        object-fit: contain;
    }

/* =========================================================
   Search normal (desktop / internas)
   ========================================================= */
.im-sitehead__search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 840px;
    margin: 0 auto;
}

    .im-sitehead__search input {
        width: 100%;
        height: 44px;
        border-radius: 999px;
        border: 1px solid #d6dde5;
        background: #fff;
        padding: 0 18px 0 46px;
        font-size: 15px;
        color: #111827;
        outline: none;
    }

.im-sitehead__searchIcon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .im-sitehead__searchIcon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

/* =========================================================
   Sticky search (solo home móvil)
   ========================================================= */
.im-sitehead__stickySearch {
    display: none;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    margin: 0;
}

    .im-sitehead__stickySearch input {
        width: 100%;
        height: 38px;
        border-radius: 999px;
        border: 1px solid #d6dde5;
        background: #fff;
        padding: 0 14px 0 38px;
        font-size: 14px;
        color: #111827;
        outline: none;
    }

.im-sitehead__stickySearchIcon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

    .im-sitehead__stickySearchIcon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

/* =========================================================
   User nav
   ========================================================= */
.im-sitehead__usernav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 auto;
}

.im-sitehead__iconlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    text-decoration: none;
    color: inherit;
}

    .im-sitehead__iconlink:hover {
        color: #00a884;
    }

.im-sitehead__icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    color: currentColor;
}

    .im-sitehead__icon svg {
        width: 32px;
        height: 32px;
        display: block;
    }

.im-sitehead__authcta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid #2563eb;
    background: #fff;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.im-sitehead__sell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    border: 0;
}

.im-sitehead__sellIcon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .im-sitehead__sellIcon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.im-sitehead__mobilemenu {
    display: none;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
}

    .im-sitehead__mobilemenu svg {
        width: 22px;
        height: 22px;
        display: block;
    }

/* ajuste fino por icono */
.im-sitehead__iconlink[href="/favoritos"] .im-sitehead__icon svg {
    transform: translateY(2px);
}

.im-sitehead__iconlink[href="/buzon"] .im-sitehead__icon svg {
    transform: translateY(0);
}

/* =========================================================
   Bottom bar
   ========================================================= */
.im-sitehead__bottom {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 44px;
    background: #fff;
    border-top: 1px solid #eef2f6;
    padding: 0 24px;
    margin-left: -24px;
    margin-right: -24px;
}

.im-catbar__menuBtn {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    cursor: pointer;
    padding: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.im-catbar__burger {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
}

    .im-catbar__burger svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.im-catbar__links {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
    flex: 1 1 auto;
}

    .im-catbar__links::-webkit-scrollbar {
        display: none;
    }

.im-catbar__link {
    white-space: nowrap;
    color: #1f2937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

/* =========================================================
   Mobile search vieja / drawer
   ========================================================= */
.im-sitehead__mobileSearch {
    display: none;
}

.im-catbar__logoBtn {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #14b8a6;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: hidden;
}

    .im-catbar__logoBtn img {
        width: 22px;
        height: 22px;
        object-fit: contain;
        display: block;
    }

.im-catbar__search {
    flex: 1;
    position: relative;
    min-width: 0;
}

    .im-catbar__search input {
        width: 100%;
        height: 44px;
        border-radius: 999px;
        border: 1px solid #d5dde6;
        background: #fff;
        padding: 0 18px 0 44px;
        font-size: 15px;
        outline: none;
        color: #111827;
    }

.im-catbar__searchIcon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #1f2937;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .im-catbar__searchIcon svg {
        width: 100%;
        height: 100%;
        display: block;
    }

.im-catbar__gridBtn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.im-grid-icon {
    width: 18px;
    height: 18px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 3px;
}

    .im-grid-icon span {
        display: block;
        width: 100%;
        height: 100%;
        border: 1.8px solid #1f2937;
        border-radius: 3px;
    }

/* =========================================================
   Drawer
   ========================================================= */
.im-catdrawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

    .im-catdrawer.is-open {
        pointer-events: auto;
    }

.im-catdrawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .38);
    opacity: 0;
    transition: opacity .2s ease;
}

.im-catdrawer.is-open .im-catdrawer__backdrop {
    opacity: 1;
}

.im-catdrawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, 500px);
    height: 100%;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .18);
    transform: translateX(-100%);
    transition: transform .22s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.im-catdrawer.is-open .im-catdrawer__panel {
    transform: translateX(0);
}

.im-catdrawer__top {
    padding: 10px 12px 0;
    border-bottom: 1px solid #eceff3;
}



.im-catdrawer__close {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: #1f2937;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.im-catdrawer__body {
    overflow: auto;
    padding: 18px 0 26px;
}

.im-catdrawer__section {
    padding: 0 20px 18px;
}

.im-catdrawer__title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 800;
    color: #26323d;
}

.im-catdrawer__list {
    display: grid;
}

.im-catdrawer__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 0;
    border-bottom: 1px solid #e6edf3;
    text-decoration: none;
    color: #26323d;
    font-size: 15px;
    font-weight: 500;
}

.im-catdrawer__arrow {
    color: #6b7280;
    font-size: 22px;
    line-height: 1;
}

/* =========================================================
   Main spacing
   ========================================================= */
body.is-site main.container,
body.is-panel main.container {
    padding-top: 16px;
}

/* =========================================================
   Favoritos / badges
   ========================================================= */
.im-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff2d55;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #111;
}

.im-tab-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ff2d55;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #111;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

.im-badge.bump {
    animation: imFavBump .35s ease;
}

@keyframes imFavBump {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.35);
    }

    70% {
        transform: scale(.92);
    }

    100% {
        transform: scale(1);
    }
}

.im-ico-has-badge {
    position: relative;
}

/* =========================================================
   Hide old system
   ========================================================= */
body.is-site .topbar,
body.is-site .nav-backdrop,
body.is-site .navrow,
body.is-site .navlinks,
body.is-site .burger,
body.is-panel .topbar,
body.is-panel .nav-backdrop,
body.is-panel .navrow,
body.is-panel .navlinks,
body.is-panel .burger {
    display: none !important;
}

/* =========================================================
   Responsive medium
   ========================================================= */
@media (max-width: 1180px) {
    .im-sitehead .container {
        padding: 0 18px;
    }

    .im-sitehead__bottom {
        padding: 0 18px;
        margin-left: -18px;
        margin-right: -18px;
    }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 901px) {
    .im-sitehead__mobilemenu,
    .im-sitehead__loginmini,
    .im-sitehead__stickySearch,
    .im-mobile-searchbar {
        display: none !important;
    }

    .im-sitehead__search {
        display: block !important;
    }
}

/* =========================================================
   Mobile <= 900
   ========================================================= */
.im-mobile-searchbar {
    display: none;
}

@media (max-width: 900px) {
    .im-sitehead .container {
        padding: 0 !important;
    }

    .im-sitehead__top,
    .im-sitehead__bottom,
    .im-sitehead__mobileSearch {
        display: none !important;
    }

    .im-mobile-searchbar {
        display: grid;
        grid-template-columns: 32px minmax(0,1fr) 24px 24px;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        background: #fff;
        border-bottom: 1px solid #dfe6eb;
    }

    .im-mobile-searchbar__logo {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

        .im-mobile-searchbar__logo img {
            width: 100px;
            height: 50px;
            object-fit: contain;
            display: block;
        }

    .im-mobile-searchbar__form {
        position: relative;
        min-width: 0;
    }

        .im-mobile-searchbar__form input {
            width: 100%;
            height: 38px;
            border: 1.5px solid #93a5b1;
            border-radius: 999px;
            background: #fbfcfd;
            padding: 0 14px 0 38px;
            font-size: 14px;
            color: #24323a;
            outline: none;
        }

    .im-mobile-searchbar__icon {
        position: absolute;
        top: 50%;
        left: 12px;
        width: 16px;
        height: 16px;
        transform: translateY(-50%);
        color: #70848f;
        pointer-events: none;
    }

        .im-mobile-searchbar__icon svg {
            width: 16px;
            height: 16px;
            display: block;
        }

    .im-mobile-searchbar__user,
    .im-mobile-searchbar__grid {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1f2937;
        background: none;
        border: 0;
        padding: 0;
        text-decoration: none;
    }

        .im-mobile-searchbar__user svg,
        .im-mobile-searchbar__grid svg {
            width: 22px;
            height: 22px;
            display: block;
        }

    body.is-site main.container,
    body.is-panel main.container {
        padding-top: 8px !important;
    }
}

@media (max-width: 900px) {
    .im-mobile-topbar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        width: calc(100% + 24px);
        margin: 0 -12px 12px;
        background: #fff;
        border-top: 1px solid #dfe6eb;
        border-bottom: 1px solid #dfe6eb;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: hidden;
    }

    .im-mobile-topbar__btn {
        height: 42px;
        padding: 0 10px;
        margin: 0;
        border: 0;
        border-radius: 0 !important;
        background: #fff;
        color: #1f2937;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 700;
        line-height: 1;
        box-shadow: none !important;
        appearance: none;
        -webkit-appearance: none;
    }

        .im-mobile-topbar__btn + .im-mobile-topbar__btn {
            border-left: 1px solid #dfe6eb;
        }

    .im-mobile-topbar__btnicon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        color: #1f2937;
        flex: 0 0 16px;
    }

        .im-mobile-topbar__btnicon svg {
            width: 16px;
            height: 16px;
            display: block;
        }

    .im-search-main {
        padding-top: 0 !important;
    }

    .im-results-head {
        margin-top: 8px !important;
        padding: 0 0 4px !important;
    }

    .im-results-card {
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }
}

@media (max-width: 900px) {
    main.container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .im-search-page,
    .im-search-main,
    .im-results-card {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .im-mobile-topbar {
        width: 100% !important;
        margin: 0 0 12px !important;
        border-radius: 0 !important;
    }
}

@media (max-width: 900px) {
    .im-mobile-topbar--header {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        margin: 0;
        background: #fff;
        border-top: 1px solid #dfe6eb;
        border-bottom: 1px solid #dfe6eb;
    }

        .im-mobile-topbar--header .im-mobile-topbar__btn {
            height: 42px;
            padding: 0 10px;
            border: 0;
            background: #fff;
            color: #1f2937;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 700;
        }

            .im-mobile-topbar--header .im-mobile-topbar__btn + .im-mobile-topbar__btn {
                border-left: 1px solid #dfe6eb;
            }

        .im-mobile-topbar--header .im-mobile-topbar__btnicon {
            width: 16px;
            height: 16px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #1f2937;
        }

            .im-mobile-topbar--header .im-mobile-topbar__btnicon svg {
                width: 16px;
                height: 16px;
                display: block;
            }

    .im-search-main {
        padding-top: 0 !important;
    }
}

@media (max-width: 900px) {
    .im-mobile-topbar--header {
        border-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .im-search-main {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .im-results-head {
        margin-top: 0 !important;
        padding-top: 8px !important;
    }

    .im-search-page,
    .im-search-main,
    .im-results-card {
        border-top: 0 !important;
        box-shadow: none !important;
    }
}

.im-mobile-topbar__btn,
.im-mobile-topbar__btn * {
    cursor: pointer;
}

/* =========================================================
   Mobile sort
   ========================================================= */
.im-mobile-sort {
    position: fixed;
    inset: 0;
    z-index: 1300;
    pointer-events: none;
}

    .im-mobile-sort.is-open {
        pointer-events: auto;
    }

.im-mobile-sort__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    transition: opacity .2s;
}

.im-mobile-sort.is-open .im-mobile-sort__backdrop {
    opacity: 1;
}

.im-mobile-sort__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
    transition: transform .25s;
    padding: 18px 16px 30px;
}

.im-mobile-sort.is-open .im-mobile-sort__panel {
    transform: translateY(0);
}

.im-mobile-sort__head {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
}

.im-mobile-sort__item {
    display: block;
    padding: 14px 0;
    border-top: 1px solid #e5e7eb;
    text-decoration: none;
    color: #111827;
    font-size: 15px;
}

    .im-mobile-sort__item:first-child {
        border-top: 0;
    }

/* =========================================================
   Mobile filters - general
   ========================================================= */
.im-mobile-filters__panel {
    position: relative;
    width: 100%;
    height: 100dvh;
    background: #eef2f4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.im-mobile-filters-screen {
    position: absolute;
    inset: 0;
    background: #eef2f4;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .22s ease, opacity .22s ease;
    display: flex;
    flex-direction: column;
}

    .im-mobile-filters-screen.is-active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

.im-mobile-filters__head {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 0 10px;
    background: #fff;
    border-bottom: 1px solid #d9e2e8;
}

    .im-mobile-filters__head strong {
        font-size: 18px;
        font-weight: 800;
        color: #12212f;
    }

.im-mobile-filters__head--sub {
    grid-template-columns: 40px 1fr;
}

.im-mobile-filters__close,
.im-mobile-filters__back {
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    color: #1f2937;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.im-mobile-filters__clear {
    color: #00a884;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.im-mobile-filters__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
    background: #eef2f4;
}

.im-mobile-filter-row {
    width: 100%;
    border: 0;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 12px;
    text-align: left;
    border-bottom: 1px solid #d8e0e6;
    cursor: pointer;
}

.im-mobile-filter-row__label {
    font-size: 14px;
    font-weight: 500;
    color: #162433;
}

.im-mobile-filter-row__value {
    font-size: 14px;
    color: #6a7f90;
    text-align: right;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.im-mobile-filter-row__arrow {
    font-size: 20px;
    color: #4a5966;
    line-height: 1;
}

.im-mobile-filter-sep {
    height: 18px;
    background: #eef2f4;
    border-top: 1px solid #e4eaee;
    border-bottom: 1px solid #e4eaee;
}

.im-mobile-filters__foot {
    padding: 10px;
    background: #eef2f4;
    border-top: 1px solid #dce5ea;
}

.im-mobile-filters__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    background: #35c8b3;
    color: #08302d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
}

/* =========================================================
   Mobile category
   ========================================================= */
.im-mobile-category-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    flex: 1;
    overflow: auto;
}

.im-mobile-category-item {
    min-height: 46px;
    padding: 0 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #d8e0e6;
    text-decoration: none;
    color: #162433;
    background: #fff;
}

.im-mobile-category-item__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .im-mobile-category-item__left span:last-child {
        font-size: 14px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.im-mobile-category-item__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #425466;
}

    .im-mobile-category-item__icon svg {
        width: 20px;
        height: 20px;
    }

.im-mobile-category-item__arrow {
    font-size: 20px;
    color: #5f7485;
}

.im-mobile-category-item__check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #8ea3b2;
    display: block;
    box-sizing: border-box;
}

.im-mobile-category-item.is-selected .im-mobile-category-item__check {
    border-color: #2f414d;
    box-shadow: inset 0 0 0 4px #2f414d;
}

/* =========================================================
   Mobile filters - precio
   ========================================================= */
.im-mobile-filters-screen[data-filter-screen="price"] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    min-height: 100dvh;
}

.im-mobile-filters-subheader {
    height: 54px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border-bottom: 1px solid #e7ebee;
    flex: 0 0 54px;
}

.im-mobile-filters-back {
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #24323a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    flex: 0 0 32px;
}

    .im-mobile-filters-back svg {
        width: 20px;
        height: 20px;
        display: block;
    }

.im-mobile-filters-subheader-title {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: #17212b;
    line-height: 1;
}

.im-mobile-filters-clear {
    border: 0;
    background: transparent;
    color: #00a884;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
}

.im-mobile-price-form {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.im-mobile-price-screen {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 10px 12px;
}

.im-mobile-price-card {
    background: transparent;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

.im-mobile-price-values {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    color: #17212b;
    margin-bottom: 10px;
}


.im-mobile-price-range-wrap {
    position: relative;
    height: 36px;
    margin-bottom: 8px;
    padding: 0 12px;
}

.im-mobile-price-slider-ui {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    height: 36px;
    pointer-events: none;
}

.im-mobile-price-slider-rail {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 5px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #cfd8df;
}

.im-mobile-price-slider-fill {
    position: absolute;
    top: 50%;
    height: 5px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #0d6f73;
    left: 0;
    width: 100%;
}

.im-mobile-price-slider-thumb {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #0d6f73;
    border: 5px solid #fff;
    box-shadow: 0 0 0 1px #0d6f73;
    pointer-events: auto;
    cursor: pointer;
}

.im-mobile-price-range {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 0;
    width: calc(100% - 24px);
    height: 36px;
    margin: 0;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    outline: none;
    inset: 0;
    pointer-events: none;
}

.im-mobile-price-range--min {
    z-index: 3;
}

.im-mobile-price-range--max {
    z-index: 4;
}


    

.im-mobile-price-footer {
    flex: 0 0 auto;
    padding: 10px 10px calc(84px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, #f5f5f5 80%, rgba(245,245,245,0));
}

.im-mobile-price-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #48cdbb;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-shadow: none;
}

.im-mobile-price-footer,
.im-mobile-price-apply {
    visibility: visible;
    opacity: 1;
}

.im-mobile-filters-screen[data-filter-screen="price"] button {
    box-shadow: none;
    outline: none;
}
/* ===== LOGO MÓVIL REAL ===== */
@media (max-width: 900px) {
    .im-mobile-searchbar {
        grid-template-columns: 56px minmax(0,1fr) 24px 24px !important;
        gap: 8px !important;
        padding: 8px 6px !important;
        align-items: center !important;
    }

    .im-mobile-searchbar__logo {
        width: 60px !important;
        height: 60px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        justify-self: center !important; /* 🔥 esto lo centra en la celda */
        align-self: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        .im-mobile-searchbar__logo img {
            width: 100px !important;
            height: 60px !important;
            display: block !important;
            object-fit: contain !important;
            margin: 0 !important;
            padding: 0 !important;
        }
}

/* ===== LOGO BOTÓN CATBAR: RECORTE LIMPIO ===== */
    .im-catbar__logoBtn,
    .im-catbar__logoBtn * {
        background: transparent !important;
    }
/* ===== LOGO CATBAR FINAL ===== */
/* ===== LOGO CATBAR FINAL ===== */
.im-catbar__mobile--drawer {
    display: flex !important;
    align-items: center !important;
    height: 56px !important; /* 🔥 fuerza altura uniforme */
}

.im-catbar__logoBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
}

    .im-catbar__logoBtn img {
        width: 54px !important;
        height: 54px !important;
        object-fit: cover !important;
        object-position: center center !important; /* 🔥 FIX */
    }
/* =========================================================
   LEGAL PAGE — IslaMarket
   ========================================================= */

.im-legal-page {
    --im-legal-text: #0f172a;
    --im-legal-muted: #475569;
    --im-legal-line: rgba(15, 23, 42, 0.10);
    --im-legal-card: rgba(255,255,255,0.94);
    --im-legal-bg: radial-gradient(circle at 8% 10%, rgba(56, 189, 248, 0.08), transparent 24%), radial-gradient(circle at 92% 8%, rgba(59, 130, 246, 0.07), transparent 20%), linear-gradient(180deg, #f8fbff 0%, #ffffff 34%, #f8fafc 100%);
    --im-legal-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
    position: relative;
    width: 100%;
    padding: 34px 18px 56px;

    color: var(--im-legal-text);
    box-sizing: border-box;
}

.im-legal-wrap {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

/* =========================
   HERO
   ========================= */

.im-legal-hero {
    margin-bottom: 22px;
}

.im-legal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(59, 130, 246, 0.16);
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}

.im-legal-hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 900;
    color: #0f172a;
}

.im-legal-hero p {
    margin: 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.65;
    color: var(--im-legal-muted);
}

/* =========================
   CARD / PROSE
   ========================= */

.im-legal-card {
    background: var(--im-legal-card);
    border: 1px solid var(--im-legal-line);
    border-radius: 28px;
    box-shadow: var(--im-legal-shadow);
    padding: 34px 38px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.im-legal-prose {
    font-family: Inter, "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    color: var(--im-legal-text);
}

    .im-legal-prose > *:first-child {
        margin-top: 0;
    }

    .im-legal-prose > *:last-child {
        margin-bottom: 0;
    }

    .im-legal-prose h2 {
        margin: 34px 0 14px;
        font-size: clamp(24px, 2.6vw, 32px);
        line-height: 1.15;
        letter-spacing: -0.03em;
        font-weight: 900;
        color: #0f172a;
    }

    .im-legal-prose h3 {
        margin: 26px 0 12px;
        font-size: 20px;
        line-height: 1.2;
        font-weight: 800;
        color: #0f172a;
    }

    .im-legal-prose p {
        margin: 0 0 18px;
        font-size: 17px;
        line-height: 1.78;
        color: #334155;
    }

    .im-legal-prose strong {
        color: #0f172a;
        font-weight: 900;
    }

    .im-legal-prose a {
        color: #2563eb;
        text-decoration: none;
        word-break: break-word;
    }

        .im-legal-prose a:hover {
            text-decoration: underline;
        }

    .im-legal-prose ul,
    .im-legal-prose ol {
        margin: 0 0 20px;
        padding-left: 22px;
    }

    .im-legal-prose li {
        margin: 0 0 10px;
        font-size: 17px;
        line-height: 1.72;
        color: #334155;
    }

    .im-legal-prose hr {
        margin: 30px 0;
        border: 0;
        height: 1px;
        background: linear-gradient( 90deg, rgba(59,130,246,0) 0%, rgba(148,163,184,.55) 18%, rgba(148,163,184,.55) 82%, rgba(59,130,246,0) 100% );
    }

    /* bloques tipo ficha */
    .im-legal-prose p:has(br) {
        padding: 18px 20px;
        border-radius: 18px;
        background: rgba(248, 250, 252, 0.88);
        border: 1px solid rgba(148, 163, 184, 0.18);
    }

    /* evita desbordes feos */
    .im-legal-prose,
    .im-legal-prose * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
    .im-legal-page {
        padding: 18px 12px 34px;
    }

    .im-legal-hero {
        margin-bottom: 16px;
    }

    .im-legal-kicker {
        min-height: 30px;
        padding: 0 12px;
        font-size: 12px;
    }

    .im-legal-hero h1 {
        margin: 12px 0 8px;
        font-size: 34px;
        line-height: 1.02;
    }

    .im-legal-hero p {
        font-size: 15px;
        line-height: 1.6;
    }

    .im-legal-card {
        border-radius: 20px;
        padding: 20px 16px;
    }

    .im-legal-prose h2 {
        margin: 24px 0 12px;
        font-size: 26px;
        line-height: 1.15;
    }

    .im-legal-prose h3 {
        margin: 20px 0 10px;
        font-size: 18px;
    }

    .im-legal-prose p,
    .im-legal-prose li {
        font-size: 15px;
        line-height: 1.68;
    }

    .im-legal-prose ul,
    .im-legal-prose ol {
        padding-left: 18px;
    }

    .im-legal-prose p:has(br) {
        padding: 14px 14px;
        border-radius: 14px;
    }

    .im-legal-prose hr {
        margin: 22px 0;
    }
}

@media (max-width: 480px) {
    .im-legal-page {
        padding: 14px 10px 28px;
    }

    .im-legal-card {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .im-legal-hero h1 {
        font-size: 30px;
    }

    .im-legal-prose h2 {
        font-size: 23px;
    }

    .im-legal-prose p,
    .im-legal-prose li {
        font-size: 14px;
        line-height: 1.62;
    }
}
