/* =========================================================
   MediGest — Landing oficial
   HTML5 + CSS3 + JavaScript vanilla (sin compilación)
   ========================================================= */

:root {
  --teal: #0fb5ae;
  --teal-600: #0a9690;
  --teal-50: #e8f8f7;
  --blue: #1d5fb8;
  --blue-50: #eaf1fb;
  --navy: #0f2a43;
  --ink: #0f2a43;
  --muted: #5a6f82;
  --line: #e2ecf0;
  --bg: #ffffff;
  --bg-soft: #f4fafb;
  --white: #ffffff;

  --grad: linear-gradient(135deg, var(--teal) 0%, var(--blue) 100%);
  --grad-soft: linear-gradient(180deg, #f1fbfa 0%, #ffffff 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 67, .05), 0 2px 8px rgba(15, 42, 67, .04);
  --shadow: 0 6px 24px rgba(15, 42, 67, .07);
  --shadow-lg: 0 24px 60px rgba(15, 42, 67, .12);

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

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }

section[id], main [id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(15, 181, 174, .45); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.icon {
  width: 20px; height: 20px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon .fill, symbol .fill { fill: currentColor; stroke: none; }
#i-whatsapp { fill: currentColor; }

.flag { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 42, 67, .12); display: inline-block; flex-shrink: 0; }
.flag-lg { width: 36px; height: 24px; vertical-align: middle; margin-left: 6px; display: inline-block; border-radius: 4px; }

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--teal);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase;
  border-radius: 999px; padding: 14px 24px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--grad); color: var(--white); box-shadow: 0 8px 20px rgba(15, 181, 174, .28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 181, 174, .36); }

.btn-ghost { background: var(--white); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-600); transform: translateY(-2px); }

.btn-light { background: var(--white); color: var(--navy); box-shadow: 0 10px 30px rgba(15, 42, 67, .2); }
.btn-light .icon { color: var(--teal); }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; box-shadow: 0 6px 14px rgba(15, 181, 174, .3);
}
.brand-mark svg { width: 26px; height: 26px; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark.sm { width: 1.9em; height: 1.9em; border-radius: .5em; box-shadow: none; }
.brand-mark.sm svg { width: 1.3em; height: 1.3em; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); }
.brand-name span { color: var(--teal); }
.brand-tag { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.main-nav { margin-left: auto; display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: block; white-space: nowrap; padding: 8px 14px; font-size: 15px; font-weight: 600; color: var(--muted);
  border-radius: 999px; transition: color .2s ease, background-color .2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--teal-600); background: var(--teal-50); }
.nav-cta { display: none; }
.header-cta { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--line); color: var(--navy); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(15, 181, 174, .14), transparent 60%),
              radial-gradient(900px 400px at -10% 20%, rgba(29, 95, 184, .07), transparent 60%),
              var(--grad-soft);
  padding: 56px 0 48px;
}
.hero-ecg {
  position: absolute; left: 0; right: 0; top: 48%; width: 100%; height: 200px; pointer-events: none;
}
.hero-ecg path, .cta-ecg path {
  fill: none; stroke: var(--teal); stroke-width: 2; opacity: .18;
  stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ecg 4s ease-out .3s forwards;
}
@keyframes ecg { to { stroke-dashoffset: 0; } }

.hero-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 56px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}

