:root {
    --ai-btn-background-gradient: linear-gradient(
        91deg,
        #8f67d9 1.12%,
        #826ae1 15.84%,
        #716ee9 30.55%,
        #5c71f1 45.27%,
        #2887fc 59.98%,
        #00a9ff 74.7%,
        #00c6fb 89.41%,
        #61e0f3 99.22%
    );
}

.tabs-search {
    display: block;
    width: 100%;
    height: 441px;
    border-radius: 5px;
    margin-bottom: 100px;
    position: relative;
    overflow: visible; /* 👈 clave para que el recorte respete el border-radius */
}

.tabs-search__title {
    /* Mobile */
    color: #fff;
    text-align: center;
    font-feature-settings:
        "case" on,
        "cv01" on,
        "cv02" on,
        "cv03" on,
        "cv04" on,
        "cv05" on,
        "cv06" on;
    text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    font-style: normal;
    line-height: 115%; /* 27.6px */
    margin-bottom: 25px;
    max-width: 640px;
}

.tabs-search__background-images {
    /* position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    pointer-events: none;  */

    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto;
    height: inherit;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.tabs-search__background-images::before {
    content: "";
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 0, 0, 0.27) 100%
    );
    position: absolute;
    inset: 0;
}

.tabs-search__content {
    inset: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.test {
    width: 100%;
    height: inherit;
    display: block;
}

.test img {
    width: 100%;
    height: inherit;
    object-fit: cover;
    object-position: top;
}
.tabs-search__center-layer {
    width: 100%;
    padding: 18.5px;
    max-width: 640px;
    padding-bottom: 32px;
}

@media (min-width: 992px) {
    .tabs-search {
        height: 700px;

        /* max-height: calc(100vh - 10vh - 290px); */
        box-shadow: 0px 10px 64px 0px rgba(0, 0, 0, 0.08);
        margin-bottom: 120px;
        border-radius: 0px;
    }

    .tabs-search__center-layer {
        max-width: none;
        width: 100%;
        /* height: 100%; */
        padding-bottom: 120px;
        flex-basis: fit-content;
    }

    .tabs-search__title {
        text-shadow: 0 1px 35px rgba(0, 0, 0, 0.78);
        /* Display/Display Small */
        font-size: 32px;
        font-style: normal;
        font-weight: 700;
        line-height: 36px; /* 112.5% */
    }

    .tabs-search__background-images {
        border-radius: 0;
    }
}

.tabs-search-box {
    width: 100%;
    height: 90px;
    position: relative;
    border-radius: 5px;
}

.tabs-search-box__tabs-wrapper {
    display: flex;
    margin: 0 auto;
    overflow: hidden;
    gap: 6px;
}

.tabs-search-box__tabs-handler {
    display: flex;
    width: 100%;
    position: relative;
    z-index: 2;
    height: 34px;
    padding-inline: 8.5px;
}

.tabs-search-box__tabs-row {
    display: flex;
    gap: 6px;
    overflow: hidden;
    width: 100%;
    /* justify-content: space-between; */
    /* overflow: hidden; */
    /* position: relative; */
    /* justify-content: center; */
    /* width: max-content; */
}

.tabs-search-box__more-tab {
}

.tabs-search-box__more-tab--visually-hidden {
    width: 0;
    overflow: hidden;
}

.tabs-search-box__more-tab--visually-hidden .tab-dto-button {
    pointer-events: none;
    user-select: none;
    visibility: hidden;
    opacity: 0;
}

.tabs-search-box__tabs-row-prev-btn,
.tabs-search-box__tabs-row-next-btn {
    -webkit-appearance: none;
    appearance: none;

    background-color: white;
    border: 2px solid #00305e;
    color: #00305e;

    display: none;
    user-select: none;
    align-items: center;

    height: 24px;
    width: 24px;
    border-radius: 100%;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.tabs-search-box__tabs-row-prev-btn {
    left: 5px;
}

.tabs-search-box__tabs-row-next-btn {
    right: 5px;
}

.tabs-search-box__tabs-row-btn--visible {
    display: flex;
    user-select: auto;
    pointer-events: auto;
}

/* .tabs-search-box__tabs-row-navigation {
        position: absolute;
        inset: 0;
        user-select: none;
        pointer-events: none;
    } */

/* Styling reset */
.tab-dto-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-align: inherit;
    cursor: pointer;
    transition: none;
}

.tab-dto-button:hover,
.tab-dto-button:active,
.tab-dto-button:focus {
    color: inherit;
    /* background: none; */
}

.tab-dto-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 34px;

    font-feature-settings:
        "case" on,
        "cv01" on,
        "cv02" on,
        "cv03" on,
        "cv04" on,
        "cv05" on,
        "cv06" on;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.25px;
    padding-inline: 12px;
    padding-block: 6px;
    border-radius: 5px 5px 0 0;
    position: relative;
    overflow: hidden;

    background-color: rgba(0, 48, 94, 0.8);
    backdrop-filter: blur(5.400000095367432px);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    gap: 8px;
}

.tab-dto-button--hidden {
    display: none;
}

