:root {
    --rmsi-purple: #6f4691;
    --rmsi-purple-dark: #56336f;
    --rmsi-purple-soft: #f0e9f6;
    --rmsi-mint: #7db9a1;
    --rmsi-mint-dark: #397f6c;
    --rmsi-ink: #111525;
    --rmsi-muted: #667085;
    --rmsi-surface: #ffffff;
}

html:has(.rmsi-landing) {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body:has(.rmsi-landing) {
    margin: 0;
    background: #fff;
}

.rmsi-landing,
.rmsi-landing * {
    box-sizing: border-box;
}

.rmsi-landing {
    overflow: hidden;
    color: var(--rmsi-ink);
    background: #fff;
    font-family: "Outfit", sans-serif;
}

.rmsi-landing a {
    text-decoration: none;
}

.rmsi-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    background-color: #eef8f5;
    background-image:
        linear-gradient(90deg, rgba(250, 253, 252, .88) 0%, rgba(245, 251, 249, .56) 42%, rgba(240, 249, 246, .1) 76%),
        url("../img/recursos/hero_landing.webp");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.rmsi-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 460px;
    height: 460px;
    top: -250px;
    right: -110px;
    border: 1px solid rgba(125, 185, 161, .24);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(125, 185, 161, .06), 0 0 0 180px rgba(125, 185, 161, .04);
}

.rmsi-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    min-height: 112px;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.rmsi-brand {
    display: inline-flex;
    justify-self: start;
}

.rmsi-brand img {
    display: block;
    width: clamp(185px, 19vw, 255px);
    height: auto;
}

.rmsi-nav {
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3.4rem);
}

.rmsi-nav a {
    position: relative;
    padding: .75rem 0;
    color: #202535;
    font-size: 1rem;
    font-weight: 600;
    transition: color .25s ease;
}

.rmsi-nav a::after {
    content: "";
    position: absolute;
    right: 50%;
    bottom: .3rem;
    left: 50%;
    height: 3px;
    border-radius: 999px;
    background: var(--rmsi-purple);
    transition: right .25s ease, left .25s ease;
}

.rmsi-nav a:hover,
.rmsi-nav a:focus,
.rmsi-nav a.active {
    color: var(--rmsi-purple);
}

.rmsi-nav a:hover::after,
.rmsi-nav a:focus::after,
.rmsi-nav a.active::after {
    right: 0;
    left: 0;
}

.rmsi-btn.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    min-height: 52px;
    padding: .7rem 1.45rem;
    border: 1px solid var(--rmsi-purple);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #8053a6, var(--rmsi-purple));
    box-shadow: 0 12px 28px rgba(111, 70, 145, .27);
    font-size: .96rem;
    font-weight: 700;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.rmsi-btn.btn:hover,
.rmsi-btn.btn:focus {
    border-color: var(--rmsi-purple-dark);
    color: #fff;
    background: var(--rmsi-purple-dark);
    box-shadow: 0 16px 34px rgba(86, 51, 111, .32);
    transform: translateY(-2px);
}

.rmsi-btn-sm {
    justify-self: end;
    min-height: 46px !important;
    padding-inline: 1.4rem !important;
}

.rmsi-hero-content {
    position: relative;
    z-index: 2;
    min-height: 648px;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.rmsi-hero-copy {
    position: relative;
    z-index: 7;
    padding-top: 1rem;
    padding-bottom: 6rem;
    animation: rmsiCopyReveal .85s cubic-bezier(.2, .75, .25, 1) both;
}

.rmsi-eyebrow,
.rmsi-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: var(--rmsi-purple);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.rmsi-eyebrow::before,
.rmsi-section-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

.rmsi-hero-title {
    max-width: 620px;
    margin: 0 0 1.35rem;
    color: var(--rmsi-ink);
    font-size: clamp(3.1rem, 5vw, 5.25rem);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .99;
}

.rmsi-hero-title span,
.rmsi-section-heading h2 span {
    color: var(--rmsi-purple);
}

.rmsi-hero-description {
    max-width: 520px;
    margin: 0 0 2rem;
    color: #4f596b;
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.55;
}

.rmsi-video-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--rmsi-ink);
}

.rmsi-video-link:hover,
.rmsi-video-link:focus {
    color: var(--rmsi-purple);
}

.rmsi-video-link > span:last-child {
    display: grid;
    line-height: 1.15;
}

.rmsi-video-link strong {
    font-size: .9rem;
}

.rmsi-video-link small {
    margin-top: .25rem;
    color: var(--rmsi-muted);
    font-size: .76rem;
}

.rmsi-play {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--rmsi-purple);
    border-radius: 50%;
    color: var(--rmsi-purple);
    background: rgba(255, 255, 255, .7);
    transition: color .25s ease, background .25s ease, transform .25s ease;
}

