/* templates  */
#templates {
    padding-top: 40px;
}

#templates>h1 {
    margin-bottom: 10px;
}

#previewApp {
    display: flex;
    border-radius: 6px;
    border: 1px solid var(--black-20, #CFD1D4);
    background: var(--Text-White, #FFF);
    backdrop-filter: blur(4px);
    padding: 40px;
    margin-top: 16px;
    gap: 40px;
}

#previewApp > div:first-child {
    width: 50%;
}

#previewApp > div:nth-child(1) > h2 {
    color: var(--Text-Default, #111827);
    font-size: 34px;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 24px;
}

#previewApp > div:nth-child(1) > p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 4;
    align-self: stretch;
    overflow: hidden;
    color: var(--Text-Default, #111827);
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    min-height: 100px;
    max-height: 150px;
}

/* ----------- PANEL DERECHO ------------ */

#screenShotDocument {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-radius: 6px;
    border: 1px solid var(--black-10, #E7E8E9);
    background: var(--black-5, #F3F3F4);
    overflow: visible;
    min-height: 300px;
}

.thumbnail-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    padding: 10px;
    padding-top: 15px;
}

.thumbnail-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ----------- PRODUCTOS (barra inferior del panel derecho) ------------ */
.products {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background-color: white;
    border-radius: 0px 0px 6px 6px;
    border-top: 1px solid #E4E7EC;
    align-items: center;
    justify-content: space-between;
}

.products > div:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding-left: 20px;
}

.products > div:first-child > p {
    color: var(--black-70, #585D68);
    font-size: 16px;
}

.products > div:last-child {
    display: flex;
    gap: 8px;
    padding-right: 20px;
}

#previewApp .products .icon-background {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.05);
    width: 26px;
    height: 26px;
    cursor: pointer;
    position: relative;
}

.selectedFormat {
    border: 0.5px solid var(--Black-60, #70747D);
    background: rgba(0, 0, 0, 0.15) !important;
}

#previewApp .products .icon-background .icon {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

#previewApp .products .icon-background span:nth-child(1) {
    display: none;
}

#containerFiltersAndCard {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 40px;
    gap: 30px;
}

