/* ==========================================================================
   LISTING ITEM - NEGOCIO
   ========================================================================== */

.matec-sjc-listing-item--negocio {
    background: transparent;
    border: none !important;
}

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__media img {
    width: 100%;
    height: 300px;
    transition: transform 0.4s ease;
}

.matec-sjc-listing-item--negocio:hover .matec-sjc-listing-item__media img {
    transform: scale(1.03);
}

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__floating {
    margin: -100px 16px 16px;
    padding: 20px;
}

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.matec-sjc-listing-item__label-container {
    width: 100%;
    display: flex;
    gap: 5px;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
}

/* Header negocio */

.matec-sjc-listing-item__header {
    width:100%;
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.matec-sjc-listing-item__heading{
    width: 100%;
}

.matec-sjc-listing-item__heading h3{
    text-align:left;
}


.matec-sjc-listing-item__logo-wrap {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    background: #ffffff;
    border: 1px solid var(--sjc-border);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sjc-shadow-soft);
    position: relative;
}

.matec-sjc-listing-item__logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texto */

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__title a:hover {
    color: var(--e-global-color-primary);
}

.matec-sjc-listing-item__category-badge-title {
    font-size: 14px;
    color: var(--sjc-text-secondary);
    line-height: 1.45;
}

.matec-sjc-listing-item__category-block{
   display: flex;
    gap: 0px;
    flex-direction: column;

}

.matec-sjc-listing-item__category-badge {
    display: inline-flex;
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--e-global-color-sjc-blue-strong);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__address,
.matec-sjc-listing-item--negocio .matec-sjc-listing-item__excerpt {
    font-size: 18px;
    color: var(--sjc-text-secondary);
    line-height: 1.45;
    margin-bottom: 12px;
}

/* Botones */

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__actions {
    width: 100%;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__button {
    flex: 1;
    min-height: 46px;
    border-radius: 25px;
    font-weight: 700 !important;
    background: var(--e-global-color-sjc-blue-strong);
    color: #fff !important;
}

.matec-sjc-listing-item--negocio .matec-sjc-listing-item__button:hover {
    filter: brightness(1.1);
}

.matec-sjc-listing-item__button--wa {
    background: #25D366 !important;
}

/* Badges negocio */

.matec-sjc-listing-item__plan-badge,
.matec-sjc-listing-item__featured-badge {
    position: absolute;
    top: 14px;
    z-index: 3;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.matec-sjc-listing-item__featured-badge--left {
    left: 0;
    border-radius: 0 12px 12px 0;
    background: var(--sjc-featured);
}

.matec-sjc-listing-item__plan-badge--right {
    right: 0;
    border-radius: 12px 0 0 12px;
    background: #666;
}

.matec-sjc-listing-item__plan-badge.matec-sjc-listing-item__plan-badge--left{
    left: 0;
    border-radius: 0 12px 12px 0;
    top:14px;
}

.matec-sjc-listing-item__media:has(.matec-sjc-listing-item__featured-badge) .matec-sjc-listing-item__plan-badge--left {
    top: 65px;
}

.plan-emprendedor .matec-sjc-listing-item__plan-badge {
    background: var(--sjc-cat-emprendedor);
}

.plan-servicios .matec-sjc-listing-item__plan-badge {
    background: var(--sjc-cat-servicio);
}

.plan-negocio .matec-sjc-listing-item__plan-badge {
    background: var(--sjc-cat-negocio);
}

.is-recomendado .matec-sjc-listing-item__plan-badge {
    background: var(--sjc-recommended);
}

/* Destacado */

.matec-sjc-listing-item--negocio.is-destacado .matec-sjc-listing-item__floating,
.matec-sjc-listing-item--negocio.is-destacado .matec-sjc-listing-item__media {
    border: 2px solid var(--sjc-featured);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
    animation: pulse-soft 2s infinite;
}

.matec-sjc-listing-item--negocio.is-destacado::after {
    display: none !important;
}

@keyframes pulse-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 166, 61, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 166, 61, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 166, 61, 0);
    }
}

/* Horario */

.matec-schedule {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.matec-schedule__label {
    font-weight: 700;
    font-size: 1.25rem;
}

.matec-schedule__detail {
    font-size: 1rem;
    opacity: .8;
}

.matec-schedule.status-open .matec-schedule__label {
    color: var(--e-global-color-sjc-green, #A0BF75);
}

.matec-schedule.status-closed .matec-schedule__label {
    color: #9E9E9E;
}

.matec-schedule.status-closing_soon .matec-schedule__label,
.matec-schedule.status-opening_soon .matec-schedule__label {
    color: #FF9F1C;
}

/* Responsive */

@media (max-width: 767px) {
    .matec-sjc-listing-item--negocio .matec-sjc-listing-item__media img {
        height: 320px;
    }

    .matec-sjc-listing-item--negocio .matec-sjc-listing-item__floating {
        margin: -24px 12px 12px;
        padding: 16px;
    }

    .matec-sjc-listing-item__logo-wrap {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .matec-sjc-listing-item--negocio .matec-sjc-listing-item__title {
        font-size: 19px;
    }

    .matec-sjc-listing-item__plan-badge,
    .matec-sjc-listing-item__featured-badge {
        top: 10px;
        padding: 6px 12px;
        font-size: 10px;
    }
}