.hi-home {
    --hi-blue: #264d7a;
    --hi-teal: #15a8ab;
    --hi-copy: #6d6d6d;
    font-family: 'Bai Jamjuree', sans-serif;
    color: var(--hi-copy);
    overflow: clip;
}

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

.hi-home h1,
.hi-home h2,
.hi-home h3,
.hi-home p {
    margin: 0;
}

.hi-home a {
    text-decoration: none;
}

.hi-container {
    width: min(100% - 40px, 1200px);
    margin-inline: auto;
}

.hi-section {
    padding-block: 32px;
}

.hi-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 41px;
    padding: 10px 21px;
    border-radius: 11px;
    color: #fff;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.hi-button:hover,
.hi-button:focus-visible {
    color: #fff;
    transform: scale(1.035);
    box-shadow: 0 5px 16px rgb(38 77 122 / 18%);
}

.hi-button:focus-visible,
.hi-center-card:focus-visible,
.hi-treatment-card:focus-visible,
.hi-video:focus-visible,
.hi-steps-pagination button:focus-visible,
.hi-centers-pagination button:focus-visible {
    outline: 3px solid var(--hi-teal);
    outline-offset: 3px;
}

.hi-button-teal { background: var(--hi-teal); }
.hi-button-blue { background: var(--hi-blue); }
.hi-hero-cta {
    width: 100%;
    max-width: 25rem;
}

.hi-hero-image {
    height: 200px;
    overflow: hidden;
}

.hi-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}

.hi-hero-content { padding-block: 24px 32px; }
.hi-hero-copy {
    display: grid;
    justify-items: center;
    gap: 16px;
    text-align: center;
}

.hi-js .hi-hero-copy:not(.hi-hero-ready) > * { visibility: hidden; }

