.servicios-hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(225, 29, 39, .07) 0%, transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(63, 73, 174, .07) 0%, transparent 45%),
        #F1F6FD;
}

.search-shell {
    background: #fff;
    border: 1px solid rgba(15, 23, 56, .10);
    transition: border-color .25s, box-shadow .25s;
}
.search-shell:focus-within {
    border-color: #E11D27;
    box-shadow: 0 0 0 4px rgba(225, 29, 39, .10);
}
.search-shell input::placeholder { color: rgba(15,23,56,.45); }

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid rgba(15, 23, 56, .08);
    border-radius: 20px;
    box-shadow: 0 24px 48px -16px rgba(15, 23, 56, .18), 0 2px 4px rgba(15, 23, 56, .04);
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
}
.search-results-header {
    padding: 10px 14px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(15, 23, 56, .5);
}
.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}
.search-result-item:hover, .search-result-item.is-active {
    background: #F0F3FA;
}
.search-result-item .sri-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FFEDE9;
    color: #E11D27;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.search-result-item .sri-name {
    font-size: 14.5px;
    font-weight: 600;
    color: #0F1738;
    line-height: 1.3;
}
.search-result-item .sri-cat {
    font-size: 11.5px;
    color: rgba(15, 23, 56, .55);
    margin-top: 2px;
    letter-spacing: .03em;
}
.search-results-empty {
    padding: 24px 16px;
    text-align: center;
    color: rgba(15, 23, 56, .55);
    font-size: 14px;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 56, .12);
    color: #0F1738;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.cat-chip:hover {
    border-color: rgba(225, 29, 39, .35);
    color: #B8161E;
}
.cat-chip.is-active {
    background: #E11D27;
    border-color: #E11D27;
    color: #fff;
}
.cat-chip .count {
    font-weight: 600;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(15,23,56,.08);
    color: rgba(15,23,56,.65);
}
.cat-chip.is-active .count {
    background: rgba(255,255,255,.22);
    color: #fff;
}

.cat-anchor { scroll-margin-top: 110px; }

.study-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 56, .08);
    border-radius: 16px;
    padding: 22px 24px;
    transition: border-color .25s, box-shadow .25s, transform .25s, background .25s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}
.study-card:hover {
    border-color: rgba(225, 29, 39, .35);
    box-shadow: 0 1px 0 rgba(225, 29, 39, .08), 0 18px 40px -18px rgba(15, 23, 56, .15);
    transform: translateY(-2px);
    background: #fff;
}
.study-card .code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #E11D27;
}
.study-card .code::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #E11D27;
    display: inline-block;
}
.study-card h3 {
    font-weight: 700;
    font-size: 17px;
    color: #0F1738;
    line-height: 1.25;
    letter-spacing: -.005em;
}
.study-card p {
    font-size: 13.5px;
    color: rgba(15, 23, 56, .68);
    line-height: 1.55;
}

.study-card.is-flash {
    border-color: #E11D27 !important;
    box-shadow: 0 0 0 4px rgba(225, 29, 39, .15), 0 18px 40px -18px rgba(15, 23, 56, .2) !important;
}

mark.search-mark {
    background: rgba(225, 29, 39, .14);
    color: #B8161E;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 3px;
}

.toolbar {
    position: sticky;
    top: 80px;
    z-index: 30;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cat-banner {
    border: 1px solid rgba(15, 23, 56, .08);
    background: #fff;
    overflow: hidden;
    align-items: stretch;
}
.cat-banner-photo {
    position: relative;
    overflow: hidden;
    background: #FFEDE9;
    height: 100%;
}
.cat-banner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s ease;
}
.cat-banner:hover .cat-banner-photo img {
    transform: scale(1.04);
}
.cat-banner-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,56,0) 50%, rgba(15,23,56,.55) 100%);
    pointer-events: none;
}
.cat-banner-photo .photo-tag {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 1;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.cat-banner .cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #E11D27;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.empty-state {
    border: 1px dashed rgba(15,23,56,.18);
    background: #fff;
}

.cat-section.is-hidden { display: none; }
.study-card-wrap.is-hidden { display: none; }
