:root {
    color-scheme: light;
    --navy-deep: #071324;
    --navy: #0b1f3a;
    --navy-light: #13315c;
    --blue: #1d4ed8;
    --pale-blue: #eff6ff;
    --ice: #bfdbfe;
    --paper: #f8fafc;
    --line: #dce4ee;
    --muted: #475569;
    --green: #067552;
    --green-hover: #075e44;
    --display: Merriweather, Georgia, serif;
    --body: Inter, system-ui, sans-serif;
    --radius: 1rem;
    --shadow: 0 2px 5px rgb(7 19 36 / 5%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--navy); font: 1rem/1.6 var(--body); }
::selection { color: #fff; background: var(--navy-light); }
:focus-visible { outline: 3px solid #3b82f6; outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1, h2, .card h3, .telemedicine h3 { font-family: var(--display); }
a { color: inherit; }
button { font: inherit; }
main, section { scroll-margin-top: 5.5rem; }

.container { width: min(calc(100% - 3rem), 70rem); margin-inline: auto; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 4; transform: translateY(-180%); padding: .6rem 1rem; border-radius: .5rem; background: #fff; }
.skip-link:focus { transform: none; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 3;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}
.header-layout { display: grid; grid-template-columns: 1fr auto auto; align-items: center; min-height: 5rem; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .7rem; width: fit-content; text-decoration: none; }
.brand-icon, .tile-icon, .credential-icons > *, .floating-contact, .menu-toggle { display: inline-grid; place-items: center; flex: none; }
.brand-icon { width: 2.5rem; height: 2.5rem; border-radius: .7rem; background: var(--navy); color: #fff; }
.brand strong { display: block; font: 700 1rem/1.25 var(--display); }
.brand small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.site-nav { display: flex; gap: clamp(.85rem, 1.6vw, 1.55rem); }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .85rem; font-weight: 600; }
.site-nav a:hover { color: var(--blue); }
.menu-toggle { display: none; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); border-radius: .65rem; background: #fff; color: var(--navy); cursor: pointer; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--pale-blue); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    font-size: .875rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.button:hover { transform: translateY(-1px); }
.button .fa-brands { font-size: 1.2em; }
.button-navy { color: #fff; background: var(--navy); }
.button-navy:hover { background: var(--navy-light); }
.button-navy .fa-whatsapp, .button-glass .fa-whatsapp { color: #6ee7b7; }
.button-navy .fa-phone, .button-glass .fa-solid, .button-glass .fa-linkedin { color: var(--ice); }
.button-green { color: #fff; background: var(--green); box-shadow: 0 4px 14px rgb(4 47 35 / 25%); }
.button-green:hover, .floating-contact:hover { background: var(--green-hover); }
.button-glass { color: #fff; background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 24%); }
.button-glass:hover { background: rgb(255 255 255 / 16%); }
.button-outline { color: var(--navy); border-color: var(--line); box-shadow: var(--shadow); }
.button-outline:hover { background: var(--pale-blue); border-color: #bfdbfe; }
.button-outline .fa-linkedin { color: #0a66c2; }
.external-icon { color: var(--muted); font-size: .75rem; }

.hero {
    color: #fff;
    background: radial-gradient(circle, rgb(191 219 254 / 18%) 1px, transparent 1.5px) 0 0 / 20px 20px,
        linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, var(--navy-light));
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5.25rem); padding-block: clamp(3.5rem, 7.5vw, 6.5rem); }
.pill { display: inline-flex; align-items: center; gap: .48rem; width: fit-content; padding: .35rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 600; line-height: 1.4; }
.hero-pill { color: #e0efff; background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 18%); }
.hero-pill i { color: var(--ice); }
.hero h1 { margin-top: 1.25rem; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
.hero-subtitle { margin-top: 1rem; color: #dbeafe; font-size: clamp(1rem, 1.7vw, 1.25rem); font-weight: 600; }
.hero-intro { max-width: 35rem; margin-top: .9rem; color: #cbd8ec; font-size: 1.03rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-actions .button { min-height: 3.2rem; padding: .8rem 1.05rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; padding-top: 1.35rem; border-top: 1px solid rgb(255 255 255 / 23%); }
.hero-facts dt { font-weight: 700; font-size: clamp(.85rem, 1.7vw, 1.15rem); line-height: 1.35; }
.hero-facts dd { color: #c2d6f1; margin-top: .25rem; font-size: .77rem; }
.profile-card { justify-self: center; width: min(100%, 22.5rem); padding: .85rem; border: 1px solid rgb(255 255 255 / 21%); border-radius: 1.5rem; background: rgb(255 255 255 / 9%); box-shadow: 0 24px 56px rgb(3 12 27 / 27%); }
.profile-photo {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: .95rem;
}
.credential { display: flex; justify-content: space-between; align-items: center; gap: .45rem; margin-top: .75rem; padding: .85rem; border-radius: .9rem; background: #fff; color: var(--navy); }
.credential-label { display: block; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.credential strong { display: block; }
.credential-icons { display: flex; gap: .35rem; }
.credential-icons > * { width: 2.45rem; height: 2.45rem; border-radius: 50%; color: var(--navy-light); text-decoration: none; background: var(--pale-blue); }
.credential-icons a { color: #0a66c2; }
.credential-icons a:hover { background: #0a66c2; color: #fff; }

.section { padding-block: clamp(3.75rem, 8vw, 6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section-muted { background: var(--paper); }
.section-locations { background: #f0f4f9; }
.section-heading { width: min(100%, 47rem); margin: 0 auto clamp(1.85rem, 4vw, 3rem); text-align: center; }
.section-heading h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -.035em; text-wrap: balance; }
.eyebrow { margin-bottom: .6rem; color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-heading p:last-child { margin-top: .85rem; color: var(--muted); font-size: 1.025rem; text-wrap: pretty; }
.grid { display: grid; gap: 1.45rem; }
.timeline, .locations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.specialties { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.procedures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: #b9cce5; box-shadow: 0 8px 24px rgb(7 19 36 / 8%); }
.card h3 { font-size: 1.15rem; }
.card p { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
.timeline .card { background: var(--paper); }
.year { display: inline-block; margin-bottom: 1.15rem; padding: .2rem .65rem; border-radius: .45rem; color: #fff; background: var(--navy); font-size: .85rem; font-weight: 700; }
.card .institution { color: var(--blue); font-weight: 600; }
.section-action { margin-top: 1.75rem; text-align: center; }
.tile-icon { width: 2.85rem; height: 2.85rem; margin-bottom: 1rem; border-radius: .7rem; background: var(--pale-blue); color: var(--navy-light); font-size: 1.18rem; }
.specialties h3 { font-family: var(--body); }
.procedure-card { padding: clamp(1.35rem, 3vw, 2rem); border-color: transparent; color: #fff; background: var(--navy); }
.procedure-card:first-child { background: linear-gradient(125deg, var(--navy-deep), var(--navy)); }
.procedure-card:last-child { background: var(--navy-light); }
.procedure-card p { color: #d3deed; }
.procedure-card .tile-icon { color: var(--ice); background: rgb(255 255 255 / 11%); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .45rem; margin-bottom: .75rem; }
.card-top .tile-icon { margin-bottom: 0; }
.procedure-card .card-top { align-items: flex-start; margin-bottom: 1rem; }
.checklist, .location-details { display: grid; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.checklist { color: #dbeafe; font-size: .82rem; }
.checklist li, .location-details li { display: flex; align-items: baseline; gap: .55rem; }
.checklist i { color: #6ee7b7; }
.location-card { display: flex; flex-direction: column; }
.location-card .card-top > i { color: var(--blue); }
.location-card .institution { margin-top: .25rem; }
.pill-light { color: var(--navy-light); background: var(--pale-blue); }
.location-details { border-top: 1px solid var(--line); padding-block: .85rem 1.35rem; color: var(--muted); font-size: .85rem; }
.location-details i { flex: none; width: 1rem; color: var(--blue); text-align: center; }
.contact-note { font-size: .78rem; }
.location-card .button { margin-top: auto; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 1.35rem; padding: clamp(1.3rem, 3vw, 2rem); border-radius: var(--radius); }
.callout .button { flex: none; }
.callout p { margin-top: .45rem; }
.telemedicine { grid-column: 1 / -1; color: #fff; background: linear-gradient(105deg, var(--navy), var(--navy-light)); }
.telemedicine h3 { margin-top: .65rem; font-size: clamp(1.2rem, 2.3vw, 1.5rem); }
.telemedicine p { color: #d3deed; }

.site-footer { padding-block: 2.75rem; color: #b5c3d7; background: var(--navy-deep); font-size: .875rem; }
.footer-layout, .footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-actions { justify-content: flex-end; flex-wrap: wrap; gap: .55rem; }
.footer-name { margin-bottom: .3rem; color: #fff; font: 700 1.05rem/1.3 var(--display); }
.footer-cities, .footer-note { color: #a3b4cc; font-size: .75rem; }
.footer-cities { margin-top: .3rem; }
.footer-note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 16%); text-align: center; }
.floating-contact { position: fixed; bottom: max(1.1rem, env(safe-area-inset-bottom)); right: max(1.1rem, env(safe-area-inset-right)); z-index: 2; width: 3.45rem; height: 3.45rem; border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 4px 20px rgb(7 19 36 / 26%); font-size: 1.85rem; text-decoration: none; transition: background-color .2s, transform .2s; }
.floating-contact:hover { transform: translateY(-3px); }

@media (max-width: 62rem) {
    .header-layout { grid-template-columns: 1fr auto auto; gap: .6rem; }
    .header-cta { grid-column: 2; grid-row: 1; }
    .menu-toggle:not([hidden]) { display: inline-grid; grid-column: 3; grid-row: 1; }
    .site-header:not(.has-menu-toggle) { position: static; }
    .site-header:not(.has-menu-toggle) .header-layout { padding-top: .75rem; }
    .site-nav { grid-column: 1 / -1; flex-wrap: wrap; gap: .25rem; padding-bottom: .65rem; }
    .has-menu-toggle .site-nav { display: none; }
    .has-menu-toggle .site-nav.is-open { display: grid; }
    .site-nav a { display: block; padding: .55rem .7rem; border-radius: .5rem; }
    .site-nav a:hover { background: var(--pale-blue); }
}

@media (max-width: 53rem) {
    .hero-layout { gap: 2rem; }
    .timeline, .locations, .specialties { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .timeline .card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 44rem) {
    .container { width: calc(100% - 2rem); }
    .hero-layout { grid-template-columns: minmax(0, 1fr); }
    .hero-break { display: none; }
    .profile-card { width: min(100%, 21rem); }
    .footer-layout, .callout { flex-direction: column; align-items: flex-start; }
    .footer-actions { justify-content: flex-start; }
    .site-footer { padding-bottom: 4.6rem; }
}

@media (max-width: 35rem) {
    .brand { gap: .45rem; }
    .brand strong { font-size: .86rem; }
    .brand small { font-size: .57rem; letter-spacing: .01em; }
    .brand-icon { width: 2rem; height: 2rem; font-size: .85rem; }
    .header-cta { padding-inline: .65rem; font-size: .75rem; }
    .menu-toggle { width: 2rem; height: 2.65rem; }
    .hero h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
    .hero-facts { gap: .5rem; }
    .hero-facts dd { font-size: .72rem; }
    .hero-actions .button, .callout > .button { width: 100%; }
    .timeline, .locations, .specialties, .procedures { grid-template-columns: minmax(0, 1fr); gap: .95rem; }
}

@media (max-width: 24rem) {
    .header-cta span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .header-cta { min-width: 2.55rem; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
