/* =====================================================================================
   NegocioDetalle.css — Modern Premium Design (AISLADO por #tmNegocioDetalle)
   Inspirado en: Stripe, Linear, Vercel — Bento Style
   ===================================================================================== */

/* ══════════════════════════════════════════
   CSS TOKENS
══════════════════════════════════════════ */
#tmNegocioDetalle {
    --tm-primary: var(--accent-primary);
    --tm-primary-2: #0369a1;
    --tm-card: var(--bg-surface);
    --tm-text: #1f2937;
    --tm-muted: #6b7280;
    --tm-border: rgba(0,0,0,.06);
    /* Hero Premium Colors */
    --hero-bg: #0a0f1a;
    --hero-surface: rgba(15, 23, 42, 0.8);
    --hero-border: rgba(56, 189, 248, 0.15);
    --hero-glow: rgba(14, 165, 233, 0.4);
    --hero-accent-1: #0ea5e9;
    --hero-accent-2: #38bdf8;
    --hero-accent-3: #06b6d4;
    --hero-text: #f1f5f9;
    --hero-text-muted: rgba(148, 163, 184, 0.9);
    /* Transition tokens */
    --tm-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --tm-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ══════════════════════════════════════════
   PREMIUM RESTRICTIONS SYMBOLS
   ══════════════════════════════════════════ */
.premium-locked {
    position: relative !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    filter: grayscale(0.4);
    transition: all 0.3s ease;
}

.crown-lock {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    width: 22px !important;
    height: 22px !important;
    background: linear-gradient(135deg, #FFD700, #B8860B);
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.4) !important;
    z-index: 100 !important;
    border: 1.5px solid #fff !important;
    animation: crown-float 2s ease-in-out infinite;
    pointer-events: none; /* Let clicks pass through if needed */
}

@keyframes crown-float {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-3px) rotate(-5deg); }
}

/* No Plan Warning Card */
.no-plan-warning-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(251, 191, 36, 0.15);
}

.no-plan-warning-icon {
    width: 50px;
    height: 50px;
    background: #fbbf24;
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.no-plan-warning-body {
    flex: 1;
}

.no-plan-warning-title {
    font-weight: 800;
    color: #92400e;
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.no-plan-warning-text {
    color: #b45309;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.no-plan-warning-btn {
    background: #92400e;
    color: #fff !important;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.no-plan-warning-btn:hover {
    background: #78350f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.2);
}

    /* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
    #tmNegocioDetalle .nd-breadcrumb {
        display: flex;
        align-items: center;
        gap: .4rem;
        margin-bottom: 1.1rem;
        flex-wrap: wrap;
    }

    #tmNegocioDetalle .nd-bc-link {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        font-size: .78rem;
        font-weight: 600;
        color: var(--text-muted);
        text-decoration: none;
        transition: color .15s;
        padding: .2rem 0;
        min-height: 32px; /* touch target */
    }

        #tmNegocioDetalle .nd-bc-link i {
            font-size: .68rem;
        }

        #tmNegocioDetalle .nd-bc-link:hover {
            color: var(--accent-primary);
        }

        #tmNegocioDetalle .nd-bc-link:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
            border-radius: 4px;
        }

    #tmNegocioDetalle .nd-bc-sep {
        font-size: .55rem;
        color: var(--text-muted);
        opacity: .4;
    }

    #tmNegocioDetalle .nd-bc-current {
        font-size: .78rem;
        font-weight: 700;
        color: var(--accent-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    /* ══════════════════════════════════════════
   HERO — Premium Bento Design
══════════════════════════════════════════ */
    #tmNegocioDetalle .tm-hero-home {
        position: relative;
        border-radius: 28px;
        background: radial-gradient(ellipse 100% 80% at 0% 100%, rgba(6, 182, 212, 0.12) 0%, transparent 50%), radial-gradient(ellipse 80% 60% at 100% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 50%), radial-gradient(ellipse 50% 50% at 50% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 70%), linear-gradient(145deg, #0c1929 0%, #0f172a 40%, #0a1628 100%);
        color: var(--hero-text);
        overflow: hidden;
        margin-bottom: 1.75rem;
        padding: 0;
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.1), 0 4px 16px rgba(0, 0, 0, 0.2), 0 24px 48px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

        /* Ambient glow */
        #tmNegocioDetalle .tm-hero-home::before {
            content: '';
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%);
            border-radius: 50%;
            top: -300px;
            right: -200px;
            pointer-events: none;
            opacity: 0.3;
            filter: blur(80px);
            animation: nd-glow-pulse 8s ease-in-out infinite;
            will-change: opacity, transform;
        }

        #tmNegocioDetalle .tm-hero-home::after {
            content: '';
            position: absolute;
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
            border-radius: 50%;
            bottom: -200px;
            left: -100px;
            pointer-events: none;
            opacity: 0.25;
            filter: blur(60px);
            animation: nd-glow-pulse 10s ease-in-out infinite reverse;
            will-change: opacity, transform;
        }

@keyframes nd-glow-pulse {
    0%, 100% {
        opacity: 0.25;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

/* Noise texture overlay */
#tmNegocioDetalle .tm-hero-home > .row::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Hero content wrapper */
#tmNegocioDetalle .tm-hero-wrap {
    position: relative;
    z-index: 2;
    padding: 2.25rem 2.5rem;
}

/* ── Location Badge (Eyebrow) ── */
#tmNegocioDetalle .tm-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--hero-accent-2);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .45rem 1.1rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all .3s var(--tm-ease);
    width: fit-content;
}

    #tmNegocioDetalle .tm-hero-eyebrow i {
        font-size: .68rem;
        color: var(--hero-accent-2);
        filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.5));
    }

