.pf-form-search {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    max-width: 860px;
}

.pf-form-search .pf-lupa {
    position: absolute;
    left: 0;
    background-color: #484D45;
    width: 40px;
    height: 100%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pf-form-search input {
    background-color: #E0E0E080;
    padding-left: 50px;
}

.pf-form-search input,
.pf-form-search .btn {
    border: none;
    border-radius: 0;
}

.heading-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.heading-logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    margin-right: 10px;
}

.heading-logo .section-t_subtitle {
    margin-bottom: 0;
}

.border-left-red {
    position: relative;
    padding-left: 8px;
}

.border-left-red::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background-color: #CA082C;
    width: 4px;
    height: 100%;
}

.cards-mas-buscadas {
    padding: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cards-mas-buscadas .owl-stage-outer {
    overflow: visible;
}

.cards-mas-buscadas .owl-stage-outer .owl-stage {
    display: flex;
}

.cards-mas-buscadas .owl-stage-outer .owl-stage .owl-item {
    flex-grow: 1;
}

.card-mas-buscadas {
    display: flex;
    flex-direction: column;
    box-shadow: 0px 4px 4px 0px #00000040;
    background-color: #F0F0F080;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
}

.card-mas-buscadas .ver-mas {
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin: auto 0 0 auto;
    font-size: 16px;
    color: #469DC5;
}

.card-mas-buscadas .ver-mas svg {
    transition: 0.2s;
}

.card-mas-buscadas .ver-mas:hover svg {
    transform: translateX(8px);
}

.cards-mas-buscadas .owl-nav .owl-prev,
.cards-mas-buscadas .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.cards-mas-buscadas .owl-nav .owl-prev {
    left: 0;
}

.cards-mas-buscadas .owl-nav .owl-next {
    right: 0;
}

.grid-pf {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pf-cat {
    background-color: #6BA3B7;
    padding: 12px 30px;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    transition: 0.2s;
}

.pf-cat:hover {
    box-shadow: 0px 4px 4px 0px #00000040;
}

.pf-cat_title {
    font-size: 16px;
    font-weight: 400;
    margin: 0;
    text-align: center;
    color: #fff;
}

.pf-cat_arrow {
    position: absolute;
    right: 15px;
    top: 40%;
}

.pf-cat.active .pf-cat_arrow {
    transform: rotate(-180deg);
}

.pf-cat_list-container {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 5;
    overflow: hidden;
    max-height: 0;
    transition: 0.3s ease;
    width: 100%;
}

.pf-cat_list {
    background-color: #fff;
    border: 3px solid #6BA3B7;
    padding: 0;
    border-radius: 5px;
}

.pf-cat_list .pf-cat_list-item {
    margin: 15px 0;
    padding: 0 18px 0 25px;
    line-height: 110%;
    position: relative;
    text-decoration: underline;
    cursor: pointer;
    color: #7F7F7F;
}

.pf-cat_list .pf-cat_list-item:hover {
    color: #6BA3B7;
}

.pf-cat_list .pf-cat_list-item::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: #4C4C4A;
    border-radius: 50%;
}

.pf-cat.active .pf-cat_list-container {
    max-height: 1000px;
}

@media (min-width: 576px) {
    .grid-pf {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px 10px;
    }
}

@media (min-width: 992px) {
    .grid-pf {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px 20px;
    }

    .pf-cat {
        padding: 20px 30px;
        border-radius: 10px;
    }

    .pf-cat_list {
        border-radius: 10px;
    }

    .pf-cat_list .pf-cat_list-item,
    .pf-cat_title {
        font-size: 20px;
    }
}

/* POPUP/MODAL */

/* Overlay / contenedor */
.pf-modal-container {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(6, 10, 18, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999999999;
    padding: 24px;
    box-sizing: border-box;
}

.modal-active {
    display: flex;
}

/* Carta modal */
.pf-modal {
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #ffffff);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.12);
    overflow: hidden;
    transform-origin: center;
    animation: pf-modal-in .16s ease-out;
}

/* Animación de entrada */
@keyframes pf-modal-in {
    from {
        transform: translateY(8px) scale(.995);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Header */
.pf-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: #68A2B9;
    border-bottom: 1px solid rgba(11, 108, 245, 0.04);
}

.pf-modal-title {
    margin: 0;
    font-size: 1.125rem;
    line-height: 1.2;
    color: #fff;
    font-weight: 600;
    flex: 1 1 auto;
}

.pf-modal-close {
    background-color: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
}

/* Ajusta el SVG dentro del header */
.pf-modal-header svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 6px rgba(11, 108, 245, 0.08));
}

/* Contenido principal */
.pf-modal>div:not(.pf-modal-header) {
    padding: 18px 20px;
    height: calc(100vh - 160px);
    overflow: auto;
}

/* Collapsed items */
.collapsed-item {
    margin-bottom: 12px;
}

/* Cabezera del item (clickable) */
.collapsed-item h4,
.collapsed-item .collapsed-item-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    padding-right: 20px;
}

/* Indicador pequeño al final (flecha) */
.collapsed-item h4::after,
.collapsed-item .collapsed-item-title::after {
    content: "";
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: rotate(45deg);
    transition: transform .25s ease, border-color .15s ease;
    display: inline-block;
}

.collapsed-item h4 {
    position: relative;
}

.collapsed-item h4::after {
    position: absolute;
    right: 0;
}

/* Contenido colapsable */
.collapsed {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: 0.5s;
    padding-top: 0;
    margin-top: 0;
}

/* Cuando esté abierto (se añade la clase `open` al `.collapsed-item`) */
.collapsed-item.open .collapsed {
    opacity: 1;
    padding-top: 12px;
    margin-top: 6px;
    max-height: 1200px;
    /* suficiente para contenido largo */
}

/* Rotar la flecha cuando abierto */
.collapsed-item.open h4::after,
.collapsed-item.open .collapsed-item-title::after {
    transform: rotate(-135deg);
    border-color: #0b6cf5;
}

/* Texto y listas dentro del contenido */
.collapsed p {
    margin: 0 0 10px 0;
}

.collapsed ul {
    margin: 0 0 10px 18px;
}

.collapsed li {
    margin-bottom: 6px;
    list-style: disc;
}

/* Focus / accesibilidad */
.collapsed-item h4:focus,
.collapsed-item .collapsed-item-title:focus {
    outline: none;
}

/* Prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {

    .pf-modal,
    .collapsed,
    .collapsed-item h4::after {
        transition: none !important;
        animation: none !important;
    }
}

/* Responsive: modal ocupa casi toda la pantalla en móviles */
@media (min-width: 992px) {
    .pf-modal-header {
        padding: 20px 40px;
    }

    .pf-modal>div:not(.pf-modal-header) {
        padding: 30px 40px;
        height: 580px;
    }
}

@media (max-width: 640px) {
    .pf-modal {
        border-radius: 10px;
        max-width: 640px;
        margin: 0 6px;
    }

    .pf-modal-title {
        font-size: 1rem;
    }
}