:root {
    color-scheme: light;
    --header-height: 80px;
    --footer-height: 54px;
    --blue: #0b5ea8;
    --cyan: #0ec7f9;
    --dark-blue: #0b5ea8;
    --text: #0b5ea8;
    --white: #ffffff;
    --footer: #171717;
    --access-bg-offset: 88px;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    overflow: hidden;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
}

body::after {
    display: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    min-height: var(--header-height);
    margin: 0;
    padding: 0 max(5.5vw, calc((100vw - 1180px) / 2)) 4px;
    background: var(--white);
    box-shadow: 0 12px 19px -15px #0c71c3;
}

.brand {
    width: 113px;
    flex: 0 0 auto;
    margin-top: 8px;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    min-width: 0;
    margin-right: 10px;
    padding-top: 34px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}

.primary-nav a {
    white-space: nowrap;
    transition: color 180ms ease;
}

.primary-nav a:hover {
    color: var(--cyan);
}

.mobile-menu-toggle {
    display: none;
}

.hero {
    position: relative;
    min-height: 70vh;
    margin-bottom: clamp(150px, calc(30vh - var(--header-height) - 54px), 220px);
    padding: 0;
    overflow: visible;
    background-image:
        linear-gradient(283deg, rgba(255, 255, 255, 0) 79%, rgba(14, 199, 249, 0.81) 94%),
        var(--hero-image);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 62px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNGRkZGRkYiPjxwYXRoIGQ9Ik03MjUuMjkgMTAxLjJDMzI1LjIyIDEyMi40OCAwIDAgMCAwdjE0MGgxMjgwVjBzLTE1NC42NCA3OS45Mi01NTQuNzEgMTAxLjJ6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTU1Ni40NSAxMTkuNzRDOTUzLjQxIDE0MCAxMjgwIDE0IDEyODAgMTR2MTI2SDBWMHMxNTkuNSA5OS40OCA1NTYuNDUgMTE5Ljc0eiIgZmlsbC1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik02NDAgMTQwYzM1My40NiAwIDY0MC0xNDAgNjQwLTEzOXYxNDBIMFYwczI4Ni41NCAxNDAgNjQwIDE0MHoiLz48L2c+PC9zdmc+");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 100% 62px;
    transform: scale(-1, 1);
    z-index: 1;
}

.social-rail {
    position: absolute;
    top: 60px;
    left: 30px;
    z-index: 2;
    display: grid;
    gap: clamp(18px, 1.2vw, 25px);
    width: clamp(34px, 2.6vw, 53px);
}

.social-rail a {
    display: block;
    width: clamp(34px, 2.6vw, 53px);
    height: clamp(34px, 2.6vw, 53px);
    transition: transform 160ms ease;
}

.social-rail a:hover {
    transform: translateX(3px);
}

.access-panel {
    position: absolute;
    top: clamp(345px, 48vh, 500px);
    left: 50%;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(80vw, 1180px);
    height: clamp(275px, 15.9vw, 324px);
    margin: 0;
    box-shadow: 0 12px 37px -6px rgba(14, 199, 249, 0.42);
    transform: translateX(-50%);
}

.access-card {
    position: relative;
    display: block;
    height: clamp(275px, 15.9vw, 324px);
    padding-top: 133px;
    overflow: visible;
    transition: background-color 200ms ease;
}

.access-card::before {
    content: "";
    position: absolute;
    top: var(--access-bg-offset);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    background: var(--card-bg);
    transition: background-color 200ms ease;
}

.access-card-doctor {
    --card-bg: var(--cyan);
}

.access-card-patient {
    --card-bg: var(--dark-blue);
    padding-top: 158px;
}

.access-card-doctor:hover::before {
    background: #0b72c6;
}

.access-card-patient:hover::before {
    background: #0db4e2;
}

.access-card img {
    position: relative;
    z-index: 1;
    width: 83%;
    max-width: 83%;
    height: auto;
    margin: -185px 0 0 4px;
}

.access-card-patient img {
    width: 80%;
    max-width: 80%;
    margin-top: -206px;
}

.site-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    background: var(--blue);
    color: #ffffff;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(80vw, 1080px);
    min-height: 54px;
    margin: 0 auto;
    gap: 18px;
    position: relative;
}

