/* =========================================================
   AllDigest — Clínica do Aparelho Digestivo
   Cores extraídas da identidade (logo e pasta de laudo)
   ========================================================= */
:root {
  --navy: #023b56;
  --navy-700: #064a6b;
  --navy-900: #01283b;
  --blue: #2daae1;
  --blue-600: #1c8fc2;
  --sky: #dff2fb;
  --sky-50: #f3f9fd;
  --ink: #0f2a3a;
  --muted: #557083;
  --line: #d8e7f0;
  --white: #fff;

  --radius-lg: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(2, 59, 86, .28);
  --shadow-sm: 0 6px 20px -10px rgba(2, 59, 86, .25);
  --glass: rgba(255, 255, 255, .12);
  --glass-line: rgba(255, 255, 255, .28);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; color: var(--navy); }
h2 em, h1 em { font-style: normal; color: var(--blue); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: .95rem; font-family: inherit;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.nowrap { white-space: nowrap; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(45, 170, 225, .8); }
.btn--primary:hover { background: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .35); }
.btn--ghost { border-color: var(--glass-line); color: #fff; background: var(--glass); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-600); }

.pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .4em 1em; border-radius: 999px; font-size: .8rem; font-weight: 700;
  letter-spacing: .02em; color: var(--blue-600); background: var(--sky); margin-bottom: 1rem;
}
.pill--glass { color: #fff; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center; transition: background .3s, box-shadow .3s;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { position: relative; display: block; width: 168px; }
.logo { width: 100%; height: auto; transition: opacity .3s; }
.logo--navy { position: absolute; inset: 0; opacity: 0; }
.nav {
  display: flex; align-items: center; gap: 4px; padding: 6px;
  border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav a:not(.btn) { color: #fff; font-weight: 600; font-size: .9rem; padding: .55em 1em; border-radius: 999px; transition: background .2s; }
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .16); }
.nav__cta { padding: .6em 1.3em; }

.header.is-scrolled { background: rgba(255, 255, 255, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.header.is-scrolled .logo--white { opacity: 0; }
.header.is-scrolled .logo--navy { opacity: 1; }
.header.is-scrolled .nav { background: transparent; border-color: transparent; }
.header.is-scrolled .nav a:not(.btn) { color: var(--navy); }
.header.is-scrolled .nav a:not(.btn):hover { background: var(--sky); }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(10px); cursor: pointer; padding: 0 12px; flex-direction: column; justify-content: center; gap: 4px; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.header.is-scrolled .nav-toggle { border-color: var(--line); background: #fff; }
.header.is-scrolled .nav-toggle span { background: var(--navy); }

/* ---------- Hero (glassmorphism) ---------- */
.hero {
  position: relative; color: #fff; margin-bottom: 56px;
  padding: calc(var(--header-h) + 48px) 0 0;
  background: linear-gradient(135deg, #034a6c 0%, #0a6893 34%, #1b8cc2 68%, #a6daf1 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; background: var(--white); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.blob--1 { width: 520px; height: 520px; background: var(--blue); top: -140px; right: 8%; }
.blob--2 { width: 420px; height: 420px; background: #c9e9f7; bottom: 40px; right: -120px; opacity: .45; }
.blob--3 { width: 380px; height: 380px; background: #0a5a83; bottom: -120px; left: -80px; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: stretch; }
.hero__glass {
  padding: clamp(28px, 4vw, 56px); border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .45em; }
.hero h1 em { color: #8fd6f5; }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: rgba(255, 255, 255, .85); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero__contact { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0; padding-top: 24px; border-top: 1px solid var(--glass-line); }
.hero__contact dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); }
.hero__contact dd { margin: 0; font-weight: 700; }

.hero__art { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-line); min-height: 420px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.hero__art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__badge {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--radius); color: #fff; font-size: .9rem;
  background: rgba(2, 59, 86, .6); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.hero__badge img { width: 22px; height: auto; flex: none; }

.stats {
  position: relative; list-style: none; margin: 48px 0 0; padding: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); color: var(--ink); z-index: 2;
}
.stats li { display: flex; align-items: center; gap: 14px; padding: 6px 10px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--blue-600); }
.stats__icon svg, .features__icon svg, .contact-card__icon svg, .social svg, .exam__icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.stats strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stats span { font-size: .85rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.section--tint { background: var(--sky-50); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: 48px; flex-wrap: wrap; }
.section__head > div { max-width: 620px; }
.section__head h2 { margin: 0; }
.section__head > p { max-width: 420px; color: var(--muted); margin: 0; }
.subhead { font-size: 1.25rem; color: var(--navy); margin: 56px 0 20px; }

/* About */
.about { padding-top: clamp(40px, 6vw, 72px); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.about__media > img { width: 100%; height: 100%; object-fit: cover; }
.about__seal {
  position: absolute; right: 22px; bottom: 22px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center; padding: 24px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .5);
}
.about__text p { color: var(--muted); font-size: 1.05rem; }
.about__text strong { color: var(--navy); }
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.features li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); font-size: .95rem; }
.features__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--blue-600); }
.features__icon svg { width: 22px; height: 22px; }

/* Specialties */
.specialties { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.specialty { grid-column: span 3; } /* 4 especialidades: 2 por linha */
.specialty {
  position: relative; padding: 32px 28px 28px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.specialty:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.specialty::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--sky); }
.specialty__icon { position: relative; width: 56px; height: 56px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; margin-bottom: 20px; }
.specialty__icon img { width: 20px; }
.specialty h3 { position: relative; font-size: 1.3rem; color: var(--navy); }
.specialty p { color: var(--muted); flex: 1; }
.specialty__meta { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .88rem; font-weight: 700; color: var(--navy); }
.specialty__meta button { background: none; border: 0; color: var(--blue-600); font: inherit; cursor: pointer; padding: 0; }
.specialty__meta button:hover { text-decoration: underline; }

.exams { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.exam { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; color: var(--navy); }
.exam__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--sky); color: var(--blue-600); display: grid; place-items: center; }
.exam__icon svg { width: 20px; height: 20px; }
.exam small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }

