﻿/* ===================================================================================== */
/* ===== Página de negocio con look de “home” (AISLADO por #tmNegocioDetalle) ========= */
/* ===================================================================================== */

#tmNegocioDetalle {
    --tm-primary: #ff7b00;
    --tm-primary-2: #ff9d4a;
    --tm-bg: #fff8f0;
    --tm-text: #1f2937;
}

    /* HERO tipo landing */
    #tmNegocioDetalle .tm-hero-home {
        position: relative;
        padding: 24px 16px 0;
        border-radius: 16px;
        background: radial-gradient(1200px 400px at -10% -80%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 40%), linear-gradient(135deg, var(--tm-primary) 0%, var(--tm-primary-2) 100%);
        color: #fff;
        overflow: hidden;
    }

    #tmNegocioDetalle .tm-hero-wrap {
        padding: 8px 6px 10px;
    }

    #tmNegocioDetalle .tm-hero-title {
        font-weight: 800;
        letter-spacing: .3px;
        margin: 0 0 .25rem 0;
        font-size: clamp(1.4rem,2.2vw,2rem);
    }

    #tmNegocioDetalle .tm-hero-sub {
        margin: 0;
        opacity: .9;
    }

    #tmNegocioDetalle .tm-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: .75rem;
    }

    #tmNegocioDetalle .tm-chip {
        background: rgba(255,255,255,.15);
        color: #fff;
        border: 1px solid rgba(255,255,255,.25);
        padding: .35rem .55rem;
        border-radius: 999px;
        font-size: .9rem;
        backdrop-filter: blur(2px);
    }

    #tmNegocioDetalle .tm-cta {
        background: linear-gradient(135deg,#ffffff,#ffe7d1);
        color: #8a4b00;
        border: none;
        padding: .55rem .9rem;
        border-radius: 10px;
        font-weight: 700;
    }

        #tmNegocioDetalle .tm-cta:hover {
            filter: brightness(.97);
        }

    /* Imagen del hero */
    #tmNegocioDetalle .tm-hero-figure {
        margin: 0;
    }

    #tmNegocioDetalle .tm-hero-img {
        width: 100%;
        max-height: 360px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
    }

    #tmNegocioDetalle .tm-no-photo {
        height: 260px;
        border: 1px solid #eee;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

@media (max-width:575.98px) {
    #tmNegocioDetalle .tm-hero-img {
        max-height: 220px;
    }
}

/* Ola decorativa inferior (CSS-only) */
#tmNegocioDetalle .tm-hero-wave {
    height: 22px;
    margin-top: 6px;
    width: 100%;
    background: radial-gradient(40px 12px at 20px -2px, rgba(255,255,255,.7) 30%, rgba(255,255,255,0) 50%) repeat-x;
    opacity: .35;
}

/* SECCIONES (título barra + cuerpo) */
#tmNegocioDetalle .tm-section {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    overflow: hidden;
}

    #tmNegocioDetalle .tm-section + .tm-section {
        margin-top: 12px;
    }

#tmNegocioDetalle .tm-section-title {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .6rem .8rem;
    background: linear-gradient(90deg, rgba(255,123,0,.12) 0%, rgba(255,123,0,0) 100%);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

    #tmNegocioDetalle .tm-section-title i {
        color: var(--tm-primary);
    }

#tmNegocioDetalle .tm-section-body {
    padding: 10px 12px 12px;
}

/* Botones y paginación NARANJA sólo aquí */
#tmNegocioDetalle .btn-primary {
    background: linear-gradient(135deg,var(--tm-primary),var(--tm-primary-2));
    border: none;
}

    #tmNegocioDetalle .btn-primary:focus {
        box-shadow: 0 0 0 .25rem rgba(255,123,0,.25);
    }

#tmNegocioDetalle .btn-outline-secondary {
    border-color: #ced4da;
}

#tmNegocioDetalle .pagination .page-item.active .page-link {
    background-color: var(--tm-primary);
    border-color: var(--tm-primary);
}

#tmNegocioDetalle .pagination .page-link {
    color: #444;
}

    #tmNegocioDetalle .pagination .page-link:hover {
        filter: brightness(.95);
    }

/* ====== Productos (grid compacto, 2 por fila en móviles) ====== */
#tmNegocioDetalle #tmProducts .tm-input {
    font-size: .975rem;
    padding: .55rem .75rem;
    border-radius: .5rem;
}