.footer-inner p {
    margin: 0;
    color: #ffffff;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    right: 0;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: #ffffff;
    opacity: 1;
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

.footer-social a:hover {
    opacity: 1;
}

.page-medico .primary-nav,
.page-paciente .primary-nav {
    gap: clamp(18px, 2.1vw, 34px);
    font-size: 14px;
}

.page-medico main,
.page-paciente main {
    background: #ffffff;
}

.medico-hero {
    position: relative;
    min-height: clamp(410px, 50vh, 500px);
    margin: 0 0 12px;
    overflow: hidden;
    background-image:
        linear-gradient(283deg, rgba(14, 199, 249, 0.72) 19%, rgba(255, 255, 255, 0) 82%),
        var(--medico-hero-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.medico-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 90px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNGRkZGRkYiPjxwYXRoIGQ9Ik03MjUuMjkgMTAxLjJDMzI1LjIyIDEyMi40OCAwIDAgMCAwdjE0MGgxMjgwVjBzLTE1NC42NCA3OS45Mi01NTQuNzEgMTAxLjJ6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTU1Ni40NSAxMTkuNzRDOTUzLjQxIDE0MCAxMjgwIDE0IDEyODAgMTR2MTI2SDBWMHMxNTkuNSA5OS40OCA1NTYuNDUgMTE5Ljc0eiIgZmlsbC1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik02NDAgMTQwYzM1My40NiAwIDY0MC0xNDAgNjQwLTEzOXYxNDBIMFYwczI4Ni41NCAxNDAgNjQwIDE0MHoiLz48L2c+PC9zdmc+");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 100% 90px;
    transform: scale(-1, 1);
}

.medico-hero-card {
    position: absolute;
    right: 50%;
    bottom: 10px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
    align-items: center;
    width: min(80vw, 1152px);
    min-height: 240px;
    padding: 0 clamp(34px, 5vw, 84px) 0 0;
    color: #ffffff;
    background: rgba(14, 199, 249, 0.73);
    transform: translateX(50%);
}

.medico-hero-doctor {
    align-self: end;
    width: min(44vw, 505px);
    max-width: none;
    margin: -48px 0 0 45px;
}

.medico-hero-access {
    justify-self: center;
}

.medico-hero-title span,
.medico-hero-access span {
    display: block;
    font-size: clamp(24px, 2.2vw, 36px);
    line-height: 1.1;
}

.medico-hero-title strong,
.medico-hero-access a {
    display: block;
    color: #ffffff;
    font-size: clamp(42px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.02;
    transition: color 180ms ease;
}

.medico-hero-access a:hover {
    color: var(--blue);
}

.medico-video-section {
    width: min(80vw, 1152px);
    margin: 16px auto 56px;
}

.medico-video {
    width: 100%;
    max-height: 610px;
    object-fit: cover;
    background: #0b5ea8;
}

.portal-section {
    width: min(80vw, 1152px);
    margin: 0 auto;
}

.portal-section-heading {
    margin: 0 0 28px;
    color: var(--blue);
}

.portal-section-heading h2 {
    margin: 0;
    color: var(--blue);
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: clamp(26px, 3.1vw, 40px);
    font-weight: 800;
    line-height: 1.25;
}

.portal-section-heading p {
    margin: 0;
    color: var(--blue);
    font-size: clamp(17px, 1.5vw, 23px);
    font-weight: 700;
    letter-spacing: 0;
}

.service-list {
    display: grid;
    gap: clamp(42px, 5vw, 70px);
    padding-bottom: 76px;
}

.service-row {
    display: grid;
    grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(36px, 5.4vw, 82px);
    align-items: center;
}

.service-row-reverse {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
}

.service-row-reverse .service-media {
    order: 2;
}

.service-row-reverse .service-copy {
    order: 1;
}

.service-media img {
    width: min(100%, 430px);
    margin: 0 auto;
    filter: drop-shadow(0 16px 28px rgba(11, 94, 168, 0.18));
}

.service-copy {
    color: #36526f;
    font-size: 16px;
    line-height: 1.78;
}

.service-copy h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.05;
}

.service-copy-cyan h3 {
    color: var(--cyan);
}

.service-copy-blue h3 {
    color: var(--blue);
}

.service-copy p {
    margin: 0 0 16px;
}

.study-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    margin-top: 8px;
    padding: 0.48rem 1.08rem;
    border: 2px solid var(--blue);
    color: var(--blue);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 180ms ease, color 180ms ease;
}

.study-button:hover {
    color: #ffffff;
    background: var(--blue);
}

.specialists-section {
    width: 100%;
    max-width: none;
    padding: 74px max(10vw, calc((100vw - 1152px) / 2)) 86px;
    background: var(--blue);
}

.portal-section-heading-light {
    width: min(100%, 1152px);
    margin: 0 auto 34px;
    color: #ffffff;
}

.portal-section-heading-light h2,
.portal-section-heading-light p {
    color: #ffffff;
}

.portal-section-heading-light p {
    max-width: 980px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
}

.specialist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 36px;
    width: min(100%, 1152px);
    margin: 0 auto;
}

