/* =========================================================
   PÁGINA DE PREGUNTAS FRECUENTES
   ========================================================= */

.iubello-faq-page {
    background: #fff;
    color: var(--color-negro, #181818);
}


/* =========================================================
   HERO
   ========================================================= */

.iubello-faq-page__hero {
    background: #194f7d;
    padding: 2.5rem 0 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.iubello-faq-page__hero-inner {
    max-width: 950px;
}

.iubello-faq-page__title {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: #fff;
}
.iubello-faq-page__intro {
    max-width: 760px;
    margin: 0.9rem 0 1.5rem;
    font-family: "Source Sans 3", sans-serif;
    font-size: 1.2rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.iubello-faq-search {
    position: relative;
    width: min(100%, 760px);
}

.iubello-faq-search__icon {
    position: absolute;
    top: 50%;
    left: 1.35rem;
    transform: translateY(-50%);
    color: #155d91;
    pointer-events: none;
}

.iubello-faq-search__input {
    width: 100%;
    min-height: 64px;
    padding: 0 1.5rem 0 3.7rem;

    border: 1px solid rgba(11, 53, 84, 0.18);
    border-radius: 12px;

    background: #fff;

    font-family: "Source Sans 3", sans-serif;
    font-size: 1.08rem;
    color: #1f2937;

    box-shadow:
        0 8px 30px rgba(11, 53, 84, 0.06);

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.iubello-faq-search__input::placeholder {
    color: #7b8490;
}

.iubello-faq-search__input:focus {
    border-color: #155d91;

    box-shadow:
        0 0 0 4px rgba(21, 93, 145, 0.1),
        0 10px 32px rgba(11, 53, 84, 0.08);
}


/* =========================================================
   CONTENIDO GENERAL
   ========================================================= */

.iubello-faq-page__content {
    padding: 4.5rem 0 6rem;
}
.iubello-faq-page__content > .iubello-container {
    max-width: 1500px;
    width: calc(100% - 3rem);
}

.iubello-faq-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(2.5rem, 4vw, 4rem);
    align-items: start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.iubello-faq-sidebar {
    min-width: 0;
}

.iubello-faq-sidebar__inner {
    position: sticky;
    top: 145px;

    overflow: hidden;

    border: 1px solid rgba(11, 53, 84, 0.1);
    border-radius: 14px;

    background: #f8f9fa;
}

.iubello-faq-sidebar__title {
    margin: 0;
    padding: 1.35rem 1.4rem;

    border-bottom: 1px solid rgba(11, 53, 84, 0.1);

    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;

    color: #0b3554;
}


/* =========================================================
   BOTONES DE TEMAS
   ========================================================= */

.iubello-faq-topic {
    position: relative;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    padding: 1rem 1.35rem;

    border: 0;
    border-bottom: 1px solid rgba(11, 53, 84, 0.06);

    background: transparent;

    font-family: "Source Sans 3", sans-serif;
    font-size: 1rem;
    line-height: 1.35;
    text-align: left;

    color: #4b5563;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        padding-left 0.2s ease;
}

.iubello-faq-topic:last-child {
    border-bottom: 0;
}

.iubello-faq-topic:hover {
    background: rgba(21, 93, 145, 0.06);
    color: #155d91;
}

.iubello-faq-topic.is-active {
    padding-left: 1.65rem;

    background: #fff;

    color: #0b3554;
    font-weight: 700;
}

.iubello-faq-topic.is-active::before {
    content: "";

    position: absolute;
    top: 0.65rem;
    bottom: 0.65rem;
    left: 0;

    width: 4px;

    border-radius: 0 4px 4px 0;

    background: #155d91;
}

.iubello-faq-topic__count {
    flex-shrink: 0;

    min-width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 0.45rem;

    border-radius: 999px;

    background: rgba(21, 93, 145, 0.09);

    font-size: 0.82rem;
    font-weight: 700;

    color: #155d91;
}

.iubello-faq-topic.is-active .iubello-faq-topic__count {
    background: #155d91;
    color: #fff;
}


/* =========================================================
   RESULTADOS
   ========================================================= */

.iubello-faq-results {
    min-width: 0;
}


/* =========================================================
   GRUPOS
   ========================================================= */

.iubello-faq-group {
    margin-bottom: 4rem;
}

.iubello-faq-group:last-child {
    margin-bottom: 0;
}

.iubello-faq-group__title {
    margin: 0 0 1.4rem;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.2;
    font-weight: 700;

    color: #0b3554;
}

.iubello-faq-group__items {
    overflow: hidden;

    border: 1px solid rgba(11, 53, 84, 0.1);
    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 8px 30px rgba(11, 53, 84, 0.04);
}


/* =========================================================
   PREGUNTAS
   ========================================================= */

.iubello-faq-item {
    border-bottom: 1px solid rgba(11, 53, 84, 0.09);

    transition:
        background 0.2s ease;
}

.iubello-faq-item:last-child {
    border-bottom: 0;
}

.iubello-faq-item:hover {
    background: #f8fafb;
}

.iubello-faq-item.is-open {
    background: #f8fafb;
}

.iubello-faq-item__heading {
    margin: 0;
}

.iubello-faq-item__trigger {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    padding: 1.5rem 1.6rem;

    border: 0;

    background: transparent;

    color: #18222c;

    text-align: left;

    cursor: pointer;
}

.iubello-faq-item__question {
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 600;
}

.iubello-faq-item__trigger:hover .iubello-faq-item__question,
.iubello-faq-item__trigger:focus-visible .iubello-faq-item__question {
    color: #155d91;
}


/* =========================================================
   ICONO + / -
   ========================================================= */

.iubello-faq-item__toggle {
    position: relative;

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: rgba(21, 93, 145, 0.08);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.iubello-faq-item__plus-horizontal,
.iubello-faq-item__plus-vertical {
    position: absolute;

    top: 50%;
    left: 50%;

    display: block;

    width: 14px;
    height: 2px;

    border-radius: 999px;

    background: #155d91;

    transform: translate(-50%, -50%);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.iubello-faq-item__plus-vertical {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.iubello-faq-item.is-open .iubello-faq-item__toggle {
    background: #155d91;
}

.iubello-faq-item.is-open
.iubello-faq-item__plus-horizontal {
    background: #fff;
}

.iubello-faq-item.is-open
.iubello-faq-item__plus-vertical {
    opacity: 0;
    background: #fff;

    transform:
        translate(-50%, -50%)
        rotate(0deg);
}


/* =========================================================
   RESPUESTAS
   ========================================================= */

.iubello-faq-item__answer {
    padding: 0 1.6rem 1.6rem;
}

.iubello-faq-item__answer-inner {
    max-width: 820px;

    padding: 0.3rem 3.8rem 0 0;

    font-family: "Source Sans 3", sans-serif;
    font-size: 1.05rem;
    line-height: 1.75;

    color: #4b5563;
}

.iubello-faq-item__answer-inner > :first-child {
    margin-top: 0;
}

.iubello-faq-item__answer-inner > :last-child {
    margin-bottom: 0;
}

.iubello-faq-item__answer-inner p {
    margin: 0 0 1rem;
}

.iubello-faq-item__answer-inner a {
    color: #155d91;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* =========================================================
   ESTADO SIN RESULTADOS
   ========================================================= */

.iubello-faq-results__empty {
    padding: 3rem;

    border: 1px solid rgba(11, 53, 84, 0.1);
    border-radius: 14px;

    background: #f8f9fa;

    text-align: center;
}

.iubello-faq-results__empty h2 {
    margin: 0 0 0.75rem;

    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;

    color: #0b3554;
}

.iubello-faq-results__empty p {
    margin: 0;

    font-family: "Source Sans 3", sans-serif;
    font-size: 1.05rem;

    color: #606a75;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.iubello-faq-topic:focus-visible,
.iubello-faq-item__trigger:focus-visible {
    outline: 3px solid rgba(21, 93, 145, 0.3);
    outline-offset: -3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .iubello-faq-page__hero {
        padding: 3.5rem 0 3.75rem;
    }

    .iubello-faq-page__hero {
    padding: 2.5rem 0 2.75rem;
}

    .iubello-faq-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .iubello-faq-sidebar__inner {
        position: static;
    }

    .iubello-faq-sidebar__inner {
        display: flex;
        flex-wrap: wrap;
        gap: 0.65rem;

        padding: 1rem;

        background: #f8f9fa;
    }

    .iubello-faq-sidebar__title {
        width: 100%;

        padding: 0 0 0.65rem;

        border: 0;
    }

    .iubello-faq-topic {
        width: auto;

        padding: 0.7rem 1rem;

        border: 1px solid rgba(11, 53, 84, 0.12);
        border-radius: 999px;

        background: #fff;
    }

    .iubello-faq-topic.is-active {
        padding-left: 1rem;

        border-color: #155d91;

        background: #155d91;

        color: #fff;
    }

    .iubello-faq-topic.is-active::before {
        display: none;
    }

    .iubello-faq-topic.is-active
    .iubello-faq-topic__count {
        background: rgba(255, 255, 255, 0.17);
    }
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .iubello-faq-page__hero {
        padding: 2.75rem 0 3rem;
    }

    .iubello-faq-page__title {
        font-size: clamp(2.15rem, 12vw, 3rem);
    }

    .iubello-faq-page__intro {
        margin-top: 1rem;

        font-size: 1.05rem;
    }

    .iubello-faq-search__input {
        min-height: 58px;

        padding-left: 3.4rem;

        font-size: 1rem;
    }

    .iubello-faq-page__hero {
    padding: 2rem 0 2.25rem;
}

    .iubello-faq-layout {
        gap: 2rem;
    }

    .iubello-faq-sidebar__inner {
        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 1.1rem;

        scrollbar-width: thin;
    }

    .iubello-faq-sidebar__title {
        display: none;
    }

    .iubello-faq-topic {
        flex: 0 0 auto;
    }

    .iubello-faq-group {
        margin-bottom: 3rem;
    }

    .iubello-faq-group__title {
        margin-bottom: 1rem;
    }

    .iubello-faq-item__trigger {
        gap: 1.25rem;

        padding: 1.3rem 1.2rem;
    }

    .iubello-faq-item__question {
        font-size: 1rem;
    }

    .iubello-faq-item__toggle {
        flex-basis: 34px;

        width: 34px;
        height: 34px;
    }

    .iubello-faq-item__answer {
        padding:
            0
            1.2rem
            1.35rem;
    }

    .iubello-faq-item__answer-inner {
        padding-right: 0;

        font-size: 1rem;
        line-height: 1.7;
    }

}