#tmNegocioDetalle #tmProducts .tm-btn {
    padding: .55rem .75rem;
    font-size: .95rem;
    border-radius: .5rem;
}

#tmNegocioDetalle #tmProducts .tm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
}

@media (max-width:1199px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:991px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
/* petición: 2 por fila en teléfono */
@media (max-width:575px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

#tmNegocioDetalle #tmProducts .tm-card {
    --tm-thumb-h: 210px;
    border: 1px solid rgba(0,0,0,.075);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, transform .05s ease;
}

    #tmNegocioDetalle #tmProducts .tm-card:hover {
        box-shadow: 0 8px 22px rgba(0,0,0,.08);
    }



@media (max-width:991px) {
    #tmNegocioDetalle #tmProducts .tm-card {
        --tm-thumb-h: 155px;
    }
}

@media (max-width:575px) {
    #tmNegocioDetalle #tmProducts .tm-card {
        --tm-thumb-h: 140px;
    }
}

#tmNegocioDetalle #tmProducts .tm-body {
    padding: 8px 10px 10px;
}

#tmNegocioDetalle #tmProducts .tm-price {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

#tmNegocioDetalle #tmProducts .tm-title {
    font-size: .9rem;
    line-height: 1.2rem;
    min-height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

#tmNegocioDetalle #tmProducts .tm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    #tmNegocioDetalle #tmProducts .tm-meta .badge {
        font-weight: 500;
    }

/* Autocomplete en el buscador */
#tmNegocioDetalle #tmProducts .tm-suggest {
    top: calc(100% + 4px);
    left: 0;
    max-height: 320px;
    overflow: auto;
    border-radius: 10px;
    z-index: 1050;
    background: #fff;
}

#tmNegocioDetalle #tmProducts .tm-suggest-item {
    font-size: .95rem;
}

    #tmNegocioDetalle #tmProducts .tm-suggest-item .fw-semibold {
        font-weight: 600;
    }

#tmNegocioDetalle #tmProducts .tm-suggest::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

#tmNegocioDetalle #tmProducts .tm-suggest::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 10px;
}

#tmNegocioDetalle #tmProducts .tm-suggest::-webkit-scrollbar-track {
    background: rgba(0,0,0,.05);
}

/* ===== Mejora visual de cards de productos (naranja) ===== */
#tmNegocioDetalle #tmProducts .tm-card {
    border: 1px solid rgba(255,123,0,.18);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    transition: transform .08s ease, box-shadow .18s ease;
}

    #tmNegocioDetalle #tmProducts .tm-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(255,123,0,.15);
    }

    /* Borde superior tenue como “brand” */
    #tmNegocioDetalle #tmProducts .tm-card::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--tm-primary), var(--tm-primary-2));
    }


#tmNegocioDetalle #tmProducts .tm-card:hover .tm-thumb img {
    transform: scale(1.02);
}

/* Precio bien protagonista */
#tmNegocioDetalle #tmProducts .tm-price {
    color: var(--tm-primary);
    font-weight: 800;
    letter-spacing: .2px;
}

.naranjacolor {
    color: var(--tm-primary);
    font-weight: 800;
}

/* Título y metadatos más legibles */
#tmNegocioDetalle #tmProducts .tm-title {
    font-weight: 600;
    color: #2b2b2b;
}

#tmNegocioDetalle #tmProducts .tm-meta {
    gap: 6px;
}

    #tmNegocioDetalle #tmProducts .tm-meta .badge {
        --bs-badge-color: #5b5b5b;
        --bs-badge-bg: #fff2e4;
        border: 1px solid rgba(255,123,0,.25);
        font-weight: 600;
    }



/* Botón de WhatsApp más compacto y consistente */
#tmNegocioDetalle #tmProducts .btn.btn-success.btn-sm i {
    font-size: 1rem;
    line-height: 1;
}


/* ===== Tabs naranja (dentro de #tmNegocioDetalle) ===== */
#tmNegocioDetalle .tm-tabs {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

#tmNegocioDetalle .tm-tab-strip {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: linear-gradient(90deg, rgba(255,123,0,.10), rgba(255,123,0,0));
}