.tab-dto-button:hover {
    color: rgba(255, 255, 255, 1);
    background-color: rgba(0, 48, 94, 1);
}

.tab-dto-button:active {
    opacity: 0.75;
}

.tab-dto-button:focus {
    color: rgba(255, 255, 255, 1);
}

.tab-dto-button--ai-mode {
    background: var(--ai-btn-background-gradient);
}

.tab-dto-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    z-index: 0;
}

.tab-dto-button--ai-mode::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.tab-dto-button--ai-mode:active {
    opacity: 0.75;
    color: rgba(255, 255, 255, 0.5);
}

.tab-dto-button--ai-mode.tab-dto-button--active .tab-dto-button__content,
.tab-dto-button--ai-mode.tab-dto-button--active .tab-dto-button__content-icon {
    background: var(--ai-btn-background-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.tab-dto-button--ai-mode.tab-dto-button--active::before {
    border: 2px solid transparent;
    border-bottom: none;
    background-clip: padding-box;
}

.dto-link-search-box .tab-dto-button__icon {
    display: none;
}

.dto-link-search-box--visible .tab-dto-button__icon {
    display: block;
}

/* .tab-dto-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: inherit;
    transition: all 0.3s ease;
    background-clip: padding-box;
    border-bottom: none;
    z-index: 0;
} */

.tab-dto-button--active::before {
    background-color: white;
}

.tab-dto-button--active,
.tab-dto-button--active:hover,
.tab-dto-button--active:focus {
    color: #00305e;
}

.tab-dto-button__content {
    position: relative;
    z-index: 1;
    /* color: white; */
    display: flex;
    gap: 10px;
}

.tab-dto-button__content-icon-svg {
    display: block;
}

.tab-dto-button__content-icon-svg__path {
    fill: currentColor;
}

.tab-dto-button--ai-mode.tab-dto-button--active
    .tab-dto-button__content-icon
    .tab-dto-button__content-icon-svg__path {
    fill: url(#spark-linear-gradient);
}

.tab-dto-button__icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.tab-dto-button__icon
    .spinner__wrapper
    > .spinner__wrapper-spinner__content
    > .spinner__content-loader {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.tab-dto-button__icon-svg {
    display: block;
}

.tabs-search-box__main-input {
    position: relative;
    height: 56px;
    width: 100%;
    border-radius: 5px;
    /* overflow: hidden; */
    box-shadow:
        0px 12px 42px rgba(20, 23, 26, 0.12),
        0px 8px 32px rgba(20, 23, 26, 0.12);
}

.tabs-search-box__main-input .basic-input .dropdown-input {
    top: calc(100% + 8px);
}

.tabs-search-box__main-input-wrapper {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-color: transparent;
    display: flex;
}

.tabs-search-box__main-input-wrapper .basic-input {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tabs-search-box__search-button {
    width: 40px;
    height: 40px;
    margin: 8px;
    position: absolute;
    right: 0;
    z-index: 2;

    border-radius: 5px;
    background-color: var(--vp-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    color: white;
}

.tabs-search-box__search-button--ai-mode {
    background: linear-gradient(
        56deg,
        #8f67d9 -15.8%,
        #4e73f4 36.55%,
        #61e0f3 120.32%
    );

    /* Interactive Element Dark */
    box-shadow: 0 1px 2px 0 rgba(0, 48, 94, 0.16);
}

.tabs-search-box__search-button-icon {
    display: block;
    width: 16px;
    height: 16px;
}

.tabs-search-box__search-button--ai-mode .tabs-search-box__search-button-icon {
    display: none;
}

.tabs-search-box__search-button-ai-icon {
    display: none;
    width: 16px;
    height: 16px;
}

.tabs-search-box__search-button--ai-mode
    .tabs-search-box__search-button-ai-icon {
    display: block;
}

.tabs-search-box__search-button-svg-icon {
    display: block;
}

.basic-input .tabs-search-box__search-input[type="text"] {
    border-radius: 5px;
    border: none;
    background-color: transparent;
    box-shadow: none;
    padding: 15px 16px;
    height: 100%;
    width: 100%;
    margin-top: 0;
    padding-right: 64px;

    color: #00305e;
    font-feature-settings:
        "cv09" on,
        "cv06" on,
        "cv04" on,
        "cv02" on,
        "cv01" on,
        "cv03" on,
        "cv05" on,
        "case" on;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 150% */
    letter-spacing: 0.3px;

    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Body/400/Body Large 400 */

.basic-input .tabs-search-box__search-input[type="text"]:hover,
.basic-input .tabs-search-box__search-input[type="text"]:focus {
    border-radius: 0px;
    border: none;
    background-color: transparent;
}

.basic-input .tabs-search-box__search-input[type="text"]:focus {
    box-shadow: none;
}

.basic-input
    .tabs-search-box__search-input.tabs-search-box__search-input--ai-mode[type="text"]::placeholder {
    background:
        linear-gradient(
            91deg,
            rgba(97, 224, 243, 0.75) 1.12%,
            rgba(0, 198, 251, 0.75) 10.93%,
            rgba(0, 169, 255, 0.75) 25.65%,
            rgba(40, 135, 252, 0.75) 40.36%,
            rgba(92, 113, 241, 0.75) 55.08%,
            rgba(113, 110, 233, 0.75) 69.79%,
            rgba(130, 106, 225, 0.75) 84.51%,
            rgba(143, 103, 217, 0.75) 99.22%
        ),
        rgba(0, 48, 94, 0.66);

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    will-change: transform;
}

.tabs-search-box__wrapper-bg {
    display: flex;
    align-items: flex-end;
    align-content: flex-end;
    justify-content: center;
    height: 56px;
    width: inherit;
    position: relative;
    background-color: white;
    transition: opacity 0.3s ease;
    border-radius: 5px;
    overflow: hidden;
}

.tabs-search-box__neon-bottom {
    background: linear-gradient(
        91deg,
        #61e0f3 1.12%,
        #00c6fb 10.93%,
        #00a9ff 25.65%,
        #2887fc 40.36%,
        #5c71f1 55.08%,
        #716ee9 69.79%,
        #826ae1 84.51%,
        #8f67d9 99.22%
    );
    width: 90%;
    height: 6px;
    opacity: 0.75;
    transition: opacity 0.3s ease;
}

.tabs-search-box__neon-bottom--hidden {
    opacity: 0;
}

.tabs-search-box__neon-blur {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    border-radius: 5px;
}

/* Button reset helper */
.reset-btn {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    text-align: inherit;
    background: none;
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    border: none;
    color: inherit;
    font: inherit;
}

/* No scroll helper */
body.no-scroll-mobile {
    overflow: hidden;
    touch-action: none;
}

/* TODO: Move this component to a separate file */
.sliding-popup {
    position: relative;
    width: 100%;
}

.sliding-popup__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2147483633;
    transition: opacity 0.3s ease;
}

.sliding-popup__overlay--show {
    display: block;
}

.sliding-popup__content {
    background-color: white;

    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;

    margin: 0;
    min-width: 100%;
    max-height: calc(100dvh - 81px);
    /* overflow-y: auto; */
    overflow: visible;

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px 10px 0 0;
    z-index: 2147483634;
    flex-direction: column;

    display: none;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    padding-bottom: 20px;
}

.sliding-popup__content--ready {
    display: flex;
    visibility: visible;
}

.sliding-popup__content--show {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sliding-popup__content--hiding {
    display: flex;
    transform: translateY(100%);
    visibility: visible;
    opacity: 1;
}

.sliding-popup__content--closed {
    display: none;
}

.sliding-popup__content--calculate-dims {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: none;
}

.sliding-popup__close-btn {
    display: flex;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    opacity: 0.5;
}

.sliding-popup__close-btn:hover {
    opacity: 0.75;
}

@media (hover: none) and (pointer: coarse) {
    .sliding-popup__close-btn:hover {
        opacity: 0.5;
    }
}

.sliding-popup__close-btn:active {
    opacity: 0.25;
}

.sliding-popup__header {
    display: flex;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 48, 94, 0.05);
    width: 100%;
    height: 54px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.sliding-popup__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #00305e;
    font-feature-settings:
        "case" on,
        "cv01" on,
        "cv02" on,
        "cv03" on,
        "cv04" on,
        "cv05" on,
        "cv06" on;
    /* Heading/Heading 4 */
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 22px; /* 137.5% */
    letter-spacing: 0.15px;
}

.tab-list {
    width: 100%;
}

.tab-list__wrapper {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-element {
    border: 1px solid rgba(0, 48, 94, 0.15);
}
/*
.tab-element:first-child, */
.tab-element + .tab-element {
    border-top: none;
}
.tab-element:last-child {
    border-bottom: none;
}

.tab-element__cta {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    padding-right: 48px;
    text-decoration: none;
    position: relative;

    color: rgba(0, 48, 94, 0.85);
    font-feature-settings:
        "case" on,
        "cv01" on,
        "cv02" on,
        "cv03" on,
        "cv04" on,
        "cv05" on,
        "cv06" on;
    text-overflow: ellipsis;

    /* Body/500/Body Large 500 */
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 12px; /* 150% */
    letter-spacing: 0.3px;
}

.tab-element__cta--active {
    background-color: #4e73f40d;
    color: #00305e;
}

.tab-element__cta__check {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.tab-element__cta--active .tab-element__cta__check {
    display: block;
}

.tab-element__cta__content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-element__cta__content-icon__svg {
    display: block;
}

.sliding-popup .tab-element__cta__right-icon {
    position: relative;
    width: 16px;
    height: 16px;
}

.sliding-popup
    .tab-element__cta__right-icon
    .spinner__wrapper
    > .spinner__wrapper-spinner__content
    > .spinner__content-loader {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.more-button--active {
}

.more-button__chevron {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.more-button--active .more-button__chevron {
    transform: rotate(180deg);
}

.tabs-search-box__search-button--disabled {
    pointer-events: none;
    opacity: 0.5;
}

.tabs-search-box__loading-spinner {
    position: absolute;
    overflow: hidden;
    border-radius: 5px;
    inset: 0;
}
