/* Temas — explorador orbital. Solo se carga en /temas/ */
.topics-explorer {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: calc(var(--header-height, 76px) + 45px) 0 85px;
    color: var(--text, #f4fbf8)
}

.topics-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 38px;
    position: relative
}

.topics-back {
    display: inline-block;
    color: var(--green, #78e68f);
    margin-bottom: 26px;
    text-decoration: none
}

.topics-eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--green, #78e68f);
    font-size: .77rem;
    margin: 0 0 12px
}

.topics-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.12;
    margin: 0 0 18px
}

.topics-lead {
    color: var(--text-soft, #a9c3ba);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 25px
}

.topics-search-wrap {
    max-width: 570px;
    margin: 0 auto
}

.topics-search-label {
    display: block;
    text-align: left;
    font-size: .84rem;
    color: var(--text-soft, #a9c3ba);
    margin-bottom: 8px
}

.topics-search-box {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 35px;
    background: #eefaf6;
    color: #125342;
    border: 2px solid #80e8b6;
    box-shadow: 0 0 35px #43cf9d20
}

.topics-search-box>span {
    font-size: 1.6rem
}

.topics-search-box input {
    width: 100%;
    min-width: 0;
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: #123f34;
    font: inherit;
    font-size: .94rem
}

.topics-search-box input::placeholder {
    color: #65877c
}

.topics-search-box:focus-within {
    outline: 3px solid #b3ffb280;
    outline-offset: 3px
}

.topics-search-box button {
    border: 0;
    background: #d4eee4;
    color: #125342;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.4rem
}

.topics-search-box button[hidden] {
    display: none
}

.topics-summary {
    color: var(--text-soft, #a9c3ba);
    font-size: .8rem;
    margin: 17px 0 0
}

.topics-orbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 18px 24px;
    margin: 34px auto 52px;
    max-width: 1050px
}

.topics-orb {
    appearance: none;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    width: 112px;
    text-align: center;
    font: inherit;
    padding: 0
}

.topics-orb__disc {
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 1px solid #9bffc36b;
    background: radial-gradient(circle at 34% 20%, #4da68b88, #0c3832 75%);
    box-shadow: inset 0 2px 9px #ffffff20, 0 7px 24px #0006;
    transition: transform .2s, border-color .2s, box-shadow .2s
}

.topics-orb__disc span {
    font-size: 2rem;
    color: #b0ffe0
}

.topics-orb strong {
    font-size: .82rem;
    line-height: 1.2
}

.topics-orb small {
    font-size: .7rem;
    color: var(--text-soft, #a9c3ba)
}

.topics-orb:hover .topics-orb__disc,
.topics-orb.is-active .topics-orb__disc {
    transform: translateY(-4px);
    border-color: #b9ffcb;
    box-shadow: 0 0 0 3px #7df0b33a, 0 0 24px #79efb04d, inset 0 2px 9px #ffffff30
}

.topics-orb:focus-visible {
    outline: 2px solid #b9ffcb;
    outline-offset: 5px;
    border-radius: 12px
}

.topics-orb--enfermedad .topics-orb__disc {
    background: radial-gradient(circle at 30% 20%, #b9794e, #422a20 85%);
    border-color: #ffb57a8a
}

.topics-orb--sintoma .topics-orb__disc {
    background: radial-gradient(circle at 30% 20%, #5489b3, #15334b 85%);
    border-color: #70caff8a
}

.topics-orb--anatomia .topics-orb__disc {
    background: radial-gradient(circle at 30% 20%, #9b69bd, #322045 85%);
    border-color: #c48cff8a
}

.topics-orb--etapa_vida .topics-orb__disc {
    background: radial-gradient(circle at 30% 20%, #4eab70, #1a402d 85%);
    border-color: #84ffa18a
}

.topics-orb--recurso .topics-orb__disc {
    background: radial-gradient(circle at 30% 20%, #b4a25a, #4a3e20 85%);
    border-color: #ffe28b8a
}

.topics-directory {
    max-width: 1080px;
    margin: auto
}

.topics-group {
    margin-bottom: 42px
}

.topics-group[hidden],
.topic-card[hidden],
.topics-empty[hidden] {
    display: none !important
}

.topics-group__heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #9cffc82b;
    padding-bottom: 15px;
    margin-bottom: 19px
}

.topics-group h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin: 0
}

.topics-group__heading>span {
    color: var(--text-soft, #a9c3ba);
    font-size: .8rem
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 13px
}

.topic-card {
    min-height: 98px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
    border: 1px solid #9cffc82b;
    border-radius: 19px;
    padding: 17px 19px;
    background: linear-gradient(145deg, #184c4180, #062923d9);
    color: inherit;
    text-decoration: none;
    transition: transform .2s, border-color .2s, background .2s
}

.topic-card strong {
    font-size: 1rem
}

.topic-card>span {
    color: var(--text-soft, #a9c3ba);
    font-size: .76rem
}

.topic-card>span span {
    float: right;
    color: #8cebb6
}

.topic-card:hover {
    transform: translateY(-3px);
    border-color: #82f4bd99;
    background: linear-gradient(145deg, #2067579c, #07372cd9)
}

.topic-card:focus-visible {
    outline: 2px solid #b9ffcb;
    outline-offset: 3px
}

.topics-empty {
    text-align: center;
    color: #e8f7ee;
    padding: 35px
}

@media(max-width:600px) {
    .topics-explorer {
        width: 92%;
        padding-top: calc(var(--header-height, 76px) + 28px)
    }

    .topics-orbs {
        gap: 15px 9px;
        margin: 27px auto 35px
    }

    .topics-orb {
        width: calc((100% - 27px)/4)
    }

    .topics-orb__disc {
        width: 65px;
        height: 65px
    }

    .topics-orb__disc span {
        font-size: 1.5rem
    }

    .topics-orb strong {
        font-size: .69rem;
        overflow-wrap: anywhere
    }

    .topics-orb small {
        font-size: .62rem
    }

    .topics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .topic-card {
        min-height: 95px;
        padding: 13px
    }

    .topic-card strong {
        font-size: .9rem
    }

    .topic-card>span {
        font-size: .68rem
    }

    .topics-search-box {
        height: 54px
    }
}

@media(max-width:350px) {
    .topics-orb {
        width: calc((100% - 18px)/3)
    }

    .topics-grid {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {

    .topics-orb__disc,
    .topic-card {
        transition: none
    }
}