.byprog-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 18px 34px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.byprog-search-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
}

.byprog-search-box {
    width: 100%;
    max-width: 640px;
    height: 46px;
    display: flex;
    align-items: center;
    border: 2px solid #9dd7d6;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.byprog-search-input {
    flex: 1;
    height: 100%;
    border: 0;
    outline: none;
    background: transparent;
    padding: 0 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-style: italic;
    color: #666;
}

.byprog-search-input::placeholder {
    color: #777;
    opacity: 1;
}

.byprog-search-btn {
    width: 54px;
    min-width: 54px;
    height: 100%;
    border: 0;
    background: #9dd7d6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity .2s ease;
}

.byprog-search-btn:hover {
    opacity: .92;
}

.byprog-tabs-line {
    border-bottom: 4px solid #9dd7d6;
    margin-bottom: 36px;
}

.byprog-tabs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    flex-wrap: wrap;
}

.byprog-tab {
    border: 0;
    background: transparent;
    color: #1c1c1c;
    padding: 13px 24px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.byprog-tab.is-active {
    background: #9dd7d6;
}

.byprog-results {
    min-height: 260px;
}

.byprog-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.byprog-arrow {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border: 0;
    background: transparent;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease;
    z-index: 3;
}

.byprog-arrow:hover {
    transform: scale(1.06);
    opacity: .86;
}

.byprog-arrow span {
    font-size: 70px;
    line-height: 1;
    font-weight: 300;
}

.byprog-viewport {
    width: 100%;
    overflow: hidden;
}

.byprog-track {
    display: flex;
    gap: 44px;
    transition: transform .35s ease;
    will-change: transform;
}

.byprog-card {
    flex: 0 0 calc((100% - 88px) / 3);
    max-width: calc((100% - 88px) / 3);
}

.byprog-card-link {
    display: block;
    text-decoration: none;
}

.byprog-card-media {
    position: relative;
    width: 100%;
    aspect-ratio: 0.72 / 1;
    background: #ddd;
    overflow: hidden;
}

.byprog-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;       /* llena sin deformar */
    object-position: center; /* centra el recorte */

    display: block;
}

.byprog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.58) 8%, rgba(0,0,0,.08) 50%, rgba(0,0,0,0) 76%);
}

.byprog-card-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    margin: 0;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0,0,0,.35);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.byprog-empty {
    text-align: center;
    color: #666;
    font-size: 18px;
    padding: 52px 20px;
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 1024px) {
    .byprog-track {
        gap: 24px;
    }

    .byprog-card {
        flex: 0 0 calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .byprog-wrapper {
        padding: 18px 14px 26px;
    }

    .byprog-search-wrap {
        margin-bottom: 24px;
    }

    .byprog-search-box {
        height: 42px;
    }

    .byprog-search-input {
        font-size: 15px;
        padding: 0 14px;
    }

    .byprog-search-btn {
        width: 48px;
        min-width: 48px;
    }

    .byprog-tabs {
        gap: 8px;
    }

    .byprog-tab {
        font-size: 13px;
        padding: 11px 14px 10px;
    }

    .byprog-tabs-line {
        margin-bottom: 24px;
    }

    .byprog-carousel {
        gap: 8px;
    }

    .byprog-arrow {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    .byprog-arrow span {
        font-size: 40px;
    }

    .byprog-track {
        gap: 16px;
    }

    .byprog-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .byprog-card-title {
        font-size: 14px;
        bottom: 12px;
    }
}