.rmsi-video-link:hover .rmsi-play {
    color: #fff;
    background: var(--rmsi-purple);
    transform: scale(1.06);
}

.rmsi-hero-visual {
    position: relative;
    align-self: stretch;
    min-height: 648px;
}

.rmsi-doctors-wrap {
    --scroll-y: 0px;
    position: absolute;
    inset: 0 -6% 0 -12%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform: translate3d(0, var(--scroll-y), 0);
    will-change: transform;
}

.rmsi-doctors {
    display: block;
    width: min(920px, 112%);
    max-height: 690px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 22px 25px rgba(28, 58, 48, .12));
    animation: rmsiDoctorsReveal 1.05s cubic-bezier(.18, .75, .2, 1) both;
}

.rmsi-float-card {
    --scroll-x: 0px;
    --scroll-y: 0px;
    position: absolute;
    z-index: 8;
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    width: 250px;
    max-width: calc(100% - 1rem);
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 16px;
    color: #283041;
    background: rgba(255, 255, 255, .91);
    box-shadow: 0 18px 45px rgba(30, 48, 43, .15);
    backdrop-filter: blur(12px);
    will-change: transform;
    animation: rmsiCardReveal .65s ease both, rmsiCardFloat 5.5s ease-in-out 1.1s infinite;
}

.rmsi-reference-card {
    top: 8%;
    right: 0;
    animation-delay: .35s, 1.1s;
}

.rmsi-progress-card {
    top: 40%;
    right: 0;
    width: 285px;
    animation-delay: .5s, 1.35s;
}

.rmsi-result-card {
    right: 1%;
    bottom: 10%;
    width: 280px;
    animation-delay: .65s, 1.6s;
}

.rmsi-float-card strong {
    color: #252b3b;
    font-size: .87rem;
}

.rmsi-card-icon,
.rmsi-card-action {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: var(--rmsi-purple);
    background: var(--rmsi-purple-soft);
    font-size: 1rem;
}

.rmsi-card-icon-solid {
    color: #fff;
    background: var(--rmsi-purple);
}

.rmsi-card-action {
    align-self: flex-end;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--rmsi-purple);
}

.rmsi-card-divider {
    height: 1px;
    margin: .55rem 0;
    background: #e4e8ed;
}

.rmsi-reference-detail {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .35rem;
    color: #5f6878;
    font-size: .73rem;
}

.rmsi-reference-detail i {
    color: var(--rmsi-purple);
    font-size: .9rem;
}

.rmsi-reference-detail span {
    display: grid;
}

.rmsi-reference-detail small {
    font-size: .67rem;
}

.rmsi-progress-row {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.rmsi-progress-row small {
    padding: .25rem .5rem;
    border-radius: 999px;
    color: var(--rmsi-purple-dark);
    background: var(--rmsi-purple-soft);
    white-space: nowrap;
}

.rmsi-progress-line {
    position: relative;
    display: flex;
    flex: 1;
    justify-content: space-between;
}

.rmsi-progress-line::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    height: 2px;
    background: var(--rmsi-purple);
    transform: translateY(-50%);
}

.rmsi-progress-line i {
    position: relative;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--rmsi-purple);
    box-shadow: 0 0 0 1px var(--rmsi-purple);
}

.rmsi-result-card p {
    margin: 0;
    color: #5f6878;
    font-size: .74rem;
    line-height: 1.35;
}

.rmsi-pulse-line {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 52px;
    opacity: .42;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 80' preserveAspectRatio='none'%3E%3Cpath d='M0 51h212l18-30 19 49 24-61 24 42h183l14-19 16 37 18-55 20 37h1052' fill='none' stroke='%237db9a1' stroke-width='5' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.rmsi-process-section {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    background: #fff;
}

.rmsi-section-heading {
    max-width: 820px;
    margin: 0 auto 2.5rem;
}

.rmsi-section-heading h2 {
    margin: 0 0 .6rem;
    color: var(--rmsi-ink);
    font-size: clamp(2rem, 3.3vw, 3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.rmsi-section-heading p {
    margin: 0;
    color: var(--rmsi-muted);
    font-size: 1rem;
}

.rmsi-process-panel {
    position: relative;
    padding: 1.5rem 1.5rem 5rem;
    border: 1px solid #edf1f3;
    border-radius: 30px;
    background:
        radial-gradient(circle at 50% 120%, rgba(125, 185, 161, .17), transparent 45%),
        linear-gradient(180deg, #fbfdfd, #f3f9f7);
}

.rmsi-process-row > div {
    position: relative;
}

.rmsi-process-row > div:not(:last-child)::after {
    content: "\F138";
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -1.05rem;
    color: var(--rmsi-mint);
    font-family: "bootstrap-icons";
    font-size: 1.65rem;
    transform: translate(50%, -50%);
}

.rmsi-step-card {
    position: relative;
    height: 100%;
    min-height: 250px;
    padding: 2rem 1.25rem 1.5rem;
    border: 1px solid #edf0f2;
    border-radius: 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 15px 34px rgba(33, 56, 49, .09);
    transition: transform .3s ease, box-shadow .3s ease;
}

.rmsi-step-card:hover {
    box-shadow: 0 20px 42px rgba(70, 47, 88, .13);
    transform: translateY(-7px);
}

.rmsi-step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--rmsi-purple);
    font-size: 1rem;
    font-weight: 800;
}

.rmsi-step-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 1rem;
    place-items: center;
    border-radius: 18px;
    color: var(--rmsi-purple);
    background: var(--rmsi-purple-soft);
    font-size: 2rem;
}

