/* ==========================================================================
   Viamed International Health — page styles
   Built on the Viamed Salud design system (colors_and_type.css)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

:root {
  --maxw: 1200px;
  --nav-h: 76px;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.eyebrow-mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: var(--tracking-wide);
  text-transform: uppercase; color: var(--fg-accent); margin-bottom: 16px;
}
.eyebrow-mark::before {
  content: ""; width: 22px; height: 2px; background: var(--viamed-cyan); border-radius: 2px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.section-head p { color: var(--fg3); font-size: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 12px 22px; transition: background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out), transform var(--dur-fast) var(--ease-out),
    color var(--dur) var(--ease-out);
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-primary { background: var(--viamed-navy); color: #fff; }
.btn-primary:hover { background: var(--viamed-navy-700); }
.btn-primary:active { background: var(--viamed-navy-800); transform: translateY(1px); }
.btn-accent { background: var(--viamed-cyan); color: var(--viamed-navy-900); }
.btn-accent:hover { background: var(--viamed-cyan-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--viamed-navy); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--viamed-navy); background: var(--viamed-navy-50); }
.btn-light { background: #fff; color: var(--viamed-navy); }
.btn-light:hover { background: var(--viamed-navy-50); }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.45); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); border-color: #fff; }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.btn-block { width: 100%; }

/* ==========================================================================
   CINEMATIC MEDIA BACKGROUNDS  (the feature)
   A .media-bg holds one or more .media-layer images that very slowly
   Ken-Burns pan/zoom, plus a navy protection gradient for legible type.
   ========================================================================== */
.media-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; background: var(--viamed-navy-900); }
.media-layer {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  will-change: transform;
  transform: scale(1.06);
}
.media-layer.video { inset: 0; transform: none; }
.media-layer.video video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .media-layer.kb-zoom   { animation: kbZoom 26s ease-in-out infinite alternate; }
  .media-layer.kb-pan-l  { animation: kbPanL 32s ease-in-out infinite alternate; }
  .media-layer.kb-pan-r  { animation: kbPanR 30s ease-in-out infinite alternate; }
}
@keyframes kbZoom { from { transform: scale(1.04); } to { transform: scale(1.16); } }
@keyframes kbPanL { from { transform: scale(1.12) translate(2%, 0); } to { transform: scale(1.12) translate(-3%, -2%); } }
@keyframes kbPanR { from { transform: scale(1.12) translate(-2%, 1%); } to { transform: scale(1.12) translate(3%, -2%); } }

/* Crossfade stack: layers fade between each other */
.media-bg.crossfade .media-layer { opacity: 0; transition: opacity 1.6s var(--ease-in-out); }
.media-bg.crossfade .media-layer.is-active { opacity: 1; }