/* Doctors */
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; background: var(--sky-50); border: 1px solid var(--line); }
.section--tint .tabs { background: #fff; }
.tabs button { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: .9rem; color: var(--muted); padding: .6em 1.2em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.select select {
  appearance: none; font: inherit; font-weight: 600; color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23023b56' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
  border: 1px solid var(--line); border-radius: 999px; padding: .75em 3em .75em 1.3em; cursor: pointer; min-width: 240px;
}
.results { color: var(--muted); font-size: .9rem; margin: 0 0 20px; min-height: 1.6em; }

.doctors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.doctor {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
  animation: rise .4s both;
}
.doctor:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.doctor__top {
  position: relative; height: 150px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy) 0%, #0b6a99 100%);
}
.doctor__top::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/pattern.jpg") center / cover; opacity: .14; mix-blend-mode: screen; }
.doctor__avatar {
  position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy); font-weight: 800; font-size: 1.7rem; letter-spacing: .02em;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); overflow: hidden;
}
.doctor__avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor__tag { position: absolute; z-index: 1; top: 14px; left: 14px; font-size: .72rem; font-weight: 700; color: #fff; padding: .3em .8em; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(8px); }
.doctor__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.doctor h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.doctor__crm { font-size: .8rem; font-weight: 700; color: var(--blue-600); margin-bottom: 14px; }
.doctor__esp { font-size: .78rem; font-weight: 600; color: var(--navy); background: var(--sky-50); border-left: 3px solid var(--blue); padding: 6px 10px; border-radius: 6px; margin: -4px 0 14px; line-height: 1.4; }
.doctor__does { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { font-size: .74rem; font-weight: 600; padding: .3em .75em; border-radius: 10px; background: var(--sky); color: var(--navy); }
.chip--line { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.doctor__plans { font-size: .8rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.doctor__plans b { color: var(--navy); font-weight: 700; }
.doctor .btn { width: 100%; padding: .7em 1em; font-size: .88rem; }
.doctors__empty { grid-column: 1 / -1; text-align: center; padding: 48px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }

/* Convênios (navy section) */
.section--navy { background: var(--navy); color: #fff; overflow: hidden; }
.navy__pattern { position: absolute; inset: 0; background: url("../assets/img/pattern-wide.jpg") center / cover; opacity: .09; pointer-events: none; }
.section__head--light h2 { color: #fff; }
.section__head--light > p { color: rgba(255, 255, 255, .72); }
.plans { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  text-align: left; font: inherit; color: #fff; cursor: pointer; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius-lg); background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .25s, transform .25s;
}
.plan:hover { background: rgba(255, 255, 255, .2); transform: translateY(-3px); }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; }
.plan__mark { width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--navy); display: grid; place-items: center; font-size: .78rem; font-weight: 800; flex: none; }
.plan__info { color: rgba(255, 255, 255, .75); font-size: .9rem; }
.plan__list { margin: 0; padding-left: 1.1em; color: rgba(255, 255, 255, .8); font-size: .82rem; columns: 2; column-gap: 20px; }
.plan__list--single { columns: 1; }
.plan__cta { margin-top: auto; font-weight: 700; font-size: .88rem; color: #8fd6f5; }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guide { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.guide__step { display: inline-block; font-weight: 800; font-size: .85rem; color: var(--blue-600); background: var(--sky); padding: .3em .8em; border-radius: 999px; margin-bottom: 16px; }
.guide h3 { color: var(--navy); font-size: 1.15rem; }
.guide p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Location */
.location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); min-height: 440px; background: var(--sky); border: 1px solid var(--line); }
.location__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.location__info { display: flex; flex-direction: column; gap: 16px; }
#lista-unidades { display: grid; gap: 16px; }
.unit { padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.unit h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.unit address { font-style: normal; color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.unit a { font-weight: 700; font-size: .88rem; color: var(--blue-600); }
.unit a:hover { text-decoration: underline; }
.contact-card { padding: 10px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.contact-card__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-sm); transition: background .2s; font-weight: 700; overflow-wrap: anywhere; }
.contact-card__row:hover { background: rgba(255, 255, 255, .08); }
.contact-card__row small { display: block; font-weight: 500; font-size: .75rem; color: rgba(255, 255, 255, .6); }
.contact-card__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #8fd6f5; }
.contact-card__icon svg { width: 20px; height: 20px; }
/* Ícones preenchidos (ex.: WhatsApp) não recebem o contorno dos ícones de linha */
svg path[fill="currentColor"] { stroke: none; }

/* CTA */
.cta { padding: 0 0 clamp(72px, 9vw, 110px); background: var(--sky-50); }
.cta__box {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, #0b6a99 60%, var(--blue) 100%);
}
.cta__box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.cta__box h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta__box p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .75); padding: 64px 0 28px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1.2fr; gap: 32px; }
.footer__logo { width: 180px; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer strong { color: #fff; font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); transition: background .2s; }
.social a:hover { background: var(--blue); border-color: var(--blue); }
.social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .55); }

/* Botão flutuante do WhatsApp */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 30px; height: 30px; }
/* Chips do perfil (página do médico) */
.profile__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.profile__chips .chip { font-size: .82rem; padding: .4em .9em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .doctors { grid-template-columns: repeat(3, 1fr); }
  .guides { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: calc(var(--header-h) - 4px); left: 16px; right: 16px; flex-direction: column; align-items: stretch;
    padding: 12px; border-radius: var(--radius); background: rgba(255, 255, 255, .97); border: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav a:not(.btn) { color: var(--navy); padding: .85em 1em; }
  .nav a:not(.btn):hover { background: var(--sky); }
  .nav__cta { margin-top: 6px; }
  .header.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { min-height: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
  .about__grid, .location { grid-template-columns: 1fr; }
  .specialties, .plans { grid-template-columns: 1fr 1fr; }
  .specialty, .specialty:nth-child(n + 4) { grid-column: auto; }
  .exams { grid-template-columns: 1fr 1fr; }
  .doctors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  :root { --header-h: 68px; }
  .header__logo { width: 140px; }
  .hero { padding-top: calc(var(--header-h) + 20px); }
  .hero__glass { padding: 26px 22px; }
  .hero__actions .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; padding: 14px; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .specialties, .plans, .exams, .guides, .doctors, .features, .footer__grid { grid-template-columns: 1fr; }
  .plan__list { columns: 1; }
  .filters { flex-direction: column; align-items: stretch; }
  .tabs { border-radius: var(--radius); justify-content: center; }
  .select select { width: 100%; min-width: 0; }
  .about__seal { width: 110px; height: 110px; padding: 18px; }
  .location__map, .location__map iframe { min-height: 320px; }
  .doctor__top { height: 110px; }
  .doctor__avatar { width: 76px; height: 76px; font-size: 1.35rem; }
}

/* =========================================================
   Páginas internas (médico / convênios)
   ========================================================= */
.nav a[aria-current="page"]:not(.btn) { background: rgba(255, 255, 255, .18); }
.header.is-scrolled .nav a[aria-current="page"]:not(.btn) { background: var(--sky); }
a.doctor { color: inherit; }

.hero--page { margin-bottom: 0; padding-bottom: clamp(56px, 7vw, 96px); }
.hero--page::after { display: none; }
.crumbs { position: relative; display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .65); margin-bottom: 24px; }
.crumbs a { color: rgba(255, 255, 255, .85); font-weight: 600; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; font-weight: 700; }

/* Perfil do médico */
.profile-hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: stretch; }
.profile-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
.profile-hero__crm { display: inline-block; font-weight: 700; color: #8fd6f5; margin-bottom: 18px; letter-spacing: .02em; }
.profile-hero__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip--glass { background: var(--glass); color: #fff; border: 1px solid var(--glass-line); backdrop-filter: blur(8px); font-size: .8rem; padding: .4em .9em; }

.photo-stage { position: relative; margin: 0; min-height: 560px; border-radius: var(--radius-lg); }
.photo-stage__pattern { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--glass-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.photo-stage__frame {
  position: absolute; inset: 9% 11% 15%; padding: 10px; border-radius: 26px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(1, 40, 59, .6);
}
.photo-stage__frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: var(--sky); }
.photo-stage__badge {
  position: absolute; left: 6%; right: 6%; bottom: 4%; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius); color: #fff;
  background: rgba(2, 59, 86, .72); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.photo-stage__badge img { width: 22px; flex: none; }
.photo-stage__badge strong { display: block; font-size: 1rem; }
.photo-stage__badge span { font-size: .82rem; color: rgba(255, 255, 255, .8); line-height: 1.35; }
.photo-stage__seal {
  position: absolute; top: -18px; right: -18px; width: 112px; height: 112px; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center; padding: 20px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 20px 40px -12px rgba(0, 0, 0, .5);
}

/* Minicurrículo */
.cv { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.cv__bio p { color: var(--muted); font-size: 1.06rem; }
.cv__card {
  position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(150deg, var(--navy) 0%, #0b6a99 100%); box-shadow: var(--shadow);
}
.cv__card::before { content: ""; position: absolute; inset: 0; background: url("../assets/img/pattern.jpg") center / cover; opacity: .1; mix-blend-mode: screen; }
.cv__card > * { position: relative; }
.cv__card h3 { font-size: 1.2rem; margin-bottom: 22px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.timeline li { position: relative; padding: 0 0 20px 30px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(45, 170, 225, .25); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 24px; bottom: 0; width: 2px; background: rgba(255, 255, 255, .2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; font-weight: 700; }
.timeline span { font-size: .88rem; color: rgba(255, 255, 255, .7); }

/* Atendimento */
.care { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.care__col { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.care__col h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 18px; }
.care__note { font-size: .86rem; color: var(--muted); margin: 14px 0 10px; }
.care__unit { display: grid; gap: 2px; padding: 14px 0; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--muted); }
.care__unit:first-of-type { border-top: 0; padding-top: 0; }
.care__unit strong { color: var(--navy); }
.link-arrow { font-weight: 700; font-size: .88rem; color: var(--blue-600); }
.link-arrow:hover { text-decoration: underline; }
.exams--stack { grid-template-columns: 1fr; gap: 10px; }
.exams--stack .exam { padding: 12px 14px; background: var(--sky-50); }

/* Outros especialistas */
.mini-doctors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-doctor { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s, box-shadow .2s; }
.mini-doctor:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.mini-doctor__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--navy); color: #fff; font-weight: 800; }
.mini-doctor__avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-doctor strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.3; }
.mini-doctor small { color: var(--blue-600); font-weight: 700; font-size: .78rem; }

.cta--white { background: #fff; }

/* Home: faixa com demais convênios */
.plans-more { position: relative; margin-top: 28px; padding: 22px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { white-space: nowrap; padding: .5em 1.1em; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--glass); border: 1px solid var(--glass-line); color: #fff; }
@keyframes marquee { to { transform: translateX(-50%); } }
.plans-more__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 20px; }
.plans-more__cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.plans-more__cta strong { color: #fff; }

/* Convênios: hero */
.hero__grid--conv { grid-template-columns: 1.2fr .8fr; }
.hero__art--seal::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; margin: -95px 0 0 -75px; border-radius: 50%;
  background: var(--navy) url("../assets/img/logo-white.png") center / 70% no-repeat; box-shadow: 0 0 0 8px rgba(255, 255, 255, .25);
}
.search { display: flex; align-items: center; gap: 12px; margin: 26px 0 30px; padding: 6px 6px 6px 20px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .4); }
.search svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--navy); padding: .85em 0; }
.search input::placeholder { color: var(--muted); }
.search--light { margin: 0; flex: 1; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.search--light input { font-size: 1.02rem; }
.conv-toolbar {
  position: sticky; top: calc(var(--header-h) - 6px); z-index: 5; display: grid; gap: 12px;
  margin: 0 -12px 20px; padding: 12px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.conv-toolbar__row { display: flex; align-items: center; gap: 16px; }
.conv-toolbar .results { margin: 0; white-space: nowrap; font-weight: 700; color: var(--navy); }
.conv-toolbar .tabs { justify-self: start; }
.search:focus-within { box-shadow: 0 0 0 3px var(--blue), 0 18px 40px -16px rgba(0, 0, 0, .4); }

/* Convênios: destaques */
.featured { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan--static { cursor: default; scroll-margin-top: calc(var(--header-h) + 24px); }
.plan--static:hover { transform: none; }
.plan--static:target { background: rgba(255, 255, 255, .24); box-shadow: 0 0 0 2px var(--blue); }
.plan__mark img { width: 14px; }
.faces { display: flex; flex-wrap: wrap; padding-left: 10px; }
.face { width: 42px; height: 42px; margin-left: -10px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #fff; color: var(--navy); font-size: .78rem; font-weight: 800; border: 2px solid var(--navy); transition: transform .2s; }
.face:hover { transform: translateY(-3px); z-index: 1; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.plan__docs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: .84rem; }
.plan__docs a { color: rgba(255, 255, 255, .85); }
.plan__docs a:hover { color: #fff; text-decoration: underline; }
.plan--more { background: rgba(45, 170, 225, .22); border-color: rgba(143, 214, 245, .5); }
.plan--more:hover { background: rgba(45, 170, 225, .32); }

/* Convênios: lista completa */
.conv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.conv-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; animation: rise .35s both; }
.conv-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.conv-card__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), #0b6a99); }
.conv-card__icon img { width: 13px; }
.conv-card__text { flex: 1; min-width: 0; }
.conv-card strong { display: block; color: var(--navy); font-size: .95rem; line-height: 1.3; }
.conv-card small { color: var(--muted); font-size: .8rem; }
.conv-card__tag { flex: none; font-size: .7rem; font-weight: 700; color: var(--blue-600); background: var(--sky); padding: .25em .7em; border-radius: 999px; }
.conv-card--featured { border-color: #b9e2f4; background: var(--sky-50); }
.doctors__empty a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }
.guides--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1100px) {
  .conv-grid { grid-template-columns: repeat(3, 1fr); }
  .care { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .profile-hero, .hero__grid--conv, .cv { grid-template-columns: 1fr; }
  .photo-stage { min-height: 520px; max-width: 460px; width: 100%; margin-inline: auto; }
  .photo-stage__seal { right: -6px; width: 92px; height: 92px; padding: 16px; }
  .featured, .mini-doctors, .conv-grid, .guides--3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .photo-stage { min-height: 440px; }
  .photo-stage__frame { inset: 8% 9% 18%; }
  .featured, .mini-doctors, .conv-grid, .care, .guides--3 { grid-template-columns: 1fr; }
  .plans-more__cta .btn { width: 100%; }
  .conv-toolbar { position: static; margin: 0 0 16px; padding: 0; background: none; backdrop-filter: none; }
  .conv-toolbar__row { flex-direction: column; align-items: stretch; gap: 8px; }
  .conv-toolbar .results { white-space: normal; }
}

/* =========================================================
   Preparos de exames (/preparos/)
   ========================================================= */
.prep-alert {
  display: flex; align-items: center; gap: 18px; margin-bottom: 28px; padding: 20px 24px;
  border-radius: var(--radius-lg); background: var(--sky-50); border: 1px solid #b9e2f4; border-left: 5px solid var(--blue);
  color: var(--muted); font-size: .93rem; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.prep-alert:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.prep-alert__icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--navy); color: #8fd6f5; }
.prep-alert__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prep-alert__text { flex: 1; min-width: 0; line-height: 1.5; }
.prep-alert__text strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
.prep-alert__cta { flex: none; font-weight: 700; color: var(--blue-600); white-space: nowrap; }
.prep-alert:hover .prep-alert__cta { text-decoration: underline; }

.preps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prep {
  position: relative; display: flex; flex-direction: column; padding: 24px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s; animation: rise .4s both;
}
.prep:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b9e2f4; }
.prep::before { content: ""; position: absolute; right: -50px; top: -50px; width: 140px; height: 140px; border-radius: 50%; background: var(--sky-50); }
.prep > * { position: relative; }
.prep__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.prep__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy), #0b6a99); }
.prep__icon img { width: 15px; }
.prep__tipo { font-size: .74rem; font-weight: 700; letter-spacing: .02em; color: var(--blue-600); background: var(--sky); padding: .3em .8em; border-radius: 999px; }
.prep__pages { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.prep h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 4px; }
.prep__variante { font-weight: 700; font-size: .9rem; color: var(--blue-600); margin-bottom: 16px; }
.prep__doc { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; padding: 8px 12px 8px 8px; border-radius: var(--radius-sm); background: var(--sky-50); border-left: 3px solid var(--blue); font-weight: 700; font-size: .9rem; color: var(--navy); transition: background .2s; }
.prep__doc:hover { background: var(--sky); }
.prep__doc .mini-doctor__avatar { width: 38px; height: 38px; font-size: .78rem; }
.prep__doc small { display: block; font-weight: 600; font-size: .72rem; color: var(--muted); }
.prep__usado { margin: -6px 0 16px; font-size: .85rem; color: var(--muted); }
.prep__usado a { color: var(--navy); font-weight: 700; }
.prep__usado a:hover { color: var(--blue-600); text-decoration: underline; }
.prep__list { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; flex: 1; align-content: start; }
.prep__list li { display: flex; gap: 10px; font-size: .89rem; color: var(--ink); line-height: 1.45; }
.prep__list svg { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 50%; background: var(--sky); fill: none; stroke: var(--blue-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.prep__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.prep__actions .btn { padding: .7em 1.1em; font-size: .88rem; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.checklist li { display: flex; gap: 14px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.checklist strong { display: block; color: var(--navy); margin-bottom: 4px; }
.checklist span:not(.features__icon) { display: block; font-size: .89rem; color: var(--muted); line-height: 1.5; }
.checklist .features__icon svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.prep-warning { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 18px 22px; border-radius: var(--radius); background: #fff6ec; border: 1px solid #f6d3ad; color: #6b3d10; }
.prep-warning p { margin: 0; font-size: .93rem; }
.prep-warning strong { color: #8a4a0c; }
.prep-warning__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fde3c4; color: #b25e10; }
.prep-warning__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.guide__link { display: inline-block; margin-top: 12px; }

/* Menu com 7 itens: compacta antes de virar hambúrguer (960px) */
.nav a:not(.btn) { white-space: nowrap; }
.header__logo { flex: none; }
@media (min-width: 961px) and (max-width: 1180px) {
  .header__inner { gap: 12px; }
  .header__logo { width: 132px; }
  .nav { gap: 0; }
  .nav a:not(.btn) { padding: .55em .62em; font-size: .82rem; }
  .nav__cta { padding: .6em 1em; font-size: .85rem; }
}

@media (max-width: 1100px) {
  .preps, .checklist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .prep-alert { flex-wrap: wrap; }
  .prep-alert__cta { flex-basis: 100%; padding-left: 70px; }
}
@media (max-width: 600px) {
  .preps, .checklist { grid-template-columns: 1fr; }
  .prep-alert { padding: 18px; }
  .prep-alert__icon { width: 44px; height: 44px; }
  .prep-alert__cta { padding-left: 0; }
}

/* =========================================================
   Estrutura: trilho de fotos da clínica (home)
   Vários cartões visíveis ao mesmo tempo; arrasta, rola com as setas e amplia ao tocar (ver home.js)
   ========================================================= */
.tour__head { margin-bottom: 32px; }
.tour__lead { color: var(--muted); font-size: 1.05rem; margin: 14px 0 0; }
.tour__nav { display: flex; align-items: center; gap: 10px; }
.tour__count { margin-right: 8px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tour__count b { color: var(--navy); font-size: 1.1rem; }
.tour__btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .2s, color .2s, transform .2s, opacity .2s;
}
.tour__btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue-600); transform: translateY(-2px); }
.tour__btn:disabled { opacity: .35; cursor: default; box-shadow: none; }
.tour__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.tour__head--centro { justify-content: center; text-align: center; }
.tour__head--centro > div { max-width: 680px; margin-inline: auto; }

/* Carrossel em looping (fotos e avaliações): o item ativo fica no centro (ver carrossel() em home.js) */
.loop { overflow: hidden; outline: none; cursor: grab; touch-action: pan-y; user-select: none; }
.loop:focus-visible { box-shadow: inset 0 0 0 3px var(--blue); border-radius: var(--radius-lg); }
.loop.is-dragging { cursor: grabbing; }
.loop.is-dragging .loop__item { pointer-events: none; }
.loop__track { position: relative; display: flex; align-items: center; gap: 22px; padding: 14px 0 22px; width: max-content; transition: transform .7s cubic-bezier(.22, .7, .2, 1); will-change: transform; }
.loop.is-dragging .loop__track, .loop--salto .loop__track, .loop--salto .loop__item { transition: none !important; }
.loop__item { flex: none; transition: transform .7s cubic-bezier(.22, .7, .2, 1), opacity .7s; transform: scale(.86); opacity: .45; }
.loop__item.is-ativo { transform: none; opacity: 1; }
.loop--fotos .loop__item { width: clamp(250px, 26vw, 340px); }
.loop--fotos .loop__item:not(.is-ativo) .tour__legenda { opacity: 0; transition: opacity .4s; }
.loop--reviews .loop__item { width: clamp(290px, 36vw, 440px); }
.loop--reviews .review { cursor: pointer; }
.loop--reviews .is-ativo .review { cursor: default; box-shadow: var(--shadow); }

.loop__nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; padding-inline: 16px; }
.loop__nav[hidden] { display: none; }
.loop__dots { display: flex; align-items: center; gap: 2px; }
.loop__dot { width: 22px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.loop__dot span { display: block; width: 8px; height: 8px; border-radius: 8px; background: var(--line); position: relative; overflow: hidden; transition: width .35s, background .35s; }
.loop__dot:hover span { background: #b9d3e3; }
.loop__dot.is-ativo { width: 40px; }
.loop__dot.is-ativo span { width: 30px; background: #cfe4f1; }
.loop__dot.is-ativo span::after { content: ""; position: absolute; inset: 0; background: var(--blue); border-radius: inherit; transform-origin: left; animation: loop-tempo var(--loop-tempo, 5s) linear forwards; }
.loop__nav.is-pausado .loop__dot.is-ativo span::after { animation: none; transform: none; }
@keyframes loop-tempo { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tour__btn--pausa { margin-left: 6px; width: 42px; height: 42px; }
.tour__btn--pausa svg { width: 16px; height: 16px; }
.tour__btn--pausa .ic-play { display: none; fill: currentColor; stroke: none; }
.tour__btn--pausa.is-pausado .ic-play { display: block; }
.tour__btn--pausa.is-pausado .ic-pausa { display: none; }
.tour__card {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--sky); cursor: zoom-in; box-shadow: var(--shadow-sm); text-align: left; font: inherit; color: #fff;
  transition: transform .35s, box-shadow .35s;
}
.tour__card:hover, .tour__card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.tour__card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.tour__card picture { display: block; height: 100%; }
.tour__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; -webkit-user-drag: none; user-select: none; }
.tour__card:hover img { transform: scale(1.04); }
.tour__legenda {
  position: absolute; inset: auto 0 0; padding: 56px 18px 18px;
  background: linear-gradient(transparent, rgba(1, 40, 59, .55) 35%, rgba(1, 40, 59, .9));
}
.tour__legenda strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.tour__legenda span { display: block; font-size: .84rem; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.tour__zoom { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--navy); opacity: 0; transition: opacity .25s; }
.tour__zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tour__card:hover .tour__zoom, .tour__card:focus-visible .tour__zoom { opacity: 1; }


/* foto ampliada */
.zoom { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(1, 25, 38, .94); color: #fff; }
.zoom[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 24px; }
.zoom::backdrop { background: transparent; }
.zoom__fig { margin: 0; display: grid; justify-items: center; gap: 14px; min-height: 0; max-height: 100%; }
.zoom__fig img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: var(--radius); object-fit: contain; }
.zoom__fig figcaption { text-align: center; max-width: 560px; }
.zoom__fig figcaption strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.zoom__fig figcaption span { color: rgba(255, 255, 255, .8); font-size: .92rem; }
.zoom__seta, .zoom__fechar { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.zoom__seta:hover, .zoom__fechar:hover { background: rgba(255, 255, 255, .22); }
.zoom__seta svg, .zoom__fechar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.zoom__fechar { position: absolute; top: 18px; right: 18px; z-index: 1; }

@media (max-width: 600px) {
  .tour__head { margin-bottom: 22px; }
  .loop--fotos .loop__item { width: 70vw; }
  .loop--reviews .loop__item { width: 84vw; }
  .loop__track { gap: 12px; }
  .loop__nav { gap: 6px; }
  .loop__nav .tour__btn:not(.tour__btn--pausa) { width: 42px; height: 42px; }
  .loop__dot { width: 16px; }
  .loop__dot.is-ativo { width: 34px; }
  .loop__dot.is-ativo span { width: 24px; }
  .zoom[open] { grid-template-columns: 1fr; padding: 70px 12px 24px; }
  .zoom__seta { display: none; }
}

/* Atendimento particular (home) */
.particular { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: center; }
.particular__texto h2 { margin: 14px 0 16px; }
.particular__texto p { color: var(--muted); margin: 0 0 26px; }
.particular__nota { display: block; margin-top: 14px; color: var(--muted); font-size: .84rem; }
.checklist--2 { grid-template-columns: 1fr 1fr; }

/* Dúvidas frequentes (dentro de Orientações) */
.faq { margin-top: clamp(48px, 6vw, 72px); }
.faq__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.faq__head h3 { margin: 0; color: var(--navy); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.faq__head p { margin: 0; color: var(--muted); }
.faq__head a { color: var(--blue-600); font-weight: 700; }
.faq__lista { columns: 2; column-gap: 20px; }
.faq__item { break-inside: avoid; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq__item[open] { border-color: #b9dcef; box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--blue-600); font-size: 1.2rem; font-weight: 600; transition: transform .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }
.faq__item p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.faq__item p a { color: var(--blue-600); font-weight: 700; }
.unit__extra { margin: -4px 0 12px; font-size: .9rem; color: var(--muted); }
.unit__extra strong { display: block; color: var(--navy); font-size: .8rem; }
@media (max-width: 960px) {
  .particular { grid-template-columns: 1fr; gap: 32px; }
  .faq__lista { columns: 1; }
}
@media (max-width: 600px) { .checklist--2 { grid-template-columns: 1fr; } }

/* Aviso de cookies (aparece só quando a tag do Google está configurada) */
.cookies {
  position: fixed; z-index: 60; left: 20px; bottom: 20px; width: min(460px, calc(100% - 40px));
  padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(2, 59, 86, .45); animation: rise .35s both;
}
.cookies p { margin: 0 0 14px; font-size: .9rem; color: var(--muted); line-height: 1.5; }
.cookies a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }
.cookies__acoes { display: flex; gap: 10px; justify-content: flex-end; }
.cookies__acoes .btn { padding: .65em 1.3em; font-size: .88rem; }
@media (max-width: 600px) {
  .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; padding-right: 22px; }
  .cookies__acoes .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__item[aria-hidden="true"] { display: none; } /* sem animação, a cópia da faixa não é necessária */
}

/* Página de privacidade */
.legal__hero { max-width: 820px; }
.legal { max-width: 780px; }
.legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 40px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); font-size: 1.02rem; }
.legal strong { color: var(--navy); }
.legal a:not(.btn) { color: var(--blue-600); font-weight: 700; text-decoration: underline; }

/* Home: card de vidro emoldurado pela ilustração da marca */
.hero__moldura {
  position: relative; padding: clamp(14px, 2.4vw, 30px); border-radius: calc(var(--radius-lg) + 12px);
  background: var(--navy) url("../assets/img/pattern.jpg") center / cover;
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 40px 80px -36px rgba(1, 40, 59, .7);
}
.hero__glass--moldura {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 3.5vw, 48px); align-items: center;
  background: linear-gradient(145deg, rgba(2, 59, 86, .82), rgba(8, 86, 124, .7));
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
.hero__glass--moldura .hero__actions { margin-bottom: 0; }
.hero__aside {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 26px;
  padding: clamp(24px, 2.6vw, 34px); border-radius: var(--radius); margin: calc(-1 * clamp(4px, 1vw, 14px)) calc(-1 * clamp(4px, 1vw, 14px)) calc(-1 * clamp(4px, 1vw, 14px)) 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
/* símbolo da marca como marca d'água */
.hero__aside::before {
  content: ""; position: absolute; right: -46px; bottom: -70px; width: 230px; height: 390px; pointer-events: none;
  background: url("../assets/img/symbol-white.png") center / contain no-repeat; opacity: .07;
}
.hero__aside > * { position: relative; }
.hero__marca { padding-bottom: 22px; border-bottom: 1px solid var(--glass-line); }
.hero__marca img { width: min(280px, 100%); height: auto; }
.hero__marca p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 16px 0 0; font-size: .78rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.hero__marca p strong { color: #8fd6f5; }
.hero__marca p span { color: rgba(255, 255, 255, .4); }

.hero__atalhos { display: grid; gap: 10px; }
.atalho {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  transition: background .2s, border-color .2s, transform .2s;
}
.atalho:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); transform: translateX(3px); }
.atalho__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--navy); }
.atalho__ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.atalho__txt { flex: 1; min-width: 0; line-height: 1.3; }
.atalho__txt strong { display: block; font-size: .95rem; }
.atalho__txt small { color: rgba(255, 255, 255, .68); font-size: .8rem; }
.atalho__seta { color: #8fd6f5; font-weight: 700; transition: transform .2s; }
.atalho:hover .atalho__seta { transform: translateX(3px); }

@media (max-width: 960px) {
  .hero__glass--moldura { grid-template-columns: 1fr; }
  .hero__aside { margin: 0; }
  .hero__atalhos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero__moldura { background-image: url("../assets/img/pattern-tall.jpg"); padding: 12px; border-radius: calc(var(--radius-lg) + 4px); }
  .hero__atalhos { grid-template-columns: 1fr; }
  .hero__marca img { width: 190px; }
  .hero__glass--moldura { padding: 24px 18px; gap: 26px; }
  .hero__aside { padding: 18px 14px; gap: 18px; }
  .hero__marca { padding-bottom: 16px; }
  .atalho { padding: 10px 12px; gap: 12px; }
  .atalho__ic { width: 38px; height: 38px; }
}

/* Home: hero com foto de atendimento como fundo do lado direito, dissolvida no azul (humaniza o topo) */
.hero__glass--home { position: relative; overflow: hidden; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 3.5vw, 44px); }
.hero__glass--home > :not(.hero__foto) { position: relative; z-index: 1; }
.hero__glass--home .hero__main { max-width: 500px; }
.hero__glass--home h1 { font-weight: 700; letter-spacing: -.025em; font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; }
.hero__foto { position: absolute; z-index: 0; top: 0; right: -13%; height: min(600px, 78%); width: 86%; margin: 0; pointer-events: none; }
.hero__foto img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 20%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, transparent 10%, rgba(0,0,0,.35) 26%, #000 44%), linear-gradient(to bottom, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, transparent 10%, rgba(0,0,0,.35) 26%, #000 44%), linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-composite: intersect;
}
.hero__equipe { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .8); line-height: 1.4; }
.hero__equipe strong { color: #fff; }
.hero__rostos { display: flex; flex: none; }
.hero__rostos img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid #fff; background: var(--sky); }
.hero__rostos img + img { margin-left: -12px; }
.hero__rostos:empty { display: none; }
.hero__glass--home .hero__atalhos { grid-template-columns: repeat(4, 1fr); }
.hero__glass--home .atalho { background: rgba(2, 59, 86, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 960px) {
  .hero__glass--home .hero__main { max-width: none; }
  .hero__foto { position: relative; order: -1; right: auto; height: auto; width: auto; aspect-ratio: 16 / 10; margin: calc(-1 * clamp(28px, 4vw, 56px)) calc(-1 * clamp(28px, 4vw, 56px)) -40px; }
  .hero__foto img { object-position: 60% 30%; -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent); mask-image: linear-gradient(to bottom, #000 60%, transparent); }
  .hero__glass--home .hero__atalhos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero__foto { margin: -24px -18px -30px; aspect-ratio: 4 / 3; }
  .hero__glass--home .hero__atalhos { grid-template-columns: 1fr; }
  .hero__rostos img { width: 32px; height: 32px; }
}

/* Home: avaliações do Google */
.reviews-wrap { margin-top: clamp(48px, 6vw, 72px); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.reviews__head--centro { flex-direction: column; align-items: center; text-align: center; margin-bottom: 8px; }
.reviews__head h3 { margin: 0; color: var(--navy); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; }
.reviews__head h3 em { font-style: normal; color: var(--blue-600); }
.reviews { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 20px; }
/* com mais de 3 avaliações vira um trilho que se arrasta para o lado, como as fotos */
.review { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.review__estrelas { color: #f5b301; font-size: 1.05rem; letter-spacing: 2px; line-height: 1; }
.review blockquote { margin: 0; color: var(--ink); font-size: .96rem; line-height: 1.6; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.review__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sky); color: var(--blue-600); font-weight: 800; }
.review figcaption strong { display: block; color: var(--navy); font-size: .92rem; }
.review figcaption small { color: var(--muted); font-size: .8rem; }
.reviews__nota { display: flex; align-items: center; gap: 14px; }
.reviews__nota strong { font-size: 2.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.reviews__nota span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.reviews__nota .review__estrelas { display: block; margin-bottom: 4px; color: #f5b301; font-size: 1.05rem; }
.reviews__rodape { text-align: center; margin: 18px 0 0; font-size: .85rem; color: var(--muted); }
.reviews__rodape a { color: var(--blue-600); font-weight: 700; white-space: nowrap; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reviews { grid-template-columns: 1fr; } }


/* Home: exames e procedimentos em dois grupos */
.exam-groups { display: grid; grid-template-columns: 3fr 2fr; gap: 0 32px; }
.exam-groups .exams { grid-template-columns: repeat(2, 1fr); }
.exams--proc .exam { background: var(--sky-50); }
@media (max-width: 960px) {
  .exam-groups { grid-template-columns: 1fr; }
  .exam-groups .subhead { margin-top: 40px; }
}
@media (max-width: 600px) {
  .exam-groups .exams { grid-template-columns: 1fr; }
}
.exam-groups .exams--proc { grid-template-columns: 1fr; gap: 10px; }
.exams--proc .exam { padding-top: 13px; padding-bottom: 13px; }
@media (max-width: 960px) { .exam-groups .exams--proc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .exam-groups .exams--proc { grid-template-columns: 1fr; } }

/* Topo emoldurado em páginas internas (preparos): a lista de dados volta a ter espaço acima */
.hero--page .hero__glass--moldura .hero__actions { margin-bottom: 28px; }
.hero--page .hero__moldura { margin-top: 4px; }
.hero__dica { margin: 0; font-size: .84rem; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.hero__dica strong { color: #fff; }
.hero__dica a { color: #fff; font-weight: 700; white-space: nowrap; }
