/*==================================================
    CONTENEDOR PRINCIPAL HOME
==================================================*/

.hero-market-container {

    width: 100%;

    max-width: 1600px;

    margin: 0 auto;

    padding-left: 59px;

    padding-right: 55px;

    background: transparent;

}

.hero-market {

    padding: 27px 0 50px;

    background: linear-gradient(
        135deg,
        #f7faff 0%,
        #edf4ff 100%
    );

}

.hero-title {

    font-size: clamp(2.5rem, 4vw, 3.6rem);

    font-weight: 800;

    color: #163d73;

    line-height: 1.12;

    margin-bottom: 31px;

}

.hero-description {

    font-size: 1.05rem;

    color: #5b6470;

    line-height: 1.75;

    max-width: 580px;

    margin-bottom: 26px;

}

.hero-image {

    width: 100%;

    max-width: 480px;

    transition: .40s;

}

.hero-buttons {

    display: flex;

    gap: 14px;

    flex-wrap: wrap;

}

.hero-buttons .btn {

    padding: 13px 30px;

    border-radius: 14px;

    font-weight: 700;

    transition: .30s;

}

.hero-buttons .btn-primary:hover {

    transform: translateY(-4px);

    box-shadow: 0 14px 28px rgba(13,110,253,.30);

}

.hero-buttons .btn-outline-primary:hover {

    transform: translateY(-4px);

}

.hero-image:hover {

    transform: scale(1.025);

    filter: drop-shadow(
        0 18px 30px rgba(13,110,253,.18)
    );

}


/*==================================================
    TITULOS DE SECCION
==================================================*/

.section-title {

    text-align: center;

    max-width: 650px;

    margin: 0 auto 34px;

}

.section-title span {

    display: inline-block;

    color: #0d6efd;

    font-size: .78rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    margin-bottom: 8px;

}

.section-title h2 {

    margin: 0 0 10px;

    font-size: 2.25rem;

    font-weight: 800;

    color: #163d73;

    letter-spacing: -.5px;

}

.section-title p {

    margin: 0;

    font-size: .98rem;

    line-height: 1.6;

}


/*==================================================
    CATEGORIAS
==================================================*/

.market-categories {

    padding: 60px 0;

}

.category-card {

    display: block;

    height: 100%;

    padding: 40px 30px;

    background: #fff;

    border-radius: 22px;

    text-align: center;

    text-decoration: none;

    transition: .35s;

    box-shadow: 0 8px 25px rgba(0,0,0,.06);

}

.category-card:hover {

    transform: translateY(-8px);

    box-shadow: 0 18px 40px rgba(13,110,253,.15);

}

.category-icon {

    width: 90px;

    height: 90px;

    margin: auto;

    margin-bottom: 25px;

    border-radius: 50%;

    background: #edf4ff;

    display: flex;

    align-items: center;

    justify-content: center;

}

.category-icon i {

    font-size: 2.4rem;

    color: #0d6efd;

}

.category-card h3 {

    color: #163d73;

    font-weight: 700;

    margin-bottom: 15px;

}

.category-card p {

    color: #6c757d;

    line-height: 1.7;

}

/*==================================================
    SCRIPTS DESTACADOS
==================================================*/

.featured-products {

    padding: 55px 0 70px;

    background: #f8faff;

}


/*==================================================
    CONTENEDOR
==================================================*/

.market-content-container {

    max-width: 1600px;

    margin: 0 auto;

    padding-left: 30px;

    padding-right: 30px;

}


/*==================================================
    CABECERA
==================================================*/

.section-title {

    text-align: center;

    margin-bottom: 38px;

}

.section-title span {

    display: inline-block;

    margin-bottom: 10px;

    color: #0d6efd;

    font-size: .78rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.5px;

}

.section-title h2 {

    margin: 0 0 10px;

    font-size: 2.2rem;

    font-weight: 750;

    color: #163d73;

}

.section-title p {

    margin: 0;

    color: #6c7a89;

    font-size: 1rem;

}


/*==================================================
    CARD PRODUCTO
==================================================*/

.product-card {

    display: flex;

    flex-direction: column;

    height: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e7edf5;

    border-radius: 18px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

    box-shadow: 0 6px 20px rgba(30, 60, 90, .06);

}

.product-card:hover {

    transform: translateY(-6px);

    border-color: #cfe0f8;

    box-shadow: 0 18px 38px rgba(30, 70, 120, .13);

}


/*==================================================
    IMAGEN
==================================================*/

.product-image {

    position: relative;

    height: 210px;

    overflow: hidden;

    background: #eef3f8;

}

.product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: transform .4s ease;

}

.product-card:hover .product-image img {

    transform: scale(1.05);

}


/*==================================================
    BADGE
==================================================*/

.product-badge {

    position: absolute;

    top: 14px;

    left: 14px;

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 6px 11px;

    border-radius: 20px;

    background: rgba(255, 255, 255, .95);

    color: #198754;

    font-size: .72rem;

    font-weight: 700;

    box-shadow: 0 5px 14px rgba(0, 0, 0, .12);

}