.hero-title {
  margin-top: 22px; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em;
  color: var(--navy); text-wrap: balance;
}
.hero-lead { margin-top: 20px; font-size: 18px; color: var(--muted); max-width: 520px; text-wrap: pretty; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-price-hint { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero-price-hint strong { color: var(--navy); }

/* Laptop mockup */
.hero-visual { position: relative; }
.laptop { position: relative; }
.laptop-screen {
  background: var(--navy); border-radius: 18px 18px 6px 6px; padding: 12px; box-shadow: var(--shadow-lg);
}
.laptop-base {
  height: 16px; margin: 0 -5%; border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #d8e3ea, #b9c8d3); position: relative;
}
.laptop-base::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 18%; height: 6px; border-radius: 0 0 8px 8px; background: #a8b8c4;
}

.app {
  display: grid; grid-template-columns: 15em 1fr; font-size: clamp(7px, .82vw, 10.5px);
  background: var(--bg-soft); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 10.2;
}
.app .icon { width: 1.4em; height: 1.4em; }
.app-side { background: var(--white); border-right: 1px solid var(--line); padding: 1.6em 1em; }
.app-logo { display: flex; align-items: center; gap: .7em; font-weight: 800; font-size: 1.3em; color: var(--navy); margin-bottom: 1.6em; padding-left: .3em; }
.app-side li { display: flex; align-items: center; gap: .8em; padding: .75em .9em; border-radius: .7em; color: var(--muted); font-weight: 600; font-size: 1.05em; }
.app-side li.active { background: var(--teal-50); color: var(--teal-600); }

.app-main { padding: 1.6em 1.8em; display: flex; flex-direction: column; gap: 1.3em; min-width: 0; }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-hello { font-weight: 800; font-size: 1.6em; color: var(--navy); line-height: 1.2; }
.app-date { color: var(--muted); font-size: 1.05em; }
.app-avatar { width: 3em; height: 3em; border-radius: 50%; background: var(--grad); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.05em; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.kpi { background: var(--white); border-radius: 1em; padding: .9em .8em; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; gap: .2em; min-width: 0; }
.kpi-label { color: var(--muted); font-size: .95em; font-weight: 600; line-height: 1.2; }
.kpi-value { font-weight: 800; font-size: 1.3em; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.kpi-delta { font-size: .9em; color: var(--teal-600); font-weight: 600; }
.kpi-accent { background: var(--teal-50); border-color: transparent; }
.kpi-blue { background: var(--blue-50); border-color: transparent; }
.kpi-blue .kpi-delta { color: var(--blue); }

.app-panels { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1em; flex: 1; min-height: 0; }
.panel-col { display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 1em; padding: 1em 1.1em; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--navy); font-size: 1.1em; margin-bottom: .7em; }

.chip { display: inline-flex; align-items: center; padding: .25em .7em; border-radius: 999px; background: var(--teal-50); color: var(--teal-600); font-weight: 700; font-size: .85em; white-space: nowrap; }
.chip-blue { background: var(--blue-50); color: var(--blue); }

.agenda-list li { display: grid; grid-template-columns: 3.4em 1fr auto; align-items: center; gap: .6em; padding: .55em 0; border-top: 1px solid var(--line); font-size: 1em; }
.agenda-list li:first-child { border-top: 0; }
.agenda-list .t { color: var(--muted); font-weight: 700; }
.agenda-list .n { color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st { font-size: .85em; font-weight: 700; padding: .2em .6em; border-radius: 999px; background: var(--bg-soft); color: var(--muted); white-space: nowrap; }
.st-done { background: var(--teal-50); color: var(--teal-600); }
.st-now { background: var(--grad); color: var(--white); }
.st-wait { background: var(--blue-50); color: var(--blue); }

.bars { display: flex; align-items: flex-end; gap: .6em; height: 6em; }
.bars span { flex: 1; height: var(--h); background: var(--teal-50); border-radius: .4em .4em .2em .2em; }
.bars span.hl { background: var(--grad); }

.follow-list li { display: flex; align-items: center; gap: .6em; padding: .35em 0; color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.follow-list .dot { width: .6em; height: .6em; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: var(--white); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); font-size: 13px; line-height: 1.3;
  animation: floaty 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--navy); font-weight: 800; }
.float-card span { color: var(--muted); }
.float-a { left: -28px; bottom: 22%; }
.float-b { right: -16px; top: -18px; animation-delay: -3s; }
.fc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); }
.fc-icon.fc-blue { background: var(--blue-50); color: var(--blue); }
.fc-icon .icon { width: 18px; height: 18px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.benefits {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.benefits li {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.35;
}
.benefit-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; color: var(--navy); text-wrap: balance; }
.section-lead { margin-top: 16px; font-size: 18px; color: var(--muted); text-wrap: pretty; }

/* Flujo */
.flow { display: flex; align-items: stretch; gap: 8px; }
.flow-step {
  flex: 1; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 20px; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(15, 181, 174, .35); }
.flow-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(15, 181, 174, .28); }
.flow-icon .icon { width: 24px; height: 24px; }
.flow-num { display: block; margin-top: 18px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.flow-step h3 { margin-top: 4px; font-size: 20px; font-weight: 800; color: var(--navy); }
.flow-step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.flow-arrow { display: flex; align-items: center; color: var(--teal); flex-shrink: 0; }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { margin-top: 18px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.feature-text p { margin-top: 8px; color: var(--muted); font-size: 16px; }

.mini { margin-top: auto; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: 14px; }

.mr-head, .evo-patient { display: flex; align-items: center; gap: 12px; }
.mr-head strong, .evo-patient strong { display: block; color: var(--navy); font-weight: 800; }
.mr-head span, .evo-patient div span { font-size: 13px; color: var(--muted); }
.mr-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.mr-avatar.blue { background: var(--blue); }
.mr-tabs { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.mr-tabs span { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.mr-tabs span.active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.mr-note { margin-top: 14px; background: var(--white); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); }
.mr-date { font-size: 12px; font-weight: 700; color: var(--teal-600); }
.line { height: 8px; border-radius: 4px; background: #e7eff3; }
.w90 { width: 90%; } .w75 { width: 75%; } .w60 { width: 60%; }

.ma-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ma-days span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 0; border-radius: 10px; background: var(--white); border: 1px solid var(--line); }
.ma-days b { display: block; font-size: 16px; color: var(--navy); }
.ma-days span.active { background: var(--grad); color: var(--white); border-color: transparent; }
.ma-days span.active b { color: var(--white); }
.ma-slots { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.slot { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 10px; }
.slot .t { font-size: 12px; font-weight: 700; color: var(--muted); }
.ev { padding: 9px 12px; border-radius: 10px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-teal { background: var(--teal-50); color: var(--teal-600); box-shadow: inset 3px 0 0 var(--teal); }
.ev-blue { background: var(--blue-50); color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.ev-light { background: var(--white); color: var(--muted); border: 1px dashed var(--line); font-weight: 600; }

.mini-docs { display: flex; flex-direction: column; gap: 10px; }
.doc { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.doc > div { flex: 1; min-width: 0; }
.doc strong { display: block; color: var(--navy); font-weight: 800; font-size: 14px; }
.doc div span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; flex-shrink: 0; }
.doc-ic.blue { background: var(--blue-50); color: var(--blue); }
.doc-ic .icon { width: 18px; height: 18px; }
.doc-btn { font-size: 12px; font-weight: 800; color: var(--teal-600); padding: 6px 10px; border-radius: 999px; background: var(--teal-50); flex-shrink: 0; }

.mc-head { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.mc-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }

.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: #dfe9ee; stroke-width: 1; fill: none; stroke-dasharray: 3 4; }
.chart .ln { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .ln-teal { stroke: var(--teal); }
.chart .ln-blue { stroke: var(--blue); }
.chart .pts circle { fill: var(--white); stroke: var(--teal); stroke-width: 2.5; }
.chart .band { fill: var(--teal-50); }

/* Evolución */
.evo-grid { display: grid; grid-template-columns: .9fr 1.3fr; gap: 56px; align-items: center; }
.evo-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.evo-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.evo-points .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); stroke-width: 3; }

.evo-board {
  background: var(--grad-soft); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
}
.evo-patient { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.evo-patient > div { flex: 1; min-width: 0; }
.evo-cards { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.evo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.evo-wide { grid-column: 1 / -1; }
.ec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ec-head span { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ec-head b { font-size: 18px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.ec-foot { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-blue { background: var(--blue); } .lg-teal { background: var(--teal); margin-left: 8px; }

.results { width: 100%; font-size: 13.5px; }
.results td { padding: 7px 0; border-top: 1px solid var(--line); color: var(--navy); }
.results tr:first-child td { border-top: 0; }
.results td:nth-child(2) { font-weight: 700; text-align: right; padding-right: 10px; white-space: nowrap; }
.results td:last-child { text-align: right; font-size: 12px; font-weight: 700; }
.results .up { color: var(--teal-600); }
.results .eq { color: var(--blue); }

.timeline { display: flex; justify-content: space-between; position: relative; padding-top: 6px; }
.timeline::before { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 3px; background: var(--teal-50); border-radius: 2px; }
.timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.timeline li span { width: 17px; height: 17px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal); }
.timeline li.done span { background: var(--teal); }
.timeline li.next span { border-color: var(--blue); border-style: dashed; }
.timeline li.next { color: var(--blue); }

/* Especialidades */
.specialties { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.specialties li {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.3;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.specialties li:hover { border-color: rgba(15, 181, 174, .45); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.specialties .icon { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); }
.specialties li.more { background: var(--grad); color: var(--white); border-color: transparent; }
.specialties li.more .icon { background: rgba(255, 255, 255, .2); color: var(--white); }

.audience {
  margin-top: 48px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 32px; display: flex; align-items: center; gap: 32px; box-shadow: var(--shadow-sm);
}
.audience-title { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; max-width: 160px; line-height: 1.4; }
.audience ul { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.audience li { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.aud-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }

/* Dominicano (oscuro) */
.section-dark {
  background: radial-gradient(900px 500px at 100% 0%, rgba(15, 181, 174, .22), transparent 60%),
              radial-gradient(700px 400px at 0% 100%, rgba(29, 95, 184, .3), transparent 60%),
              var(--navy);
  color: var(--white);
}
.section-dark .section-title { color: var(--white); }
.section-dark .section-lead { color: rgba(255, 255, 255, .75); }
.kicker-light { color: #7fe0db; }

.do-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.do-features { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.do-features li {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  font-weight: 700; font-size: 14px; line-height: 1.3;
}
.do-features .icon { width: 18px; height: 18px; color: #7fe0db; }

.do-visual {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg); padding: 20px;
}
.do-visual-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, .8); margin-bottom: 14px; }
.do-visual-title .icon { color: #7fe0db; }
.doctors { display: flex; flex-direction: column; gap: 12px; }
.doctor { background: var(--white); color: var(--navy); border-radius: var(--radius); padding: 16px; }
.doc-head { display: flex; align-items: center; gap: 12px; }
.doc-head strong { display: block; font-weight: 800; }
.doc-head span { font-size: 13px; color: var(--muted); }
.doctor dl { margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, auto); gap: 12px; }
.doctor dl > div { min-width: 0; }
.doctor dt { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.doctor dd { margin: 4px 0 0; font-weight: 800; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.doctor dd.hl { color: var(--teal-600); }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue); }

.independence {
  margin-top: 56px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 32px;
  padding: 28px 32px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
}
.independence-title { font-weight: 800; font-size: 17px; max-width: 260px; line-height: 1.35; }
.independence ul { display: flex; flex-wrap: wrap; gap: 8px; }
.independence li { padding: 8px 16px; border-radius: 999px; background: rgba(15, 181, 174, .18); color: #bff0ed; font-weight: 700; font-size: 14px; }
.independence-note { grid-column: 1 / -1; color: rgba(255, 255, 255, .7); font-size: 15px; }

.manifesto {
  margin-top: 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px;
  font-size: clamp(26px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; text-transform: uppercase; text-align: center;
}
.manifesto span:nth-child(odd) { color: var(--white); }
.manifesto span:nth-child(even) { color: #7fe0db; }

/* Precio */
.pricing {
  max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr;
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  background: var(--white);
}
.pricing-main {
  padding: 44px; background: radial-gradient(500px 300px at 0% 0%, rgba(15, 181, 174, .14), transparent 70%), var(--bg-soft);
  border-right: 1px solid var(--line); display: flex; flex-direction: column;
}
.plan-tag {
  align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--grad); color: var(--white);
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.pricing-title { margin-top: 20px; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: var(--navy); }
.price { margin-top: 28px; display: flex; align-items: flex-start; gap: 8px; color: var(--navy); }
.price-currency { font-size: 26px; font-weight: 800; margin-top: 14px; color: var(--teal-600); }
.price-amount { font-size: clamp(64px, 8vw, 88px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.price-period { font-size: 17px; color: var(--muted); font-weight: 600; margin-top: 4px; margin-bottom: 20px; }
.price-includes {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: var(--radius);
  background: var(--white); border: 2px solid var(--teal); box-shadow: var(--shadow-sm);
}
.price-includes-label { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); }
.price-includes-value { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.2; }
.price-extra { margin-top: 10px; margin-bottom: 24px; font-size: 15px; font-weight: 600; color: var(--muted); }
.price-extra strong { color: var(--navy); font-weight: 800; }
.pricing-badges { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pricing-badges li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.pricing-badges .icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--teal-600); }

.pricing-list { padding: 44px; }
.pricing-list-title { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.pricing-list ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.pricing-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); font-size: 15px; line-height: 1.3; }
.pricing-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); stroke-width: 3; }
.pricing-list li.is-key { font-weight: 800; }
.pricing-list li.is-key .icon { background: var(--teal); color: var(--white); }

/* Multi-médico */
.multi { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 44px; display: flex; flex-direction: column; gap: 28px; background: var(--bg-soft); }
.multi-head { max-width: 680px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 10px; }
.multi-title { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--navy); text-transform: uppercase; text-wrap: balance; }
.multi-text { color: var(--muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }

.multi-diagram { display: flex; flex-direction: column; align-items: center; max-width: 760px; width: 100%; margin: 0 auto; }
.multi-shared {
  width: 100%; max-width: 520px; padding: 18px 22px; border-radius: var(--radius); background: var(--grad); color: var(--white);
  display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: var(--shadow);
}
.multi-shared-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.multi-shared-label .icon { width: 20px; height: 20px; }
.multi-shared-tasks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.multi-shared-tasks li { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 700; }

.multi-branch { position: relative; width: 50%; height: 40px; }
.multi-branch::before { content: ""; position: absolute; left: 50%; top: 0; height: 20px; border-left: 2px solid var(--teal); }
.multi-branch span { position: absolute; left: 0; right: 0; top: 20px; height: 20px; border: 2px solid var(--teal); border-bottom: 0; border-radius: 10px 10px 0 0; }

.multi-doctors { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.multi-doc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.multi-doc-name { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: var(--navy); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--line); }
.multi-doc-name .icon { width: 32px; height: 32px; padding: 7px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); }
.multi-doc ul { display: flex; flex-direction: column; gap: 8px; }
.multi-doc li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--navy); }
.multi-doc li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }

.multi-quote { text-align: center; }
.multi-quote p { display: inline-block; font-size: clamp(20px, 2.6vw, 28px); font-weight: 800; letter-spacing: -.02em; color: var(--blue); text-wrap: balance; }
.multi-foot { max-width: 680px; margin: -12px auto 0; text-align: center; color: var(--muted); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }

/* CTA final */
.cta { position: relative; overflow: hidden; background: var(--grad); color: var(--white); padding: 104px 0; text-align: center; }
.cta-ecg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cta-ecg path { stroke: var(--white); opacity: .22; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-title { font-size: clamp(32px, 4.8vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.cta-lead { margin-top: 18px; font-size: 19px; opacity: .9; }
.cta .btn { margin-top: 32px; }
.cta-phone { margin-top: 18px; font-size: 15px; opacity: .9; }
.cta-phone a { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand > p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 320px; }
.footer-origin { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--navy) !important; }
.footer-heading { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s ease; }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--teal-600); }
.footer-company p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.footer-company .footer-company-name { font-size: 15px; font-weight: 800; letter-spacing: .14em; color: var(--navy); margin-bottom: 6px; }
.footer-company .footer-company-claim { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.footer-seal { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 48px; padding: 18px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.footer-seal p { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-seal strong { color: var(--navy); font-weight: 700; letter-spacing: .04em; }
.footer-seal-sep { width: 1px; height: 18px; background: var(--line); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line); }
.footer-legal-text { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-bottom p { font-size: 14px; color: var(--muted); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 14px; color: var(--muted); transition: color .2s ease; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--teal-600); }
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 80px; }
.legal-back { display: inline-block; font-weight: 600; color: var(--teal-600); margin-bottom: 28px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--navy); }
.legal-meta { font-size: 14px; color: var(--muted); margin: 6px 0 28px; }
.legal h2 { font-size: 19px; font-weight: 700; color: var(--navy); margin: 28px 0 8px; }
.legal p { color: var(--muted); line-height: 1.7; }
.legal p a { color: var(--teal-600); font-weight: 600; }
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-seal { flex-direction: column; }
  .footer-seal-sep { display: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white);
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-tip {
  position: absolute; right: 74px; top: 50%; transform: translate(8px, -50%);
  background: var(--navy); color: var(--white); font-size: 14px; font-weight: 700; white-space: nowrap;
  padding: 10px 14px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.wa-tip::after { content: ""; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 12px; height: 12px; background: var(--navy); border-radius: 2px; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translate(0, -50%); }

/* Animaciones de aparición */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-ecg path, .cta-ecg path { stroke-dashoffset: 0; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1140px) {
  .nav-link { padding: 8px 10px; font-size: 14px; }
  .flow { flex-wrap: wrap; justify-content: center; }
  .flow-arrow { display: none; }
  .flow-step { flex: 1 1 calc(33.333% - 8px); }
  .float-a { left: -8px; }
  .float-b { right: 0; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .nav-toggle { margin-left: 8px; }

  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--header-h); margin: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 16px 24px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .nav-cta { display: inline-flex; }

  .hero { padding: 40px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .app { font-size: 1.15vw; }

  .evo-grid, .do-grid { grid-template-columns: 1fr; gap: 40px; }
  .specialties { grid-template-columns: repeat(3, 1fr); }
  .audience { flex-direction: column; align-items: flex-start; gap: 20px; }
  .audience-title { max-width: none; }
  .audience ul { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 640px; }
  .pricing-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .independence { grid-template-columns: 1fr; }
  .independence-title { max-width: none; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-lead { font-size: 16px; }
  .hero-lead { font-size: 16px; }
  .benefits { grid-template-columns: 1fr; margin-top: 40px; }

  .app { grid-template-columns: 1fr; font-size: 1.95vw; aspect-ratio: auto; }
  .app-side { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app-panels { grid-template-columns: 1fr; }
  .float-card { font-size: 12px; padding: 10px 12px; }
  .float-a { left: -4px; bottom: -22px; }
  .float-b { right: -4px; top: -26px; }

  .flow { flex-direction: column; }
  .flow-step { flex: 1 1 auto; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 20px; }
  .flow-icon { grid-row: span 3; }
  .flow-num { margin-top: 0; }

  .features { grid-template-columns: 1fr; }
  .feature { padding: 24px; }
  .evo-board { padding: 16px; }
  .evo-cards { grid-template-columns: 1fr; }
  .specialties { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .specialties li { padding: 14px; font-size: 14px; gap: 10px; }
  .specialties .icon { width: 30px; height: 30px; padding: 6px; }
  .audience { padding: 22px; }
  .audience ul { grid-template-columns: 1fr; }
  .do-features { grid-template-columns: 1fr 1fr; }
  .doctor dl { grid-template-columns: 1fr 1fr; }
  .independence { padding: 22px; }
  .pricing-main, .pricing-list { padding: 28px 22px; }
  .pricing-list ul { grid-template-columns: 1fr; }
  .pricing-badges { grid-template-columns: 1fr; }
  .multi { padding: 28px 22px; }
  .multi-doctors { gap: 12px; }
  .multi-doc { padding: 16px 14px; }
  .multi-doc li { font-size: 14px; gap: 8px; }
  .cta { padding: 80px 0; }
}

@media (max-width: 480px) {
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .brand-tag { font-size: 9px; letter-spacing: .1em; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .btn { white-space: normal; text-align: center; }
  .specialties { grid-template-columns: 1fr; }
  .do-features { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
}