#tmNegocioDetalle .tm-tab {
    flex: 0 0 auto;
    border: 1px solid rgba(255,123,0,.25);
    background: #fff;
    color: #ff7b00;
    font-weight: 700;
    padding: .45rem .75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    transition: filter .15s, transform .05s;
}

    #tmNegocioDetalle .tm-tab i {
        color: currentColor;
    }

    #tmNegocioDetalle .tm-tab:hover {
        filter: brightness(.97);
    }

    #tmNegocioDetalle .tm-tab.active {
        background: linear-gradient(135deg, #ff7b00, #ff9d4a);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 6px 16px rgba(255,123,0,.25);
    }

#tmNegocioDetalle .tm-tab-panels {
    padding: 10px 12px 14px;
}

#tmNegocioDetalle .tm-panel {
    padding: 6px 2px;
}

/* ===== Tarjeta bancaria estilo “naranja moderno” ===== */
#tmNegocioDetalle .bank-card {
    position: relative;
    border-radius: 16px;
    padding: 14px 14px 12px;
    color: #fff;
    background: linear-gradient(135deg, #FF991F 0%, #E6771C 100%); /* base fría para contraste */
    min-height: 180px;
    overflow: hidden;
}

    #tmNegocioDetalle .bank-card .bank-card-bg {
        position: absolute;
        inset: 0;
        background: radial-gradient(800px 300px at -10% -40%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 55%), linear-gradient(135deg, #ff7b00 0%, #ff9d4a 100%); /* acento naranja */
        mix-blend-mode: soft-light;
        opacity: .9;
        pointer-events: none;
    }

#tmNegocioDetalle .bank-chip {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 40px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(180deg,#ffe7a3,#d2a94f);
    color: #7a5b00;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(0,0,0,.18);
    z-index: 2;
}

#tmNegocioDetalle .bank-bank .bank-name {
    font-weight: 800;
    letter-spacing: .5px;
}

#tmNegocioDetalle .bank-holder .label,
#tmNegocioDetalle .bank-row .label {
    font-size: .75rem;
    opacity: .9;
    letter-spacing: .4px;
}

#tmNegocioDetalle .bank-holder .value {
    font-weight: 800;
    letter-spacing: .3px;
}

#tmNegocioDetalle .bank-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
    margin-top: .3rem;
    padding-right: 36px; /* espacio para el botón copiar */
}

    #tmNegocioDetalle .bank-row .value {
        font-weight: 700;
        background: rgba(255,255,255,.14);
        padding: .25rem .45rem;
        border-radius: 8px;
    }

    #tmNegocioDetalle .bank-row .copy {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: rgba(255,255,255,.92);
        color: #ff7b00;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

#tmNegocioDetalle .bank-help {
    margin-top: .5rem;
    font-size: .85rem;
    background: rgba(255,255,255,.14);
    padding: .35rem .5rem;
    border-radius: 8px;
}

/* Scrollbar fino en la tira de tabs (WebKit) */
#tmNegocioDetalle .tm-tab-strip::-webkit-scrollbar {
    height: 8px;
}

#tmNegocioDetalle .tm-tab-strip::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.18);
    border-radius: 10px;
}

/* ====== Tokens base ====== */
#tmNegocioDetalle {
    --tm-primary: #FF7B00;
    --tm-primary-2: #FF9D4A;
    --tm-bg: #FBFBFD;
    --tm-card: #FFFFFF;
    --tm-text: #1F2937;
    --tm-muted: #6B7280;
    --tm-border: rgba(0,0,0,.06);
}

    /* HERO */
    #tmNegocioDetalle .tm-hero-home {
        position: relative;
        padding: 24px 16px 0;
        border-radius: 16px;
        background: radial-gradient(1200px 400px at -10% -80%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 40%), linear-gradient(135deg, var(--tm-primary) 0%, var(--tm-primary-2) 100%);
        color: #fff;
        overflow: hidden;
    }

    #tmNegocioDetalle .tm-hero-wrap {
        padding: 8px 6px 10px;
    }

    #tmNegocioDetalle .tm-hero-title {
        font-weight: 800;
        letter-spacing: .3px;
        margin: 0 0 .25rem;
        font-size: clamp(1.4rem,2.2vw,2rem);
    }

    #tmNegocioDetalle .tm-hero-sub {
        margin: 0;
        opacity: .9;
    }

    #tmNegocioDetalle .tm-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: .75rem;
    }

    #tmNegocioDetalle .tm-chip {
        background: rgba(255,255,255,.15);
        color: #fff;
        border: 1px solid rgba(255,255,255,.25);
        padding: .35rem .55rem;
        border-radius: 999px;
        font-size: .9rem;
        backdrop-filter: blur(2px);
    }

    #tmNegocioDetalle .tm-cta {
        background: linear-gradient(135deg,#ffffff,#ffe7d1);
        color: #8a4b00;
        border: none;
        padding: .55rem .9rem;
        border-radius: 10px;
        font-weight: 700;
    }

    #tmNegocioDetalle .tm-hero-img {
        width: 100%;
        max-height: 360px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.15);
    }

    #tmNegocioDetalle .tm-no-photo {
        height: 260px;
        border: 1px solid #eee;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }

@media (max-width:575.98px) {
    #tmNegocioDetalle .tm-hero-img {
        max-height: 220px;
    }
}

#tmNegocioDetalle .tm-hero-wave {
    height: 22px;
    margin-top: 6px;
    width: 100%;
    background: radial-gradient(40px 12px at 20px -2px, rgba(255,255,255,.7) 30%, rgba(255,255,255,0) 50%) repeat-x;
    opacity: .35;
}

/* SECCIONES */
#tmNegocioDetalle .tm-section {
    background: #fff;
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    overflow: hidden;
}

    #tmNegocioDetalle .tm-section + .tm-section {
        margin-top: 12px;
    }

#tmNegocioDetalle .tm-section-title {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .6rem .8rem;
    background: linear-gradient(90deg, rgba(255,123,0,.12) 0%, rgba(255,123,0,0) 100%);
    border-bottom: 1px solid var(--tm-border);
}

    #tmNegocioDetalle .tm-section-title i {
        color: var(--tm-primary);
    }

#tmNegocioDetalle .tm-section-body {
    padding: 10px 12px 12px;
}

/* Botones brand */
#tmNegocioDetalle .btn-primary {
    background: linear-gradient(135deg,var(--tm-primary),var(--tm-primary-2));
    border: none;
}

    #tmNegocioDetalle .btn-primary:focus {
        box-shadow: 0 0 0 .25rem rgba(255,123,0,.25);
    }

#tmNegocioDetalle .btn-outline-secondary {
    border-color: #ced4da;
}

/* Grid de productos */
#tmNegocioDetalle #tmProducts .tm-input {
    font-size: .975rem;
    padding: .55rem .75rem;
    border-radius: .5rem;
}

#tmNegocioDetalle #tmProducts .tm-btn {
    padding: .55rem .75rem;
    font-size: .95rem;
    border-radius: .5rem;
}

#tmNegocioDetalle #tmProducts .tm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 10px;
}

@media (max-width:1199px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

@media (max-width:991px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:575px) {
    #tmNegocioDetalle #tmProducts .tm-grid {
        grid-template-columns: repeat(2,1fr);
    }
}

#tmNegocioDetalle #tmProducts .tm-card {
    --tm-thumb-h: 170px;
    border: 1px solid rgba(255,123,0,.18);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .08s ease, box-shadow .18s ease;
}

    #tmNegocioDetalle #tmProducts .tm-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(255,123,0,.15);
    }

#tmNegocioDetalle #tmProducts .tm-thumb {
    width: 100%;
    height: var(--tm-thumb-h);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

    #tmNegocioDetalle #tmProducts .tm-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
        transition: transform .25s ease;
    }

#tmNegocioDetalle #tmProducts .tm-card:hover .tm-thumb img {
    transform: scale(1.02);
}

#tmNegocioDetalle #tmProducts .tm-badge-top {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
}

@media (max-width:991px) {
    #tmNegocioDetalle #tmProducts .tm-card {
        --tm-thumb-h: 185px;
    }
}

@media (max-width:575px) {
    #tmNegocioDetalle #tmProducts .tm-card {
        --tm-thumb-h: 160px;
    }
}

#tmNegocioDetalle #tmProducts .tm-body {
    padding: 8px 10px 10px;
}

#tmNegocioDetalle #tmProducts .tm-price {
    color: var(--tm-primary);
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: 4px;
}

