/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-2: #F6F6F6;
  --ink: #091F5B;
  --ink-2: #1a2f6e;
  --muted: #6b7a99;
  --rule: #e6ecf4;
  --rule-2: #BAD6EB;
  --primary: #3B63A8;
  --primary-soft: #BAD6EB;
  --primary-ink: #091F5B;
  --primary-2: #6F96D1;
  --accent: #6F96D1;
  --accent-soft: #BAD6EB;
  --danger: oklch(0.58 0.16 25);
  --shadow-sm: 0 1px 0 rgba(20,32,27,.04), 0 1px 2px rgba(20,32,27,.05);
  --shadow-md: 0 1px 0 rgba(20,32,27,.04), 0 6px 24px -8px rgba(20,32,27,.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
}

[data-theme="dark"] {
  --bg: #061336;
  --bg-2: #0a1d50;
  --ink: #F6F6F6;
  --ink-2: #BAD6EB;
  --muted: #6F96D1;
  --rule: #1a2f6e;
  --rule-2: #3B63A8;
  --primary: #6F96D1;
  --primary-soft: #1a2f6e;
  --primary-ink: #BAD6EB;
  --accent: #6F96D1;
  --accent-soft: #1a2f6e;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  font-family: 'Mariupol', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Type ---------- */
.serif { font-family: 'Comfortaa', system-ui, sans-serif; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  gap: 24px;
  position: relative;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo > span:last-child { display: inline-block; white-space: nowrap; }
.logo-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 9px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.nav-links {
  display: none; gap: 4px;
  background: rgba(9,31,91,.04);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(9,31,91,.06);
}
@media (min-width: 900px) {
  .nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}
.nav-link {
  font-size: 14px; color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 999px;
  transition: color .18s, background .18s;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .nav-link { padding: 8px 0; background: none; border-radius: 0; }
.nav-cta .nav-link:hover { background: none; color: var(--primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .18s, border-color .18s, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--primary-ink); }
.btn-ghost {
  border-color: var(--rule-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-link {
  padding: 0; color: var(--primary-ink); font-weight: 500;
}
.btn-link:hover { color: var(--ink); }
.btn-lg { padding: 14px 22px; font-size: 15px; }

/* ---------- Hero (bold) ---------- */
.hero-bold {
  position: relative;
  background: linear-gradient(135deg, #091F5B 0%, #1a3680 50%, #3B63A8 100%);
  color: #fff;
  padding: 100px 0 60px;
  margin-top: -72px;
  border-bottom: none;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-float 14s ease-in-out infinite;
}
.hero-orb-1 { width: 540px; height: 540px; background: #6F96D1; top: -120px; left: -100px; }
.hero-orb-2 { width: 420px; height: 420px; background: #BAD6EB; bottom: -100px; right: -50px; animation-delay: -4s; }
.hero-orb-3 { width: 320px; height: 320px; background: #3B63A8; top: 40%; left: 50%; animation-delay: -8s; opacity: 0.4; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}
.hero-grid-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-center { max-width: 880px; margin: 0 auto; }
.hero-bold h1 {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: #fff;
  text-wrap: balance;
}
.hero-bold h1 em {
  font-style: normal;
  font-weight: 500;
  color: #BAD6EB;
  /* fallback explícito para iOS Safari que no respeta rgba bien sobre gradient */
  text-shadow: 0 1px 2px rgba(9, 31, 91, 0.18);
}

/* Hero title 2 líneas: forzar 2 spans en 2 líneas en desktop */
@media (min-width: 768px) {
  .hero-bold h1.hero-title-2lines {
    font-size: clamp(40px, 4.4vw, 54px);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: initial;
    white-space: normal;
  }
  .hero-title-2lines .hero-line {
    display: block;
    white-space: nowrap;
  }
}
@media (max-width: 767px) {
  .hero-bold h1 {
    font-size: clamp(26px, 7.5vw, 38px);
    line-height: 1.15;
    text-wrap: balance;
    padding: 0 4px;
  }
  .hero-bold h1 em { color: #ffffff; font-weight: 600; }
  .hero-title-2lines .hero-line { display: inline; }
}
.hero-bold .hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(255,255,255,.85);
  max-width: 56ch;
  margin: 0 auto 24px;
}
.hero-pill-light {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
}
.hero-pill-light .badge { background: #BAD6EB; color: #091F5B; }
.hero-bold .hero-actions { justify-content: center; margin-bottom: 24px; }
.hero-bold .btn-primary { background: #fff; color: #091F5B; }
.hero-bold .btn-primary:hover { background: #BAD6EB; color: #091F5B; }
.btn-glow { box-shadow: 0 0 0 0 rgba(255,255,255,.5); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); }
  50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}
.btn-ghost-light {
  border: 1px solid rgba(255,255,255,.3);
  color: #fff; background: rgba(255,255,255,.05);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.hero-bold .hero-meta { justify-content: center; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75); }
.hero-bold .hero-meta svg { color: #BAD6EB; }

.hero-visual { position: relative; max-width: 920px; margin: 36px auto 0; }
.laptop {
  position: relative;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.4));
  animation: laptop-float 5s ease-in-out infinite;
}
@keyframes laptop-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.laptop-screen {
  background: #1a1a1a;
  padding: 14px 14px 6px;
  border-radius: 14px 14px 4px 4px;
  border: 2px solid #2a2a2a;
  border-bottom: none;
  position: relative;
}
.laptop-base {
  height: 14px;
  background: linear-gradient(180deg, #c4c8d0 0%, #888 100%);
  border-radius: 0 0 14px 14px;
  position: relative;
  margin: 0 -3%;
}
.laptop-base::after {
  content: ""; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 6px; background: #555;
  border-radius: 0 0 8px 8px;
}
.laptop-screen .hero-card-chrome { background: #fff; padding: 8px 12px; border-radius: 8px 8px 0 0; margin: 0; border-bottom: 1px solid #eee; }
.laptop-screen .mock { border-radius: 0 0 8px 8px; border: none; }
.laptop-image { width: 100%; display: block; border-radius: 0 0 8px 8px; }

.laptop-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
  background: #1a1a1a;
  aspect-ratio: 16 / 10;
}
.laptop-stage .laptop-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: opacity .9s cubic-bezier(.4,0,.2,1), transform 1.2s cubic-bezier(.4,0,.2,1), filter .9s ease;
}
.laptop-before {
  opacity: 1;
  z-index: 1;
  filter: saturate(.9);
}
.laptop-before.is-out {
  opacity: 0;
  transform: scale(1.06);
  filter: saturate(.4) blur(2px);
}
.laptop-after {
  opacity: 0;
  z-index: 2;
  transform: scale(1.04);
}
.laptop-after.is-in {
  opacity: 1;
  transform: scale(1);
  animation: dashboardIn 1s cubic-bezier(.4,0,.2,1);
}
@keyframes dashboardIn {
  0% { opacity: 0; transform: scale(1.06); filter: brightness(1.4); }
  60% { filter: brightness(1.1); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

.before-badge,
.after-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
  animation: badgePop .4s cubic-bezier(.34,1.56,.64,1);
}
.before-badge {
  background: rgba(220, 38, 38, .9);
  color: #fff;
}
.before-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: pulse-recording 1.2s ease-in-out infinite;
}
@keyframes pulse-recording {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.after-badge {
  background: rgba(34, 197, 94, .92);
  color: #fff;
}
.after-check {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  color: #16a34a;
  font-size: 9px;
  font-weight: 900;
}
@keyframes badgePop {
  from { opacity: 0; transform: translateY(-6px) scale(.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.laptop-replay {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(9, 31, 91, .85);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s, background .25s;
}
.laptop-stage:hover .laptop-replay {
  opacity: 1;
  transform: translateY(0);
}
.laptop-replay:hover {
  background: rgba(9, 31, 91, 1);
}

/* ---------- Clinic Showcase (full-bleed bridge) ---------- */
.clinic-showcase { position: relative; padding: 0; }
.clinic-showcase-img {
  position: relative;
  height: clamp(420px, 60vh, 640px);
  overflow: hidden;
}
.clinic-showcase-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}
.clinic-showcase.in .clinic-showcase-img img { transform: scale(1.08); }
.clinic-showcase-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(9,31,91,.85) 0%, rgba(9,31,91,.55) 45%, rgba(9,31,91,.15) 100%);
}
.clinic-showcase-content {
  position: absolute; inset: 0;
  display: flex; align-items: center;
}
.clinic-showcase-text { color: #fff; max-width: 580px; }
.clinic-showcase-text .eyebrow-light {
  color: #BAD6EB;
  border-color: rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
}
.clinic-showcase-text h2 {
  color: #fff;
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}
.clinic-showcase-text h2 em { color: #BAD6EB; font-style: normal; font-weight: 500; }
.clinic-showcase-text > p {
  color: rgba(255,255,255,.85);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 50ch;
}
.clinic-showcase-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.clinic-showcase-stats > div { display: flex; flex-direction: column; gap: 4px; }
.clinic-showcase-stats strong {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #fff;
}
.clinic-showcase-stats span {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Patients Showcase ---------- */
.patients-showcase { background: var(--bg-2); }
.patients-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: center;
}
.patients-showcase-text h2 {
  font-family: 'Comfortaa', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 16px 0 18px;
  letter-spacing: -0.02em;
}
.patients-showcase-text > p { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 24px; }
.patients-bullets { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.patients-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; color: var(--ink);
}
.patients-bullets svg { color: var(--primary); margin-top: 4px; flex-shrink: 0; }
.panel-screenshot {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 20px 40px rgba(9,31,91,.15), 0 0 0 1px var(--rule);
  display: flex;
  flex-direction: column;
}
.panel-screenshot .browser-chrome {
  flex-shrink: 0;
}
.panel-screenshot img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* En mobile, mostrar la imagen completa sin recorte para que se vea
   el calendario/dashboard sin perder columnas */
@media (max-width: 767px) {
  .panel-screenshot img {
    object-fit: contain;
    object-position: top center;
    background: #fff;
  }
  .feature-stage { min-height: 320px; padding: 16px; }
  .stage-panel { inset: 44px 14px 14px; }
}

.patients-showcase-img {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(9,31,91,.18), 0 0 0 1px var(--rule);
  background: #fff;
  transition: transform .4s;
}
.patients-showcase-img:hover { transform: translateY(-4px); }
.patients-showcase-img > img { width: 100%; display: block; }

.showcase-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1000 / 670;
  background: #fff;
}
.showcase-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s ease, transform 1.2s ease;
}
.showcase-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.showcase-tabs {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.showcase-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}
.showcase-tab .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rule-2);
  transition: background .25s, box-shadow .25s;
}
.showcase-tab:hover {
  border-color: var(--primary);
  color: var(--ink);
}
.showcase-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(59,99,168,.25);
}
.showcase-tab.active .dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.25);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.4); }
  50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

.browser-chrome .url {
  animation: url-fade .4s ease;
}
@keyframes url-fade {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: translateY(0); }
}
.browser-chrome {
  display: flex; align-items: center; gap: 6px;
  background: #f5f6f8; padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
}
.browser-chrome > span:not(.url) {
  width: 11px; height: 11px; border-radius: 50%;
  background: #ddd;
}
.browser-chrome > span:nth-child(1) { background: #ff5f56; }
.browser-chrome > span:nth-child(2) { background: #ffbd2e; }
.browser-chrome > span:nth-child(3) { background: #27c93f; }
.browser-chrome .url {
  width: auto; height: auto;
  background: #fff; border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px; color: var(--ink-2);
  margin-left: 16px;
  border: 1px solid var(--rule);
}
@media (max-width: 960px) {
  .patients-showcase-grid { grid-template-columns: 1fr; gap: 32px; }
  .clinic-showcase-stats { gap: 24px; }
  .clinic-showcase-stats strong { font-size: 26px; }
}

.float {
  position: absolute;
  background: #fff;
  color: #091F5B;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 12px 32px rgba(9,31,91,.25);
  font-size: 13px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  z-index: 3;
}
.float-ok { color: var(--primary); }
.floatA { top: 14%; left: -6%; animation: floatA 4.5s ease-in-out infinite; }
.floatB { top: 50%; right: -6%; animation: floatB 5s ease-in-out infinite; }
.floatC { bottom: 18%; left: 4%; animation: floatA 5.5s ease-in-out infinite reverse; }
@keyframes floatA {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-2deg); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@media (max-width: 800px) {
  .float { display: none; }
  .hero-bold { padding: 110px 0 70px; margin-top: -72px; }
  .hero-visual { margin-top: 40px; }
}

/* reveal animations */
.reveal { opacity: 0; transform: translateY(20px); animation: reveal-up .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}
.scroll-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.scroll-reveal.in { opacity: 1; transform: translateY(0); }

/* nav states */
.nav-hero {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav-hero .logo { color: #fff; }
.nav-hero .nav-link { color: rgba(255,255,255,.85); }
.nav-hero .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-hero .nav-links { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); }
.nav-hero .nav-cta .nav-link:hover { background: none; color: #fff; }
.nav-hero .logo-mark { background: #fff; color: #091F5B; }
.nav-hero .btn-primary { background: #fff; color: #091F5B; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.nav-hero .btn-primary:hover { background: #BAD6EB; transform: translateY(-1px); }
.nav-hero .mobile-menu-btn { border-color: rgba(255,255,255,.3); color: #fff; }
.nav-scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(9,31,91,.08);
  box-shadow: 0 4px 24px rgba(9,31,91,.06);
}
.nav-scrolled .logo { color: var(--ink); }
.nav-scrolled .nav-link { color: var(--ink-2); }
.nav-scrolled .nav-links { background: rgba(9,31,91,.04); }
.nav-scrolled .logo-mark { background: var(--primary); color: #fff; }

/* doctor avatar images */
.av-img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  box-shadow: 0 2px 6px rgba(9,31,91,.12);
}
.av-img-sm { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cite-avatar-img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-soft);
}

/* specialty image */
.spec-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  aspect-ratio: 4 / 3;
}
.spec-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  animation: img-fade .6s ease;
}
@keyframes img-fade { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }
.spec-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(9,31,91,.85); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-family: 'Comfortaa', sans-serif; font-weight: 600; font-size: 13px;
  backdrop-filter: blur(8px);
}

/* step icon + img */
.step-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.step:hover { transform: translateY(-4px); transition: transform .25s; box-shadow: 0 12px 32px rgba(9,31,91,.08); }
.step { transition: transform .25s, box-shadow .25s; }
.step-img {
  margin-top: 20px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--rule);
}
.step-img img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; display: block; transition: transform .4s; }
.step:hover .step-img img { transform: scale(1.06); }

/* security image */
.security-image {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--rule);
  min-height: 380px;
}
.security-image img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.security-badge {
  position: absolute; top: 18px; left: 18px;
  background: rgba(255,255,255,.95);
  color: var(--primary); padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
}
@media (min-width: 900px) { .hero { padding: 88px 0 0; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: end;
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-2);
  background: var(--bg);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.hero-pill .badge {
  background: var(--primary-soft);
  color: var(--primary-ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
/* Light-themed hero only — el .hero-bold tiene su propio em con gradient bg */
.hero:not(.hero-bold) h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--primary);
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--muted);
}
.hero-meta .item { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--primary); }

/* product card preview */
.hero-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
}
.hero-card-chrome {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px 14px;
  border-bottom: 1px dashed var(--rule);
  margin-bottom: 14px;
}
.hero-card-dots { display: flex; gap: 6px; }
.hero-card-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--rule-2);
}
.hero-card-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

