@font-face {
    font-family: "BT Spartan";
    src: url("../fonts/Spartan-VariableFont_wght.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

.bt-home {
    --bt-teal: #00718d;
    --bt-navy: #192f46;
    --bt-bar-height: 56px;
    margin: 0;
    background: #f5f5f5;
    color: var(--bt-teal);
    font-family: "BT Spartan", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.bt-home *,
.bt-home *::before,
.bt-home *::after {
    box-sizing: border-box;
}

.bt-home__topbar {
    height: var(--bt-bar-height);
    background: var(--bt-navy);
}

.bt-home__hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - var(--bt-bar-height));
    min-height: calc(100svh - var(--bt-bar-height));
    overflow: visible;
}

.bt-home__hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url("../Images/Home/inicio-textura.png") center / 100% 100% no-repeat;
    content: "";
}

.bt-home__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: start;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    padding-inline: clamp(24px, 5.4vw, 86px);
}

.bt-home__copy {
    min-width: 0;
    padding-top: clamp(80px, 12.3vw, 180px);
    padding-bottom: 40px;
    text-align: center;
}

.bt-home__logo {
    display: block;
    width: clamp(220px, 22.25vw, 320px);
    max-width: 80%;
    height: auto;
    margin: 0 auto 40px;
}

.bt-home__title {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(26px, 2.72vw, 40px);
    font-style: normal;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.bt-home__title > span {
    display: block;
}

.bt-home__title strong {
    color: #242424;
    font-weight: inherit;
}

.bt-home__description {
    margin: 30px 0 0;
    font-size: clamp(15px, 1.58vw, 22px);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.bt-home__actions {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 5.8vw, 72px);
    margin-top: 76px;
}

.bt-home__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(156px, 14.1vw, 196px);
    min-height: 44px;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: 9px;
    background: var(--bt-teal);
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms ease, transform 160ms ease;
}

.bt-home__button:hover {
    background: #005a70;
    color: #fff;
}

.bt-home__button:focus-visible {
    outline: 3px solid var(--bt-navy);
    outline-offset: 5px;
}

.bt-home__button:active {
    transform: translateY(1px);
}

.bt-home__visual {
    position: relative;
    isolation: isolate;
    min-width: 0;
    aspect-ratio: 450 / 558;
    overflow: visible;
}

.bt-home__portrait-backdrop {
    position: absolute;
    inset: 0 0 0 4.5%;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 0 50% 50% / 0 0 28% 28%;
    background: var(--bt-teal);
}

.bt-home__portrait-popout {
    position: absolute;
    z-index: 1;
    inset: 0;
    clip-path: inset(0 0 18%);
    pointer-events: none;
}

.bt-home__people {
    position: absolute;
    top: 8.423%;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
}

/* Keep both copies aligned while allowing the arms to cross the frame edge. */
.bt-home__portrait-backdrop .bt-home__people {
    left: -4.71204188%;
    width: 104.71204188%;
}

.bt-home__logo,
.bt-home__people {
    pointer-events: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.bt-home__search {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1160px;
    margin-inline: auto;
    padding: 32px clamp(24px, 5.4vw, 86px) 96px;
    text-align: center;
}

.bt-home__search-title {
    margin: 0 0 24px;
    color: var(--bt-navy);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.bt-home__search-title span {
    color: var(--bt-teal);
    white-space: nowrap;
}

.bt-home__search-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 8px;
    border: 1px solid #b6cbd1;
    border-radius: 14px;
    background: #fff;
    text-align: left;
}

.bt-home__search-input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: var(--bt-navy);
    font: inherit;
    font-size: 15px;
    caret-color: var(--bt-teal);
}

.bt-home__search-input:focus,
.bt-home__search-input:focus-visible {
    outline: none;
    box-shadow: none;
}

.bt-home__search-form:focus-within {
    border-color: var(--bt-teal);
    box-shadow: 0 0 0 3px rgba(0, 113, 141, 0.16);
}

.bt-home__search-input::selection {
    background: #ccecf2;
    color: var(--bt-navy);
}

.bt-home__search-field {
    position: relative;
    min-width: 0;
}

.bt-home__suggestions {
    position: fixed;
    z-index: 5;
    top: 0;
    right: auto;
    left: 0;
    max-height: 360px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid #b6cbd1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 113, 141, 0.12);
}

.bt-home__suggestions[hidden] {
    display: none;
}

.bt-home__suggestions-status {
    margin: 0;
    padding: 8px 10px;
    color: #456774;
    font-size: 12px;
    line-height: 1.6;
}

.bt-home__suggestions-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bt-home__suggestion {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 56px;
    padding: 12px 10px;
    border-radius: 8px;
    color: var(--bt-navy);
    line-height: 1.45;
    text-decoration: none;
}

.bt-home__suggestion:hover,
.bt-home__suggestion[aria-selected="true"] {
    background: #e9f5f7;
    color: var(--bt-teal);
}

.bt-home__suggestion-title {
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.bt-home__suggestion-meta {
    color: #456774;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.bt-home__decorations {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bt-home__search-input::placeholder {
    color: #456774;
    opacity: 1;
}

.bt-home__search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 148px;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--bt-teal);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.bt-home__search-button:hover {
    background: #005a70;
}

.bt-home__search-button:focus-visible {
    outline: 2px solid var(--bt-teal);
    outline-offset: 2px;
}

.bt-home__visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.bt-home__ring,
.bt-home__corner {
    position: absolute;
    pointer-events: none;
}

.bt-home__ring {
    bottom: -88px;
    left: -94px;
    width: 236px;
    height: 236px;
    border: 28px solid var(--bt-teal);
    border-radius: 50%;
}

.bt-home__corner {
    right: 0;
    bottom: -36px;
    width: clamp(150px, 17.6vw, 280px);
    height: 90px;
    border-radius: 24px 0 0;
    background: var(--bt-teal);
}

@media (max-width: 1000px) {
    .bt-home__desktop-break {
        display: none;
    }
}

@media (max-width: 800px) {
    .bt-home {
        --bt-bar-height: 32px;
    }

    .bt-home__inner {
        grid-template-columns: minmax(0, 1fr);
        max-width: 620px;
        padding-inline: 24px;
    }

    .bt-home__copy {
        padding-top: 52px;
        padding-bottom: 42px;
    }

    .bt-home__logo {
        width: 230px;
        margin-bottom: 32px;
    }

    .bt-home__title {
        font-size: clamp(24px, 5.8vw, 32px);
        line-height: 1.3;
    }

    .bt-home__description {
        max-width: 440px;
        margin: 24px auto 0;
        font-size: 16px;
        line-height: 1.6;
    }

    .bt-home__actions {
        gap: 16px;
        margin-top: 32px;
    }

    .bt-home__button {
        width: 156px;
        max-width: calc(50% - 8px);
        padding-inline: 8px;
        font-size: 12px;
    }

    .bt-home__visual {
        width: 100%;
        max-width: 370px;
        margin-inline: auto;
        margin-bottom: 24px;
    }

    .bt-home__search {
        max-width: 620px;
        padding-top: 24px;
        padding-bottom: 72px;
    }

    .bt-home__search-input {
        font-size: 16px;
    }

    .bt-home__ring {
        bottom: -64px;
        left: -100px;
        width: 200px;
        height: 200px;
        border-width: 24px;
    }

    .bt-home__corner {
        width: 120px;
        height: 72px;
    }
}

@media (max-width: 480px) {
    .bt-home__search-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .bt-home__search-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt-home__button,
    .bt-home__search-button {
        transition: none;
    }
}
