
/* Productos vinculados dentro de páginas de servicios */
.service-products-section {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 120px) 0;
    background:
        radial-gradient(circle at 88% 10%, rgba(201, 162, 39, .17), transparent 28rem),
        linear-gradient(180deg, #f6f2e9 0%, #eee8dc 100%);
}

.service-products-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(18, 18, 18, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 18, 18, .035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.45), transparent 85%);
}

.service-products-section .container {
    position: relative;
    z-index: 1;
}

.service-products-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.service-products-heading h2 {
    max-width: 760px;
    margin: 8px 0 12px;
    color: #161616;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: .98;
}

.service-products-heading p {
    max-width: 720px;
    margin: 0;
    color: #59554d;
    font-size: 1rem;
    line-height: 1.8;
}

.service-products-all {
    white-space: nowrap;
    border-color: rgba(20, 20, 20, .32);
}

.service-product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.service-product-filter {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 15px;
    border: 1px solid rgba(20, 20, 20, .15);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #292720;
    font-weight: 700;
    transition: .25s ease;
}

.service-product-filter span {
    display: grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(20, 20, 20, .08);
    font-size: .75rem;
}

.service-product-filter:hover,
.service-product-filter.active {
    border-color: #c9a227;
    background: #c9a227;
    color: #111;
    box-shadow: 0 10px 24px rgba(201, 162, 39, .26);
}

.service-product-card {
    overflow: hidden;
    border: 1px solid rgba(27, 25, 20, .12);
    border-radius: 3px;
    background: rgba(255,255,255,.91);
    box-shadow: 0 16px 36px rgba(33, 28, 15, .08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.service-product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 162, 39, .65);
    box-shadow:
        0 24px 54px rgba(33, 28, 15, .15),
        0 0 32px rgba(201, 162, 39, .13);
}

.service-product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #171717;
}

.service-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.service-product-card:hover .service-product-image img {
    transform: scale(1.06);
}

.service-product-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #d8b52f;
    font-size: 3.4rem;
    background:
        radial-gradient(circle at center, rgba(201,162,39,.18), transparent 48%),
        #151515;
}

.service-product-category {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(12,12,12,.83);
    color: #f2d25e;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.service-product-body {
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 22px;
}

.service-product-body h3 {
    margin: 0 0 11px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.32rem;
    line-height: 1.15;
}

.service-product-body h3 a {
    color: #171717;
    text-decoration: none;
}

.service-product-body p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 18px;
    color: #625e55;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.service-product-presentation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(20,20,20,.09);
    color: #4d493f;
    font-size: .88rem;
}

.service-product-presentation i {
    color: #b38e16;
}

.service-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 17px;
    color: #8f6f0c;
    font-weight: 800;
    text-decoration: none;
}

.service-product-link i {
    transition: transform .25s ease;
}

.service-product-link:hover {
    color: #171717;
}

.service-product-link:hover i {
    transform: translate(3px, -3px);
}

.service-product-item[hidden] {
    display: none !important;
}

@media (max-width: 767.98px) {
    .service-products-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .service-products-all {
        width: 100%;
    }

    .service-product-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .service-product-filter {
        flex: 0 0 auto;
    }
}


/* Fort Ranch: mostrar completas las imágenes de productos relacionados */
.service-product-image {
    background:
        radial-gradient(circle at center, rgba(201,162,39,.10), transparent 52%),
        #eee7d9;
}

.service-product-image img {
    padding: 8px;
    object-fit: contain;
    object-position: center;
}

.service-product-card:hover .service-product-image img {
    transform: scale(1.025);
}