.product-badge i {

    font-size: .75rem;

}


/*==================================================
    CUERPO
==================================================*/

.product-body {

    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 22px;

}

.product-category {

    margin-bottom: 10px;

    color: #0d6efd;

    font-size: .72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .8px;

}

.product-body h3 {

    display: -webkit-box;

    margin: 0 0 10px;

    overflow: hidden;

    color: #213b5c;

    font-size: 1.12rem;

    font-weight: 700;

    line-height: 1.4;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

}

.product-body p {

    display: -webkit-box;

    margin: 0;

    overflow: hidden;

    color: #6b7785;

    font-size: .9rem;

    line-height: 1.65;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

}

.product-description-empty {

    color: #94a0ad !important;

}


/*==================================================
    FOOTER PRODUCTO
==================================================*/

.product-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: auto;

    padding-top: 22px;

}

.price {

    color: #163d73;

    font-size: 1rem;

    font-weight: 800;

    white-space: nowrap;

}

.price-free {

    color: #198754;

}


/*==================================================
    BOTÓN DETALLE
==================================================*/

.product-detail-btn {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 14px;

    border-radius: 10px;

    font-size: .82rem;

    font-weight: 600;

}

.product-detail-btn i {

    font-size: .72rem;

    transition: transform .2s ease;

}

.product-detail-btn:hover i {

    transform: translateX(3px);

}


/*==================================================
    VER TODOS
==================================================*/

.featured-products-action {

    display: flex;

    justify-content: center;

    margin-top: 42px;

}

.featured-products-action .btn {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 11px 22px;

    border-radius: 12px;

    font-weight: 600;

}

.featured-products-action .btn i {

    font-size: .8rem;

    transition: transform .2s ease;

}

.featured-products-action .btn:hover i {

    transform: translateX(4px);

}


/*==================================================
    SIN PRODUCTOS
==================================================*/

.market-empty-state {

    padding: 60px 25px;

    text-align: center;

    background: #ffffff;

    border: 1px dashed #d8e1ec;

    border-radius: 18px;

}

.market-empty-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 64px;

    height: 64px;

    margin: 0 auto 18px;

    border-radius: 18px;

    background: #eef5ff;

    color: #0d6efd;

    font-size: 1.6rem;

}

.market-empty-state h5 {

    margin-bottom: 8px;

    color: #213b5c;

    font-weight: 700;

}

.market-empty-state p {

    margin: 0;

    color: #718096;

}


/*==================================================
    RESPONSIVE
==================================================*/

@media (max-width: 991.98px) {

    .featured-products {

        padding: 45px 0 55px;

    }

    .section-title h2 {

        font-size: 2rem;

    }

    .market-content-container {

        padding-left: 20px;

        padding-right: 20px;

    }

}


@media (max-width: 576px) {

    .featured-products {

        padding: 40px 0 50px;

    }

    .market-content-container {

        padding-left: 15px;

        padding-right: 15px;

    }

    .section-title {

        margin-bottom: 28px;

    }

    .section-title h2 {

        font-size: 1.75rem;

    }

    .product-image {

        height: 200px;

    }

}


/*==================================================
    RESPONSIVE
==================================================*/

@media(max-width:991.98px) {

    .hero-market {

        padding: 50px 0;

        text-align: center;

    }

    .hero-title {

        font-size: 2.4rem;

    }

    .hero-description {

        margin-left: auto;

        margin-right: auto;

    }

    .hero-buttons {

        justify-content: center;

    }

    .hero-image {

        margin-top: 40px;

        max-width: 330px;

    }

    .market-categories {

        padding: 45px 0;

    }

    .featured-products {

        padding: 45px 0;

    }

    .section-title {

        margin-bottom: 30px;

    }

    .section-title h2 {

        font-size: 2rem;

    }

}

@media(max-width:576px) {

    .hero-title {

        font-size: 2rem;

    }

    .hero-description {

        font-size: 1rem;

    }

    .hero-buttons .btn {

        width: 100%;

    }

}

/*==================================================
    SEPARADOR DE SECCIONES
==================================================*/

.section-divider {

    width: 180px;

    height: 5px;

    margin: 0 auto;

    border-radius: 50px;

    background: linear-gradient(
        90deg,
        transparent,
        #0d6efd,
        transparent
    );

    opacity: .30;

}
/* ==========================================================
   MARKETPLACE HOME - FONDO GENERAL
   Mismo estilo visual del resto del Marketplace
   No modifica el Hero
========================================================== */

.featured-products {
    position: relative;

    background:
        radial-gradient(
            circle at top right,
            rgba(59, 130, 246, 0.08),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #e7eef6 0%,
            #dfe8f1 100%
        );
}


/* El separador deja de verse blanco */
.section-divider {
    background: #e7eef6;
}
