.studies-search-header {
    position: relative;
    border-bottom: 1px solid #dbe8ef;
    background: #082542 url("../images/cotizador/hero-2-1440.webp") center / cover no-repeat;
    color: #fff;
}

.studies-search-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 31, 66, 0.9) 0%, rgba(0, 31, 66, 0.76) 35%, rgba(0, 31, 66, 0.5) 100%);
    pointer-events: none;
}

.studies-search-header-inner {
    width: var(--content-width);
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 49px 0 51px;
}

.studies-search-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.studies-search-heading h1 {
    margin: 0;
    font-size: 29px;
    line-height: 1.18;
}

.studies-search-heading p {
    margin: 5px 0 0;
    font-size: 14px;
    line-height: 1.35;
}

.studies-search-heading .studies-search-count {
    flex: 0 0 auto;
    margin: 0 0 2px;
    color: #e4edf5;
    font-size: 12px;
}

.studies-search-header .studies-search-row {
    display: block;
    margin-top: 17px;
}

.studies-search-header .studies-search {
    width: min(100%, 980px);
    min-height: 60px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 47, 85, 0.12);
}

.studies-search-header .studies-search input {
    color: #003a67;
}

.studies-search-header .studies-search button {
    background: #87c440;
    color: #fff;
}

.studies-catalog {
    padding-top: 0;
}

.profile-highlights {
    position: relative;
    left: 50%;
    width: min(calc(100vw - 32px), 1500px);
    margin: 28px 0 32px;
    transform: translateX(-50%);
}

.profile-highlights-head {
    margin-bottom: 10px;
}

.profile-carousel {
    grid-auto-columns: calc((100% - 54px) / 4);
    gap: 18px;
    padding-bottom: 7px;
}

.profile-carousel-shell.is-interacting .profile-carousel {
    scroll-behavior: smooth;
}

.profile-card {
    min-height: 117px;
    display: grid;
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-color: #d9e4ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 47, 85, 0.1);
}

.profile-card-media {
    width: 95px;
    height: 95px;
    border-radius: 5px;
}

.profile-card-media img.is-section-icon-image {
    padding: 10px;
}

.profile-card-overlay {
    display: none;
}

.profile-card-body {
    min-width: 0;
    min-height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
}

.profile-card-name {
    position: static;
    width: 100%;
    margin: auto 0;
    flex-shrink: 0;
    overflow-wrap: break-word;
    color: #002f55;
    font-size: 16px;
    line-height: 1.16;
    font-weight: 400;
    text-align: center;
    text-shadow: none;
}

.profile-card-name .profile-card-prefix {
    font-weight: 800;
}

.profile-card-actions {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 7px;
}

.profile-card-actions .study-more,
.profile-card-actions .study-quote {
    min-height: 31px;
    padding: 6px 7px;
    font-size: 11px;
    white-space: nowrap;
}

.profile-card-actions .study-more {
    border-color: #0067c7;
    background: #fff;
    color: #0067c7;
}

.profile-card-actions .study-quote {
    border-color: #87c440;
    background: #87c440;
    color: #fff;
}

.study-card-media {
    height: 180px;
}

.study-card-media img.is-section-icon-image {
    padding: 12px 28px;
}

.study-card-body {
    min-height: 160px;
    grid-template-rows: minmax(82px, 1fr) 42px;
    gap: 8px;
    padding: 14px 18px;
}

.studies-filter-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 20px;
}

.studies-filter-bar .studies-filters {
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
}

.studies-filter-bar .studies-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin: 0;
}

.studies-filter-bar .studies-view-toggle {
    justify-content: flex-end;
}

.quote-assist-widget {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
}

.quote-assist-toggle {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid #c9dfe9;
    border-radius: 8px;
    background: #fff;
    color: #002f55;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(0, 47, 85, 0.18);
    cursor: pointer;
}

.quote-assist-toggle i {
    color: #278b43;
    font-size: 21px;
}

.quote-assist-toggle:hover,
.quote-assist-toggle:focus-visible {
    border-color: #87c440;
}

.quote-font-controls {
    display: none;
}

.quote-assist-widget.is-open .quote-assist-toggle {
    visibility: hidden;
    pointer-events: none;
}

.quote-assist-panel {
    width: min(390px, calc(100vw - 32px));
    max-height: calc(100dvh - 190px);
    position: absolute;
    right: 0;
    bottom: 0;
    overflow: auto;
    border: 1px solid #d9e4ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 47, 85, 0.23);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(18px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.quote-assist-widget.is-open .quote-assist-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
}

.quote-assist-close {
    width: 32px;
    height: 32px;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e4ea;
    border-radius: 50%;
    background: #fff;
    color: #002f55;
    cursor: pointer;
}

.quote-assist-panel .studies-help-card {
    max-width: none;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    transform: none;
}

.quote-assist-panel .studies-help-media {
    width: 100px;
    max-height: none;
}