/* mock dashboard */
.mock {
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.mock-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.mock-header strong { font-weight: 600; }
.mock-tabs { display: flex; gap: 4px; }
.mock-tab {
  padding: 4px 10px; border-radius: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.mock-tab.active { background: var(--ink); color: var(--bg); }

.mock-body {
  display: grid; grid-template-columns: 180px 1fr;
}
.mock-side {
  border-right: 1px solid var(--rule);
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px;
}
.mock-side .item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 7px; color: var(--ink-2);
}
.mock-side .item.active { background: var(--primary-soft); color: var(--primary-ink); font-weight: 500; }
.mock-side .glyph {
  width: 14px; height: 14px; border-radius: 3px;
  background: var(--rule-2);
}
.mock-side .item.active .glyph { background: var(--primary); }

.mock-content { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mock-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.mock-stat {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 10px 12px;
}
.mock-stat .label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'JetBrains Mono', monospace; }
.mock-stat .value { font-family: 'Comfortaa', system-ui, sans-serif; font-size: 24px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.mock-stat .delta { font-size: 11px; color: var(--primary-ink); }

.mock-chart {
  height: 96px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(transparent calc(100% - 1px), var(--rule) 0) 0 0/100% 24px,
    var(--bg);
}
.mock-chart svg { position: absolute; inset: 0; }
.mock-chart .label {
  position: absolute; top: 8px; left: 10px;
  font-size: 10.5px; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}

.mock-list {
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.mock-list-row {
  display: grid; grid-template-columns: 28px 1fr auto auto; gap: 10px; align-items: center;
  padding: 9px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--rule);
}
.mock-list-row:last-child { border-bottom: none; }
.mock-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-ink);
  display: grid; place-items: center;
  font-size: 10px; font-weight: 600;
}
.mock-list-row .name { color: var(--ink); font-weight: 500; }
.mock-list-row .meta { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }
.tag {
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  background: var(--bg-2); color: var(--ink-2);
}
.tag-ok { background: var(--primary-soft); color: var(--primary-ink); }
.tag-warn { background: var(--accent-soft); color: oklch(0.42 0.10 75); }