#tmNegocioDetalle #tmProducts .tm-title {
    font-size: .9rem;
    line-height: 1.2rem;
    min-height: 2.4rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2b2b2b;
}

#tmNegocioDetalle #tmProducts .tm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    #tmNegocioDetalle #tmProducts .tm-meta .badge {
        --bs-badge-color: #5b5b5b;
        --bs-badge-bg: #fff2e4;
        border: 1px solid rgba(255,123,0,.25);
        font-weight: 600;
    }

/* Autocomplete */
#tmNegocioDetalle #tmProducts .tm-suggest {
    top: calc(100% + 4px);
    left: 0;
    max-height: 320px;
    overflow: auto;
    border-radius: 10px;
    z-index: 1050;
    background: #fff;
}

#tmNegocioDetalle #tmProducts .tm-suggest-item {
    font-size: .95rem;
}

#tmNegocioDetalle #tmProducts .tm-suggest::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

#tmNegocioDetalle #tmProducts .tm-suggest::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.2);
    border-radius: 10px;
}

#tmNegocioDetalle #tmProducts .tm-suggest::-webkit-scrollbar-track {
    background: rgba(0,0,0,.05);
}

/* Naranja destacado */
.naranjacolor {
    color: var(--tm-primary);
    font-weight: 800;
}

/* TABS */
#tmNegocioDetalle .tm-tabs {
    background: #fff;
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

#tmNegocioDetalle .tm-tab-strip {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-bottom: 1px solid var(--tm-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    background: linear-gradient(90deg, rgba(255,123,0,.10), rgba(255,123,0,0));
}

#tmNegocioDetalle .tm-tab {
    flex: 0 0 auto;
    border: 1px solid rgba(255,123,0,.25);
    background: #fff;
    color: #ff7b00;
    font-weight: 700;
    padding: .45rem .75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    white-space: nowrap;
    transition: filter .15s, transform .05s;
}

    #tmNegocioDetalle .tm-tab:hover {
        filter: brightness(.97);
    }

    #tmNegocioDetalle .tm-tab.active {
        background: linear-gradient(135deg, #ff7b00, #ff9d4a);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 6px 16px rgba(255,123,0,.25);
    }

#tmNegocioDetalle .tm-tab-panels {
    padding: 10px 12px 14px;
}

#tmNegocioDetalle .tm-panel {
    padding: 6px 2px;
}

/* Tarjeta bancaria */
#tmNegocioDetalle .bank-card {
    position: relative;
    border-radius: 16px;
    padding: 14px 14px 12px;
    color: #fff;
    background: linear-gradient(135deg, #FF991F 0%, #E6771C 100%);
    min-height: 180px;
    overflow: hidden;
}

    #tmNegocioDetalle .bank-card .bank-card-bg {
        position: absolute;
        inset: 0;
        background: radial-gradient(800px 300px at -10% -40%, rgba(255,255,255,.25) 0%, rgba(255,255,255,0) 55%), linear-gradient(135deg, #ff7b00 0%, #ff9d4a 100%);
        mix-blend-mode: soft-light;
        opacity: .9;
        pointer-events: none;
    }

#tmNegocioDetalle .bank-chip {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 40px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(180deg,#ffe7a3,#d2a94f);
    color: #7a5b00;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 16px rgba(0,0,0,.18);
    z-index: 2;
}

#tmNegocioDetalle .bank-bank .bank-name {
    font-weight: 800;
    letter-spacing: .5px;
}

#tmNegocioDetalle .bank-holder .label, #tmNegocioDetalle .bank-row .label {
    font-size: .75rem;
    opacity: .9;
    letter-spacing: .4px;
}

#tmNegocioDetalle .bank-holder .value {
    font-weight: 800;
    letter-spacing: .3px;
}

#tmNegocioDetalle .bank-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px;
    align-items: center;
    margin-top: .3rem;
    padding-right: 36px;
}

    #tmNegocioDetalle .bank-row .value {
        font-weight: 700;
        background: rgba(255,255,255,.14);
        padding: .25rem .45rem;
        border-radius: 8px;
    }

    #tmNegocioDetalle .bank-row .copy {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        border: none;
        background: rgba(255,255,255,.92);
        color: #ff7b00;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: grid;
        place-items: center;
        cursor: pointer;
    }