.rmsi-step-card h3,
.rmsi-benefit-card h3 {
    margin: 0 0 .55rem;
    color: #242a39;
    font-size: 1rem;
    font-weight: 800;
}

.rmsi-step-card p,
.rmsi-benefit-card p {
    margin: 0;
    color: var(--rmsi-muted);
    font-size: .88rem;
    line-height: 1.48;
}

.rmsi-continuity-line {
    position: absolute;
    right: 8%;
    bottom: 1.2rem;
    left: 8%;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-right: 3px solid var(--rmsi-mint);
    border-bottom: 3px solid var(--rmsi-mint);
    border-left: 3px solid var(--rmsi-mint);
    border-radius: 0 0 25px 25px;
}

.rmsi-continuity-line span {
    padding: .55rem 2.4rem;
    border: 1px solid #e6ecea;
    border-radius: 999px;
    color: var(--rmsi-mint-dark);
    background: #fff;
    box-shadow: 0 8px 20px rgba(33, 56, 49, .09);
    font-size: .88rem;
}

.rmsi-benefits-section {
    padding: 3.5rem 0 5rem;
    background: #fff;
}

.rmsi-benefit-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    min-height: 155px;
    padding: 1.5rem;
    border: 1px solid #edf0f2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(33, 56, 49, .07);
    transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.rmsi-benefit-card:hover {
    border-color: rgba(111, 70, 145, .23);
    box-shadow: 0 18px 38px rgba(70, 47, 88, .11);
    transform: translateY(-5px);
}

.rmsi-benefit-icon {
    display: grid;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #8053a6, var(--rmsi-purple));
    box-shadow: 0 8px 18px rgba(111, 70, 145, .23);
    font-size: 1.45rem;
}

.rmsi-sponsor-section {
    padding: 2.6rem 1rem;
    border-top: 1px solid #edf1f3;
    border-bottom: 1px solid #edf1f3;
    background:
        radial-gradient(circle at 15% 50%, rgba(125, 185, 161, .12), transparent 23%),
        radial-gradient(circle at 85% 50%, rgba(111, 70, 145, .08), transparent 23%),
        #f8fbfa;
}

.rmsi-sponsor-section p {
    margin: 0 0 .8rem;
    color: #3f4757;
    font-size: .9rem;
    font-weight: 600;
}

.rmsi-sponsor-section img {
    width: min(360px, 74vw);
    max-height: 92px;
    object-fit: contain;
}

.rmsi-footer {
    padding: 3.5rem 0 1.4rem;
    color: #565f70;
    background: #fff;
}

.rmsi-footer-logo {
    width: min(285px, 82%);
    height: auto;
}

.rmsi-footer h2 {
    margin: 0 0 1rem;
    color: #252b3b;
    font-size: .92rem;
    font-weight: 800;
}

.rmsi-footer a:not(.rmsi-socials a) {
    display: block;
    width: fit-content;
    margin: 0 0 .65rem;
    color: #697284;
    font-size: .86rem;
}

.rmsi-footer a:hover,
.rmsi-footer a:focus {
    color: var(--rmsi-purple) !important;
}

.rmsi-socials {
    display: flex;
    gap: .65rem;
}

.rmsi-socials a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(111, 70, 145, .35);
    border-radius: 50%;
    color: var(--rmsi-purple);
    transition: color .25s ease, background .25s ease, transform .25s ease;
}

.rmsi-socials a:hover,
.rmsi-socials a:focus {
    color: #fff !important;
    background: var(--rmsi-purple);
    transform: translateY(-2px);
}

.rmsi-copyright {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #edf0f2;
    color: #8a92a1;
    text-align: center;
    font-size: .78rem;
}