/* ── Title ── */
#tmNegocioDetalle .tm-hero-title {
    font-size: clamp(1.85rem, 4.5vw, 2.8rem);
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 1rem;
    letter-spacing: -.04em;
    line-height: 1.08;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Info Chips ── */
#tmNegocioDetalle .tm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-bottom: 1.5rem;
}

#tmNegocioDetalle .tm-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.12);
    color: var(--hero-text-muted);
    font-size: .78rem;
    font-weight: 600;
    padding: .5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    transition: all .25s var(--tm-ease);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

    #tmNegocioDetalle .tm-chip i {
        font-size: .72rem;
        color: var(--hero-accent-2);
        filter: drop-shadow(0 0 3px rgba(56, 189, 248, 0.4));
    }

    /* Star rating chip */
    #tmNegocioDetalle .tm-chip:has(.fa-star) {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
        border-color: rgba(251, 191, 36, 0.25);
    }

        #tmNegocioDetalle .tm-chip:has(.fa-star) i {
            color: #fbbf24;
            filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
        }

/* ── Action Buttons ── */
#tmNegocioDetalle .tm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: .5rem;
}

    #tmNegocioDetalle .tm-hero-actions .btn {
        font-size: .78rem;
        font-weight: 700;
        padding: .55rem 1.15rem;
        border-radius: 12px;
        transition: all .25s var(--tm-ease);
        display: inline-flex;
        align-items: center;
        gap: .45rem;
        position: relative;
        overflow: hidden;
        min-height: 40px; /* touch target */
    }

        #tmNegocioDetalle .tm-hero-actions .btn:focus-visible {
            outline: 2px solid rgba(255,255,255,0.7);
            outline-offset: 2px;
        }

    /* Glass button */
    #tmNegocioDetalle .tm-hero-actions .btn-light {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--hero-text);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

        #tmNegocioDetalle .tm-hero-actions .btn-light:hover {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }

    /* Outline button */
    #tmNegocioDetalle .tm-hero-actions .btn-outline-light {
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, 0.15);
        color: var(--hero-text);
    }

        #tmNegocioDetalle .tm-hero-actions .btn-outline-light:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.3);
            transform: translateY(-3px);
        }

/* CTA Button */
#tmNegocioDetalle .tm-cta {
    background: linear-gradient(135deg, var(--hero-accent-1) 0%, var(--hero-accent-3) 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

    #tmNegocioDetalle .tm-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
        opacity: 0;
        transition: opacity .3s var(--tm-ease);
    }

    #tmNegocioDetalle .tm-cta:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 32px rgba(14, 165, 233, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.3);
    }

        #tmNegocioDetalle .tm-cta:hover::before {
            opacity: 1;
        }

/* WhatsApp Button */
#tmNegocioDetalle .tm-hero-actions .btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

    #tmNegocioDetalle .tm-hero-actions .btn-success:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5), 0 0 0 1px rgba(37, 211, 102, 0.3);
    }

/* ── Hero Image Panel ── */
#tmNegocioDetalle .tm-hero-figure {
    margin: 0;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #tmNegocioDetalle .tm-hero-figure::before {
        content: '';
        position: absolute;
        inset: -4px;
        border-radius: 22px;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(6, 182, 212, 0.2) 25%, transparent 50%, rgba(56, 189, 248, 0.15) 75%, rgba(14, 165, 233, 0.25) 100%);
        z-index: -1;
        opacity: 0;
        transition: opacity .4s var(--tm-ease);
        filter: blur(1px);
    }

#tmNegocioDetalle .tm-hero-home:hover .tm-hero-figure::before {
    opacity: 1;
}

#tmNegocioDetalle .tm-hero-img-container {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(14, 165, 233, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

#tmNegocioDetalle .tm-hero-img-blur {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6);
    z-index: 1;
}

#tmNegocioDetalle .tm-hero-img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: all .4s var(--tm-ease);
    will-change: transform;
}

#tmNegocioDetalle .tm-hero-home:hover .tm-hero-img {
    transform: scale(1.05) translateY(-2px);
}

/* ── Hero Responsive ── */
@media (max-width: 1199px) {
    #tmNegocioDetalle .tm-hero-img-container {
        height: 250px;
    }

    #tmNegocioDetalle .tm-hero-wrap {
        padding: 2rem;
    }
}

@media (max-width: 991px) {
    #tmNegocioDetalle .tm-hero-home {
        border-radius: 22px;
    }

    #tmNegocioDetalle .tm-hero-wrap {
        padding: 1.75rem 1.5rem;
    }

    #tmNegocioDetalle .tm-hero-title {
        font-size: 1.65rem !important;
        -webkit-text-fill-color: #fff;
    }

    #tmNegocioDetalle .tm-hero-img-container {
        height: 200px;
        border-radius: 14px;
        margin-top: .75rem;
    }

    #tmNegocioDetalle .tm-hero-figure {
        padding: .5rem;
    }

        #tmNegocioDetalle .tm-hero-figure::before {
            display: none;
        }

    #tmNegocioDetalle .tm-hero-home::before,
    #tmNegocioDetalle .tm-hero-home::after {
        opacity: 0.15;
    }
}