.specialist-card {
    margin: 0;
}

.specialist-card img {
    width: 100%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.access-form-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
    gap: clamp(36px, 7vw, 90px);
    align-items: center;
    padding: 74px 0 92px;
}

.access-form-visual {
    position: relative;
    min-height: 560px;
    color: var(--cyan);
}

.access-form-visual h2,
.access-form-visual h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.08;
}

.access-form-visual h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.access-form-visual h3 {
    color: var(--blue);
    font-size: clamp(42px, 4.7vw, 64px);
}

.access-form-visual img {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: min(70%, 330px);
}

.access-form {
    display: grid;
    gap: 17px;
}

.access-form h2 {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
}

.access-form label {
    display: grid;
    gap: 6px;
}

.access-form label span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.access-form input {
    width: 100%;
    min-height: 52px;
    border: none;
    background: #eeeeee;
    color: #2d3940;
    padding: 0 16px;
    font-size: 15px;
}

.access-form button {
    justify-self: end;
    min-height: 46px;
    border: 2px solid var(--blue);
    background: transparent;
    color: var(--blue);
    padding: 0 22px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.access-form button:hover {
    color: #ffffff;
    background: var(--blue);
}

.form-message {
    margin: 0;
    color: var(--blue);
    font-weight: 700;
}

.contact-section {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
    gap: clamp(34px, 6vw, 80px);
    padding: 76px max(10vw, calc((100vw - 1152px) / 2)) 108px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(11, 94, 168, 0.96), rgba(11, 94, 168, 0.72)),
        url("https://macao-s3-bucket.s3.us-east-2.amazonaws.com/scan-center/wp/2026/02/20211216_112859_HDR-1-scaled.jpg") center / cover;
}

.contact-copy h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 800;
}

.contact-copy p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.7;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-cards div {
    min-height: 170px;
    padding: 24px 18px;
    text-align: center;
    background: rgba(14, 199, 249, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.contact-cards span {
    display: block;
    margin-bottom: 8px;
    font-size: 36px;
    color: #ffffff;
}

.contact-cards strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 17px;
}

.contact-cards p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.study-modal[hidden] {
    display: none;
}

.study-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.study-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(3px);
}

.study-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(76vw, 820px);
    padding: 16px clamp(18px, 3.8vw, 82px);
    background: #ffffff;
    box-shadow: 0 13px 30px rgba(0, 0, 0, 0.35);
}

.study-modal-dialog h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.study-modal-dialog img {
    width: 100%;
    max-height: min(72vh, 620px);
    object-fit: contain;
}

.study-modal-close {
    position: absolute;
    top: 7px;
    right: 9px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #5c5c5c;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.chat-widget {
    position: fixed;
    right: 22px;
    bottom: calc(var(--footer-height) + 18px);
    z-index: 80;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.chat-toggle {
    min-width: 92px;
    min-height: 60px;
    border: none;
    border-radius: 999px;
    background: #25d366;
    color: #ffffff;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.32);
}

.chat-toggle:hover {
    background: #1ebe5d;
}

.chat-window {
    position: absolute;
    right: 0;
    bottom: 74px;
    display: grid;
    grid-template-rows: auto minmax(220px, 1fr) auto;
    width: min(360px, calc(100vw - 28px));
    max-height: min(620px, calc(100vh - var(--header-height) - var(--footer-height) - 52px));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(11, 94, 168, 0.18);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.chat-window[hidden] {
    display: none;
}

.chat-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 14px 16px;
    color: #ffffff;
    background: var(--blue);
}

.chat-header strong,
.chat-header span {
    grid-column: 1;
}

.chat-header span {
    font-size: 12px;
    opacity: 0.86;
}

.chat-header button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.chat-body {
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    color: #263d53;
}

.chat-intro {
    margin: 0;
    color: #496278;
    line-height: 1.5;
}

.chat-session-ended {
    padding: 12px;
    color: #255e93;
    background: #eef8fd;
    border: 1px solid #d7e6f0;
    font-weight: 800;
}

.chat-start-form,
.chat-message-form {
    display: grid;
    gap: 10px;
}

.chat-start-form input,
.chat-start-form textarea,
.chat-message-form textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbdce8;
    padding: 10px 12px;
    color: #20364a;
    font: inherit;
}