.hi-hero h1 {
    max-width: 41.5rem;
    color: var(--hi-blue);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.hi-hero p {
    max-width: 585px;
    color: var(--hi-blue);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.hi-intro { display: grid; gap: 20px; }
.hi-intro-tablet-title { display: none; }
.hi-intro-media { display: grid; gap: 12px; }
.hi-intro-tablet-cta { display: none; }

.hi-video {
    position: relative;
    display: block;
    width: 100%;
    height: 320px;
    overflow: hidden;
    border-radius: 10px;
}

.hi-video-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hi-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transition: transform .25s ease;
}

.hi-video:hover .hi-video-play { transform: translate(-50%, -50%) scale(1.1); }
.hi-intro-copy { display: grid; justify-items: start; gap: 16px; }

.hi-intro h2,
.hi-feature-card h2 {
    color: var(--hi-teal);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.hi-first-title-word {
    display: inline-block;
    transform-origin: center center;
}

.hi-intro p,
.hi-feature-card p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.hi-home strong { font-weight: 700; }

.hi-first { padding-top: 0; }
.hi-feature-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 35px;
    background: #fff;
    box-shadow: 0 4px 9px -4px rgb(0 0 0 / 25%);
}

@media (max-width: 767.98px) {
    .hi-first .hi-feature-image { order: -1; }
}

.hi-feature-image {
    display: block;
    width: 100%;
    height: 413px;
    object-fit: cover;
    object-position: 65% center;
}

.hi-feature-copy {
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 16px;
    padding: 28px 24px;
}

.hi-feature-copy .hi-button {
    max-width: 100%;
    white-space: normal;
}

.hi-section-heading {
    display: grid;
    justify-items: center;
    gap: 16px;
    max-width: 1035px;
    margin: 0 auto 20px;
    text-align: center;
}

.hi-section-heading h2,
.hi-story h2 {
    color: var(--hi-teal);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.hi-section-heading p {
    max-width: 735px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.hi-steps-swiper { width: 100%; }

.hi-steps-swiper .swiper-wrapper {
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hi-steps-swiper .swiper-slide { height: auto; }

.hi-step-card {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding: 20px;
    border-radius: 11px;
    background: #f3f8fb;
}

.hi-steps-pagination.swiper-pagination-horizontal {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 20px;
}

.hi-steps-pagination .swiper-pagination-bullet {
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border: 0;
    background: var(--hi-teal);
    opacity: .45;
    transition: width .2s ease, opacity .2s ease;
}

.hi-steps-pagination .swiper-pagination-bullet-active {
    width: 21px;
    border-radius: 999px;
    opacity: 1;
}

.hi-steps-pagination.swiper-pagination-lock,
.hi-steps-pagination:empty { display: none; }

.hi-step-number {
    color: var(--hi-teal);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.hi-step-card h3 {
    min-width: 0;
    max-width: 100%;
    color: var(--hi-blue);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.hi-step-card p {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.hi-centers {
    --hi-center-card-height: 125px;
    padding-top: 0;
}
.hi-centers-swiper { width: 100%; overflow: visible; }
.hi-centers-swiper .swiper-wrapper { align-items: stretch; }

.hi-center-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 108px;
    height: var(--hi-center-card-height);
    min-height: var(--hi-center-card-height);
    padding: 16px 10px 12px;
    border-radius: 16px;
    background: #304271;
    box-shadow: 0 4px 9px -4px rgb(0 0 0 / 25%);
    color: #fff;
    text-align: center;
    transition: transform .2s ease;
}

.hi-center-card:hover {
    color: #fff;
    transform: translateY(-4px);
}

.hi-center-icon {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.hi-center-card span {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.hi-center-arrow {
    position: absolute;
    top: 8px;
    right: 7px;
    width: 13px;
    height: 13px;
}

.hi-centers-pagination.swiper-pagination-horizontal {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 20px;
}

.hi-centers-pagination .swiper-pagination-bullet {
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border: 0;
    background: var(--hi-teal);
    opacity: .45;
    transition: width .2s ease, opacity .2s ease;
}

.hi-centers-pagination .swiper-pagination-bullet-active {
    width: 21px;
    border-radius: 999px;
    opacity: 1;
}

.hi-treatments { background: #f8f8f8; }
.hi-treatments .hi-container { text-align: center; }
.hi-treatment-grid { display: grid; gap: 16px; }

.hi-treatment-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    color: var(--hi-copy);
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease;
}

.hi-treatment-card:hover {
    color: var(--hi-copy);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgb(38 77 122 / 12%);
}

.hi-treatment-card > img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hi-treatment-copy {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 20px;
}

.hi-treatment-copy h3 {
    color: var(--hi-blue);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.hi-treatment-copy p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.hi-treatment-more {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

.hi-treatment-more summary {
    cursor: pointer;
    list-style: none;
}

.hi-treatment-more summary::-webkit-details-marker { display: none; }

.hi-treatment-more nav {
    position: absolute;
    z-index: 10;
    top: calc(100% + 8px);
    left: 50%;
    display: grid;
    width: min(300px, calc(100vw - 40px));
    padding: 8px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(38 77 122 / 18%);
    text-align: left;
    transform: translateX(-50%);
}

.hi-treatment-more nav a {
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--hi-blue);
}

.hi-treatment-more nav a:hover,
.hi-treatment-more nav a:focus-visible {
    background: #f3f8fb;
}

.hi-story {
    background: url('../assets/home/historia-fundo.png?v=1792160005') center / cover no-repeat, #264d7a;
    color: #fff;
}

.hi-story h2 {
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
}

.hi-story-grid { display: grid; gap: 20px; }

.hi-story-stat,
.hi-story-benefit {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 190px;
    padding: 32px;
    border: 1px solid #4672a5;
    border-radius: 12px;
    background: linear-gradient(115deg, rgb(38 77 122 / 45%), rgb(12 46 79 / 45%));
}

.hi-story-number {
    color: var(--hi-teal);
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
}

.hi-story-stat h3,
.hi-story-benefit h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.hi-story-stat p:last-child {
    color: #fff;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.25;
}

.hi-story-benefit p {
    color: #fff;
    font-size: 18px;
    line-height: 1.3;
}

.hi-feature-last .hi-feature-image {
    height: 342px;
    object-position: center;
}

@media (min-width: 480px) {
    .hi-container { width: min(100% - 48px, 1200px); }
    .hi-hero-image { height: 230px; }
    .hi-treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hi-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hi-story-benefit:last-child { grid-column: 1 / -1; }
}

@media (min-width: 576px) {
    .hi-container { width: min(100% - 60px, 1200px); }
    .hi-hero-image { height: 280px; }
    .hi-video { height: 350px; }
    .hi-feature-image { height: 380px; }
}

@media (min-width: 768px) {
    .hi-container { width: min(100% - 80px, 1200px); }
    .hi-section { padding-block: 42px; }
    .hi-hero-image { height: 340px; }
    .hi-hero h1 { font-size: 34px; }
    .hi-intro { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; }
    .hi-video { height: 320px; }
    .hi-first { padding-top: 0; }
    .hi-feature-card { display: grid; grid-template-columns: 1fr 1fr; }
    .hi-feature-card .hi-feature-image { grid-column: 2; grid-row: 1; height: 100%; min-height: 365px; }
    .hi-feature-copy { grid-column: 1; grid-row: 1; padding: 30px; }
    .hi-feature-last .hi-feature-image { grid-column: 1; height: 100%; }
    .hi-feature-last .hi-feature-copy { grid-column: 2; }
    .hi-centers { padding-top: 0; }
    .hi-treatment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .hi-story-benefit:last-child { grid-column: auto; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .hi-intro {
        grid-template-areas:
            "title title"
            "media copy";
    }
    .hi-intro-tablet-title {
        display: block;
        grid-area: title;
        text-align: center;
    }
    .hi-intro-media { grid-area: media; }
    .hi-intro-copy { grid-area: copy; }
    .hi-intro-copy-title { display: none; }
    .hi-intro-copy-cta { display: none; }
    .hi-intro-tablet-cta {
        display: inline-flex;
    }
}

@media (max-width: 1199.98px) {
    .hi-button.hi-intro-copy-cta,
    .hi-button.hi-intro-tablet-cta {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .hi-button.hi-intro-copy-cta,
    .hi-first .hi-feature-copy .hi-button,
    .hi-last .hi-feature-copy .hi-button {
        width: 100%;
        max-width: 25rem;
        justify-self: center;
    }
}

@media (min-width: 992px) {
    .hi-container { width: min(100% - 100px, 1200px); }
    .hi-section { padding-block: 45px; }
    .hi-button { max-width: 20rem; }
    .hi-button.hi-hero-cta { max-width: 20rem; }
    .hi-hero { position: relative; }
    .hi-hero-image { height: 500px; }
    .hi-hero-image img { object-position: left center; }
    .hi-hero-content {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        padding-block: 0;
    }
    .hi-hero-copy {
        max-width: 490px;
        justify-items: start;
        text-align: left;
    }
    .hi-hero h1 { font-size: 39px; }
    .hi-hero p { font-size: 18px; }
    .hi-intro { grid-template-columns: 1.2fr 1fr; }
    .hi-step-card { min-height: 280px; }
    .hi-feature-card { max-width: 960px; margin-inline: auto; }
    .hi-treatment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hi-story-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .hi-story-stat { grid-column: span 3; }
    .hi-story-benefit { grid-column: span 2; }
    .hi-story-benefit:last-child { grid-column: span 2; }
    .hi-story-number { font-size: 64px; }
}

@media (min-width: 1200px) {
    .hi-intro { grid-template-columns: 580px minmax(0, 1fr); }
    .hi-feature-copy { padding: 44px 50px; }
    .hi-centers { --hi-center-card-height: 181px; }
    .hi-center-card { padding: 27px 16px 18px; }
    .hi-center-icon { width: 61px; height: 61px; }
    .hi-center-card span { font-size: 13px; }
    .hi-center-arrow { top: 13px; right: 11px; width: 19px; height: 19px; }
    .hi-treatment-copy { min-height: 176px; }
}

@media (prefers-reduced-motion: reduce) {
    .hi-home *,
    .hi-home *::before,
    .hi-home *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