@media (max-width: 767px) {
    #tmNegocioDetalle .tm-hero-home::before {
        width: 350px;
        height: 350px;
        top: -180px;
        right: -120px;
    }

    #tmNegocioDetalle .tm-hero-home::after {
        width: 250px;
        height: 250px;
    }

    #tmNegocioDetalle .tm-chips {
        gap: .5rem;
    }

    #tmNegocioDetalle .tm-chip {
        font-size: .74rem;
        padding: .42rem .85rem;
        border-radius: 10px;
    }

    #tmNegocioDetalle .tm-hero-actions .btn {
        font-size: .74rem;
        padding: .48rem 1rem;
        border-radius: 10px;
    }
}

@media (max-width: 575px) {
    #tmNegocioDetalle .tm-hero-home {
        border-radius: 18px;
        margin-bottom: 1.25rem;
    }

    #tmNegocioDetalle .tm-hero-wrap {
        padding: 1.5rem 1.25rem;
    }

    #tmNegocioDetalle .tm-hero-title {
        font-size: 1.4rem !important;
        margin-bottom: .75rem;
    }

    #tmNegocioDetalle .tm-hero-eyebrow {
        font-size: .65rem;
        padding: .38rem .85rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    #tmNegocioDetalle .tm-hero-img-container {
        height: 160px;
        border-radius: 12px;
    }

    #tmNegocioDetalle .tm-hero-figure {
        padding: .25rem;
    }

    #tmNegocioDetalle .tm-hero-actions {
        gap: .45rem;
    }

        #tmNegocioDetalle .tm-hero-actions .btn {
            font-size: .7rem;
            padding: .42rem .85rem;
        }

    #tmNegocioDetalle .tm-chips {
        margin-bottom: 1.15rem;
        gap: .4rem;
    }

    #tmNegocioDetalle .tm-chip {
        font-size: .7rem;
        padding: .38rem .75rem;
    }
}

/* Hover off for touch devices */
@media (hover: none) {
    #tmNegocioDetalle .tm-hero-home:hover .tm-hero-img {
        transform: none;
        box-shadow: 0 4px 24px rgba(0,0,0,.3);
    }

    #tmNegocioDetalle .tm-hero-home:hover .tm-hero-figure::before {
        opacity: 0;
    }

    #tmNegocioDetalle .tm-hero-actions .btn:hover {
        transform: none;
    }

    #tmNegocioDetalle .tm-cta:hover {
        transform: none;
    }

    #tmNegocioDetalle .tm-hero-actions .btn-success:hover {
        transform: none;
    }
}

/* ══════════════════════════════════════════
   OWNER EDIT BUTTON
══════════════════════════════════════════ */
#tmNegocioDetalle .nd-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent-primary);
    border: 1.5px solid var(--border-soft);
    background: var(--bg-surface);
    border-radius: var(--radius-pill);
    padding: .38rem .85rem;
    text-decoration: none;
    margin-bottom: .75rem;
    transition: border-color .15s, box-shadow .15s;
    min-height: 36px;
}

    #tmNegocioDetalle .nd-edit-btn:hover {
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px var(--accent-primary-glow);
        color: var(--accent-primary);
    }

    #tmNegocioDetalle .nd-edit-btn:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

/* ══════════════════════════════════════════
   TAB STRIP — pill style
══════════════════════════════════════════ */
#tmNegocioDetalle .tm-tab-strip {
    display: flex;
    gap: .4rem;
    padding: .6rem 0 .75rem;
    border-bottom: 1.5px solid var(--border-soft);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 1.1rem;
    /* Smooth scroll on iOS */
    scroll-behavior: smooth;
    /* Padding so active pill glow is not clipped */
    padding-bottom: .85rem;
}

    #tmNegocioDetalle .tm-tab-strip::-webkit-scrollbar {
        display: none;
    }

#tmNegocioDetalle .tm-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: .42rem .85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s, background .15s, box-shadow .15s;
    min-height: 40px; /* touch target */
}

    #tmNegocioDetalle .tm-tab i {
        font-size: .76rem;
    }

    #tmNegocioDetalle .tm-tab:hover {
        color: var(--accent-primary);
        border-color: rgba(14,165,233,.3);
    }

    #tmNegocioDetalle .tm-tab:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

    #tmNegocioDetalle .tm-tab.active {
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        color: #fff;
        box-shadow: 0 3px 10px rgba(14,165,233,.25);
    }

/* ══════════════════════════════════════════
   TAB PANEL — fade + slide animation
══════════════════════════════════════════ */
#tmNegocioDetalle .tm-home-panel,
#tmNegocioDetalle #panel-Tienda,
#tmNegocioDetalle .tm-panel {
    animation: tm-panel-in .22s var(--tm-ease) both;
}

@keyframes tm-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════
   EMPTY & LOADING STATES
══════════════════════════════════════════ */
#tmNegocioDetalle .tm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-muted);
    animation: tm-panel-in .3s var(--tm-ease) both;
}

#tmNegocioDetalle .tm-loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════
   PRODUCT GRID
══════════════════════════════════════════ */
#tmNegocioDetalle #tmProducts .tm-search-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

#tmNegocioDetalle #tmProducts .tm-search-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-top: .35rem;
    white-space: nowrap;
}

