/* page_home.css */

.fullwidth-banner-slider {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.splide {
    width: 100%;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

.splide__slide {
    cursor: grab;
}

.splide__slide:active {
    cursor: grabbing;
}

.splide__slide img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.home-seo-h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.wrapper-1200 {
    width: 100%;
    display: flex;
    justify-content: center;
}

.home-inicial-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: -50px 10px 0;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    padding: 15px;
    z-index: 2;
}

.home-inicial-card {
    background: #fff;
    text-align: center;
    border-radius: 10px;
    max-width: 250px;
    flex: 1 1 22%;
}

.home-inicial-card img {
    width: 70px;
    height: auto;
    margin-bottom: 3px;
}

.home-inicial-title {
    font-size: 14px;
    margin: 5px 0;
    color: var(--primary-color);
    font-weight: bold;
}

.home-inicial-subtitle {
    font-size: 12px;
    color: #666;
}

.cointainer-motora {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 15px;
}

.ofertas-wrapper {
    display: flex;
    align-items: flex-end;
    margin-top: 50px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f7f7f7;
}

.ofertas-label {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-color);
    padding: 10px 20px;
    border-bottom: 2px solid var(--primary-color);
    margin-bottom: -2px;
}

.product-tabs {
    text-align: left;
}

.product-tab {
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    margin-right: 5px;
    color: #ccc;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-weight: 600;
    background: transparent;
}

.product-tab.active {
    color: var(--primary-color);
    margin-bottom: -2px;
    border-bottom: 2px solid var(--primary-color);
}

.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

@media (max-width: 768px) {

    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .mobile-only .splide__slide img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .custom-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .home-inicial-container {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
        padding: 15px 5px;
    }

    .home-inicial-card {
        flex: 1 1 45%;
        max-width: 48%;
    }

    .home-inicial-card img {
        width: 50px;
    }

    .home-inicial-title {
        font-size: .8rem;
    }

    .home-inicial-subtitle {
        font-size: .6rem;
    }

    .cointainer-motora .ofertas-wrapper span {
        font-size: .8rem;
        padding-left: 10px;
        padding-right: 10px;
    }

    .ofertas-wrapper .product-tabs .product-tab {
        font-size: .6rem;
        padding-left: 5px;
        padding-right: 5px;

    }

    .custom-product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .custom-product-card h2 {
        font-size: .7rem;
        padding: 0 10px;
        margin: 4px 0;
        min-height: 1.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

}