@keyframes rmsiCopyReveal {
    from { opacity: 0; transform: translate3d(-28px, 18px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes rmsiDoctorsReveal {
    from { opacity: 0; transform: translate3d(0, 55px, 0) scale(.97); }
    to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes rmsiCardReveal {
    from { opacity: 0; scale: .9; }
    to { opacity: 1; scale: 1; }
}

@keyframes rmsiCardFloat {
    0%, 100% { transform: translate3d(var(--scroll-x), calc(var(--scroll-y) - 3px), 0); }
    50% { transform: translate3d(var(--scroll-x), calc(var(--scroll-y) + 8px), 0); }
}

@media (max-width: 1199.98px) {
    .rmsi-hero-title { font-size: clamp(3rem, 5.6vw, 4.5rem); }
    .rmsi-doctors-wrap { inset: 3rem 12% 0 -20%; }
    .rmsi-reference-card { top: 1%; right: 0; }
    .rmsi-progress-card { right: 0; }
    .rmsi-result-card { right: 0; }
}

@media (max-width: 991.98px) {
    .rmsi-hero {
        min-height: 1120px;
        background-image:
            linear-gradient(180deg, rgba(250, 253, 252, .92) 0%, rgba(245, 251, 249, .66) 56%, rgba(240, 249, 246, .2) 100%),
            url("../img/recursos/hero_landing.webp");
    }

    .rmsi-header {
        grid-template-columns: 1fr auto;
        min-height: 92px;
    }

    .rmsi-hero-content { min-height: auto; }
    .rmsi-hero-copy { padding: 3rem 0 1rem; text-align: center; }
    .rmsi-eyebrow { justify-content: center; }
    .rmsi-hero-title,
    .rmsi-hero-description { margin-right: auto; margin-left: auto; }
    .rmsi-hero-copy .d-flex { justify-content: center; }
    .rmsi-hero-visual { min-height: 590px; }
    .rmsi-doctors-wrap { inset: 5rem 15% 0 -12%; }
    .rmsi-doctors { width: min(780px, 95%); max-height: 600px; }
    .rmsi-reference-card { top: 0; right: 0; }
    .rmsi-progress-card { top: 44%; right: 0; }
    .rmsi-result-card { right: 0; bottom: 6%; }
    .rmsi-process-row > div::after { display: none; }

    .rmsi-sponsor-section {
        margin-inline: -20px;
    }

    .rmsi-footer {
        padding: 3.5rem 1.75rem 1.5rem;
    }

    .rmsi-footer .row > div:first-child {
        text-align: center;
    }

    .rmsi-footer-logo {
        display: block;
        margin: 0 auto 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .rmsi-hero { min-height: 1040px; }
    .rmsi-brand img { width: 170px; }
    .rmsi-btn-sm { min-height: 42px !important; padding: .55rem 1rem !important; }
    .rmsi-header { gap: .75rem; padding-inline: .75rem; }
    .rmsi-hero-copy { padding-top: 2rem; }
    .rmsi-hero-title { font-size: clamp(2.7rem, 12vw, 4rem); }
    .rmsi-hero-visual { min-height: 550px; }
    .rmsi-doctors-wrap { inset: 7rem 8% 0 -38%; }
    .rmsi-doctors { width: 720px; max-width: none; }
    .rmsi-float-card { padding: .8rem; transform-origin: right center; }
    .rmsi-reference-card { top: 0; right: 0; width: 218px; }
    .rmsi-progress-card { top: 43%; right: 0; width: 235px; }
    .rmsi-result-card { right: 0; bottom: 2%; width: 238px; }
    .rmsi-card-icon { width: 31px; height: 31px; }
    .rmsi-process-section { padding-top: 3.5rem; }
    .rmsi-process-panel { padding: 1rem; }
    .rmsi-benefits-section { padding-bottom: 3.5rem; }
    .rmsi-footer { padding: 3rem 1.5rem 1.5rem; }
}

@media (max-width: 479.98px) {
    .rmsi-header { min-height: 78px; }
    .rmsi-brand img { width: 138px; }
    .rmsi-btn-sm { font-size: .82rem !important; }
    .rmsi-btn-sm i { display: none; }
    .rmsi-hero { min-height: 1030px; }
    .rmsi-hero-copy { padding-top: 1.5rem; }
    .rmsi-eyebrow { font-size: .68rem; }
    .rmsi-hero-title { font-size: 2.65rem; }
    .rmsi-hero-description { font-size: .96rem; }
    .rmsi-hero-visual { min-height: 515px; }
    .rmsi-doctors-wrap { inset: 7rem 8% 0 -58%; }
    .rmsi-doctors { width: 660px; }
    .rmsi-reference-card { top: 0; right: 0; width: 200px; }
    .rmsi-progress-card { top: 42%; right: 0; width: 218px; }
    .rmsi-result-card { right: 0; bottom: 0; width: 220px; }
    .rmsi-benefit-card { min-height: auto; }
    .rmsi-footer { padding: 2.75rem 1.25rem 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    html:has(.rmsi-landing) { scroll-behavior: auto; }
    .rmsi-landing *,
    .rmsi-landing *::before,
    .rmsi-landing *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