/* Protection gradients — navy, bottom-left origin per brand */
.media-scrim { position: absolute; inset: 0; z-index: 1; }
.media-scrim.hero {
  background:
    linear-gradient(105deg, rgba(0,30,50,0.62) 0%, rgba(0,30,50,0.50) 50%, rgba(0,40,68,0.42) 100%),
    rgba(0,22,45,0.34);
}
.media-scrim.band {
  background:
    linear-gradient(90deg, rgba(0,30,50,0.94) 0%, rgba(0,30,50,0.84) 55%, rgba(0,40,68,0.74) 100%),
    rgba(0,22,45,0.55);
}
.media-scrim.soft {
  background: linear-gradient(180deg, rgba(0,30,50,0.66), rgba(0,30,50,0.84)), rgba(0,22,45,0.55);
}
/* A faint cyan diagnostic-grid texture, very subtle, evokes scan screens */
.media-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.10;
  background-image:
    linear-gradient(rgba(0,178,227,0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,178,227,0.6) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 20%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 90% at 80% 20%, #000 0%, transparent 70%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header .container { display: flex; align-items: center; gap: 28px; }
.brand-lockup { display: flex; align-items: center; gap: 12px; border: 0; }
.brand-lockup img { height: 30px; width: auto; }
.brand-sub {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding-left: 12px; border-left: 1px solid rgba(255,255,255,0.35); line-height: 1.1;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links { flex-wrap: nowrap; }
.site-nav a, .nav-links a { font-size: 15px; font-weight: 500; border: 0; white-space: nowrap; }
.site-nav a:hover { border: 0; }
.lang-toggle { display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; }
.lang-toggle button { background: none; border: 0; padding: 3px 7px; border-radius: 6px; font-weight: 600; }
.lang-toggle button.active { background: rgba(0,178,227,0.16); color: var(--viamed-cyan); }

/* translucent dark bar over hero (dark) */
.site-header.on-dark:not(.scrolled) {
  background: rgba(0, 28, 52, 0.62);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom-color: rgba(255, 255, 255, 0.10);
}
.site-header.on-dark { color: #fff; }
.site-header.on-dark .brand-sub { color: #fff; border-left-color: rgba(255,255,255,0.35); }
.site-header.on-dark .site-nav a { color: #fff; }
.site-header.on-dark .site-nav a:hover { color: #fff; }
.site-header.on-dark .nav-links a { color: #fff; }
.site-header.on-dark .lang-toggle button { color: rgba(255,255,255,0.85); }
.site-header.on-dark .lang-toggle button.active { color: #fff; }
/* solid when scrolled */
.site-header.scrolled {
  background: rgba(255,255,255,0.82); backdrop-filter: blur(12px);
  border-bottom-color: var(--border); box-shadow: var(--shadow-sm); color: var(--viamed-navy);
}
.site-header.scrolled .brand-sub { color: var(--viamed-navy); border-left-color: var(--border-strong); }
.site-header.scrolled .site-nav a { color: var(--viamed-navy); }
.site-header.scrolled .lang-toggle button { color: var(--fg3); }
.site-header.scrolled .lang-toggle button.active { color: var(--viamed-navy); background: var(--viamed-cyan-50); }
.site-header.scrolled .brand-logo-white { display: none; }
.site-header:not(.scrolled) .brand-logo-navy { display: none; }

/* ---------- HERO ---------- */
/* Guaranteed legibility for white text over photos (belt-and-suspenders with the scrims).
   Buttons keep their own solid backgrounds, so we clear the shadow on them. */
.hero-content, .care-band .cb-inner, .expat-banner .eb-inner { text-shadow: 0 1px 16px rgba(0,22,45,0.65); }
.hero-content .btn, .care-band .cb-inner .btn, .expat-banner .eb-inner .btn { text-shadow: none; }
.hero { position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h); color: #fff; overflow: hidden; }
.hero-content { position: relative; z-index: 2; max-width: 660px; margin: 28px 0;
  padding: 38px 42px 42px; border-radius: 22px;
  background: rgba(0, 28, 52, 0.66);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 18, 38, 0.45); }
.hero h1 {
  color: #fff; font-size: clamp(40px, 5.4vw, 68px); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 22px; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 18, 38, 0.55);
}
.hero h1 .accent { color: var(--viamed-cyan); font-style: normal; }
.hero-lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: rgba(255,255,255,0.86);
  max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-eyebrow { color: #fff; }
.hero-eyebrow::before { background: var(--viamed-cyan); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust .t {
  display: inline-flex; align-items: center; gap: 9px; font-size: 14px;
  color: rgba(255,255,255,0.82); font-weight: 500;
}
.hero-trust .t::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--viamed-cyan); box-shadow: 0 0 0 4px rgba(0,178,227,0.20);
}
/* live badge */
.hero-livecard {
  position: absolute; right: 0; bottom: 64px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.10); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-lg);
  padding: 16px 20px; max-width: 320px;
}
.hero-livecard .pulse { width: 12px; height: 12px; border-radius: 50%; background: #28d07b; position: relative; flex-shrink: 0; }
.hero-livecard .pulse::after { content:""; position:absolute; inset:-6px; border-radius:50%; border:2px solid #28d07b; animation: pulseRing 2.2s ease-out infinite; }
@keyframes pulseRing { 0%{transform:scale(.6);opacity:.8;} 100%{transform:scale(1.6);opacity:0;} }
.hero-livecard .lc-title { font-size: 14px; font-weight: 700; color: #fff; }
.hero-livecard .lc-sub { font-size: 12.5px; color: rgba(255,255,255,0.75); }
@media (max-width: 900px) { .hero-livecard { display: none; } }

/* ---------- Two flows ---------- */
.flows { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.flow-card {
  position: relative; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  overflow: hidden;
}
.flow-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.flow-card.featured { border-color: var(--viamed-navy); }
.flow-card .fc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.flow-card .fc-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--viamed-navy); color: #fff; flex-shrink: 0; }
.flow-card.featured .fc-ico { background: var(--viamed-navy); }
.flow-card .fc-ico.cyan { background: var(--viamed-cyan); color: var(--viamed-navy-900); }
.flow-card h3 { font-size: 22px; }
.flow-card .fc-desc { color: var(--fg3); margin: 4px 0 24px; font-size: 15px; }
.steps { display: flex; align-items: stretch; gap: 6px; margin-bottom: 28px; }
.step { flex: 1; text-align: center; }
.step .num { width: 30px; height: 30px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--viamed-navy-50); color: var(--viamed-navy); border: 1px solid var(--viamed-navy-100); }
.flow-card .fc-ico.cyan ~ * .step .num,
.step.cyan .num { background: var(--viamed-cyan-50); color: var(--viamed-cyan-700); border-color: var(--viamed-cyan-100); }
.step .st { font-size: 13.5px; font-weight: 600; color: var(--fg1); line-height: 1.3; }
.step .ss { font-size: 12px; color: var(--fg4); margin-top: 3px; }
.step-arrow { align-self: flex-start; margin-top: 8px; color: var(--border-strong); flex-shrink: 0; }
.fc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--border); padding-top: 22px; }
.fc-price { font-size: 13px; color: var(--fg3); }
.fc-price b { font-size: 26px; color: var(--viamed-navy); font-weight: 800; letter-spacing: -0.02em; display: block; }

/* ---------- Expat banner ---------- */
.expat-banner { position: relative; overflow: hidden; border-radius: var(--radius-xl);
  color: #fff; padding: 56px; isolation: isolate; }
.expat-banner .eb-inner { position: relative; z-index: 2; max-width: 600px; }
.expat-banner h2 { color: #fff; font-size: 30px; margin-bottom: 12px; }
.expat-banner h2 b { color: var(--viamed-cyan); font-weight: 800; }
.expat-banner p { color: rgba(255,255,255,0.86); font-size: 17px; margin-bottom: 24px; }

/* ---------- Doctors ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doc-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease-out); display: flex; flex-direction: column; }
.doc-card:hover { box-shadow: var(--shadow-md); }
.doc-photo { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.doc-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,22,45,0.75) 0%, rgba(0,22,45,0.2) 50%, transparent 100%); pointer-events: none; z-index: 1; }
.doc-langs, .doc-senior { z-index: 2; }
.doc-card:hover .doc-photo img { transform: scale(1.04); }
.doc-langs { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.doc-langs span { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px;
  background: rgba(0,37,57,0.78); color: #fff; backdrop-filter: blur(4px); }
.doc-senior { position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: var(--radius-pill); background: var(--viamed-cyan); color: var(--viamed-navy-900); }
.doc-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.doc-body h3 { font-size: 18px; margin-bottom: 2px; }
.doc-spec { font-size: 13px; color: var(--fg-accent); font-weight: 600; margin-bottom: 12px; }
.doc-bio { font-size: 13.5px; color: var(--fg3); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.doc-stats { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.doc-stats .ds { font-size: 11px; color: var(--fg4); }
.doc-stats .ds b { display: block; font-size: 15px; color: var(--viamed-navy); font-weight: 700; }
.doc-foot { display: flex; align-items: center; justify-content: space-between; }
.doc-foot .price { font-size: 12px; color: var(--fg3); }
.doc-foot .price b { display: block; font-size: 22px; color: var(--viamed-navy); font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Expat plan pricing ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.plan { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm); position: relative; transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.plan:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan.featured { border-color: var(--viamed-cyan); box-shadow: 0 0 0 1px var(--viamed-cyan), var(--shadow-md); }
.plan .ribbon { position: absolute; top: -12px; left: 32px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--viamed-cyan); color: var(--viamed-navy-900); padding: 5px 12px; border-radius: var(--radius-pill); }
.plan h3 { font-size: 19px; margin-bottom: 14px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.plan .price .amt { font-size: 44px; font-weight: 800; color: var(--viamed-navy); letter-spacing: -0.03em; }
.plan .price .per { font-size: 14px; color: var(--fg3); }
.plan .pdesc { font-size: 13px; color: var(--fg4); margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--fg2); line-height: 1.4; }
.plan li svg { flex-shrink: 0; color: var(--viamed-cyan-700); margin-top: 2px; }

/* ---------- Human care band (full-bleed photo) ---------- */
.care-band { position: relative; overflow: hidden; color: #fff; padding: 120px 0; isolation: isolate; }
.care-band .cb-inner { position: relative; z-index: 2; max-width: 760px; }
.care-band .cb-quote { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; color: #fff; margin-bottom: 16px; text-wrap: balance; }
.care-band .cb-attr { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 44px; }
.care-stats { display: flex; flex-wrap: wrap; gap: 44px; }
.care-stats .cs b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.care-stats .cs span { font-size: 13px; color: rgba(255,255,255,0.7); }
.care-stats .cs b .u { color: var(--viamed-cyan); }

/* ---------- Counters ---------- */
.counter-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.counter { position: relative; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 22px 22px; box-shadow: var(--shadow-xs); overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
.counter:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.counter-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--viamed-cyan-50); color: var(--viamed-cyan-700); margin-bottom: 18px; }
.counter-ic svg { width: 22px; height: 22px; }
.counter .cn { font-size: clamp(32px, 2.8vw, 44px); font-weight: 800; color: var(--viamed-navy);
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.counter .cn .u { color: var(--viamed-cyan); }
.counter .cl { font-size: 13px; color: var(--fg3); margin-top: 8px; }
.counter-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--viamed-navy-50); }
.counter-bar span { display: block; height: 100%; width: 0; background: var(--viamed-cyan); transition: width 1.8s var(--ease-out); }
.counter.counting .counter-bar span { width: 100%; }

/* ---------- Network ---------- */
.network-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.network-map { position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(0,178,227,0.22), rgba(0,178,227,0) 42%),
    radial-gradient(circle at 14% 86%, rgba(0,178,227,0.16), rgba(0,178,227,0) 40%),
    radial-gradient(125% 140% at 82% 0%, var(--viamed-navy-800) 0%, var(--viamed-navy-900) 62%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-xl); padding: 22px; box-shadow: var(--shadow-md); }
.vm-map-svg { width: 100%; height: auto; display: block; overflow: visible; }
.vm-map-svg.real .vm-region { stroke-width: 2.5; }
.vm-map-svg.real .vm-label { font-size: 27px; stroke-width: 7px; }
.vm-map-svg.real .vm-dot-core { stroke-width: 3; }
.vm-region.muted { fill: rgba(255,255,255,0.06); }
.vm-region.muted:hover { fill: rgba(255,255,255,0.06); }
.vm-inset { fill: none; stroke: rgba(255,255,255,0.25); stroke-width: 2; stroke-dasharray: 6 6; }
.vm-base { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.18); stroke-width: 1.5; }
.vm-region { fill: rgba(174,201,219,0.55); stroke: rgba(255,255,255,0.65); stroke-width: 1.5; transition: fill var(--dur) var(--ease-out); }
.vm-region:hover { fill: rgba(174,201,219,0.8); }
.vm-region.active { fill: var(--viamed-cyan); }
.vm-label { font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; fill: #fff;
  paint-order: stroke; stroke: var(--viamed-navy-900); stroke-width: 3.5px; stroke-linejoin: round; text-anchor: middle; }
.vm-dot-core { fill: var(--viamed-cyan); stroke: #fff; stroke-width: 1.5; }
.vm-dot.active .vm-dot-core { fill: #fff; stroke: var(--viamed-cyan); }
.vm-dot-ring { fill: var(--viamed-cyan); opacity: 0; transform-box: fill-box; transform-origin: center; }
.vm-dot.active .vm-dot-ring { opacity: 0.35; animation: dotPulse 2.2s var(--ease-out) infinite; }
@keyframes dotPulse { 0% { transform: scale(0.4); opacity: 0.5; } 100% { transform: scale(1.9); opacity: 0; } }

.net-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.net-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong);
  background: #fff; border-radius: var(--radius-pill); padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--fg2); transition: border-color var(--dur) var(--ease-out), color var(--dur), background var(--dur); }
.net-chip:hover { border-color: var(--viamed-cyan); color: var(--viamed-navy); }
.net-chip.active { background: var(--viamed-navy); color: #fff; border-color: var(--viamed-navy); }
.net-chip .nc-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--viamed-cyan-50); color: var(--viamed-cyan-700); font-size: 11px; font-weight: 700; }
.net-chip.active .nc-n { background: rgba(255,255,255,0.22); color: #fff; }
.net-region-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.net-region-head h3 { font-size: 24px; }
.net-count { font-size: 13px; color: var(--fg-accent); font-weight: 600; }
.net-hosp-list { display: flex; flex-direction: column; gap: 12px; }
.net-hosp-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg-elevated); box-shadow: var(--shadow-xs); }
.nh-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--viamed-cyan-50); color: var(--viamed-cyan-700); flex-shrink: 0; }
.nh-ic svg { width: 19px; height: 19px; }
.nh-text { flex: 1; min-width: 0; }
.nh-name { font-weight: 700; color: var(--viamed-navy); font-size: 15px; line-height: 1.3; }
.nh-city { font-size: 13px; color: var(--fg3); margin-top: 2px; }
.nh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nh-tags span { font-size: 11px; font-weight: 600; color: var(--fg3); background: var(--viamed-navy-50);
  border-radius: 999px; padding: 3px 9px; }

/* ---------- Comparison ---------- */
.why-section { position: relative; overflow: hidden; background: var(--viamed-navy-900); }
.why-video-el { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.why-video-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,22,45,0.46) 0%, rgba(0,22,45,0.62) 100%); }
.why-video-badge { position: absolute; top: 22px; left: 22px; z-index: 3; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(0,22,45,0.62); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.18); }
.why-video-badge .lc-dot { width: 9px; height: 9px; border-radius: 50%; background: #28d07b; position: relative; }
.why-video-badge .lc-dot::after { content:""; position:absolute; inset:-5px; border-radius:50%;
  border:2px solid #28d07b; animation: pulseRing 2.2s ease-out infinite; }
.why-section .container { position: relative; z-index: 2; }
.why-section .section-head .eyebrow-mark { color: #fff; }
.why-section .section-head h2 { color: #fff; text-shadow: 0 2px 18px rgba(0,18,38,0.55); }
.compare { max-width: 640px; margin: 0 auto; background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.compare-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: center; }
.compare-row + .compare-row { border-top: 1px solid var(--border); }
.compare-row.head { background: var(--viamed-navy); color: #fff; }
.compare-row.head > div { padding: 20px 24px; font-weight: 700; }
.compare-row.head .c-viamed { background: var(--viamed-navy-700); color: #fff; display: flex; align-items: center; gap: 8px; }
.compare-row.head .c-other { color: rgba(255,255,255,0.7); }
.compare-row > div { padding: 18px 24px; }
.compare-row .c-label { font-weight: 600; color: var(--viamed-navy); font-size: 15px; }
.compare-row .c-viamed { font-size: 14px; color: var(--fg2); display: flex; align-items: center; gap: 9px; background: var(--viamed-cyan-50); height: 100%; }
.compare-row .c-other { font-size: 14px; color: var(--fg4); display: flex; align-items: center; gap: 9px; height: 100%; }
.tick { color: var(--success); flex-shrink: 0; }
.cross { color: var(--neutral-400); flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--viamed-navy-900); color: rgba(255,255,255,0.7); padding: 64px 0 36px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { max-width: 320px; font-size: 14px; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 14px; padding: 5px 0; border: 0; }
.footer-col a:hover { color: var(--viamed-cyan); border: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.7); border: 0; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(0,37,57,0.55); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 48px 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-elevated); border-radius: var(--radius-xl); width: 100%; max-width: 560px;
  box-shadow: var(--shadow-lg); position: relative; animation: modalIn var(--dur-slow) var(--ease-out); }
.modal.modal-wide { max-width: 940px; }
.plan-grid-modal { gap: 18px; }
.plan-grid-modal .plan { padding: 24px; }
.plan-grid-modal .plan .price .amt { font-size: 38px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-head { position: relative; padding: 28px 32px 0; }
.modal-head .me { color: var(--fg-accent); }
.modal-head h2 { font-size: 26px; margin: 6px 0 6px; }
.modal-head p { color: var(--fg3); font-size: 15px; margin: 0; }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 10; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff; color: var(--fg2); display: grid; place-items: center; cursor: pointer; }
.modal-close:hover { background: var(--viamed-navy-50); }
.modal-body { padding: 24px 32px 32px; }
.modal-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; }

/* progress */
.progress { display: flex; gap: 6px; padding: 22px 32px 0; }
.progress .pb { height: 4px; flex: 1; border-radius: 2px; background: var(--border); transition: background var(--dur) var(--ease-out); }
.progress .pb.done { background: var(--viamed-cyan); }

.qtitle { font-size: 19px; font-weight: 700; color: var(--viamed-navy); margin-bottom: 18px; letter-spacing: -0.01em; }
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  border: 1px solid var(--border-strong); background: #fff; border-radius: var(--radius-md);
  padding: 16px 18px; font-size: 15px; color: var(--fg1); font-weight: 500;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.opt:hover { border-color: var(--viamed-cyan); background: var(--viamed-cyan-50); }
.opt.selected { border-color: var(--viamed-cyan); background: var(--viamed-cyan-50); box-shadow: var(--shadow-focus); }
.opt.danger:hover { border-color: var(--danger); background: #fdf0ef; }
.opt .opt-ic { width: 22px; flex-shrink: 0; color: var(--fg3); }
.opt-txt { display: flex; flex-direction: column; gap: 3px; }
.opt-main { font-weight: 600; color: var(--fg1); }
.opt-sub { font-size: 13px; font-weight: 500; color: var(--fg3); line-height: 1.4; }
.opt.danger .opt-ic { color: var(--danger); }
.opt.danger .opt-main { color: var(--danger); }

/* tier select */
.tier-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.tier { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 14px 18px; transition: border-color var(--dur) var(--ease-out), background var(--dur); }
.tier:hover { border-color: var(--viamed-cyan); }
.tier.selected { border-color: var(--viamed-cyan); background: var(--viamed-cyan-50); }
.tier .tname { font-weight: 700; color: var(--viamed-navy); font-size: 15px; }
.tier .tsub { font-size: 13px; color: var(--fg3); }
.tier .tprice { font-size: 22px; font-weight: 800; color: var(--viamed-navy); letter-spacing: -0.02em; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--fg2); margin-bottom: 7px; }
.field input, .field select { width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15px; color: var(--fg1); background: #fff; }
.field input:focus, .field select:focus { outline: none; border-color: var(--viamed-cyan); box-shadow: var(--shadow-focus); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phone-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.phone-row .phone-prefix { width: auto; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--fg2);
  cursor: pointer; margin: 4px 0 14px; }
.check-row input { width: 17px; height: 17px; accent-color: var(--viamed-cyan); cursor: pointer; }
.invoice-fields { border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 6px; }
.invoice-fields[hidden] { display: none; }

.doc-avail { display: flex; align-items: center; gap: 14px; background: var(--viamed-navy-50); border: 1px solid var(--viamed-navy-100);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 20px; }
.doc-avail img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.doc-avail .da-name { font-weight: 700; color: var(--viamed-navy); }
.doc-avail .da-sub { font-size: 13px; color: var(--fg3); }

/* time-slot picker */
.slot-days { display: flex; gap: 8px; margin-bottom: 12px; }
.slot-day { flex: 1; border: 1px solid var(--border-strong); background: #fff; border-radius: var(--radius-sm);
  padding: 9px 8px; font-size: 13.5px; font-weight: 600; color: var(--fg2);
  transition: border-color var(--dur) var(--ease-out), background var(--dur), color var(--dur); }
.slot-day:hover { border-color: var(--viamed-cyan); }
.slot-day.selected { background: var(--viamed-navy); border-color: var(--viamed-navy); color: #fff; }
.slot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.slot { border: 1px solid var(--border-strong); background: #fff; border-radius: var(--radius-sm);
  padding: 8px 4px; font-size: 13px; font-weight: 600; color: var(--viamed-navy); text-align: center;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur) var(--ease-out), background var(--dur); }
.slot:hover { border-color: var(--viamed-cyan); background: var(--viamed-cyan-50); }
.slot.selected { background: var(--viamed-cyan); border-color: var(--viamed-cyan); color: var(--viamed-navy-900); }
.slot.off { color: var(--neutral-300); border-color: var(--border); text-decoration: line-through; pointer-events: none; }
.slot-empty { grid-column: 1 / -1; font-size: 13.5px; color: var(--fg3); padding: 10px 2px; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

.success-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--viamed-cyan-50); color: var(--viamed-cyan-700);
  display: grid; place-items: center; margin: 0 auto 18px; }
.center-txt { text-align: center; }

.emergency { background: #fdf0ef; border: 1px solid #f3c9c4; border-radius: var(--radius-md); padding: 22px; text-align: center; }
.emergency h3 { color: var(--danger); margin-bottom: 8px; }
.emergency p { color: var(--fg2); font-size: 14px; margin-bottom: 16px; }
.emergency-number { display: inline-block; font-size: 44px; font-weight: 800; letter-spacing: 2px; color: var(--danger);
  line-height: 1; padding: 12px 28px; border: 2px solid #f3c9c4; border-radius: var(--radius-md); background: #fff; }

/* specialist finder */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.filter-tabs button { border: 1px solid var(--border-strong); background: #fff; border-radius: var(--radius-pill);
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--fg2); }
.filter-tabs button.active { background: var(--viamed-navy); color: #fff; border-color: var(--viamed-navy); }
.spec-list { display: flex; flex-direction: column; gap: 10px; }
.spec-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 14px; transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur); }
.spec-row:hover { border-color: var(--viamed-cyan); box-shadow: var(--shadow-sm); }
.spec-row img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.spec-row .sr-name { font-weight: 700; color: var(--viamed-navy); font-size: 15px; }
.spec-row .sr-meta { font-size: 12.5px; color: var(--fg3); }
.spec-row .sr-price { margin-left: auto; font-size: 18px; font-weight: 800; color: var(--viamed-navy); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .flows { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: repeat(2, 1fr); }
  .network-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  /* Stack the header before the desktop nav gets cramped (the longer Spanish labels
     and CTA overlap the brand well above the phone breakpoint).
     Row 1 = logo + language toggle; row 2 = section menu. Hide the redundant header CTA. */
  /* Let the header grow to fit the wrapped nav. With the fixed --nav-h height, the
     second row (section menu) spilled out the bottom of the bar and onto the hero,
     making the links collide with the headline. height:auto + vertical padding fixes it. */
  .site-header { height: auto; }
  /* The header now overlays the hero taller than 76px, so bump --nav-h (which the hero
     uses as its top padding) to keep the headline clear of the bar. Header is height:auto
     here, so this no longer drives the bar height — only the hero offset. */
  :root { --nav-h: 96px; }
  .site-header .container { flex-wrap: wrap; row-gap: 10px; column-gap: 10px;
    padding-top: 11px; padding-bottom: 11px; }
  .brand-lockup { order: 1; }
  .site-nav { order: 2; margin-left: auto; gap: 14px; }
  .site-nav .btn-accent { display: none; }
  .nav-links { order: 3; flex-basis: 100%; margin-left: 0; justify-content: center;
    flex-wrap: wrap; gap: 8px 18px; }
  /* Keep a solid-enough dark bar behind the now-taller header so the menu stays legible
     over the hero photo/video (the 0.62 scrim was too sheer behind two rows of links). */
  .site-header.on-dark:not(.scrolled) { background: rgba(0, 28, 52, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.12); }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .doc-grid { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1.2fr 1fr; }
  .compare-row .c-other, .compare-row.head .c-other { display: none; }
  .expat-banner, .care-band { padding-left: 24px; padding-right: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .steps { flex-wrap: wrap; }
  /* Phone refinements on top of the stacked header (layout rules live in the 1024px query) */
  .nav-links { gap: 8px 16px; font-size: 14px; }
  .brand-sub { font-size: 10px; padding-left: 8px; }
  /* On phones the section menu wraps to two rows, so the header bar is ~118px tall.
     Push the hero down a touch more so the headline always clears it. */
  :root { --nav-h: 124px; }
  /* Prevent section titles from overlapping on narrow screens */
  h1, h2, h3,
  .hero h1,
  .care-band .cb-quote,
  .section-head h2,
  .expat-banner h2 { line-height: 1.2; overflow-wrap: break-word; }
  .hero h1 { line-height: 1.15; }
}

/* ==========================================================================
   Mobile polish — small-screen refinements for modals, slots, stats, map
   ========================================================================== */
@media (max-width: 760px) {
  /* modals breathe within small screens */
  .modal-head { padding: 24px 22px 0; }
  .modal-body { padding: 22px 20px 26px; }
  .progress { padding: 20px 22px 0; }
  .modal-head h2 { font-size: 23px; }
  .slot-grid { grid-template-columns: repeat(4, 1fr); }
  .care-stats { gap: 24px 34px; }
  .care-stats .cs b { font-size: 32px; }
  .network-map { padding: 14px; }
  .net-region-head h3 { font-size: 21px; }
  .doc-avail img { width: 48px; height: 48px; }
  .spec-row { flex-wrap: wrap; }
  .spec-row .btn { margin-left: 0 !important; }
  /* hide the brand sub-label on small phones so the header row never collides */
  .brand-sub { display: none; }
}

/* ==========================================================================
   v2 — real doctor catalog, Stripe note, navy "orbs" background
   ========================================================================== */
.doc-foot { margin-top: auto; }
.doc-hosp { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--fg3);
  line-height: 1.35; margin-bottom: 18px; }
.doc-hosp svg { color: var(--viamed-cyan-700); flex-shrink: 0; margin-top: 1px; }
.doc-photo.silhouette { background: var(--viamed-navy-50); }
.doc-photo.silhouette img { object-fit: cover; object-position: center top; }
.doc-photo img.sil { object-fit: cover; }
.spec-row img.sil, .doc-avail img.sil { background: var(--viamed-navy-50); object-fit: cover; }

.stripe-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px;
  font-size: 12.5px; color: var(--fg3); }
.stripe-note b { color: var(--viamed-navy); font-weight: 700; }

/* ---- Coming soon ---- */
.soon-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; background: var(--viamed-navy-50);
  color: var(--viamed-navy); padding: 4px 10px; border-radius: 999px; vertical-align: middle; }
.flow-card.is-soon, .plan.is-soon { opacity: 0.62; }
.flow-card.is-soon .fc-top h3 { display: inline-flex; align-items: center; gap: 10px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn.is-soon { opacity: 0.7; }
.expat-banner .soon-badge { background: rgba(255,255,255,0.18); color: #fff; }
.stripe-note .demo-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--viamed-navy-50); color: var(--fg3); padding: 2px 6px; border-radius: 999px; }

.bg-orbs { position: relative; overflow: hidden;
  background: radial-gradient(125% 140% at 82% 0%, var(--viamed-navy-800) 0%, var(--viamed-navy-900) 62%); }
.bg-orbs > .container { position: relative; z-index: 2; }
.bg-orbs .orbs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bg-orbs .orb { position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(0,178,227,0.20), rgba(0,178,227,0.05) 58%, rgba(0,178,227,0) 72%);
  border: 1px solid rgba(0,178,227,0.12); }
.bg-orbs .orb.o1 { width: 360px; height: 360px; top: -130px; left: -90px; }
.bg-orbs .orb.o2 { width: 220px; height: 220px; top: 36px; right: 7%; }
.bg-orbs .orb.o3 { width: 150px; height: 150px; bottom: -46px; left: 22%; }
.bg-orbs .orb.o4 { width: 110px; height: 110px; top: 30%; left: 44%; opacity: 0.7; }
.bg-orbs .orb.o5 { width: 300px; height: 300px; bottom: -150px; right: -70px; }
.bg-orbs .eyebrow-mark { color: var(--viamed-cyan); }
.bg-orbs .section-head h2 { color: #fff; }
.bg-orbs .section-head p { color: rgba(255,255,255,0.7); }
.bg-orbs .counter { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.10); box-shadow: none; }
.bg-orbs .counter:hover { background: rgba(255,255,255,0.08); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.bg-orbs .counter-ic { background: rgba(0,178,227,0.16); color: var(--viamed-cyan); }
.bg-orbs .counter .cn { color: #fff; }
.bg-orbs .counter .cl { color: rgba(255,255,255,0.62); }
.bg-orbs .counter-bar { background: rgba(255,255,255,0.10); }