#tmNegocioDetalle .bank-help {
    margin-top: .5rem;
    font-size: .85rem;
    background: rgba(255,255,255,.14);
    padding: .35rem .5rem;
    border-radius: 8px;
}

/* Skeletons */
#tmNegocioDetalle .skeleton {
    border-color: var(--tm-border);
    box-shadow: none;
}

#tmNegocioDetalle .shimmer {
    height: 170px;
    background: linear-gradient(90deg,rgba(0,0,0,.05),rgba(0,0,0,.08),rgba(0,0,0,.05));
    background-size: 200% 100%;
    animation: sh 1.2s infinite linear;
}

#tmNegocioDetalle .sk-line {
    height: 10px;
    margin: 8px 0;
    background: rgba(0,0,0,.06);
    border-radius: 6px;
}

    #tmNegocioDetalle .sk-line.w-25 {
        width: 25%;
    }

.sk-line.w-50 {
    width: 50%;
}

.sk-line.w-75 {
    width: 75%;
}

@keyframes sh {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

/* Sticky móvil CTA */
#tmNegocioDetalle .tm-mobile-cta {
    position: sticky;
    bottom: 0;
    inset-inline: 0;
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 8px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--tm-border);
    z-index: 30;
}

@media (min-width: 768px) {
    #tmNegocioDetalle .tm-mobile-cta {
        display: none;
    }
}

/* Placeholder sin imagen — misma altura que card-img-top */
#tmNegocioDetalle #tmProducts .tm-no-img-placeholder {
    width: 100%;
    height: var(--tm-thumb-h, 170px);
    background: linear-gradient(135deg, #fff8f0, #fff2e4);
    border-bottom: 1px solid rgba(255,123,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

#tmNegocioDetalle #tmProducts .tm-no-img-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255,123,0,.28);
    font-size: 2.8rem;
}


/* ===== Modal edición producto (scoped) ===== */
#tmNegocioDetalle .tm-offer-box {
    border: 1px solid rgba(255,123,0,.18);
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,123,0,.06), rgba(255,255,255,0));
}

#tmNegocioDetalle .tm-offer-box-head {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid rgba(255,123,0,.16);
    background: rgba(255,123,0,.06);
}

#tmNegocioDetalle .tm-offer-dot {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #ff7b00, #ff9d4a);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255,123,0,.22);
}

#tmNegocioDetalle .tm-offer-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .6rem;
    border-radius: 999px;
    font-weight: 800;
    background: #fff;
    border: 1px solid rgba(255,123,0,.25);
    color: #ff7b00;
    white-space: nowrap;
}

#tmNegocioDetalle .tm-offer-box-body {
    padding: 12px 14px 14px;
}

#tmNegocioDetalle .tm-offer-check .form-check-input:checked {
    background-color: #ff7b00;
    border-color: #ff7b00;
}


/* ===================================================================
   OFFER RIBBON + OFFER PRICE — NegocioDetalle
   =================================================================== */

/* Card con oferta: borde superior naranja más intenso */
#tmNegocioDetalle #tmProducts .tm-card--oferta {
    border-color: rgba(255, 60, 0, .35);
}

    #tmNegocioDetalle #tmProducts .tm-card--oferta::before {
        background: linear-gradient(90deg, #ff3c00, #ff7b00, #ffb347);
        height: 4px;
    }

/* Corner Ribbon — esquina superior derecha */
#tmNegocioDetalle #tmProducts .tm-card {
    position: relative; /* ya debería estar, pero lo aseguramos */
}

#tmNegocioDetalle #tmProducts .tm-offer-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    overflow: hidden;
    width: 82px;
    height: 82px;
    pointer-events: none;
}

    #tmNegocioDetalle #tmProducts .tm-offer-ribbon span {
        position: absolute;
        top: 18px;
        right: -22px;
        width: 100px;
        background: linear-gradient(135deg, #ff3c00, #ff7b00);
        color: #fff;
        font-size: .62rem;
        font-weight: 800;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: .5px;
        padding: 4px 0;
        transform: rotate(45deg);
        box-shadow: 0 2px 8px rgba(255, 60, 0, .45);
    }

    /* Animación sutil del ribbon — sin impacto en rendimiento */
    #tmNegocioDetalle #tmProducts .tm-offer-ribbon span {
        animation: ribbon-pulse 2.8s ease-in-out infinite;
    }

