/* Humane Medicine. Theme tokens follow the current humanemedicine.mx palette:
   black and white with the slate teal accents of the Wix theme (#234951, #4793a3, #aabcbf, #e1eff2),
   Raleway for display and an Avenir-like sans (Mulish) for body. */

@font-face {
  font-family: "Raleway";
  src: url("/fonts/raleway-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("/fonts/mulish-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --display: "Raleway", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Mulish", "Avenir Next", "Avenir", "Segoe UI", Roboto, sans-serif;

  --bg: #fbfbfb;
  --surface: #ffffff;
  --surface-2: #f2f5f5;
  --ink: #161818;
  --muted: #4d5454;
  --line: #d9dfdf;
  --panel: #111314;
  --panel-ink: #f4f6f6;
  --panel-muted: #c2cbcc;
  --accent: #234951;
  --accent-ink: #ffffff;
  --accent-soft: #e1eff2;
  --accent-mid: #4793a3;
  --wa: #0b7a4c;
  --wa-ink: #ffffff;
  --warn-bg: #fff7e6;
  --warn-line: #e8c27a;
  --warn-ink: #4a3300;
  --ok-bg: #e9f6ef;
  --ok-line: #8fcaa9;
  --err-bg: #fdecec;
  --err-line: #e3a1a1;
  --focus: #4793a3;
  /* Component colors (light). Dark values live in the two dark blocks below. */
  --strong-bg: var(--panel);
  --strong-ink: var(--panel-ink);
  --tag-bg: var(--panel);
  --tag-ink: var(--panel-ink);
  --tag-border: none;
  --logo-bg: transparent;
  --logo-plate: #ffffff;
  --err-ink: #b3261e;
  --invalid: #c0392b;
  --doctor-media-bg: #aabcbf;
  --footer-line: #2b3133;
  --footer-hover: rgba(255, 255, 255, .06);
  --footer-strong: #f3e3bd;
  --license-em: #e8c27a;
  --wa-shadow: rgba(0, 0, 0, .25);

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(17, 19, 20, .07);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* Theme: bare :root is light. Dark applies when the system is dark and the visitor has not
   forced light, or when the visitor forced dark with the header switch (data-theme on <html>). */
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1112;
    --surface: #151a1b;
    --surface-2: #1b2223;
    --ink: #eef2f2;
    --muted: #b3bdbe;
    --line: #2b3436;
    --panel: #050606;
    --panel-ink: #eef2f2;
    --panel-muted: #aab6b7;
    --accent: #90c4cf;
    --accent-ink: #0b1d21;
    --accent-soft: #15292d;
    --accent-mid: #90c4cf;
    --wa: #10c379;
    --wa-ink: #04140c;
    --warn-bg: #2a2110;
    --warn-line: #7a5d22;
    --warn-ink: #f5e2b8;
    --ok-bg: #10261b;
    --ok-line: #2f6b4b;
    --err-bg: #2b1414;
    --err-line: #7d3434;
    --focus: #90c4cf;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --strong-bg: #90c4cf;
    --strong-ink: #0b1d21;
    --tag-bg: #15292d;
    --tag-ink: #eef2f2;
    --tag-border: 1px solid #2b3436;
    --logo-bg: #ffffff;
    --err-ink: #ff9b94;
  }
}

:root[data-theme="dark"] {
  --bg: #0e1112;
  --surface: #151a1b;
  --surface-2: #1b2223;
  --ink: #eef2f2;
  --muted: #b3bdbe;
  --line: #2b3436;
  --panel: #050606;
  --panel-ink: #eef2f2;
  --panel-muted: #aab6b7;
  --accent: #90c4cf;
  --accent-ink: #0b1d21;
  --accent-soft: #15292d;
  --accent-mid: #90c4cf;
  --wa: #10c379;
  --wa-ink: #04140c;
  --warn-bg: #2a2110;
  --warn-line: #7a5d22;
  --warn-ink: #f5e2b8;
  --ok-bg: #10261b;
  --ok-line: #2f6b4b;
  --err-bg: #2b1414;
  --err-line: #7d3434;
  --focus: #90c4cf;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  --strong-bg: #90c4cf;
  --strong-ink: #0b1d21;
  --tag-bg: #15292d;
  --tag-ink: #eef2f2;
  --tag-border: 1px solid #2b3436;
  --logo-bg: #ffffff;
  --err-ink: #ff9b94;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.1rem, 5.6vw, 4rem); font-weight: 300; text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 300; text-transform: uppercase; letter-spacing: .04em; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--panel); color: var(--panel-ink); padding: 10px 14px; border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

/* Header */
.top-strip { background: var(--panel); color: var(--panel-muted); font-size: .85rem; }
.top-strip .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 36px; flex-wrap: wrap; }
.top-strip a { color: var(--panel-ink); text-decoration: none; }
.top-strip a:hover { text-decoration: underline; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: var(--logo-bg); }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name strong { font-family: var(--display); font-weight: 500; letter-spacing: .08em; font-size: 1.02rem; text-transform: uppercase; }
.brand-name span { font-size: .82rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .93rem; padding: 8px 10px; border-radius: 999px;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-toggle button {
  font: 600 .8rem/1 var(--body); letter-spacing: .06em; border: 0; background: transparent; color: var(--muted);
  padding: 7px 10px; border-radius: 999px; cursor: pointer; min-width: 40px; min-height: 32px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--strong-bg); color: var(--strong-ink); }