#tmNegocioDetalle #tmProducts .tm-total-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(14,165,233,.1);
    color: var(--accent-primary);
    border: 1px solid rgba(14,165,233,.2);
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 800;
    padding: .1rem .55rem;
}

/* Search box */
#tmNegocioDetalle #tmProducts .tm-searchbox-wrap {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
    max-width: 420px;
    min-width: 220px;
}

#tmNegocioDetalle #tmProducts .tm-searchbox {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}

    #tmNegocioDetalle #tmProducts .tm-searchbox:focus-within,
    #tmNegocioDetalle #tmProducts .tm-searchbox.has-query {
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 3px var(--accent-primary-glow);
    }

#tmNegocioDetalle #tmProducts .tm-searchbox-icon {
    position: absolute;
    left: .85rem;
    color: var(--text-muted);
    font-size: .88rem;
    pointer-events: none;
    transition: color .15s;
}

#tmNegocioDetalle #tmProducts .tm-searchbox:focus-within .tm-searchbox-icon,
#tmNegocioDetalle #tmProducts .tm-searchbox.has-query .tm-searchbox-icon {
    color: var(--accent-primary);
}

#tmNegocioDetalle #tmProducts .tm-searchbox-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    padding: .62rem 2.4rem .62rem 2.2rem;
    font-size: .9rem;
    font-family: inherit;
    color: var(--text-primary);
}

    #tmNegocioDetalle #tmProducts .tm-searchbox-input::placeholder {
        color: var(--text-muted);
    }

    #tmNegocioDetalle #tmProducts .tm-searchbox-input::-webkit-search-cancel-button {
        -webkit-appearance: none;
    }

#tmNegocioDetalle #tmProducts .tm-searchbox-clear {
    position: absolute;
    right: .5rem;
    background: var(--bg-surface-2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: .68rem;
    transition: background .15s, color .15s, transform .12s;
}

    #tmNegocioDetalle #tmProducts .tm-searchbox-clear:hover {
        background: #fee2e2;
        color: #ef4444;
        transform: rotate(90deg);
    }

    #tmNegocioDetalle #tmProducts .tm-searchbox-clear:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

/* Token chips */
#tmNegocioDetalle #tmProducts .tm-token-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

#tmNegocioDetalle #tmProducts .tm-token {
    display: inline-flex;
    align-items: center;
    background: rgba(14,165,233,.08);
    color: #0284c7;
    border: 1px solid rgba(14,165,233,.22);
    border-radius: var(--radius-pill);
    font-size: .7rem;
    font-weight: 700;
    padding: .15rem .6rem;
}

#tmNegocioDetalle #tmProducts .tm-token-hint {
    font-size: .7rem;
    color: var(--text-muted);
}

@media (max-width: 575px) {
    #tmNegocioDetalle #tmProducts .tm-search-header {
        flex-direction: column;
    }

    #tmNegocioDetalle #tmProducts .tm-searchbox-wrap {
        width: 100%;
        max-width: 100%;
    }
}

/* Grid */
#tmNegocioDetalle #tmProducts .tm-grid {
    display: grid;
    /* Increase columns from 4 to 5 on large screens to make cards slightly smaller */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 1199px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Product card */
#tmNegocioDetalle #tmProducts .tm-card {
    position: relative;
    border: 1px solid #ebebeb; /* Lighter, cleaner border */
    border-radius: var(--radius-md);
    background: #ffffff; /* Pure white background */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s var(--tm-ease), box-shadow .18s var(--tm-ease), border-color .18s;
    will-change: transform;
}

    #tmNegocioDetalle #tmProducts .tm-card::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-primary), #0369a1);
        flex-shrink: 0;
        transition: height .15s;
    }

    #tmNegocioDetalle #tmProducts .tm-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(14,165,233,.1);
        border-color: rgba(14,165,233,.22);
    }

        #tmNegocioDetalle #tmProducts .tm-card:hover::before {
            height: 4px;
        }

@media (max-width: 991px) {
    /* Height restrictions removed in favor of aspect-ratio */
}

@media (max-width: 575px) {
    /* Height restrictions removed in favor of aspect-ratio */
}

/* Thumb */
#tmNegocioDetalle #tmProducts .tm-thumb {
    width: 100%;
    aspect-ratio: 1 / 1; /* PERFECT SQUARE */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-bottom: 1px solid #f5f5f5; /* Subtle separation */
}

    #tmNegocioDetalle #tmProducts .tm-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
        transition: transform .25s var(--tm-ease);
    }

#tmNegocioDetalle #tmProducts .tm-card:hover .tm-thumb img {
    transform: scale(1.04);
}

#tmNegocioDetalle #tmProducts .tm-no-img-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(14,165,233,.22);
    font-size: 2.6rem;
}

/* Card body */
#tmNegocioDetalle #tmProducts .tm-card .card-body,
#tmNegocioDetalle #tmProducts .tm-body {
    padding: .6rem .75rem .75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

#tmNegocioDetalle #tmProducts .tm-title,
#tmNegocioDetalle #tmProducts .card-title {
    font-size: .875rem; /* 14px */
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.25;
    min-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Fix standard warning */
    -webkit-box-orient: vertical;
    margin-bottom: .5rem;
}

#tmNegocioDetalle #tmProducts .tm-price,
#tmNegocioDetalle #tmProducts .text-success {
    color: var(--accent-primary) !important;
    font-weight: 800;
    font-size: 1.00rem;
}

