﻿/* ===================================================================
   NegocioOfertas.css — Página exclusiva de ofertas del negocio
   =================================================================== */

#tmNegocioOfertas {
    --tm-primary: #FF7B00;
    --tm-primary-2: #FF9D4A;
    --tm-thumb-h: 210px;
    --tm-border: rgba(0,0,0,.06);
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
}

    /* Breadcrumb */
    #tmNegocioOfertas .tmo-breadcrumb {
        font-size: .82rem;
        color: #6b7280;
        display: flex;
        flex-wrap: wrap;
        gap: .3rem;
        align-items: center;
    }

        #tmNegocioOfertas .tmo-breadcrumb a {
            color: #ff7b00;
            text-decoration: none;
            font-weight: 600;
        }

            #tmNegocioOfertas .tmo-breadcrumb a:hover {
                text-decoration: underline;
            }

        #tmNegocioOfertas .tmo-breadcrumb .sep {
            color: #d1d5db;
        }

    /* Header */
    #tmNegocioOfertas .tmo-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
    }

    #tmNegocioOfertas .tmo-title {
        font-size: clamp(1.3rem, 2vw, 1.8rem);
        font-weight: 900;
        color: #1f2937;
        margin: 0 0 .2rem;
    }

        #tmNegocioOfertas .tmo-title i {
            color: #ff7b00;
        }

    #tmNegocioOfertas .tmo-negocio-name {
        font-size: .85em;
        color: #6b7280;
        font-weight: 600;
    }

    #tmNegocioOfertas .tmo-subtitle {
        font-size: .88rem;
        color: #6b7280;
        margin: 0;
    }

    /* Grid */
    #tmNegocioOfertas .tmo-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0,1fr));
        gap: 12px;
    }

@media (max-width: 1199px) {
    #tmNegocioOfertas .tmo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    #tmNegocioOfertas .tmo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* Cards — reutiliza clases de NegocioDetalle */
#tmNegocioOfertas .tm-card {
    --tm-thumb-h: 210px;
    border: 1px solid rgba(255,123,0,.18);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform .08s ease, box-shadow .18s ease;
}

    #tmNegocioOfertas .tm-card::before {
        content: '';
        display: block;
        height: 3px;
        background: linear-gradient(90deg, var(--tm-primary), var(--tm-primary-2));
    }

#tmNegocioOfertas .tm-card--oferta::before {
    background: linear-gradient(90deg, #ff3c00, #ff7b00, #ffb347);
    height: 4px;
}

#tmNegocioOfertas .tm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255,123,0,.15);
}

/* Thumb */
#tmNegocioOfertas .tm-thumb {
    width: 100%;
    height: var(--tm-thumb-h);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

    #tmNegocioOfertas .tm-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
        transition: transform .25s ease;
    }

#tmNegocioOfertas .tm-card:hover .tm-thumb img {
    transform: scale(1.02);
}

#tmNegocioOfertas .tm-no-img-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255,123,0,.25);
    font-size: 2.8rem;
}

/* Ribbon */
#tmNegocioOfertas .tm-offer-ribbon {
    position: absolute;
    top: 4px;
    right: 0;
    z-index: 10;
    overflow: hidden;
    width: 82px;
    height: 82px;
    pointer-events: none;
}

    #tmNegocioOfertas .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);
        animation: ribbon-pulse 2.8s ease-in-out infinite;
    }

@keyframes ribbon-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: .82;
    }
}

/* Precios */
#tmNegocioOfertas .tm-precio-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.15;
}

#tmNegocioOfertas .tm-precio-original {
    font-size: .78rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

#tmNegocioOfertas .tm-precio-oferta {
    font-size: 1.05rem;
    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 3s linear infinite;
}

@keyframes price-shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

#tmNegocioOfertas .tmo-pct-badge {
    font-size: .68rem;
    font-weight: 800;
    color: #16a34a;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    padding: 1px 6px;
    white-space: nowrap;
}

/* Card title */
#tmNegocioOfertas .tmo-card-title {
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
    color: #2b2b2b;
}

/* Paginación naranja */
#tmNegocioOfertas .pagination .page-item.active .page-link {
    background: var(--tm-primary);
    border-color: var(--tm-primary);
}

#tmNegocioOfertas .pagination .page-link {
    color: #444;
}

/* Skeletons */
#tmNegocioOfertas .skeleton {
    border-color: var(--tm-border);
    box-shadow: none;
}

#tmNegocioOfertas .shimmer {
    background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.09), rgba(0,0,0,.05));
    background-size: 200% 100%;
    animation: sh 1.2s infinite linear;
}

#tmNegocioOfertas .sk-line {
    height: 10px;
    margin: 8px 0;
    background: rgba(0,0,0,.06);
    border-radius: 6px;
}

@keyframes sh {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mobile */
@media (max-width: 575px) {
    #tmNegocioOfertas {
        padding: .75rem .75rem 2rem;
    }

        #tmNegocioOfertas .tm-card {
            --tm-thumb-h: 160px;
        }

        #tmNegocioOfertas .tm-offer-ribbon {
            width: 66px;
            height: 66px;
        }

            #tmNegocioOfertas .tm-offer-ribbon span {
                font-size: .55rem;
                top: 14px;
                right: -26px;
            }

        #tmNegocioOfertas .tm-precio-oferta {
            font-size: .9rem;
        }
}
