/* --- CATEGORY PAGE --- */
.category-page-hero {
    position: relative;
    width: calc(100% + 30px);
    min-height: 414px;
    margin-left: -18px;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    background:
        linear-gradient(90deg, rgba(6, 7, 21, 0.92) 0%, rgba(7, 10, 34, 0.25) 30%, rgba(7, 10, 34, 0.25) 70%, rgba(6, 7, 21, 0.92) 100%),
        linear-gradient(180deg, rgba(6, 7, 21, 0.15) 0%, rgba(6, 7, 21, 0.45) 100%),
        var(--category-hero-image, url("../images/headers/entretenimiento-header-totalplay-blog.jpg")) center/cover no-repeat;
}

.category-page-hero__title {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-align: center;
    text-wrap: balance;
}

.category-filter-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: -8px 0 40px;
    padding: 8px 0 8px;
    overflow-y: visible;
}

.category-filter-nav::-webkit-scrollbar {
    display: none;
}

.category-filter-btn {
    min-width: 125px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid #707070;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.21);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 19px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.category-filter-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
    color: #ffffff;
    text-decoration: none;
}

.category-filter-btn.is-active,
.category-filter-btn[aria-pressed="true"] {
    background: #3579f6;
}

.blog-page-btn,
.btn-plus,
.category-filter-btn {
    text-decoration: none;
}

.category-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 427px;
    gap: 36px;
    align-items: start;
    padding-bottom: 0;
}

.category-page-content {
    min-width: 0;
}

.category-featured-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-featured-card,
.category-featured-card__link {
    display: block;
}

.category-featured-card__link {
    color: inherit;
    text-decoration: none;
}

.category-featured-card {
    min-height: 466px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.category-featured-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 62%;
    background: linear-gradient(360deg, #241e44 0%, rgba(7, 6, 14, 0) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.category-featured-card:hover,
.category-featured-card__link:hover .category-featured-card {
    transform: translateY(-5px);
}

.category-featured-card__overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-featured-card__tag {
    width: 153px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    background: linear-gradient(90deg, #251f45 0%, rgba(11, 6, 43, 0.47) 53%, rgba(7, 6, 14, 0) 100%);
    border-radius: 0 0 20px 0;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 15px;
    letter-spacing: -0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-featured-card__title {
    max-width: 348px;
    margin: 0;
    padding: 0 28px 28px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
}

.category-page-action {
    padding-top: 0;
}

.category-more-notes {
    padding-top: 34px;
}

.category-more-notes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}

.category-more-notes__pagination {
    margin-top: 20px;
}

.category-page-sidebar {
    width: 100%;
    min-height: 949px;
    padding: 28px 20px 32px;
    background: #1f1f1f;
}

.category-page-search {
    margin-bottom: 40px;
}

.category-page-search input {
    width: 100%;
    height: 41px;
    padding: 0 24px;
    border: 1px solid #707070;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.21);
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
}

.category-page-search input::placeholder {
    color: #ffffff;
    opacity: 1;
}

.category-page-search input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.65);
}

.category-sidebar-header {
    margin-bottom: 28px;
}

.category-sidebar-header h2 {
    margin-right: 24px;
    font-size: 18px;
    line-height: 22px;
}

.category-sidebar-nav {
    color: #ffffff;
    margin-bottom: 42px;
}

.category-sidebar__list,
.category-sidebar__subcategories {
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-sidebar__item {
    margin-bottom: 12px;
}

.category-sidebar__link {
    position: relative;
    display: block;
    min-height: 43px;
    padding: 12px 20px 12px 39px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 19px;
    text-decoration: none;
}

.category-sidebar__link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 23px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(-50%);
}

.category-sidebar__link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;
    width: 9px;
    height: 2px;
    background: #ffffff;
    transform: translateY(-50%);
}

.category-sidebar__item.is-active > .category-sidebar__link {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(112, 112, 112, 0.45);
}

.category-sidebar__subcategories {
    padding: 12px 0 6px 59px;
}

.category-sidebar__subcategory-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    min-height: 18px;
}

.category-sidebar__subcategory-item.is-active {
    min-height: 30px;
    margin-left: -59px;
    padding: 6px 16px 6px 59px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(112, 112, 112, 0.45);
}

.category-sidebar__subcategory-item.is-active::before {
    left: 42px;
}

.category-sidebar__subcategory-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -17px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(-50%);
}

.category-sidebar__subcategory-link {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    text-decoration: none;
}

.category-sidebar__link:hover,
.category-sidebar__subcategory-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.category-sidebar-header--recommendations {
    margin-top: 6px;
}

.category-recommendations {
    display: grid;
    gap: 20px;
}

.category-recommendation {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.category-recommendation__image {
    width: 124px;
    height: 91px;
    object-fit: cover;
    border: 1px solid #707070;
}

.category-recommendation__body {
    min-width: 0;
    padding-top: 1px;
}

.category-recommendation__title {
    margin: 0 0 13px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.category-recommendation .btn-leermas {
    min-width: 94px;
    justify-content: center;
}

@media (max-width: 768px) {
    .category-page-hero {
        width: calc(100% + 30px);
        min-height: 300px;
        margin-left: -15px;
        margin-bottom: 36px;
        padding: 36px 18px;
    }

    .category-page-hero__title {
        font-size: clamp(2.5rem, 12vw, 4.2rem);
    }

    .category-filter-nav {
        margin: -8px 0 32px;
    }

    .category-filter-btn {
        min-width: 116px;
        min-height: 40px;
        padding-inline: 20px;
    }

    .category-page-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 0;
    }

    .category-featured-grid {
        grid-template-columns: 1fr;
    }

    .category-featured-card {
        min-height: 360px;
    }

    .category-featured-card__title {
        max-width: 280px;
        padding: 0 20px 22px;
        font-size: 20px;
        line-height: 24px;
    }

    .category-more-notes {
        padding-top: 26px;
    }

    .category-more-notes__grid {
        grid-template-columns: 1fr;
    }

    .category-page-sidebar {
        min-height: 0;
        padding: 24px 18px 28px;
    }

    .category-sidebar__link {
        font-size: 17px;
    }

    .category-recommendation {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: 14px;
    }

    .category-recommendation__image {
        width: 110px;
        height: 84px;
    }

    .category-sidebar__subcategory-item.is-active {
        margin-left: -41px;
        padding-left: 41px;
    }

    .category-sidebar__subcategory-item.is-active::before {
        left: 24px;
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .category-page-layout {
        grid-template-columns: 1fr;
    }

    .category-page-sidebar {
        min-height: 0;
    }

    .category-more-notes__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