.theme-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; flex: none;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.theme-btn:hover { background: var(--surface-2); }
.theme-btn svg { width: 20px; height: 20px; display: none; }
html:not(.theme-js) .theme-btn { display: none; }
:root:not([data-theme]) .theme-btn .ti-auto,
:root[data-theme="light"] .theme-btn .ti-light,
:root[data-theme="dark"] .theme-btn .ti-dark { display: block; }
.menu-btn {
  display: none; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font: 600 .9rem/1 var(--body); cursor: pointer; min-height: 40px;
}
.menu-btn svg { width: 18px; height: 18px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 .98rem/1.1 var(--body); letter-spacing: .02em; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; min-height: 48px;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--strong-bg); color: var(--strong-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
/* 3 / 2 matches the beach house-call photo. Taller frames (4 / 3.4) crop the child on the right. */
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--surface-2); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 62%; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; padding: 0; list-style: none; }
.tags li {
  background: var(--tag-bg); color: var(--tag-ink); border: var(--tag-border); border-radius: 999px; padding: 6px 14px; font-size: .85rem; letter-spacing: .03em;
}
.hero .btn-row { margin-top: 26px; }

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--panel); color: var(--panel-ink); }
.section-dark .lead, .section-dark .muted { color: var(--panel-muted); }
.section-dark a { color: var(--panel-ink); }
.section-head { max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.center { text-align: center; margin-inline: auto; }
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }

/* Doctor block */
.doctor { display: grid; grid-template-columns: minmax(0, 380px) 1fr; background: var(--panel); color: var(--panel-ink); border-radius: var(--radius); overflow: hidden; }
.doctor-media { background: var(--doctor-media-bg); }
.doctor-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; aspect-ratio: 2 / 3; }
.doctor-body { padding: clamp(24px, 4vw, 52px); align-self: center; }
.doctor-body h2 { color: var(--panel-ink); }
.doctor-body p { color: var(--panel-muted); }
.doctor-body .btn-ghost { color: var(--panel-ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
}
.card-media { aspect-ratio: 4 / 3.2; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
/* House call terrace (home card): doctor and bag sit on the left; bias viewports toward the left. */
.card-media-on-site img { object-position: 22% 50%; }
/* IV balcony photo: square export (nurse head-to-toe). Match frame to asset so cover never crops her head. */
.card-media-iv img { object-position: center 18%; }
.card-media.plain {
  display: grid; place-items: center; background: var(--panel); color: var(--panel-muted);
  font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .8rem; text-align: center; padding: 16px;
}
.plain-logo { width: 34%; max-width: 140px; height: auto; border-radius: 50%; background: var(--logo-plate); opacity: .92; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: 1rem; margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .97rem; }
.card-body .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: .93rem; }

/* Band image */
.band { position: relative; }
.band img { width: 100%; height: clamp(240px, 42vw, 520px); object-fit: cover; object-position: center 55%; }

/* Philosophy */
.prose p { color: var(--muted); }
.prose h2 { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Services list */
.svc-group { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(28px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.svc-group:first-of-type { border-top: 0; }
.svc-group-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--surface-2); position: sticky; top: 100px; }
.svc-group-media img { width: 100%; height: 100%; object-fit: cover; }
/* On-site house call (wide): keep Dr. Muñoz and both patients in frame; shift focal area left. */
.svc-group-media.media-on-site img { object-position: 22% 50%; }
/* Service detail: IV square frame matches square export; aesthetic stays landscape-centered. */
.svc-group-media.media-iv img { object-position: center 18%; }
.svc-group-media.media-aesthetic img { object-position: center 45%; }
.svc-group-media.plain { display: grid; place-items: center; background: var(--panel); color: var(--panel-muted); font-family: var(--display); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; }
.svc-num { font-family: var(--display); font-size: 1.1rem; color: var(--accent-mid); grid-row: span 3; padding-top: 2px; }
.svc h3 { margin: 0; font-size: 1.05rem; }
.svc p { margin: 0; color: var(--muted); font-size: .97rem; }
.svc .note { font-size: .86rem; color: var(--accent); font-weight: 600; }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 76px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--strong-bg); color: var(--strong-ink); font-family: var(--display); font-weight: 600;
}
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }

/* Info cards */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info h2, .info h3 { font-size: 1rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: .6em; }
.info p { margin: 0 0 .6em; }
.info .big { font-size: 1.2rem; font-weight: 700; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .92rem; background: var(--surface);
}
.socials svg { width: 18px; height: 18px; }