.containerFilters {
    flex: 0 0 255px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    border-radius: 6px;
    border: 1px solid var(--black-10, #E7E8E9);
    background-color: var(--Text-White, #FFF);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    margin-bottom: 40px;
}

.filter {
    align-items: center;
    display: flex;
    gap: 10px;
}

.filter span {
    color: var(--Black-100, #111827);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 160%;
}

.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-filters {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--Text-Link, #54AF73);
    font-family: "Space Grotesk";
    font-size: 14px;
    font-weight: 400;
    line-height: 160%;
}

.clear-icon {
    width: 14px;
    height: 14px;
    margin-left: 5px;
}

.filter-container:hover .clear-filters span {
    color: var(--Main-Secondary, #69877D);
}

.button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    border-radius: 6px;
    border: 1px solid var(--Gray-200, #E4E7EC);
    background: var(--Text-White, #FFF);
    gap: 0;
    box-sizing: border-box;
}

.button-group button {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    border-radius: 6px;
    border: none;
    transition: background .2s, color .2s, box-shadow .2s;
}

.button-active {
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 6px;
    border: 1px solid var(--Gray-300, #D0D5DD);
    background: var(--Black, #111827);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.button-inactive {
    background: var(--Text-White, #FFF);
    color: var(--Black-40, #A0A3A9);
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    font-size: 14px;
    font-weight: 400;
}

.button-blocked {
    opacity: 0.5;
    cursor: no-drop !important;
}

.divider {
    border: none;
    border-top: 1px solid var(--black-20, #CFD1D4);
    margin: 20px 0;
}

#containerCards {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#flowsContainer {
    margin-top: 80px;
}

#flowsContainer>h3 {
    margin: 0px 0px 40px 0px;
}

#listFlows,
#listNew {
    display: flex;
    gap: 14px 10px;
    flex-wrap: wrap;
    flex-direction: row;
}

.userInfoContainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border-top: 1px solid #E4E7EC;
    padding-top: 16px;
    position: relative;
}

.userInfoContainer .useApp {
    position: absolute;
    bottom: 45px;
    left: 80%;
    transform: translateX(-50%);
    z-index: 10;
}

.userInfo {
    display: flex;
    align-items: center;
    gap: 6px;
}

.userIcon {
    background-image: url(/_master/_static/assets/usericon.svg);
    width: 16px;
    height: 16px;
}

.accessCount {
    margin-left: 6px;
    color: var(--Text-Default, #111827);
    text-align: center;
    font-size: 12px;
    font-weight: 400;
    line-height: 160%;
}

.userAvatar {
    border-radius: 50%;
    margin-left: 12px;
    margin-right: 5px;
}

.organizationName {
    color: var(--black-50, #888B93);
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
}

.favsIcon {
    background-image: url(/_master/_static/assets/starticon.svg);
}


#listFlows>a>a:hover,
#listNew>a>a:hover {
    border-radius: 4px;
    background: var(--Neutral-0, #FFF);
}

#listFlows>a>a.selected,
#listNew>a>a.selected {
    border-radius: 4px;
    background: var(--Neutral-0, #FFF);
    cursor: no-drop;
}

#listFlows>a>a.disabled,
#listNew>a>a.disabled {
    cursor: no-drop;
}

#listFlows>a>a,
#listNew>a>a {
    color: var(--Text-Default, #111827);
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    display: flex;
    padding: 4px 16px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background: var(--Color-Neutral-100, #F5F5F5);
    cursor: pointer;
}

/* FIN CARDS FLOWS  */
div#searchFormContainer {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    align-content: space-around;
}

div#searchFormContainer>div:first-child {
    display: flex;
    max-height: 50px;
    width: -webkit-fill-available;
    justify-content: space-between;
}

div#searchFormContainer>div:first-child>div {
    display: flex;
}

div#searchFormContainer>div:first-child>div>div {
    border-radius: 6px;
    border: 1px solid var(--Gray-200, #E4E7EC);
    background: var(--Text-White, #FFF);
    display: flex;
}

div#searchFormContainer>div:first-child>div>div>button {
    padding: 12px 10px;
}

div#searchFormContainer>div:first-child>div>button {
    margin-left: 20px;
    border-radius: 6px;
    border: 1px solid var(--black-20, #CFD1D4);
    background: var(--Base-White, #FFF);
    box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
}

button.button-white:disabled {
    color: var(--black-40, #A0A3A9);
    font-size: 16px;
    font-weight: 400;
    background-color: white
}

form#searchForm {
    background-position-y: center;
    background-position-x: 18px;
    background-repeat: no-repeat;
    background-image: url(/_master/_static/assets/search-md.svg);
    padding: 10px 10px 10px 43px;
    align-items: center;
    align-self: stretch;
    background-color: white;
    display: flex;
    border-radius: 6px;
    width: 35%;
    margin-left: auto;
    border: 1px solid var(--black-20, #CFD1D4);
}

form#searchForm>input {
    width: -webkit-fill-available;
    padding: 8px 32px;
    border: none;
    outline: none;
}

form#searchForm>a {
    display: flex;
    padding: var(--Spacing-medium, 16px);
    align-items: center;
    gap: 8px;
    color: var(--Text-Default, #111827);
    font-family: "Segoe UI";
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
}

#tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    position: relative;
    max-height: 310px;
    transition: max-height 0.3s ease;
}

#tags.empty {
    color: #999;
    font-style: italic;
    text-align: center;
    font-size: 12px;
}

#tags.expanded {
    max-height: 310px;
    overflow: auto;
}

#tags.expanded::after,
#tags.empty::after {
    opacity: 0;
}

#tags>a {
    cursor: pointer;
    display: flex;
    padding: 8px 10px;
    align-items: center;
    color: var(--Black-50, #888B93);
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    line-height: 160%;
    border-radius: 200px;
    border: 1px solid var(--Black-10, #E7E8E9);
    background: rgba(255, 255, 255, 0.80);
}

#tags>a:hover {
    border: 1px solid var(--Black-10, #E7E8E9);
    background: var(--Black-10, #E7E8E9);
}

#tags::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
    pointer-events: none;
}

.deselect {
    margin-left: 5px;
    cursor: pointer;
    font-weight: bold;
    color: inherit;
    transition: color 0.3s ease;
}

.deselect:hover {
    color: red;
}

#viewMoreBtn {
    cursor: pointer;
    display: block;
    margin-top: 15px;
    margin-bottom: 10px;
    color: var(--Green, #54AF73);
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 160%;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    background-color: white;
    padding: 0;
}

#viewMoreBtn:hover {
    color: var(--Text-Secondary, #69877D);
}

.tags-label {
    color: var(--black-40, #A0A3A9);
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    margin-right: auto;
    margin-bottom: 24px;
}

#dropdown > label {
    color: var(--black-40, #A0A3A9);
    text-align: center;
    font-family: "Space Grotesk";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-toggle {
    padding: 10px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    border-radius: 6px;
    border: 1px solid var(--black-10, #E7E8E9);
    background: var(--White, #FFF);
    color: var(--black-20, #CFD1D4);
    font-family: "Space Grotesk";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
}

.dropdown-toggle.selected {
    border: 1px solid var(--Text-Secondary, #69877D);
}

.dropdown-toggle .stars + span {
    color: black;
    font-weight: bold;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 100;
    margin-top: 8px;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    padding: 10px 24px;
    display: flex;
    align-items: center;
    position: relative;
    gap: 8px;
}

.dropdown-item.selected {
    background-color: #f0f0f0;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

.number {
    color: var(--Text-Default, #111827);
    font-family: "Space Grotesk";
    font-size: 14px;
    font-weight: 700;
    line-height: 160%;
}

.stars .active {
    color: #FDB022;
}

.stars .inactive {
    color: #BEC1C7;
}

.range {
    color: var(--black-black-30, #BEC1C7);
    font-family: "Space Grotesk";
    font-size: 12px;
    font-weight: 400;
    line-height: 160%;
}

.check-icon {
    display: none;
    position: absolute;
    right: 10px;
}

.dropdown-item.selected .check-icon {
    display: block;
}

.infoIcon {
    background-image: url(/_master/_static/assets/info_blue.svg);
    margin-left: 0px;
    background-size: 100%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    background-repeat: no-repeat;
    position: relative;
}

.popover {
    visibility: hidden;
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    border-radius: 8px;
    background: var(--Black-100, #111827);
    color: var(--Text-White, #FFF);
    font-family: "Space Grotesk";
    font-size: 12px;
    font-weight: 700;
    line-height: 160%;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

.popover-list {
    visibility: hidden;
    position: absolute;
    top: 130%;
    padding: 18px;
    border-radius: 8px;
    background: var(--Black-100, #111827);
    color: var(--Text-White, #FFF);
    font-family: "Space Grotesk";
    font-size: 12px;
    font-weight: 700;
    line-height: 160%;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
}

#previewApp .products .icon-background:hover .popover::before,
.infoIcon .popover::before,
#listFlows .deliverable-icons .icon-background .popover-list::before,
#listNew .deliverable-icons .icon-background .popover-list::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #111827 transparent;
}

#previewApp .products .icon-background:hover .popover,
.infoIcon:hover .popover,
#listFlows .deliverable-icons .icon-background:hover .popover-list,
#listNew .deliverable-icons .icon-background:hover .popover-list {
    visibility: visible;
    opacity: 1;
}

/* PAGINACIÓN  */
#paginator {
    padding: 80px;
    gap: 10px;
    display: flex;
    justify-content: center;
}

#paginator>a:hover {
    border-radius: 4px;
    background: var(--Neutral-0, #FFF);
}

#paginator>a.selected {
    border-radius: 4px;
    background: var(--Neutral-0, #FFF);
    cursor: no-drop;
}

#paginator>a.disabled {
    cursor: no-drop;
}

#paginator>a {
    color: var(--Text-Default, #111827);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px;
    display: flex;
    padding: 4px 16px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 4px;
    background: var(--Color-Neutral-100, #F5F5F5);
    cursor: pointer;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating img {
    width: 16px;
    height: 16px;
}

.userAvatar {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.template-card {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    border-radius: 6px;
    border: 1px solid var(--Neutral-200, #E5E7EB);
    background: var(--Neutral-0, #FFF);
    background-color: white;
    flex-wrap: nowrap;
    width: calc(calc(100% / 3) - 7px);
    min-width: 300px;
    box-sizing: border-box;
    padding: 20px 24px 16px 24px;
    color: #030712;
}

.template-card:hover {
    cursor: pointer;
}

.template-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.template-file {
    flex-shrink: 0;
    border-radius: var(--border-radius);
    margin-top: 5px;
    width: 61px;
    height: 61px;
    overflow: hidden;
    background-color: #F3F3F4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-sizing: border-box;
}

.thumbnail-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 4px;
}

.thumbnail-text {
    width: 61px;
    background-color: white;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 3px;
    padding: 2px;
    margin-left: 4px;
    margin-right: 4px;
}

.template-content {
    flex-grow: 1;
    overflow: hidden;
}

.template-name {
    color: var(--Text-Default, #111827);
    font-family: "Space Grotesk";
    font-size: 18px;
    font-weight: 700;
    line-height: 160%;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.name-text {
    flex-grow: 1;
    color: var(--Text-Default, #111827);
    font-family: "Space Grotesk";
    font-size: 18px;
    font-weight: 700;
    line-height: 160%;
    max-width: 100%;
}

.template-description {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    margin-bottom: 19px !important;
    margin-top: 5px !important;
    font-size: 14px;
    font-weight: 400;
    line-height: 160%;
    height: 44px;
    padding: 0;
}

.template-description:hover {
    cursor: pointer;
}

.template-footer {
    display: flex;
    position: relative;
    align-items: center;
    height: 46px;
}

.template-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -24px;
    height: 1px;
    background-color: #E5E7EB;
    width: 118%;
}

.icon-access {
    display: flex;
    align-items: center;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 400;
    line-height: 160%;
}

.icon-access img {
    width: 16px;
    height: 16px;
}

.access-count {
    margin-left: 8px;
}

.deliverable-icons {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.deliverable-icons .icon-background {
    display: flex;
    height: 26px;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.05);
    gap: 3px;
    padding: 2px 4px;
    font-size: 12px;
    font-weight: 400;
    line-height: 160%;
}

.deliverable-icons .icon {
    width: 19px;
    height: 19px;
}

.no-results-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 600px; /* Ajusta según sea necesario para ocupar el espacio disponible */
}

.no-results-container {
    text-align: center;
    padding: 20px;
}

.no-results-icon {
    margin-bottom: 20px;
}

.no-results-title {
    color: var(--Black-40, #A0A3A9);
    font-family: 'Space Grotesk';
    font-size: 18px;
    font-weight: 700;
    line-height: 160%;
}

.no-results-text {
    color: var(--Black-40, #A0A3A9);
    font-family: 'Space Grotesk';
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    margin-top: 10px;
}

.filter-mobile {
    display: none;
}

@media screen and (max-width: 600px) {
    section {
        max-width: 100vw;
        width: 100%;
    }

    #previewApp {
        flex-direction: column;
        padding: 24px;
        gap: 30px;
        margin-top: 30px;
    }

    #previewApp > div:first-child {
        width: 100%;
        order: 2;
    }

    #previewApp > div:nth-child(2) {
        width: 100%;
        order: 1;
    }

    #previewApp > div:nth-child(1) > h2 {
        font-size: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        margin-bottom: 20px;
    }

    #previewApp > div:nth-child(1) > p {
        height: 110px;
        max-height: 110px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 5;
        line-clamp: 5;
        line-height: 1.6;
        margin-bottom: 10px;
        padding: 0;
        padding-bottom: 24px;
    }

    .userInfo {
        gap: 12px;
    }

    #previewApp .rating {
        display: none;
    }

    .mobile-rating {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .mobile-rating img {
        width: 16px;
        height: 16px;
    }

    .mobile-rating span {
        font-size: 12px;
        font-weight: 400;
    }

    .accessCount {
        margin-left: -6px;
    }

    .userAvatar {
        margin: 0;
    }

    .organizationName {
        margin-left: -6px;
    }

    .products > div:first-child > p {
        font-size: 12px;
    }

    #templatesDetail>div:first-child {
        width: fit-content;
    }

    #templatesDetail>div:first-child {
        width: fit-content;
    }

    #templates>div>div:first-child ul {
        display: flex;
        gap: 20px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #templates>div>div:first-child {
        width: 100%;
    }

    #listFlows,
    #listNew {
        justify-content: center;
        gap: 20px;
    }

    #templates>h1 {
        font-size: 34px !important;
        padding: 0 24px;
        margin-bottom: 20px;
    }

    #templates > p {
        padding: 0 24px;
    }

    #templates form {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        margin: 0;
        width: 60%;
    }

    #listFlows>a,
    #listNew>a {
        height: auto;
    }

    #listFlows>a>div>p,
    #listNew>a>div>p {
        width: auto;
    }

    #templates form#searchForm>a {
        margin: 0px;
        padding: 16px 0px;
    }

    .userInfoContainer {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 20px;
    }

    .userInfoContainer .useApp {
        display: none;
    }

    #previewApp > div:nth-child(1) > div.userInfoContainer > button {
        width: 100%;
    }

    #previewApp .products .icon-background {
        padding: 2px;
    }

    .infoIcon {
        width: 14px;
        margin-top: 5px;
    }

    .products > div:first-child {
        gap: 6px;
    }

    div#searchFormContainer {
        margin-top: 40px;
        padding: 24px;
        flex-direction: row;
        height: 42px;
    }

    #searchForm > button {
        display: none;
    }

    .filter-mobile {
        display: flex;
        border-radius: var(--Border-md, 6px);
        background: var(--Background-White, #FFF);
        padding: 12px;
        position: relative;
    }

    .filter-mobile.active {
        background: var(--Black-10, #E7E8E9);
    }

    .filter-mobile .filter-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        min-width: 18px;
        height: 18px;
        border-radius: 25px;
        background: var(--States-Warn, #FF9B42);
        color: white;
        font-size: 10px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2px 6px;
        box-sizing: border-box;
    }

    .containerFilters {
        display: none;
        border: none;
        margin: 0;
    }

    .button-group {
        width: 100%;
        border: none;
    }

    .button-inactive {
        border: 1px solid var(--Gray-200, #E4E7EC) !important;
    }

    #filtersModal {
        position: fixed;
        top: 0; 
        bottom: 0;
        z-index: 999999;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        overflow-y: auto;
    }

    .filters-modal-overlay {
        position: absolute;
        inset: 0;
        backdrop-filter: blur(5px);
        background: rgba(0,0,0,0.18);
        z-index: 0;
    }

    .filters-modal-content {
        position: relative;
        z-index: 1;
        width: 100vw;
        max-width: 100vw;
        border-radius: 20px 20px 0 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.10);
        min-height: 320px;
        max-height: 75vh;
        animation: modalIn .22s cubic-bezier(.46,.03,.52,.96);
    }

    @keyframes modalIn {
        from { transform: translateY(100%);}
        to { transform: translateY(0);}
    }
    
    .filters-modal-bar {
        width: 48px;
        height: 5px;
        border-radius: 6px;
        background: #E7E8E9;
        margin: 18px auto 10px;
    }

    @media (min-width: 601px) {
        #filtersModal { display:none !important; }
    }

    #containerFiltersAndCard {
        display: block;
        width: auto;
        padding: 0 24px;
        margin-top: 30px;
    }

    .clear-filters {
        display: flex;
    }

    .template-card {
        width: 100%;
        max-width: 100%;
    }

    #paginator {
        padding: 40px 0 60px 0;
    }

    #tags {
        max-height: 200px;
    }

    .no-results-wrapper {
        min-height: auto;
    }

    form#searchForm>input {
        margin: 0;
    }
}