/* floating snippets around the card */
.float {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  font-size: 12.5px;
  display: flex; align-items: center; gap: 10px;
}
.float-ok { color: var(--primary-ink); }
@media (max-width: 999px) { .float { display: none; } }
.float-1 { top: 18%; left: -22px; }
.float-2 { bottom: 16%; right: -28px; }

/* logos strip */
.logos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 32px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, 1fr); } }
.logos-label {
  grid-column: 1 / -1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 8px;
}
.logo-item {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 18px;
  text-align: center;
  color: var(--ink-2);
  opacity: .75;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* ---------- Section base ---------- */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 800px) { .section { padding: 64px 0; } }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px 64px;
  margin-bottom: 56px;
}
@media (min-width: 900px) { .section-head { grid-template-columns: 220px 1fr; } }

.section-head h2 {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
.section-head h2 em { font-style: normal; font-weight: 500; color: var(--primary); }
.section-head p {
  font-size: 17px; color: var(--ink-2); max-width: 56ch;
  margin: 0; text-wrap: pretty;
}
.section-head .meta {
  display: flex; flex-direction: column; gap: 6px;
}

/* ---------- Features (split) ---------- */
.feature-split {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  align-items: stretch;
}
@media (min-width: 1000px) {
  .feature-split { grid-template-columns: 1fr 1.3fr; gap: 80px; }
}

.feature-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
}
.feature-item {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 18px;
  align-items: start;
  cursor: pointer;
  transition: color .18s;
}
.feature-item .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  padding-top: 6px;
}
.feature-item h3 {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.feature-item p {
  font-size: 14.5px; color: var(--ink-2);
  margin: 0;
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s, margin .25s;
}
.feature-item.open p { max-height: 200px; opacity: 1; margin-top: 4px; }
.feature-item .chev {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--rule-2);
  display: grid; place-items: center;
  transition: transform .25s, background .18s;
  color: var(--ink-2);
}
.feature-item.open .chev { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }
.feature-item:hover h3 { color: var(--primary-ink); }