.quote-assist-panel .studies-help-copy {
    padding-right: 19px;
}

.quote-assist-panel .studies-help-copy h2 {
    margin: 0;
    color: #002f55;
    font-size: 17px;
    line-height: 1.2;
}

.quote-assist-panel .studies-help-copy p {
    color: #5c7388;
    line-height: 1.35;
}

.quote-assist-panel .studies-help-copy a {
    font-size: 12px;
    text-align: center;
}

@media (min-width: 1021px) {
    .studies-search-header .studies-search-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .studies-search-header .studies-search {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: 980px;
    }

    .quote-assist-widget {
        position: relative;
        right: auto;
        bottom: auto;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .quote-font-controls {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: flex;
        gap: 6px;
    }

    .quote-font-controls button {
        width: 36px;
        height: 28px;
        border: 1px solid #c9dfe9;
        border-radius: 6px;
        background: #fff;
        color: #002f55;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
    }

    .quote-font-controls button:hover,
    .quote-font-controls button:focus-visible {
        border-color: #87c440;
        color: #278b43;
    }

    .quote-font-controls button:disabled {
        opacity: .45;
        cursor: default;
    }

    .quote-assist-widget.is-open .quote-font-controls {
        visibility: hidden;
    }

    .quote-assist-panel {
        top: calc(100% + 12px);
        bottom: auto;
    }

    .quote-cart {
        width: 40px;
        height: 40px;
        position: relative;
        top: auto;
        right: auto;
        flex: 0 0 auto;
        font-size: 20px;
    }

    .quote-cart span {
        min-width: 19px;
        height: 19px;
        font-size: 10px;
    }
}

@media (max-width: 1439px) {
    .profile-carousel {
        grid-auto-columns: min(390px, calc((100% - 36px) / 3));
    }
}

@media (max-width: 1100px) {
    .profile-carousel {
        grid-auto-columns: calc((100% - 14px) / 2);
        gap: 14px;
    }
}

@media (max-width: 760px) {
    .main-nav .quote-cart {
        width: 36px;
        height: 36px;
        position: relative;
        top: auto;
        right: auto;
        margin-left: auto;
        font-size: 18px;
        box-shadow: 0 4px 12px rgba(0, 47, 85, 0.18);
    }

    .main-nav .quote-cart span {
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        font-size: 9px;
    }

    .main-nav .menu-button {
        margin-left: 0;
    }

    .studies-search-header {
        background-image: url("../images/cotizador/hero-2-mobile.webp");
        background-position: center;
    }

    .studies-search-header-inner {
        padding: 43px 0 45px;
    }

    .studies-search-heading {
        display: block;
    }

    .studies-search-heading h1 {
        font-size: 23px;
    }

    .studies-search-heading .studies-search-count {
        margin-top: 7px;
    }

    .studies-search-header .studies-search {
        grid-template-columns: minmax(0, 1fr) 98px;
        min-height: 54px;
    }

    .studies-search-header .studies-search button span {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    .profile-highlights {
        margin: 22px 0 26px;
    }

    .profile-carousel-shell {
        display: block;
        position: relative;
    }

    .profile-carousel-arrow {
        position: absolute;
        z-index: 2;
        top: -46px;
        display: inline-flex;
    }

    .profile-carousel-arrow-prev {
        right: 42px;
    }

    .profile-carousel-arrow-next {
        right: 0;
    }

    .profile-carousel {
        grid-auto-columns: min(86%, 370px);
        gap: 12px;
        scroll-snap-type: inline mandatory;
        scroll-padding-inline: 2px;
        padding-bottom: 5px;
    }

    .profile-card {
        min-height: 107px;
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 9px;
    }

    .profile-card-media {
        width: 100%;
        height: 85px;
    }

    .profile-card-body {
        width: 100%;
        min-height: 85px;
    }

    .profile-card-name {
        font-size: 14px;
    }

    .profile-card-actions {
        gap: 5px;
    }

    .profile-card-actions .study-more,
    .profile-card-actions .study-quote {
        min-height: 29px;
        padding: 5px 3px;
        font-size: 10px;
    }

    .quote-assist-widget {
        right: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    .quote-assist-toggle {
        width: 52px;
        height: 52px;
        min-height: 0;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .quote-assist-toggle span {
        display: none;
    }

    .quote-assist-toggle i {
        font-size: 25px;
    }

    .quote-assist-panel {
        max-height: calc(100dvh - 180px);
    }

    .quote-assist-panel .studies-help-card {
        grid-template-columns: 78px minmax(0, 1fr);
        padding: 14px;
    }

    .quote-assist-panel .studies-help-media {
        width: 78px;
    }

    .quote-assist-panel .studies-help-copy h2 {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quote-assist-panel {
        transition: none;
    }

    .profile-carousel-shell.is-interacting .profile-carousel {
        scroll-behavior: auto;
    }
}
