@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap');
/* Parcharse — brand overrides on top of Mobilekit */
:root {
    --brand: #E11D48;
    --brand-dark: #BE123C;
    --brand-soft: #FDE7EE;
}

.bg-primary {
    background-color: var(--brand) !important;
}
.btn-primary {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-dark) !important;
    border-color: var(--brand-dark) !important;
}
.text-primary {
    color: var(--brand) !important;
}
.badge-primary {
    background-color: var(--brand) !important;
}
.chip-primary {
    background-color: var(--brand) !important;
}
.chip.chip-outline.chip-primary {
    border: 1px solid var(--brand) !important;
    color: var(--brand) !important;
    background: transparent !important;
}
.chip-icon.bg-primary {
    background-color: var(--brand) !important;
}
.icon-box.bg-primary {
    background-color: var(--brand) !important;
}
.form-check-input:checked {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
}
.stepper-button {
    color: var(--brand) !important;
}
.rate-block ion-icon.active {
    color: var(--brand) !important;
}
.spinner-border.text-primary {
    color: var(--brand) !important;
}

/* Verified badge */
.verified-pill {
    background: #16a34a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.verified-pill ion-icon {
    font-size: 12px;
}

/* Listing card */
.listing-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
}
.listing-card .card-img {
    position: relative;
    aspect-ratio: 3/4;
    background: #e5e7eb;
    overflow: hidden;
}
.listing-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-card .badge-live {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
}
.listing-card .badge-verified {
    position: absolute;
    top: 8px;
    right: 8px;
}
.listing-card .card-info {
    padding: 8px 10px 10px;
}
.listing-card .card-info .name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.listing-card .card-info .meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.listing-card .card-info .price {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    margin-top: 3px;
}

/* Category chips horizontal scroll */
.category-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 8px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar {
    display: none;
}
.category-scroll .chip {
    flex: 0 0 auto;
}

/* Grid */
.listing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Header logo */
.header-logo {
    height: 30px;
    width: auto;
    display: block;
}

/* Bottom menu labels */
.appBottomMenu .label {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    margin-top: 2px;
    opacity: .8;
}

/* Sticky CTA on detail */
.sticky-cta {
    position: sticky;
    bottom: 0;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 -3px 12px rgba(0,0,0,.08);
    display: flex;
    gap: 10px;
}

/* ===== Listing card (corrected: matches listing-thumb/listing-body markup) ===== */
.listing-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,.06);
}
.listing-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    background: #e5e7eb;
    overflow: hidden;
    display: block;
}
.listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.listing-thumb .badge-live {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 10px;
    z-index: 2;
}
.listing-thumb .badge-verified {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}
.listing-body {
    padding: 10px 12px 12px;
    border-top: 1px solid #f1f1f3;
    background: #fff;
}
.listing-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.listing-age {
    font-weight: 600;
    color: #6b7280;
    margin-left: 2px;
}
.listing-meta {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.listing-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    margin-top: 5px;
}
.listing-rating {
    margin-top: 3px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== Text logo (Montserrat Bold) ===== */
.brand-logo-text {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    white-space: nowrap;
}
.header-logo-text {
    color: #fff;
    font-size: 20px;
}
.footer-logo-text {
    color: #E11D48;
    font-size: 14px;
}
.login-logo-text {
    color: #E11D48;
    font-size: 28px;
    display: inline-block;
}


/* Parcharse - Lazy-load progresivo (patron Duo) */
.preload-img { transition: opacity .4s ease; }
.preload-img.loading { opacity: 0; }
.preload-img.loaded { opacity: 1; }
.preload-img.error { opacity: 1; }

/* ===== Sidebar (menú desplegable) — Parcharse ===== */
#sidebarPanel {
    background: var(--brand);
}
#sidebarPanel .offcanvas-body {
    margin-top: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.lmy-sidebar {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    background: #fff;
}
body.dark-mode-active .lmy-sidebar {
    background: #0F1C2F;
}

/* Cabecera + perfil */
.lmy-sidebar-top {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    padding-bottom: 18px;
}
.lmy-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 14px 16px;
}
.lmy-sidebar-head .brand-logo-text {
    color: #fff;
    font-size: 19px;
}
.lmy-sidebar-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
}
.lmy-sidebar-close:active {
    background: rgba(255,255,255,.34);
}
.lmy-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}
.lmy-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,.22);
}
.lmy-avatar ion-icon {
    font-size: 24px;
}
.lmy-profile-info {
    min-width: 0;
}
.lmy-profile-info strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lmy-profile-info span {
    display: block;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menú */
.lmy-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.lmy-menu > li {
    padding: 0 12px;
    margin: 3px 0;
}
.lmy-menu > li > a,
.lmy-menu > li > .lmy-dark-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #141515;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.lmy-menu > li > a:hover,
.lmy-menu > li > a:active {
    background: var(--brand-soft);
    color: var(--brand);
}
.lmy-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}
.lmy-menu > li > a:hover .lmy-icon,
.lmy-menu > li > a:active .lmy-icon {
    background: var(--brand);
    color: #fff;
}
.lmy-dark-item .lmy-dark-label {
    flex: 1;
}
.lmy-switch {
    margin: 0 0 0 auto;
    padding-left: 2.5em;
}
.lmy-switch .form-check-input {
    cursor: pointer;
}
.lmy-menu > li > .lmy-dark-item {
    color: #141515;
}

/* Modo oscuro del menú */
body.dark-mode-active .lmy-menu > li > a,
body.dark-mode-active .lmy-menu > li > .lmy-dark-item {
    color: #e5e7eb;
}
body.dark-mode-active .lmy-menu > li > a:hover,
body.dark-mode-active .lmy-menu > li > a:active {
    background: rgba(225,29,72,.16);
    color: #fda4af;
}
body.dark-mode-active .lmy-icon {
    background: #1f2a3c;
    color: #9ca3af;
}
body.dark-mode-active .lmy-menu > li > a:hover .lmy-icon,
body.dark-mode-active .lmy-menu > li > a:active .lmy-icon {
    background: var(--brand);
    color: #fff;
}

/* Acciones */
.lmy-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #f1f1f3;
    flex-shrink: 0;
}
body.dark-mode-active .lmy-sidebar-actions {
    border-top-color: #1f2a3c;
}
.lmy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    width: 100%;
}
.lmy-btn ion-icon {
    font-size: 18px;
}
.lmy-btn-primary {
    background: var(--brand);
    color: #fff;
}
.lmy-btn-primary:active {
    background: var(--brand-dark);
}
.lmy-btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}
.lmy-btn-logout {
    background: transparent;
    color: #dc2626;
    border: 1.5px solid #dc2626;
}
.lmy-logout {
    margin: 0;
}