/* feature visual stage */
.feature-stage {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  min-height: 420px;
  padding: 28px;
  overflow: hidden;
}
.feature-stage .stage-tag {
  position: absolute; top: 18px; left: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
}
.stage-panel {
  position: absolute;
  inset: 56px 28px 28px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  display: flex; flex-direction: column;
}
.stage-panel.active { opacity: 1; transform: translateY(0); }

/* panel: expediente */
.exp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--rule);
}
.exp-name { font-family: 'Comfortaa', system-ui, sans-serif; font-size: 22px; letter-spacing: -0.01em; }
.exp-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.exp-tabs {
  display: flex; gap: 0; padding: 0 12px;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.exp-tabs::-webkit-scrollbar { display: none; }
.exp-tab {
  padding: 10px 14px; font-size: 12.5px; color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.exp-tab.active { color: var(--ink); border-color: var(--ink); }
.exp-body { padding: 16px 18px; display: grid; gap: 14px; flex: 1; overflow: hidden; }
.exp-row { display: grid; grid-template-columns: 100px 1fr; gap: 16px; font-size: 13px; }
.exp-row .k { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; padding-top: 2px; }
.exp-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.exp-vital { border: 1px solid var(--rule); border-radius: 10px; padding: 10px; min-width: 0; overflow: hidden; }
.exp-vital .v { font-family: 'Comfortaa', system-ui, sans-serif; font-size: 22px; }
.exp-vital .l { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }

/* En mobile: vitals 2x2 (no 1x4) y row con label arriba */
@media (max-width: 600px) {
  .exp-vitals { grid-template-columns: repeat(2, 1fr); }
  .exp-vital .v { font-size: 18px; }
  .exp-row { grid-template-columns: 1fr; gap: 4px; }
  .exp-row .k { padding-top: 0; }
}

/* panel: agenda */
.agenda { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; height: 100%; overflow: hidden; }
.agenda-head { display: flex; justify-content: space-between; align-items: center; }
.agenda-day { font-family: 'Comfortaa', system-ui, sans-serif; font-size: 22px; letter-spacing: -0.01em; }
.agenda-nav { display: flex; gap: 4px; }
.agenda-nav button {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--rule-2); display: grid; place-items: center;
  color: var(--ink-2);
}
.slot {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--rule); border-radius: 10px;
  font-size: 13px;
}
.slot.now { border-color: var(--primary); background: var(--primary-soft); }
.slot .time { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.slot.now .time { color: var(--primary-ink); }
.slot .who { font-weight: 500; }
.slot .why { color: var(--muted); font-size: 12px; }

/* panel: receta */
.rx { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rx-head { display: flex; justify-content: space-between; align-items: baseline; }
.rx-title { font-family: 'Comfortaa', system-ui, sans-serif; font-size: 22px; }
.rx-folio { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.rx-meds { display: flex; flex-direction: column; gap: 8px; }
.rx-med {
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 10px 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 6px;
}
.rx-med .name { font-weight: 600; font-size: 14px; }
.rx-med .dose { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }
.rx-med .freq { font-size: 12.5px; color: var(--ink-2); grid-column: 1 / -1; }
.rx-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px dashed var(--rule);
  font-size: 12px; color: var(--muted);
}

/* panel: insights */
.insights { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.insights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ins-card { border: 1px solid var(--rule); border-radius: 10px; padding: 12px; }
.ins-card .l { font-size: 10.5px; color: var(--muted); font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.ins-card .v { font-family: 'Comfortaa', system-ui, sans-serif; font-size: 28px; line-height: 1; margin-top: 6px; letter-spacing: -0.02em; }
.ins-card .d { font-size: 11.5px; color: var(--primary-ink); margin-top: 4px; }
.bars { display: flex; align-items: end; gap: 4px; height: 56px; padding-top: 8px; }
.bars span {
  flex: 1; background: var(--primary); border-radius: 2px 2px 0 0;
  opacity: 0.85;
}

/* ---------- Workflow / how it works ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.step {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg);
  display: flex; flex-direction: column;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.step .num {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 14px;
  color: var(--muted);
}
.step h3 {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 16px 0 10px;
  text-wrap: balance;
}
.step p { color: var(--ink-2); font-size: 14.5px; margin: 0; max-width: 32ch; }
.step .visual {
  margin-top: auto; padding-top: 24px;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat .num {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat .num em { font-style: normal; font-weight: 500; color: var(--primary); font-size: 0.7em; }
.stat .label { font-size: 14px; color: var(--ink-2); max-width: 28ch; }
.stat .tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.plan {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--bg);
  display: flex; flex-direction: column;
}
.plan.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.plan.featured .muted { color: rgba(236,239,233,.6); }
.plan-name {
  font-family: 'Comfortaa', system-ui, sans-serif; font-size: 22px; letter-spacing: -0.01em;
}
.plan-price {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 18px 0 4px;
}
.plan-price .cent { font-size: 22px; vertical-align: super; }
.plan-period { font-size: 13px; color: var(--muted); }
.plan.featured .plan-period { color: rgba(236,239,233,.7); }
.plan-divider { height: 1px; background: var(--rule); margin: 22px 0; }
.plan.featured .plan-divider { background: rgba(236,239,233,.2); }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { font-size: 14px; display: flex; gap: 10px; }
.plan-features li::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  background: var(--primary-soft); flex-shrink: 0;
  margin-top: 3px;
  background-image: radial-gradient(circle at center, var(--primary) 30%, transparent 32%);
}
.plan.featured .plan-features li::before {
  background: rgba(236,239,233,.12);
  background-image: radial-gradient(circle at center, var(--bg) 30%, transparent 32%);
}
.plan-cta { margin-top: 28px; }
.plan.featured .btn-primary { background: var(--bg); color: var(--ink); }
.plan.featured .btn-ghost { border-color: rgba(236,239,233,.25); color: var(--bg); }
.plan-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: oklch(0.40 0.10 75);
  margin-bottom: 12px;
}
.plan.featured .plan-tag { background: var(--accent); color: var(--ink); }

/* ---------- Testimonial ---------- */
.testimonial {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding: 96px 24px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .testimonial { padding: 96px 40px; }
}
@media (min-width: 1000px) {
  .testimonial { grid-template-columns: 1fr 1fr; gap: 64px; padding: 96px 64px; }
}
.testimonial-quote {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.testimonial-quote::before {
  content: "“"; color: var(--primary);
  margin-right: 4px;
}
.testimonial-cite {
  display: flex; align-items: center; gap: 14px;
  margin-top: 32px;
  font-size: 14px;
}
.cite-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-ink);
  display: grid; place-items: center;
  font-family: 'Comfortaa', system-ui, sans-serif; font-size: 18px;
}
.cite-info strong { display: block; font-weight: 500; }
.cite-info span { color: var(--muted); font-size: 13px; }

.testimonial-extras {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  align-content: start;
}
.mini-testimonial {
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 14px;
  color: var(--ink-2);
  background: var(--bg);
}
.mini-testimonial .quote { line-height: 1.45; margin-bottom: 14px; }
.mini-testimonial .who { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.mini-testimonial .who .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-2); display: grid; place-items: center;
  color: var(--ink-2); font-family: 'Comfortaa', system-ui, sans-serif; font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--rule); }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
  cursor: pointer;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
}
.faq-a {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 64ch;
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .25s, margin .25s;
}
.faq-item.open .faq-a { max-height: 240px; opacity: 1; margin-top: 12px; }
.faq-toggle {
  width: 32px; height: 32px;
  border: 1px solid var(--rule-2);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .25s, background .18s;
  color: var(--ink-2);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 96px 0;
  text-align: center;
  border-bottom: none;
  background: linear-gradient(135deg, #091F5B 0%, #1a3680 50%, #3B63A8 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(186,214,235,.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(111,150,209,.22), transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.cta > .container { position: relative; z-index: 1; }
.cta h2 {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 18px;
  text-wrap: balance;
  color: #fff;
}
.cta h2 em { font-style: normal; font-weight: 500; color: #BAD6EB; }
.cta p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 32px; text-wrap: pretty; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: #091F5B; }
.cta .btn-primary:hover { background: #BAD6EB; color: #091F5B; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
}
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; } }
.footer-brand p { font-size: 14px; color: var(--ink-2); max-width: 32ch; margin: 14px 0 18px; }
.footer h4 {
  font-size: 12px; font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14px; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Marquee testimonials in hero ---------- */
.marquee {
  border-top: 1px solid var(--rule);
  padding: 32px 0 48px;
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex; gap: 16px;
  animation: scroll 60s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll {
  to { transform: translateX(-50%); }
}
.review-card {
  width: 320px;
  flex-shrink: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--bg);
}
.review-card .stars {
  display: flex; gap: 2px; color: var(--accent);
  margin-bottom: 10px; font-size: 13px;
}
.review-card .quote {
  font-size: 14px; color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 14px;
  text-wrap: pretty;
}
.review-card .who { display: flex; align-items: center; gap: 10px; }
.review-card .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-ink);
  display: grid; place-items: center;
  font-family: 'Comfortaa', system-ui, sans-serif; font-size: 14px;
}
.review-card .who strong { font-size: 13px; font-weight: 500; display: block; }
.review-card .who span { font-size: 11.5px; color: var(--muted); }