#tmNegocioDetalle #tmProducts .tm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: auto;
}

    #tmNegocioDetalle #tmProducts .tm-meta .badge {
        background: rgba(14,165,233,.08) !important;
        color: #0369a1 !important;
        border: 1px solid var(--border-soft);
        font-weight: 600;
    }

/* Action buttons in cards */
#tmNegocioDetalle #tmProducts .tm-card .btn {
    min-height: 36px;
}

    #tmNegocioDetalle #tmProducts .tm-card .btn:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

/* Offer card */
#tmNegocioDetalle #tmProducts .tm-card--oferta {
    border-color: rgba(230,48,0,.28);
}

    #tmNegocioDetalle #tmProducts .tm-card--oferta::before {
        background: linear-gradient(90deg, #e63000, #f97316);
        height: 4px;
    }

/* Offer ribbon */
#tmNegocioDetalle #tmProducts .tm-offer-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 74px;
    height: 74px;
    overflow: hidden;
    pointer-events: none;
}

    #tmNegocioDetalle #tmProducts .tm-offer-ribbon span {
        position: absolute;
        top: 16px;
        right: -20px;
        width: 90px;
        background: linear-gradient(90deg, #e63000, #f97316);
        color: #fff;
        font-size: .58rem;
        font-weight: 800;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: .4px;
        padding: 3px 0;
        transform: rotate(45deg);
        box-shadow: 0 2px 6px rgba(230,48,0,.35);
        animation: nd-ribbon-pulse 2.8s ease-in-out infinite;
    }

@keyframes nd-ribbon-pulse {
    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .82;
    }
}

@media (max-width: 575px) {
    #tmNegocioDetalle #tmProducts .tm-offer-ribbon {
        width: 60px;
        height: 60px;
    }

        #tmNegocioDetalle #tmProducts .tm-offer-ribbon span {
            font-size: .52rem;
            top: 13px;
            right: -24px;
        }
}

/* Offer price */
#tmNegocioDetalle #tmProducts .tm-precio-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.15;
}

#tmNegocioDetalle #tmProducts .tm-precio-original {
    font-size: .75rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

#tmNegocioDetalle #tmProducts .tm-precio-oferta {
    font-size: 1.05rem;
    font-weight: 800;
    color: #e63000;
}

@media (max-width: 575px) {
    #tmNegocioDetalle #tmProducts .tm-precio-oferta {
        font-size: .92rem;
    }
}

/* Touch: disable card hover lifts */
@media (hover: none) {
    #tmNegocioDetalle #tmProducts .tm-card:hover {
        transform: none;
        box-shadow: none;
        border-color: var(--border-soft);
    }

        #tmNegocioDetalle #tmProducts .tm-card:hover::before {
            height: 3px;
        }

        #tmNegocioDetalle #tmProducts .tm-card:hover .tm-thumb img {
            transform: none;
        }
}

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
#tmNegocioDetalle .pagination .page-item.active .page-link {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

#tmNegocioDetalle .pagination .page-link {
    color: var(--text-primary);
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #tmNegocioDetalle .pagination .page-link:hover {
        background: var(--bg-surface-2);
    }

    #tmNegocioDetalle .pagination .page-link:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
        box-shadow: none;
    }

/* ══════════════════════════════════════════
   HOME TAB — OFFERS CAROUSEL
══════════════════════════════════════════ */
#tmNegocioDetalle .tm-home-panel {
    padding: 0 0 1rem;
}

#tmNegocioDetalle .tm-ofertas-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

#tmNegocioDetalle .tm-ofertas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

#tmNegocioDetalle .tm-ofertas-title-wrap {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
}

#tmNegocioDetalle .tm-ofertas-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -.02em;
}

    #tmNegocioDetalle .tm-ofertas-title i {
        color: var(--accent-primary);
    }

#tmNegocioDetalle .tm-ver-todas-link {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: .22rem .65rem;
    white-space: nowrap;
    transition: background .15s, border-color .15s;
    min-height: 32px;
}

    #tmNegocioDetalle .tm-ver-todas-link:hover {
        background: rgba(14,165,233,.06);
        border-color: rgba(14,165,233,.3);
    }

    #tmNegocioDetalle .tm-ver-todas-link:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

/* Dots */
#tmNegocioDetalle .tm-carousel-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

#tmNegocioDetalle .tm-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
    transition: background .2s var(--tm-ease), width .2s var(--tm-ease), transform .15s;
    min-width: 8px;
    /* Larger touch target via pseudo element */
    position: relative;
}

    #tmNegocioDetalle .tm-dot::after {
        content: '';
        position: absolute;
        inset: -8px;
    }

    #tmNegocioDetalle .tm-dot.active {
        background: var(--accent-primary);
        width: 20px;
        border-radius: var(--radius-pill);
        transform: scale(1.1);
    }

    #tmNegocioDetalle .tm-dot:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 3px;
        border-radius: 50%;
    }

/* Carousel wrapper + arrows */
#tmNegocioDetalle .tm-carousel-wrap {
    position: relative;
    padding: 0 8px;
}

#tmNegocioDetalle .tm-carousel-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 12px;
    animation: tm-panel-in .22s var(--tm-ease) both;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#tmNegocioDetalle .tm-carousel-grid::-webkit-scrollbar {
    display: none;
}