.chat-start-form textarea,
.chat-message-form textarea {
    resize: vertical;
}

.chat-start-form button,
.chat-message-form button {
    min-height: 42px;
    border: none;
    background: var(--cyan);
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.chat-message-form {
    grid-template-columns: 1fr 82px;
    padding: 12px;
    border-top: 1px solid #e3edf4;
}

.chat-message-form textarea {
    grid-column: 1;
    grid-row: 1;
    max-height: 96px;
}

.chat-message-form > button[type="submit"] {
    grid-column: 2;
    grid-row: 1;
}

.chat-emoji-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chat-message-form .chat-emoji-row,
.chat-visitor-file {
    grid-column: 1 / -1;
}

.chat-emoji-row button {
    min-width: 34px;
    min-height: 32px;
    border: 1px solid #d7e6f0;
    background: #ffffff;
    color: #20364a;
    padding: 0;
    font-size: 17px;
    line-height: 1;
    box-shadow: none;
}

.chat-emoji-row button:hover {
    background: #eef8fd;
}

.chat-visitor-file {
    display: grid;
    gap: 7px;
    padding: 9px 10px;
    color: #255e93;
    background: #f3fbff;
    border: 1px dashed #9fd8ef;
    font-size: 12px;
    font-weight: 800;
}

.chat-visitor-file[hidden] {
    display: none;
}

.chat-visitor-file input {
    width: 100%;
    color: #20364a;
    font: inherit;
}

.chat-message {
    max-width: 82%;
    padding: 9px 11px;
    background: #eef8fd;
    color: #20364a;
    line-height: 1.45;
}

.chat-message.is-agent {
    justify-self: end;
    color: #ffffff;
    background: var(--blue);
}

.chat-message.is-system {
    justify-self: center;
    max-width: 94%;
    background: #f8fbfe;
    color: #496278;
    border: 1px solid #dbeaf3;
    font-size: 12px;
}

.chat-message.is-deleted {
    color: #6b7d8e;
    background: #f7f9fb;
    font-style: italic;
}

.chat-message small {
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    opacity: 0.72;
}

.chat-message em {
    margin-left: 4px;
    font-style: normal;
}

.chat-attachment {
    display: grid;
    gap: 3px;
    margin-top: 7px;
    padding: 9px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(11, 94, 168, 0.16);
}

.chat-attachment strong {
    font-size: 12px;
}

.chat-attachment span,
.chat-attachment small {
    overflow-wrap: anywhere;
}

.chat-attachment.is-image img {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    background: #ffffff;
}

.paciente-hero {
    position: relative;
    min-height: clamp(420px, 50vh, 470px);
    margin: 0;
    overflow: visible;
    background-image:
        linear-gradient(283deg, rgba(14, 199, 249, 0.73) 20%, rgba(255, 255, 255, 0) 82%),
        var(--paciente-hero-image);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.paciente-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 1;
    height: 92px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNGRkZGRkYiPjxwYXRoIGQ9Ik03MjUuMjkgMTAxLjJDMzI1LjIyIDEyMi40OCAwIDAgMCAwdjE0MGgxMjgwVjBzLTE1NC42NCA3OS45Mi01NTQuNzEgMTAxLjJ6IiBmaWxsLW9wYWNpdHk9Ii4zIi8+PHBhdGggZD0iTTU1Ni40NSAxMTkuNzRDOTUzLjQxIDE0MCAxMjgwIDE0IDEyODAgMTR2MTI2SDBWMHMxNTkuNSA5OS40OCA1NTYuNDUgMTE5Ljc0eiIgZmlsbC1vcGFjaXR5PSIuNSIvPjxwYXRoIGQ9Ik02NDAgMTQwYzM1My40NiAwIDY0MC0xNDAgNjQwLTEzOXYxNDBIMFYwczI4Ni41NCAxNDAgNjQwIDE0MHoiLz48L2c+PC9zdmc+");
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 100% 92px;
    transform: scale(-1, 1);
}

.paciente-hero-card {
    position: absolute;
    right: 50%;
    bottom: -24px;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(170px, 250px) minmax(0, 1fr);
    align-items: center;
    width: min(80vw, 1152px);
    height: 216px;
    min-height: 0;
    color: #ffffff;
    background: rgba(71, 196, 234, 0.96);
    box-shadow: 0 16px 38px rgba(14, 199, 249, 0.24);
    transform: translateX(50%);
}

.paciente-hero-person {
    align-self: end;
    justify-self: center;
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
}

.paciente-hero-person img {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: auto;
    max-width: none;
    height: min(17vw, 245px);
    transform: translateX(-50%);
}

.paciente-hero-copy {
    padding: 28px clamp(34px, 5vw, 74px) 28px 22px;
}

.paciente-hero-copy span {
    display: block;
    font-size: clamp(24px, 2vw, 31px);
    line-height: 1.16;
}

.paciente-hero-copy a {
    display: block;
    color: #ffffff;
    font-size: clamp(42px, 4.5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    transition: color 180ms ease;
}

.paciente-hero-copy a:hover {
    color: var(--blue);
}

.patient-services-section {
    padding-top: 82px;
}

.patient-section-heading {
    margin-bottom: 42px;
}

.patient-section-heading h2 {
    font-size: clamp(22px, 2.1vw, 30px);
    letter-spacing: 4px;
    line-height: 1.35;
}

.patient-section-heading p {
    color: #255e93;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 500;
}

.patient-service-list {
    gap: clamp(46px, 5vw, 78px);
}

.page-paciente .service-copy {
    color: #285575;
}

.page-paciente .service-copy p {
    text-align: justify;
}

.service-copy ul {
    margin: -4px 0 18px 20px;
    padding: 0;
    color: #285575;
    list-style: disc;
}

.service-copy li {
    margin: 0 0 3px;
}

.patient-specialists-section {
    padding: 72px 0 88px;
}

.patient-specialists-section .portal-section-heading p {
    max-width: 1120px;
    color: #285575;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.75;
}

.patient-specialist-grid {
    gap: 22px 36px;
}

@media (max-width: 980px) {
    :root {
        --header-height: 88px;
    }

    .site-header {
        padding-right: 4vw;
        padding-left: 4vw;
    }

    .hero {
        min-height: 70vh;
    }

    .access-panel {
        width: min(92vw, 900px);
        top: clamp(330px, 47vh, 420px);
    }

    .page-medico .primary-nav,
    .page-paciente .primary-nav {
        gap: 15px;
        font-size: 12px;
    }

    .medico-hero-card {
        grid-template-columns: 44% 56%;
        width: 92vw;
        padding-right: 34px;
    }

    .medico-hero-access {
        grid-column: 2;
    }

    .paciente-hero-card {
        grid-template-columns: minmax(165px, 30%) minmax(0, 70%);
        width: 92vw;
    }

    .paciente-hero-copy {
        padding-right: 34px;
    }

    .service-row,
    .service-row-reverse,
    .access-form-section,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .service-row-reverse .service-media,
    .service-row-reverse .service-copy {
        order: initial;
    }

    .specialist-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .access-form-visual {
        min-height: 480px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 87px;
        --footer-height: 72px;
        --access-bg-offset: 52px;
    }

    .site-header {
        min-height: var(--header-height);
        align-items: center;
        padding: 0 20px;
    }

    .brand {
        width: 112px;
        margin-top: 0;
    }

    .mobile-menu-toggle {
        position: relative;
        z-index: 2;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin: 0;
        border: none;
        background: transparent;
        color: var(--blue);
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        border-radius: 999px;
        background: currentColor;
        transition: transform 180ms ease, opacity 180ms ease;
    }

    .site-header.is-nav-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .site-header.is-nav-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.is-nav-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .primary-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 20px;
        left: 20px;
        display: none;
        gap: 0;
        max-height: calc(100vh - var(--header-height) - var(--footer-height) - 20px);
        margin: 0;
        padding: 8px;
        overflow-y: auto;
        border: 1px solid rgba(11, 94, 168, 0.14);
        background: #ffffff;
        box-shadow: 0 18px 36px rgba(11, 94, 168, 0.18);
        font-size: 13px;
    }

    .primary-nav a {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 0 12px;
        border-bottom: 1px solid rgba(11, 94, 168, 0.09);
        white-space: normal;
    }

    .primary-nav a:last-child {
        border-bottom: none;
    }

    .site-header.is-nav-open .primary-nav {
        display: grid;
    }

    .medico-hero {
        min-height: 432px;
    }

    .paciente-hero {
        min-height: 410px;
        background-position: center top;
    }

    .paciente-hero::after {
        height: 55px;
        background-size: 100% 55px;
    }

    .medico-hero::after {
        height: 55px;
        background-size: 100% 55px;
    }

    .medico-hero-card {
        bottom: 12px;
        grid-template-columns: 42% 58%;
        width: 96vw;
        min-height: 250px;
        padding: 0 22px 0 0;
    }

    .medico-hero-doctor {
        width: 165px;
        height: 250px;
        object-fit: cover;
        object-position: left bottom;
        margin: 0 0 0 -8px;
    }

    .medico-hero-title span,
    .medico-hero-access span {
        font-size: 22px;
    }

    .medico-hero-title strong,
    .medico-hero-access a {
        font-size: 38px;
    }

    .medico-hero-access {
        align-self: center;
        justify-self: start;
        margin-top: 0;
        margin-left: -10px;
    }

    .paciente-hero-card {
        bottom: -46px;
        grid-template-columns: 38% 62%;
        width: 96vw;
        height: 220px;
    }

    .paciente-hero-person {
        width: 100%;
    }

    .paciente-hero-person img {
        height: 240px;
    }

    .paciente-hero-copy {
        padding: 22px 18px 22px 8px;
    }

    .paciente-hero-copy span {
        font-size: 20px;
    }

    .paciente-hero-copy a {
        font-size: 33px;
        line-height: 1.08;
    }

    .medico-video-section,
    .portal-section {
        width: 92vw;
    }

    .patient-services-section {
        padding-top: 86px;
    }

    .portal-section-heading h2 {
        font-size: 27px;
    }

    .portal-section-heading p {
        font-size: 18px;
    }

    .service-list {
        gap: 46px;
        padding-bottom: 54px;
    }

    .service-row {
        gap: 18px;
    }

    .service-media img {
        display: none;
    }

    .service-copy {
        font-size: 15px;
        line-height: 1.68;
    }

    .service-copy h3 {
        font-size: 30px;
    }

    .patient-section-heading h2 {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .patient-section-heading p {
        font-size: 20px;
    }

    .specialists-section,
    .contact-section {
        padding-right: 4vw;
        padding-left: 4vw;
    }

    .specialist-grid,
    .contact-cards {
        grid-template-columns: 1fr;
    }

    .patient-specialists-section {
        padding-top: 52px;
        padding-bottom: 70px;
    }

    .access-form-section {
        padding-top: 58px;
        padding-bottom: 76px;
    }

    .access-form-visual {
        min-height: 375px;
    }

    .access-form-visual img {
        width: min(66%, 250px);
    }

    .study-modal {
        padding: 14px;
    }

    .study-modal-dialog {
        width: 100%;
        padding: 34px 12px 14px;
    }

    .chat-widget {
        right: 14px;
        bottom: calc(var(--footer-height) + 12px);
    }

    .chat-toggle {
        min-width: 86px;
        min-height: 56px;
        padding: 0 22px;
        border-radius: 999px;
        font-size: 15px;
    }

    .chat-window {
        bottom: 68px;
        width: calc(100vw - 28px);
        max-height: calc(100vh - var(--header-height) - var(--footer-height) - 34px);
    }

    .hero {
        min-height: auto;
        margin-bottom: 0;
        padding: 30px 0 80px;
        background-image: none;
    }

    .hero::after {
        display: none;
    }

    .social-rail {
        display: none;
    }

    .access-panel {
        position: relative;
        top: auto;
        left: auto;
        grid-template-columns: 1fr;
        gap: clamp(24px, 7.7vw, 30px);
        width: min(90vw, 351px);
        height: auto;
        margin: 0 auto;
        box-shadow: none;
        transform: none;
    }

    .access-card {
        height: min(48.8vw, 190px);
        padding-top: 0;
        overflow: visible;
    }

    .access-card::before {
        box-shadow: none;
    }

    .access-card-doctor {
        --card-bg: var(--cyan);
    }

    .access-card-patient {
        --card-bg: var(--dark-blue);
        height: min(52vw, 203px);
        padding-top: 0;
    }

    .access-card img {
        position: absolute;
        bottom: 0;
        left: 4px;
        z-index: 1;
        width: min(63vw, 246px);
        max-width: none;
        height: auto;
        margin: 0;
    }

    .access-card-patient img {
        width: min(65.7vw, 256px);
    }

    .footer-inner {
        width: 90vw;
        min-height: 72px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-social {
        position: static;
    }
}