/* ---------- Compliance strip ---------- */
.compliance {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 28px 0;
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  align-items: center;
  justify-content: center;
}
.comp-item {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}
.comp-item .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

/* placeholder image with stripes */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, var(--bg-2), var(--bg-2) 6px, var(--rule) 6px, var(--rule) 7px);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  min-height: 160px;
  padding: 16px;
  overflow: hidden;
}
.placeholder span {
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rule);
}

/* ---------- Density tweaks ---------- */
[data-density="cozy"] .section { padding: 64px 0; }
[data-density="cozy"] .container { max-width: 1100px; }

/* ---------- Mobile menu ---------- */
.mobile-menu-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--rule-2);
}
@media (min-width: 900px) { .mobile-menu-btn { display: none; } }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  padding: 24px;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-drawer a { padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 18px; font-family: 'Comfortaa', system-ui, sans-serif; }

/* ---------- Demo modal ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,32,27,.55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.modal-bg.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  width: 100%; max-width: 480px;
  padding: 32px;
  transform: translateY(12px) scale(.98);
  transition: transform .25s ease;
}
.modal-bg.open .modal { transform: translateY(0) scale(1); }
.modal h3 {
  font-family: 'Comfortaa', system-ui, sans-serif; font-weight: 400;
  font-size: 28px; margin: 0 0 6px; letter-spacing: -0.01em;
}
.modal p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 22px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.field input, .field select {
  padding: 12px 14px;
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.modal-success {
  text-align: center;
  padding: 24px 0;
}
.modal-success .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-ink);
  display: grid; place-items: center;
  margin: 0 auto 18px;
  font-size: 28px;
}

/* ---------- Specialty tabs ---------- */
.spec-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px;
  background: var(--bg-2);
  border-radius: 999px;
  border: 1px solid var(--rule);
  margin-bottom: 32px;
  width: fit-content;
}
.spec-tab {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; color: var(--ink-2);
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.spec-tab.active { background: var(--ink); color: var(--bg); }

/* En mobile: scroll horizontal en lugar de wrap raro (rounded pill no se ve bien al wrappear) */
@media (max-width: 767px) {
  .spec-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-radius: 16px;
    scrollbar-width: none;
  }
  .spec-tabs::-webkit-scrollbar { display: none; }
  .spec-tab { flex-shrink: 0; }
}

/* ---------- Specialty detail (h3 + description) ---------- */
.spec-detail-title {
  font-family: 'Comfortaa', system-ui, sans-serif;
  font-size: clamp(24px, 5.5vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
  word-break: break-word;
}

.spec-detail-desc {
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 24px;
  max-width: 44ch;
  text-wrap: pretty;
}

/* ---------- Two-column with image ---------- */
.split-img {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  align-items: center;
  min-width: 0;
}
.split-img > * { min-width: 0; }
@media (min-width: 1000px) { .split-img { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split-img.reverse > :first-child { order: 1; }
@media (min-width: 1000px) {
  .split-img.reverse > :first-child { order: 2; }
}

/* ---------- WhatsApp floating ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0,0,0,0.15);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 2px 6px rgba(0,0,0,0.18);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
.wa-tooltip {
  position: absolute;
  right: 72px;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity .2s, transform .2s;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (max-width: 600px) {
  .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .wa-tooltip { display: none; }
}
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: initial; } }
.show-mobile { display: initial; }
@media (min-width: 900px) { .show-mobile { display: none; } }