@keyframes ribbon-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .82;
    }
}

/* Precio tachado + precio oferta */
#tmNegocioDetalle #tmProducts .tm-precio-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    line-height: 1.15;
}

#tmNegocioDetalle #tmProducts .tm-precio-original {
    font-size: .78rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

#tmNegocioDetalle #tmProducts .tm-precio-oferta {
    font-size: 1.1rem;
    font-weight: 800;
    color: #e63000;
    letter-spacing: .2px;
}

/* Shimmer suave en precio oferta cuando el card tiene oferta */
#tmNegocioDetalle #tmProducts .tm-card--oferta .tm-precio-oferta {
    background: linear-gradient(90deg, #e63000 0%, #ff7b00 50%, #e63000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: price-shine 3s linear infinite;
}

@keyframes price-shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* En móvil, precio oferta ligeramente más pequeño */
@media (max-width: 575px) {
    #tmNegocioDetalle #tmProducts .tm-precio-oferta {
        font-size: .95rem;
    }

    #tmNegocioDetalle #tmProducts .tm-offer-ribbon {
        width: 66px;
        height: 66px;
    }

        #tmNegocioDetalle #tmProducts .tm-offer-ribbon span {
            font-size: .55rem;
            top: 14px;
            right: -26px;
        }
}


/* ===================================================================
   HOME TAB — Carousel de Ofertas
   =================================================================== */

#tmNegocioDetalle .tm-home-panel {
    padding: 4px 0 12px;
}

#tmNegocioDetalle .tm-ofertas-section {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 20px 20px 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,.04);
}

/* Header: título + link + dots */
#tmNegocioDetalle .tm-ofertas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

#tmNegocioDetalle .tm-ofertas-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

#tmNegocioDetalle .tm-ofertas-title {
    font-size: 1.15rem;
    font-weight: 900;
    margin: 0;
    color: #1f2937;
    letter-spacing: -.2px;
}

    #tmNegocioDetalle .tm-ofertas-title i {
        color: #ff7b00;
    }

#tmNegocioDetalle .tm-ver-todas-link {
    font-size: .82rem;
    font-weight: 700;
    color: #ff7b00;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: .25rem .6rem;
    border: 1px solid rgba(255,123,0,.3);
    border-radius: 999px;
    transition: background .15s;
}

    #tmNegocioDetalle .tm-ver-todas-link:hover {
        background: rgba(255,123,0,.07);
        text-decoration: none;
    }

/* 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, transform .15s, width .2s;
}

    #tmNegocioDetalle .tm-dot.active {
        background: #ff7b00;
        transform: scale(1.25);
        width: 20px;
        border-radius: 999px;
    }

/* Wrapper con flechas — padding lateral para que las flechas no tapen el contenido */
#tmNegocioDetalle .tm-carousel-wrap {
    position: relative;
    padding: 0 6px;
}

/* Grid de 4 columnas */
#tmNegocioDetalle .tm-carousel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    animation: tm-fade-in .22s ease;
}

@keyframes tm-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flechas */
#tmNegocioDetalle .tm-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    font-size: .8rem;
    transition: box-shadow .15s, color .15s, transform .1s;
}

    #tmNegocioDetalle .tm-carousel-arrow:hover {
        box-shadow: 0 4px 16px rgba(255,123,0,.22);
        color: #ff7b00;
        transform: translateY(-50%) scale(1.08);
        border-color: rgba(255,123,0,.3);
    }

#tmNegocioDetalle .tm-arrow-prev {
    left: -20px;
}

#tmNegocioDetalle .tm-arrow-next {
    right: -20px;
}

/* =====================================================
   CARDS DEL CAROUSEL — scope propio (fuera de #tmProducts)
   ===================================================== */

#tmNegocioDetalle .tm-carousel-grid .tm-card {
    --tm-thumb-h: 170px;
    position: relative;
    border: 1px solid rgba(255,123,0,.18);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .1s ease, box-shadow .18s ease;
    cursor: pointer;
}

    /* Barra superior brand */
    #tmNegocioDetalle .tm-carousel-grid .tm-card::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--tm-primary, #ff7b00), var(--tm-primary-2, #ff9d4a));
        flex-shrink: 0;
    }