#tmNegocioDetalle .tm-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(14, 165, 233, 0.2);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-primary);
    font-size: 1.1rem;
    transition: box-shadow .15s, color .15s, border-color .15s, transform .15s;
    min-width: 44px;
}

    #tmNegocioDetalle .tm-carousel-arrow:hover {
        color: var(--accent-primary);
        border-color: rgba(14,165,233,.3);
        box-shadow: 0 4px 12px rgba(14,165,233,.15);
        background: var(--bg-surface);
    }

    #tmNegocioDetalle .tm-carousel-arrow:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

#tmNegocioDetalle .tm-arrow-prev {
    left: -18px;
}

#tmNegocioDetalle .tm-arrow-next {
    right: -18px;
}

/* Carousel cards */
#tmNegocioDetalle .tm-carousel-grid .tm-card {
    flex: 0 0 calc(20% - 9.6px);
    scroll-snap-align: start;
    position: relative;
    border: 1px solid #ebebeb; /* Cleaner border */
    border-radius: var(--radius-md);
    background: #ffffff; /* Pure white background */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s var(--tm-ease), box-shadow .18s var(--tm-ease);
    cursor: pointer;
    will-change: transform;
}

    #tmNegocioDetalle .tm-carousel-grid .tm-card::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-primary), #0369a1);
        flex-shrink: 0;
        transition: height .15s;
    }

#tmNegocioDetalle .tm-carousel-grid .tm-card--oferta {
    border-color: rgba(230,48,0,.25);
}

    #tmNegocioDetalle .tm-carousel-grid .tm-card--oferta::before {
        background: linear-gradient(90deg, #e63000, #f97316);
        height: 4px;
    }

#tmNegocioDetalle .tm-carousel-grid .tm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(14,165,233,.1);
}

#tmNegocioDetalle .tm-carousel-grid .tm-thumb {
    width: 100%;
    aspect-ratio: 1 / 1; /* PERFECT SQUARE */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    border-bottom: 1px solid #f5f5f5; /* Subtle separation */
}

    #tmNegocioDetalle .tm-carousel-grid .tm-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
        transition: transform .28s var(--tm-ease);
    }

#tmNegocioDetalle .tm-carousel-grid .tm-card:hover .tm-thumb img {
    transform: scale(1.04);
}

#tmNegocioDetalle .tm-carousel-grid .tm-no-img-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(14,165,233,.2);
    font-size: 2.2rem;
}

#tmNegocioDetalle .tm-carousel-grid .tm-offer-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 64px;
    height: 64px;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

    #tmNegocioDetalle .tm-carousel-grid .tm-offer-ribbon span {
        position: absolute;
        top: 13px;
        right: -18px;
        width: 80px;
        background: linear-gradient(90deg, #e63000, #f97316);
        color: #fff;
        font-size: .55rem;
        font-weight: 800;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: .4px;
        padding: 3px 0;
        transform: rotate(45deg);
        box-shadow: 0 2px 5px rgba(230,48,0,.3);
        animation: nd-ribbon-pulse 2.8s ease-in-out infinite;
    }

#tmNegocioDetalle .tm-carousel-grid .card-body {
    padding: .6rem .75rem .8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#tmNegocioDetalle .tm-carousel-grid .card-title {
    font-size: .875rem; /* 14px */
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.25;
    min-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Fix standard warning */
    -webkit-box-orient: vertical;
    margin-bottom: .5rem;
}

#tmNegocioDetalle .tm-carousel-grid .tm-precio-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
    margin-top: .4rem;
}

#tmNegocioDetalle .tm-carousel-grid .tm-precio-original {
    font-size: .72rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

#tmNegocioDetalle .tm-carousel-grid .tm-precio-oferta {
    font-size: .95rem;
    font-weight: 800;
    color: #e63000;
}

#tmNegocioDetalle .tm-pct-badge {
    font-size: .62rem;
    font-weight: 800;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid rgba(22,163,74,.2);
    border-radius: var(--radius-pill);
    padding: 1px 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    #tmNegocioDetalle .tm-carousel-grid {
        gap: 12px;
    }

        #tmNegocioDetalle .tm-carousel-grid .tm-card {
            flex: 0 0 calc(50% - 6px);
            --tm-thumb-h: 140px;
        }

    #tmNegocioDetalle .tm-carousel-arrow {
        display: none;
    }
}

@media (max-width: 575px) {
    #tmNegocioDetalle .tm-carousel-grid {
        gap: 8px;
    }

        #tmNegocioDetalle .tm-carousel-grid .tm-card {
            flex: 0 0 calc(50% - 4px);
            --tm-thumb-h: 120px;
        }

    #tmNegocioDetalle .tm-carousel-arrow {
        display: none;
    }

    #tmNegocioDetalle .tm-ofertas-section {
        padding: .85rem .85rem 1.1rem;
    }
}

/* Touch: disable carousel card hover */
@media (hover: none) {
    #tmNegocioDetalle .tm-carousel-grid .tm-card:hover {
        transform: none;
        box-shadow: none;
    }

        #tmNegocioDetalle .tm-carousel-grid .tm-card:hover .tm-thumb img {
            transform: none;
        }
}