/* Notices */
.notice {
  border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-ink);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem;
}
.notice strong { display: block; margin-bottom: 2px; }
.notice a { color: inherit; font-weight: 700; }
.request-label {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); padding: 5px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }

/* Form */
.form-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.hint { font-size: .87rem; color: var(--muted); margin: 0; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%; min-height: 48px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 2px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--invalid); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; cursor: pointer; background: var(--bg); min-height: 44px; }
.choice input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent-mid); }
.err { color: var(--err-ink); font-size: .88rem; font-weight: 600; margin: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ts-wrap { margin: 6px 0 18px; min-height: 65px; }
.status { border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 16px; }
.status.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); }
.status.fail { background: var(--err-bg); border: 1px solid var(--err-line); }
.status:empty { display: none; }
.side-stack { display: grid; gap: 16px; }

/* Articles */
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: clamp(28px, 6vw, 56px); text-align: center; }

/* Footer: three compact rows (brand and contact, page links, legal strip) */
.site-footer { background: var(--panel); color: var(--panel-muted); padding: 24px 0 calc(76px + env(safe-area-inset-bottom)); font-size: .92rem; }
.site-footer a { color: var(--panel-ink); }
.site-footer p { margin: 0; }
.site-footer svg { width: 18px; height: 18px; flex: none; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer-brand { display: flex; gap: 10px; align-items: center; color: var(--panel-ink); }
.footer-brand img { width: 36px; height: 36px; border-radius: 50%; background: var(--logo-plate); }
.footer-brand strong { font-family: var(--display); letter-spacing: .1em; text-transform: uppercase; font-weight: 500; margin-right: 6px; }
.footer-tag { display: block; color: var(--panel-muted); font-size: .85rem; }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; }
.footer-contact > a, .footer-social a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px;
  padding: 0 10px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.footer-social { display: inline-flex; }
.footer-social a { padding: 0; color: var(--panel-muted); }
.footer-contact a:hover, .footer-social a:hover { color: var(--panel-ink); background: var(--footer-hover); text-decoration: none; }
.footer-nav { margin-top: 8px; border-top: 1px solid var(--footer-line); padding-top: 4px; }
.footer-nav ul { list-style: none; margin: 0 -10px; padding: 0; display: flex; flex-wrap: wrap; }
.footer-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 10px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-cta a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { border-top: 1px solid var(--footer-line); margin-top: 4px; padding-top: 14px; display: grid; gap: 4px; font-size: .84rem; line-height: 1.5; }
.footer-legal strong { color: var(--footer-strong); }
.footer-legal a { font-weight: 700; white-space: nowrap; }
.license-slot { color: var(--panel-ink); }
.license-slot em { color: var(--license-em); font-style: normal; font-weight: 700; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: var(--wa-ink); text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 12px 18px 12px 14px; box-shadow: 0 6px 20px var(--wa-shadow); min-height: 52px;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { text-decoration: none; transform: translateY(-1px); }
/* Out of the way while someone types in a form (labels and fields sit on the left) */
body:has(form :focus) .wa-float { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav a { padding: 8px 7px; font-size: .88rem; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 18px; gap: 2px; box-shadow: var(--shadow);
  }
  html.js .nav:not(.open) { display: none; }
  html:not(.js) .nav { position: static; box-shadow: none; flex-direction: row; flex-wrap: wrap; border: 0; padding: 0 0 10px; }
  html:not(.js) .header-row { flex-wrap: wrap; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .header-cta { display: none; }
  .hero-grid, .two-col, .form-layout, .cta-band { grid-template-columns: 1fr; }
  .hero-media { order: -1; aspect-ratio: 3 / 2; }
  .hero-media img { object-position: 82% 64%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doctor { grid-template-columns: 1fr; }
  .doctor-media img { aspect-ratio: 4 / 3.6; object-position: center 18%; }
  .svc-group { grid-template-columns: 1fr; }
  .svc-group-media { position: static; aspect-ratio: 16 / 9; }
  .svc-group-media.media-on-site img { object-position: 20% 50%; }
  .svc-group-media.media-iv img { object-position: center 16%; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top-strip .wrap { justify-content: center; }
  .top-strip .hide-sm { display: none; }
  .brand-name span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .theme-btn { width: 44px; height: 44px; }
  /* Room for the theme switch next to EN/ES and Menu on phones */
  .header-row { gap: 12px; }
  .header-tools { gap: 8px; }
  /* Menu becomes a 44 px icon button; the word stays as its accessible name */
  .menu-btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .menu-btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cards { grid-template-columns: 1fr; }
  .card-media-on-site img { object-position: 20% 52%; }
  .row-2 { grid-template-columns: 1fr; }
  .footer-contact { margin-left: -10px; }
  .btn-row .btn { flex: 1 1 100%; }
  .wa-float span { display: none; }
  .wa-float { padding: 13px; }
  .steps li { padding-left: 66px; }
  .steps li::before { left: 16px; }
}
@media (max-width: 370px) {
  /* Very narrow phones: the logo alone carries the brand (the link keeps its name) */
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .wa-float, .top-strip { display: none; }
}