/* Barra superior más intensa si tiene oferta */
#tmNegocioDetalle .tm-carousel-grid .tm-card--oferta {
    border-color: rgba(255, 60, 0, .3);
}

    #tmNegocioDetalle .tm-carousel-grid .tm-card--oferta::before {
        background: linear-gradient(90deg, #ff3c00, #ff7b00, #ffb347);
        height: 4px;
    }

#tmNegocioDetalle .tm-carousel-grid .tm-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(255,123,0,.16);
}

/* Thumb */
#tmNegocioDetalle .tm-carousel-grid .tm-thumb {
    width: 100%;
    height: var(--tm-thumb-h);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

    #tmNegocioDetalle .tm-carousel-grid .tm-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
        transition: transform .28s ease;
    }

#tmNegocioDetalle .tm-carousel-grid .tm-card:hover .tm-thumb img {
    transform: scale(1.04);
}

/* Placeholder sin imagen */
#tmNegocioDetalle .tm-carousel-grid .tm-no-img-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255,123,0,.22);
    font-size: 2.4rem;
    background: linear-gradient(135deg, #fff8f0, #fff2e4);
}

/* Ribbon diagonal "En Oferta" */
#tmNegocioDetalle .tm-carousel-grid .tm-offer-ribbon {
    position: absolute;
    top: 4px;
    right: 0;
    z-index: 10;
    overflow: hidden;
    width: 72px;
    height: 72px;
    pointer-events: none;
}

    #tmNegocioDetalle .tm-carousel-grid .tm-offer-ribbon span {
        position: absolute;
        top: 15px;
        right: -20px;
        width: 88px;
        background: linear-gradient(135deg, #ff3c00, #ff7b00);
        color: #fff;
        font-size: .58rem;
        font-weight: 800;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: .5px;
        padding: 3px 0;
        transform: rotate(45deg);
        box-shadow: 0 2px 6px rgba(255,60,0,.4);
        animation: ribbon-pulse-c 2.8s ease-in-out infinite;
    }

@keyframes ribbon-pulse-c {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .8;
    }
}

/* Precios dentro del carousel */
#tmNegocioDetalle .tm-carousel-grid .tm-precio-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
    margin-top: 6px;
}

#tmNegocioDetalle .tm-carousel-grid .tm-precio-original {
    font-size: .75rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

#tmNegocioDetalle .tm-carousel-grid .tm-precio-oferta {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(90deg, #e63000 0%, #ff7b00 50%, #e63000 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: price-shine-c 3s linear infinite;
    letter-spacing: .1px;
}

@keyframes price-shine-c {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Badge % OFF */
#tmNegocioDetalle .tm-pct-badge {
    font-size: .65rem;
    font-weight: 800;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 1px 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* card-body del carousel */
#tmNegocioDetalle .tm-carousel-grid .card-body {
    padding: 8px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Título de card del carousel */
#tmNegocioDetalle .tm-carousel-grid .card-title {
    font-size: .82rem;
    font-weight: 600;
    color: #2b2b2b;
    line-height: 1.25;
    min-height: 2.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 991px) {
    #tmNegocioDetalle .tm-carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    #tmNegocioDetalle .tm-arrow-prev {
        left: -14px;
    }

    #tmNegocioDetalle .tm-arrow-next {
        right: -14px;
    }

    #tmNegocioDetalle .tm-carousel-grid .tm-card {
        --tm-thumb-h: 150px;
    }
}

@media (max-width: 575px) {
    #tmNegocioDetalle .tm-carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

        #tmNegocioDetalle .tm-carousel-grid .tm-card {
            --tm-thumb-h: 130px;
        }

    #tmNegocioDetalle .tm-carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: .7rem;
    }

    #tmNegocioDetalle .tm-arrow-prev {
        left: -10px;
    }

    #tmNegocioDetalle .tm-arrow-next {
        right: -10px;
    }

    #tmNegocioDetalle .tm-carousel-grid .tm-offer-ribbon {
        width: 58px;
        height: 58px;
    }

        #tmNegocioDetalle .tm-carousel-grid .tm-offer-ribbon span {
            font-size: .5rem;
            top: 12px;
            right: -22px;
        }

    #tmNegocioDetalle .tm-ofertas-section {
        padding: 12px 10px 16px;
    }

    #tmNegocioDetalle .tm-carousel-wrap {
        padding: 0 4px;
    }
}