/* ══════════════════════════════════════════
   BANK CARDS
══════════════════════════════════════════ */
#tmNegocioDetalle .bank-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 55%, #075985 100%);
    color: #fff;
    min-height: 175px;
    overflow: hidden;
}

    #tmNegocioDetalle .bank-card::before {
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        background: rgba(255,255,255,.07);
        border-radius: 50%;
        top: -80px;
        right: -50px;
        pointer-events: none;
    }

    #tmNegocioDetalle .bank-card .label {
        font-size: .68rem;
        text-transform: uppercase;
        opacity: .65;
        letter-spacing: .06em;
        margin-bottom: 1px;
    }

    #tmNegocioDetalle .bank-card .value {
        font-weight: 700;
        font-size: .92rem;
    }

    #tmNegocioDetalle .bank-card .text-mono {
        font-family: 'Courier New', monospace;
        letter-spacing: 1px;
    }

    #tmNegocioDetalle .bank-card .bank-name {
        font-size: 1.05rem;
        font-weight: 800;
        letter-spacing: .3px;
        margin-bottom: .75rem;
    }

#tmNegocioDetalle .bank-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .5rem;
}

    #tmNegocioDetalle .bank-row .copy {
        background: rgba(255,255,255,.18);
        border: none;
        color: #fff;
        border-radius: var(--radius-sm);
        padding: .2rem .55rem;
        cursor: pointer;
        font-size: .78rem;
        transition: background .15s;
        flex-shrink: 0;
        min-width: 36px;
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #tmNegocioDetalle .bank-row .copy:hover {
            background: rgba(255,255,255,.32);
        }

        #tmNegocioDetalle .bank-row .copy:focus-visible {
            outline: 2px solid rgba(255,255,255,.8);
            outline-offset: 2px;
            border-radius: 4px;
        }

#tmNegocioDetalle .bank-help {
    margin-top: .85rem;
    font-size: .78rem;
    opacity: .68;
    background: rgba(255,255,255,.1);
    padding: .3rem .55rem;
    border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════
   SKELETONS
══════════════════════════════════════════ */
#tmNegocioDetalle .skeleton {
    border-color: var(--tm-border);
}

#tmNegocioDetalle .sk-line {
    height: 10px;
    margin: 7px 0;
    background: rgba(0,0,0,.06);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

    #tmNegocioDetalle .sk-line::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.5) 50%, transparent 100%);
        animation: sk-shimmer 1.5s ease-in-out infinite;
    }

@keyframes sk-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

#tmNegocioDetalle .shimmer {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
}

    #tmNegocioDetalle .shimmer::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);
        animation: sk-shimmer 1.8s ease-in-out infinite;
    }

.sk-line.w-25 {
    width: 25%;
}

.sk-line.w-50 {
    width: 50%;
}

.sk-line.w-75 {
    width: 75%;
}

/* ══════════════════════════════════════════
   MOBILE STICKY CTA
══════════════════════════════════════════ */
#tmNegocioDetalle .tm-mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: .5rem;
    padding: .6rem 1rem;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -4px 20px rgba(0,0,0,.09);
}

    #tmNegocioDetalle .tm-mobile-cta .btn {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 1.1rem;
    }

        #tmNegocioDetalle .tm-mobile-cta .btn:focus-visible {
            outline: 2px solid var(--accent-primary);
            outline-offset: 2px;
        }

@media (min-width: 768px) {
    #tmNegocioDetalle .tm-mobile-cta {
        display: none;
    }
}

/* ══════════════════════════════════════════
   MODAL BACKDROP (click outside to close)
══════════════════════════════════════════ */
#tmNegocioDetalle .nd-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1040;
    animation: nd-backdrop-in .18s var(--tm-ease) both;
}

@keyframes nd-backdrop-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal z-index above backdrop */
#tmNegocioDetalle .modal.d-block {
    z-index: 1050;
}

/* Modal dialog scroll on small screens */
#tmNegocioDetalle .modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ══════════════════════════════════════════
   MODAL — Edit product offer box
══════════════════════════════════════════ */
#tmNegocioDetalle .tm-offer-box {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
}

#tmNegocioDetalle .tm-offer-box-head {
    padding: .75rem .9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(14,165,233,.04);
}

#tmNegocioDetalle .tm-offer-dot {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent-primary), #0369a1);
    color: #fff;
    box-shadow: 0 3px 8px rgba(14,165,233,.3);
    flex-shrink: 0;
}

#tmNegocioDetalle .tm-offer-badge {
    display: inline-flex;
    align-items: center;
    padding: .3rem .65rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: .75rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    color: var(--accent-primary);
    white-space: nowrap;
}

#tmNegocioDetalle .tm-offer-box-body {
    padding: .9rem 1rem 1rem;
}

#tmNegocioDetalle .tm-offer-check .form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ══════════════════════════════════════════
   MISC
══════════════════════════════════════════ */
.naranjacolor {
    color: var(--accent-primary);
    font-weight: 800;
}

/* ══════════════════════════════════════════
   OWNER BAR — barra compacta de acciones del dueño en cada card
══════════════════════════════════════════ */
#tmNegocioDetalle #tmProducts .tm-owner-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: .6rem;
    padding-top: .55rem;
    border-top: 1px solid var(--border-soft);
}

/* Base button style */
#tmNegocioDetalle #tmProducts .tm-owner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    border: 1.5px solid transparent;
    border-radius: 10px;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s;
    padding: .32rem .65rem;
    min-height: 32px;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
    user-select: none;
}

    #tmNegocioDetalle #tmProducts .tm-owner-btn:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }

/* Edit button */
#tmNegocioDetalle #tmProducts .tm-owner-btn--edit {
    background: rgba(14,165,233,.07);
    border-color: rgba(14,165,233,.2);
    color: var(--accent-primary);
    flex: 1;
}

    #tmNegocioDetalle #tmProducts .tm-owner-btn--edit:hover {
        background: rgba(14,165,233,.14);
        border-color: rgba(14,165,233,.4);
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(14,165,233,.15);
    }

/* Delete button — icon only */
#tmNegocioDetalle #tmProducts .tm-owner-btn--delete {
    background: rgba(239,68,68,.06);
    border-color: rgba(239,68,68,.18);
    color: #ef4444;
    flex: 0 0 32px;
    width: 32px;
    padding: 0;
}

    #tmNegocioDetalle #tmProducts .tm-owner-btn--delete:hover {
        background: rgba(239,68,68,.13);
        border-color: rgba(239,68,68,.35);
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(239,68,68,.15);
    }

/* Image upload button — icon only, label acts as button */
#tmNegocioDetalle #tmProducts .tm-owner-btn--img {
    background: rgba(107,114,128,.07);
    border-color: rgba(107,114,128,.2);
    color: #6b7280;
    flex: 0 0 32px;
    width: 32px;
    padding: 0;
    cursor: pointer;
}

    #tmNegocioDetalle #tmProducts .tm-owner-btn--img:hover {
        background: rgba(107,114,128,.14);
        border-color: rgba(107,114,128,.35);
        color: #374151;
        transform: translateY(-1px);
    }

    /* When product already has image — tint blue */
    #tmNegocioDetalle #tmProducts .tm-owner-btn--img:has(.fa-arrow-up-from-bracket) {
        background: rgba(14,165,233,.07);
        border-color: rgba(14,165,233,.2);
        color: var(--accent-primary);
    }

        #tmNegocioDetalle #tmProducts .tm-owner-btn--img:has(.fa-arrow-up-from-bracket):hover {
            background: rgba(14,165,233,.14);
            border-color: rgba(14,165,233,.4);
        }

    /* Uploading state */
    #tmNegocioDetalle #tmProducts .tm-owner-btn--img.is-uploading {
        opacity: .7;
        cursor: default;
        pointer-events: none;
    }

/* Hidden native file input */
#tmNegocioDetalle #tmProducts .tm-owner-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

/* Mobile: edit button shows only icon to save space */
@media (max-width: 575px) {
    #tmNegocioDetalle #tmProducts .tm-owner-btn--edit span {
        display: none;
    }

    #tmNegocioDetalle #tmProducts .tm-owner-btn--edit {
        flex: 0 0 32px;
        width: 32px;
        padding: 0;
    }
}

/* ══════════════════════════════════════════
   REDUCED MOTION — respeta configuración del usuario
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    #tmNegocioDetalle *,
    #tmNegocioDetalle *::before,
    #tmNegocioDetalle *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    #tmNegocioDetalle .tm-hero-home::before,
    #tmNegocioDetalle .tm-hero-home::after {
        animation: none;
    }

    #tmNegocioDetalle .tm-offer-ribbon span {
        animation: none;
    }
}


/* ══════════════════════════════════════════
   OWNER: LIMPIAR OFERTAS VENCIDAS
══════════════════════════════════════════ */
#tmNegocioDetalle .tm-expired-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bg-surface);
    border: 1.5px solid rgba(239, 68, 68, .18);
    border-radius: var(--radius-lg);
    padding: .85rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(239, 68, 68, .06);
    transition: border-color .2s, box-shadow .2s;
}

    #tmNegocioDetalle .tm-expired-card:hover {
        border-color: rgba(239, 68, 68, .32);
        box-shadow: 0 4px 16px rgba(239, 68, 68, .09);
    }

#tmNegocioDetalle .tm-expired-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(239, 68, 68, .12) 0%, rgba(220, 38, 38, .08) 100%);
    border: 1px solid rgba(239, 68, 68, .2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
}

#tmNegocioDetalle .tm-expired-body {
    flex: 1;
    min-width: 160px;
}

#tmNegocioDetalle .tm-expired-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .15rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

#tmNegocioDetalle .tm-expired-desc {
    font-size: .76rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

#tmNegocioDetalle .tm-expired-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8rem;
    font-weight: 700;
    color: #ef4444;
    background: rgba(239, 68, 68, .07);
    border: 1.5px solid rgba(239, 68, 68, .22);
    border-radius: 11px;
    padding: .45rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
    min-height: 38px;
    flex-shrink: 0;
}

    #tmNegocioDetalle .tm-expired-btn:hover:not(:disabled) {
        background: rgba(239, 68, 68, .13);
        border-color: rgba(239, 68, 68, .4);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, .15);
    }

    #tmNegocioDetalle .tm-expired-btn:focus-visible {
        outline: 2px solid #ef4444;
        outline-offset: 2px;
    }

    #tmNegocioDetalle .tm-expired-btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

@media (max-width: 575px) {
    #tmNegocioDetalle .tm-expired-card {
        gap: .75rem;
        padding: .75rem .9rem;
    }

    #tmNegocioDetalle .tm-expired-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (hover: none) {
    #tmNegocioDetalle .tm-expired-btn:hover:not(:disabled) {
        transform: none;
        box-shadow: none;
    }
}