/* ==========================================================================
   MaxDental — sitio público
   Sistema visual derivado de la medición de la referencia (ver docs/fase-1)
   ========================================================================== */

/* ---------- Fuentes (autoalojadas, licencia OFL) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --white: #ffffff;
  --ivory: #f7f5f0;
  --warm: #f1efea;
  --line: #e6e4df;
  --line-strong: #d6d3cc;
  --ink: #141a33;
  --ink-2: #2a3048;
  --muted: #5b6174;
  --soft: #676c7c;

  --brand: #4f6af6;          /* Color primario del sistema MaxDental */
  --brand-ink: #405be7;
  --brand-tint: #f1f3fe;
  --brand-tint-2: #e4e9fd;

  --navy: #0d1430;
  --navy-2: #151d3d;
  --navy-3: #1d2750;
  --navy-line: rgba(255, 255, 255, 0.1);
  --on-navy: rgba(255, 255, 255, 0.94);
  --on-navy-2: rgba(255, 255, 255, 0.64);
  --on-navy-3: rgba(255, 255, 255, 0.56);

  --ok: #157a42;
  --ok-tint: #e7f5ec;
  --amber: #a85a06;
  --amber-tint: #fdf2e1;
  --red: #c4302b;
  --red-tint: #fdeceb;

  /* Tipografía */
  /* DM Sans autoalojada: proporciones neutras y compactas cercanas a Inter. */
  --f-head: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: Georgia, "Times New Roman", serif;

  --fs-display: clamp(38px, 4.6vw, 64px);
  --fs-h1: clamp(44px, 4.4vw, 64px);
  --fs-h2: clamp(36px, 3.8vw, 56px);
  --fs-h3: clamp(26px, 2.5vw, 38px);
  --fs-h4: clamp(20px, 1.7vw, 24px);
  --fs-lead: clamp(17px, 1.3vw, 19px);
  --fs-body: 17px;
  --fs-sm: 15px;
  --fs-xs: 13px;

  /* Retícula */
  --w-max: 1240px;
  --w-wide: 1056px;
  --w-mid: 992px;
  --w-text: 690px;
  --gutter: clamp(16px, 6.5vw, 100px);
  --sec: clamp(72px, 9vw, 112px);
  --gap: 20px;

  /* Forma */
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-xs: 10px;

  --shadow-card: 0 1px 2px rgba(20, 26, 51, 0.04), 0 8px 24px rgba(20, 26, 51, 0.06);
  --shadow-float: 0 2px 4px rgba(20, 26, 51, 0.05), 0 18px 40px rgba(20, 26, 51, 0.12);
  --shadow-wide: 0 30px 60px rgba(20, 26, 51, 0.07);

  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}

.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(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-xs);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark :focus-visible,
.footer :focus-visible { outline-color: #a9a5ff; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--w-max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(var(--w-wide) + var(--gutter) * 2); }
.container--mid { max-width: calc(var(--w-mid) + var(--gutter) * 2); }
.container--text { max-width: calc(var(--w-text) + var(--gutter) * 2); }

.section { padding-block: var(--sec); position: relative; }
.section--tight-top { padding-top: calc(var(--sec) * 0.5); }
.section--ivory { background: var(--ivory); }
.section--dark { background: var(--navy); color: var(--on-navy); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }

.head { text-align: center; max-width: 820px; margin: 0 auto clamp(40px, 5vw, 64px); }
.head--left { text-align: left; margin-inline: 0; }
.head h2 { font-size: var(--fs-h2); }
.head p { margin-top: 18px; color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; max-width: 600px; margin-inline: auto; }
.head--left p { margin-inline: 0; }
.section--dark .head p { color: var(--on-navy-2); }

.overline {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.overline__n { font-family: var(--f-num); font-weight: 700; letter-spacing: 0; font-size: 14px; color: var(--soft); }
.section--dark .overline { color: #aeaaff; }
.section--dark .overline__n { color: var(--on-navy-3); }

.muted { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: var(--r-xs);
  font-family: var(--f-body); font-weight: 500; font-size: 15.5px; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(47, 40, 179, .25); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink-2); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-dark:hover { border-color: #fff; }
.btn--sm { --h: 38px; padding: 0 16px; font-size: 14.5px; border-radius: 9px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 500; font-size: var(--fs-sm); text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow .icon { width: 15px; height: 15px; }

/* ---------- Chips de estado ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; line-height: 1; white-space: nowrap;
  background: var(--warm); color: var(--ink-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.chip--plain::before { display: none; }
.chip--ok { background: var(--ok-tint); color: var(--ok); }
.chip--amber { background: var(--amber-tint); color: var(--amber); }
.chip--red { background: var(--red-tint); color: var(--red); }
.chip--brand { background: var(--brand-tint); color: var(--brand-ink); }
.chip--neutral { background: #eef0f4; color: #4a5068; }
.section--dark .chip { background: rgba(255,255,255,.08); color: var(--on-navy); }
.section--dark .chip--ok { background: rgba(48, 196, 120, .14); color: #7fe0ad; }
.section--dark .chip--amber { background: rgba(245, 166, 35, .14); color: #f5c06b; }
.section--dark .chip--brand { background: rgba(140, 134, 255, .16); color: #bdb9ff; }

/* ---------- Capturas (espacios para imágenes reales) ---------- */
.shot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  aspect-ratio: var(--ar, 16 / 10);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, top left);
}
.shot--flush { border-radius: 0; border: 0; box-shadow: none; }
.section--dark .shot { border-color: var(--navy-line); background: var(--navy-2); box-shadow: 0 30px 80px rgba(0,0,0,.35); }

/* Marcador de desarrollo: solo visible si la imagen no existe */
.shot__ph { display: none; }
.shot.is-missing img { visibility: hidden; }
.shot.is-missing .shot__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; padding: 16px;
  text-align: center; font-size: 13px; line-height: 1.4; color: #6b4a00;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 196, 0, .08) 0 12px, rgba(255, 196, 0, .16) 12px 24px),
    #fffbea;
  border: 2px dashed #e0b100; border-radius: inherit;
}
.shot__ph b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 600; color: #4a3300; word-break: break-all; }
.shot__ph span { max-width: 36ch; }
.shot__ph em { font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #a37400; }
.section--dark .shot.is-missing .shot__ph { background: repeating-linear-gradient(-45deg, rgba(255, 196, 0, .06) 0 12px, rgba(255, 196, 0, .12) 12px 24px), #1d2340; color: #f3d98a; }
.section--dark .shot__ph b { color: #ffe9a8; }

/* Marco cálido que aloja una captura (patrón "media card" de la referencia) */
.stage {
  position: relative;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(16px, 2.6vw, 36px);
}
.stage--warm { background: var(--warm); }

/* Microtarjeta flotante */
.micro {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #ebe9e4; border-radius: var(--r-sm);
  padding: 12px 14px; box-shadow: var(--shadow-float);
  font-size: 13.5px; line-height: 1.35; min-width: 0;
}
.micro__ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--brand-tint); color: var(--brand);
}
.micro__ico--amber { background: var(--amber-tint); color: var(--amber); }
.micro__ico--ok { background: var(--ok-tint); color: var(--ok); }
.micro__label { display: block; font-size: 11.5px; color: var(--soft); letter-spacing: .02em; }
.micro__value { display: block; font-weight: 500; color: var(--ink); }
.micro__meta { margin-left: auto; padding-left: 8px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid #dcdad5;
}
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__word { font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.brand__word span { color: var(--brand); }

.nav__links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 14px; border-radius: 8px;
  font-size: 14.5px; color: #4b5064; text-decoration: none;
  background: none; border: 0; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ink); background: rgba(20, 26, 51, .045); }
.nav__link .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav__login { font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 0 12px; height: 38px; display: inline-flex; align-items: center; border-radius: 8px; }
.nav__login:hover { background: rgba(20, 26, 51, .045); }
.nav__burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }

.nav__item { position: relative; }
.menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  translate: -50% 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(20, 26, 51, .14);
  padding: 10px; min-width: 300px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.menu--mega { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 620px; padding: 12px; }
.menu a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 12px; text-decoration: none;
}
.menu a:hover, .menu a:focus-visible { background: var(--ivory); }
.menu__ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); flex: none; }
.menu__t { display: block; font-weight: 500; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.menu__d { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

/* Menú móvil */
.mnav {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: #fff; overflow-y: auto; padding: 16px var(--gutter) 32px;
  display: none;
}
.mnav.is-open { display: block; }
.mnav__group { border-bottom: 1px solid var(--line); padding: 12px 0; }
.mnav__title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); margin: 6px 0 6px; }
.mnav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 17px; color: var(--ink); }
.mnav__cta { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- 1 Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.hero h1 { font-size: var(--fs-h1); letter-spacing: -0.055em; line-height: 1.01; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero__lead { margin-top: 22px; font-size: var(--fs-lead); color: var(--muted); max-width: 470px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.proofs li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.proofs .icon { width: 16px; height: 16px; color: var(--ok); stroke-width: 2; }

.hero__visual { position: relative; padding: 0 0 28px 28px; }
.hero__visual .stage { padding: clamp(14px, 1.8vw, 24px); }
.hero__visual .micro { position: absolute; z-index: 2; }
.hero__visual .micro--a { top: 8%; left: -6px; }
.hero__visual .micro--b { bottom: 0; left: 10%; }
.hero__visual .micro--c { top: 40%; right: -18px; }

/* ---------- 2 Franja de capacidades ---------- */
.strip { padding-block: 0 var(--sec); }
.strip__panel {
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 44px) clamp(20px, 3vw, 44px);
  text-align: center;
}
.strip__panel > p { font-family: var(--f-head); font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.01em; color: var(--ink-2); }
.caps { margin-top: 26px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.caps a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 10px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
  text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.caps a:hover { border-color: var(--brand); transform: translateY(-2px); }
.caps__ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.caps__t { font-weight: 500; font-size: 15px; }
.caps__d { font-size: 12.5px; color: var(--soft); line-height: 1.35; }

/* ---------- Highlights: evolución y migración ---------- */
.product-highlights { padding-top: clamp(64px, 7vw, 92px); }
.product-highlights__head { max-width: 760px; margin-inline: auto; text-align: center; }
.product-highlights__head h2 { max-width: 720px; margin-inline: auto; }
.product-highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(32px, 4vw, 52px);
}
.product-highlight {
  position: relative;
  min-height: 510px;
  padding: clamp(28px, 3.4vw, 46px);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-highlight::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  bottom: -120px;
  border-radius: 50%;
  pointer-events: none;
}
.product-highlight--growth {
  color: var(--on-navy-2);
  background: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
}
.product-highlight--growth::after { background: rgba(78,105,244,.28); }
.product-highlight--migration {
  color: var(--ink-2);
  background: linear-gradient(145deg, var(--brand-tint), #fff 72%);
  border: 1px solid var(--brand-tint-2);
}
.product-highlight--migration::after { background: rgba(78,105,244,.09); }
.product-highlight__top { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 4vw, 54px); }
.product-highlight__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(78,105,244,.12);
  color: var(--brand);
  flex: none;
}
.product-highlight__icon .icon { width: 22px; height: 22px; }
.product-highlight--growth .product-highlight__icon { background: rgba(255,255,255,.1); color: #bdb9ff; }
.product-highlight__label { font-size: 12.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.product-highlight--growth .product-highlight__label { color: var(--on-navy-3); }
.product-highlight h3 { font-size: clamp(31px, 3.2vw, 46px); line-height: 1.04; max-width: 12ch; }
.product-highlight--growth h3 { color: #fff; }
.product-highlight > p:not(.product-highlight__note):not(.product-highlight__warning) { margin-top: 20px; max-width: 48ch; font-size: 16.5px; line-height: 1.65; }
.product-highlight blockquote {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  padding-top: 36px;
  max-width: 24ch;
  color: #fff;
  font-family: var(--f-head);
  font-size: clamp(21px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.025em;
}
.product-highlight__note { position: relative; z-index: 1; margin-top: 18px; font-size: 13px; line-height: 1.55; color: var(--on-navy-3); max-width: 52ch; }
.product-highlight__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.product-highlight__badge { padding: 7px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.product-highlight__list { position: relative; z-index: 1; display: grid; gap: 14px; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--brand-tint-2); }
.product-highlight__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; }
.product-highlight__list .icon { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.product-highlight__warning {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #eadfc8;
  border-radius: 14px;
  background: #fffaf0;
  color: #675536;
  font-size: 12.5px;
  line-height: 1.55;
}
.product-highlight__warning strong { color: #4d402a; }

/* ---------- 3 Problema ---------- */
.problem__intro { max-width: var(--w-text); margin: 0 auto; }
.problem__intro h2 { font-size: var(--fs-h2); }
.dropcap { margin-top: 28px; font-size: 18px; color: var(--muted); line-height: 1.7; }
.dropcap::first-letter {
  float: left; font-family: var(--f-num); font-size: 86px; line-height: .8;
  padding: 8px 12px 0 0; color: var(--ink); font-weight: 700;
}
.dropcap + p { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.problem__lines { margin-top: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 18px; }

.converge { position: relative; margin-top: clamp(56px, 7vw, 96px); overflow-x: clip; overflow-y: visible; padding-block: 8px; }
.converge__grid {
  display: grid; grid-template-columns: 1fr minmax(0, 1.5fr) 1fr; gap: clamp(20px, 3vw, 48px);
  align-items: center; position: relative; z-index: 1;
}
.converge__col { display: grid; gap: 18px; }
.converge__col--l { justify-items: end; }
.converge__col--r { justify-items: start; }
.frag {
  width: min(100%, 260px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; box-shadow: var(--shadow-card);
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.frag__top { display: flex; align-items: center; gap: 10px; }
.frag__ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--warm); color: var(--ink-2); }
.frag__t { font-weight: 500; font-size: 14.5px; }
.frag__src { margin-left: auto; font-size: 11.5px; color: var(--soft); }
.frag p { margin-top: 10px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.converge__center { position: relative; }
.converge__center .stage { padding: 14px; }
.converge__label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; font-size: 14px; color: var(--muted);
}
.converge__label strong { color: var(--ink); font-weight: 500; }
.converge__svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.converge__svg path { fill: none; stroke: #cfccc4; stroke-width: 1.4; stroke-dasharray: 4 5; }
.converge__svg .dot { fill: var(--brand); }

/* Estado inicial: fragmentos dispersos; .is-in los acerca */
.js .converge:not(.is-in) .frag { opacity: 0; }
.js .converge:not(.is-in) .converge__col--l .frag:nth-child(1) { transform: translate(-40px, -14px) rotate(-3deg); }
.js .converge:not(.is-in) .converge__col--l .frag:nth-child(2) { transform: translate(-60px, 8px) rotate(2deg); }
.js .converge:not(.is-in) .converge__col--l .frag:nth-child(3) { transform: translate(-30px, 18px) rotate(-2deg); }
.js .converge:not(.is-in) .converge__col--r .frag:nth-child(1) { transform: translate(44px, -10px) rotate(3deg); }
.js .converge:not(.is-in) .converge__col--r .frag:nth-child(2) { transform: translate(58px, 14px) rotate(-2deg); }
.js .converge.is-in .frag { opacity: 1; transform: none; }
.js .converge.is-in .frag:nth-child(2) { transition-delay: .08s; }
.js .converge.is-in .frag:nth-child(3) { transition-delay: .16s; }

/* ---------- 4 Odontograma (oscuro) ---------- */
.odonto .head h2 { font-size: clamp(32px, 3.6vw, 54px); }
.tabs { display: flex; gap: 4px; padding: 5px; border-radius: 14px; background: var(--warm); width: max-content; max-width: 100%; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 0; background: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 26, 51, .1); }
.tab__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.section--dark .tabs { background: rgba(255,255,255,.06); border: 1px solid var(--navy-line); }
.section--dark .tab { color: var(--on-navy-2); }
.section--dark .tab:hover { color: #fff; }
.section--dark .tab[aria-selected="true"] { background: rgba(255,255,255,.12); color: #fff; box-shadow: none; }

.tab--diag .tab__dot { color: #9aa3bd; }
.tab--plan .tab__dot { color: #8c86ff; }
.tab--prog .tab__dot { color: #f5b04a; }
.tab--done .tab__dot { color: #4fd18f; }

.odonto__panels { margin-top: clamp(28px, 3.5vw, 44px); }
.odonto__panel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 2.6vw, 32px); align-items: start; }
.odonto__panel > .shot { width: 100%; }
.odonto__panel[hidden] { display: none; }
.odonto__panel.is-entering { animation: fadeUp .45s var(--ease) both; }
.record {
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--r-lg);
  padding: 26px; display: flex; flex-direction: column;
}
.record__title { font-family: var(--f-head); font-size: 22px; letter-spacing: -0.02em; color: #fff; line-height: 1.25; }
.record__text { margin-top: 10px; font-size: 15px; color: var(--on-navy-2); line-height: 1.6; }
.record dl { margin: 22px 0 0; display: grid; gap: 0; border-top: 1px solid var(--navy-line); }
.record dl > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--navy-line); }
.record dt { font-size: 13px; color: var(--on-navy-3); }
.record dd { margin: 0; font-size: 14px; color: var(--on-navy); text-align: right; font-weight: 500; }
.record__foot { margin-top: auto; padding-top: 20px; font-size: 12.5px; color: var(--on-navy-3); }

.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 36px; }
.legend li { display: flex; gap: 10px; max-width: 220px; font-size: 13.5px; color: var(--on-navy-2); line-height: 1.45; }
.legend b { display: block; color: #fff; font-weight: 500; font-size: 14px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; }

/* ---------- 5 Procedimientos (bento) ---------- */
.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.cell {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px); overflow: hidden; min-height: 320px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.cell:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.cell h3 { font-size: var(--fs-h4); line-height: 1.25; display: flex; align-items: center; gap: 10px; }
.cell h3 .icon { color: var(--brand); width: 20px; height: 20px; }
.cell__d { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; max-width: 44ch; }
.cell__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cell__tags li { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink-2); line-height: 1.2; }
.cell__media { margin-top: auto; padding-top: 22px; }
.cell .shot { box-shadow: none; }
.cell__note { margin-top: 10px; font-size: 12px; color: var(--soft); }

.c-6 { grid-column: span 6; }
.c-3 { grid-column: span 3; }
.c-4 { grid-column: span 4; }
.c-8 { grid-column: span 8; }
.c-row2 { grid-row: span 2; }
.c-3 .cell__media {
  margin: 24px calc(-1 * clamp(22px, 2.4vw, 32px)) calc(-1 * clamp(22px, 2.4vw, 32px));
  padding-top: 0;
}
.c-3 .shot { border-radius: 0; border-width: 1px 0 0; }
.c-4 .cell__media { margin-top: 24px; padding-top: 0; }
.cell--split { display: flex; flex-direction: column; }
.cell--split .cell__media { margin-top: 24px; padding-top: 0; width: 100%; }
.bento__foot { margin-top: 28px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- 6 Flujo 01–05 ---------- */
.flow { position: relative; max-width: var(--w-wide); margin: 0 auto; }
.step {
  display: grid; grid-template-columns: 64px minmax(0, 0.95fr) minmax(0, 1.1fr);
  gap: 0 clamp(24px, 3.4vw, 56px); position: relative;
  padding-bottom: clamp(72px, 8vw, 112px);
}
.step:last-child { padding-bottom: 0; }
.step__rail { position: relative; display: flex; flex-direction: column; align-items: center; }
.step__n { font-family: var(--f-num); font-weight: 700; font-size: 22px; line-height: 1; color: var(--ink); padding-top: 10px; }
.step__line { flex: 1; width: 2px; margin-top: 14px; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.step__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step:last-child .step__line { display: none; }
.step h3 { font-size: var(--fs-h3); line-height: 1.18; }
.step__text { margin-top: 16px; color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 46ch; }
.step__benefit {
  margin-top: 22px; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-sm); background: var(--brand-tint);
  font-size: 14.5px; color: var(--brand-ink); line-height: 1.5; max-width: 46ch;
}
.step__benefit .icon { color: var(--brand); margin-top: 1px; }
.step__benefit b { font-weight: 600; }
.step .stage { align-self: start; }
.flow__foot { margin-top: clamp(48px, 6vw, 72px); text-align: center; }

/* ---------- 7 Expediente ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 2.2vw, 28px); display: flex; flex-direction: column; min-width: 0;
}
.tile--warm { background: var(--warm); }
.tile--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.tile--brand h3, .tile--brand .tile__k { color: #fff; }
.tile--brand p { color: rgba(255,255,255,.78); }
.tile--brand .fields li { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
.tile--brand .fields li span { color: rgba(255,255,255,.62); }
.tile--brand .fields { margin-top: auto; padding-top: 24px; }
.tile--brand .fields li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.tile__k { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 500; }
.tile__k .icon { width: 16px; height: 16px; }
.tile h3 { font-size: 21px; margin-top: 10px; line-height: 1.25; }
.tile p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.tile .shot { margin-top: auto; box-shadow: none; }
.tile__media { margin-top: 18px; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.fields { margin-top: 14px; display: grid; }
.fields li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.fields li span { color: var(--soft); font-size: 13px; text-align: right; }

.m-4 { grid-column: span 4; }
.m-5 { grid-column: span 5; }
.m-7 { grid-column: span 7; }
.m-8 { grid-column: span 8; }
.m-3 { grid-column: span 3; }
.m-6 { grid-column: span 6; }
.m-r2 { grid-row: span 2; }

/* ---------- 8 Agenda ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
.split h2 { font-size: var(--fs-h2); }
#cobros h2 { font-size: clamp(30px, 2.9vw, 42px); }
.split__lead { margin-top: 18px; color: var(--muted); font-size: var(--fs-lead); line-height: 1.65; }

.agenda__shot {
  width: min(100%, 1120px);
  margin: clamp(40px, 5vw, 64px) auto 0;
}
.agenda__shot .shot {
  --ar: 1574 / 984;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 64px rgba(22, 27, 52, .10);
}
.facts { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fact { padding: 24px clamp(14px, 2vw, 28px) 0 0; border-right: 1px solid var(--line); margin-right: clamp(14px, 2vw, 28px); }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact__n { font-family: var(--f-num); font-weight: 700; font-size: 14px; color: var(--soft); }
.fact h3 { font-size: 19px; margin-top: 8px; line-height: 1.3; }
.fact p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.statuses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.roles { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); align-items: center; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3.4vw, 48px); }
.roles h3 { font-size: var(--fs-h4); line-height: 1.25; }
.roles p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.perm { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.perm li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; padding: 7px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.perm .icon { width: 14px; height: 14px; color: var(--ok); stroke-width: 2; }

/* ---------- 9 Cobros ---------- */
.ledger { margin-top: 28px; display: grid; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger .icon { color: var(--brand); margin-top: 2px; }
.ledger b { display: block; font-weight: 500; font-size: 15.5px; }
.ledger span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.paystates { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fin__stack { position: relative; padding: 0 0 40px 0; }
.fin__stack .shot--overlay { position: absolute; width: 52%; right: -12px; bottom: 0; box-shadow: var(--shadow-float); }

/* ---------- 10–11 Gastos + Laboratorio ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.panel {
  background: var(--warm); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column;
}
.panel__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 500; }
.panel h3 { margin-top: 12px; font-size: clamp(24px, 2.3vw, 30px); line-height: 1.2; }
.panel > p { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 48ch; }
.sheet { margin-top: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 18px; }
.sheet li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #efede8; font-size: 14px; }
.sheet li:last-child { border-bottom: 0; }
.sheet li > span:first-child { color: var(--soft); font-size: 13px; }
.sheet li > span:last-child { color: var(--ink-2); text-align: right; }
.panel .shot { margin-top: auto; }
.panel .sheet { margin-bottom: 22px; }
.panel__link { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.panel__link .icon { color: var(--brand); width: 18px; height: 18px; margin-top: 1px; }

/* ---------- 12 Estadísticas (oscuro) ---------- */
.stats__shot { position: relative; }
.stats__grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy-line); }
.kpi { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--navy-line); }
.kpi:nth-child(odd) { border-right: 1px solid var(--navy-line); }
.kpi:nth-child(even) { padding-left: 20px; }
.kpi b { display: block; font-family: var(--f-head); font-size: 20px; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.kpi span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--on-navy-2); line-height: 1.45; }
.charts h3 { font-size: var(--fs-h4); }
.charts p { margin-top: 10px; color: var(--on-navy-2); font-size: 15.5px; }
.charts ul { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.charts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--on-navy); line-height: 1.4; }
.charts li .icon { width: 16px; height: 16px; color: #aeaaff; margin-top: 2px; }
.modes { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 13 Operación inteligente ---------- */
.smart {
  background:
    radial-gradient(circle at 12% 8%, rgba(79,106,246,.1), transparent 30%),
    linear-gradient(180deg, #f8f9ff 0%, #fff 78%);
}
.smart__head { max-width: 860px; }
.smart__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.smart-card {
  position: relative;
  min-height: 300px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 40px rgba(21,30,68,.055);
  overflow: hidden;
}
.smart-card--feature {
  grid-column: span 3;
  min-height: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1.05fr) minmax(280px, .85fr);
  column-gap: 20px;
  align-items: start;
}
.smart-card--feature .smart-card__ico { grid-row: 1 / span 4; }
.smart-card--feature .smart-card__k,
.smart-card--feature h3,
.smart-card--feature > p { grid-column: 2; }
.smart-card--feature .smart-card__list { grid-column: 3; grid-row: 1 / span 4; align-self: center; margin-top: 0; }
.smart-card__ico {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-tint);
}
.smart-card__ico .icon { width: 22px; height: 22px; }
.smart-card__k {
  margin-top: 22px;
  color: var(--brand-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.smart-card--feature .smart-card__k { margin-top: 2px; }
.smart-card h3 { margin-top: 8px; font-size: clamp(21px, 2vw, 28px); line-height: 1.2; }
.smart-card > p:last-of-type { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.smart-card--voice {
  grid-column: span 3;
  min-height: 590px;
  padding: clamp(34px, 4.5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(38px, 6vw, 88px);
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(79,106,246,.34), transparent 38%),
    var(--navy);
  border-color: var(--navy);
  box-shadow: 0 28px 80px rgba(13,20,48,.18);
}
.voice-copy__label { display: flex; align-items: center; gap: 12px; }
.voice-copy__label .smart-card__ico { background: rgba(255,255,255,.1); color: #bfc9ff; }
.voice-copy__label > span:last-child { display: grid; gap: 2px; color: var(--on-navy-2); font-size: 13px; }
.voice-copy__label b { color: #bfc9ff; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.smart-card--voice h3 { margin-top: 28px; max-width: 12ch; color: #fff; font-size: clamp(36px, 4vw, 58px); line-height: 1.04; letter-spacing: -.035em; }
.smart-card--voice .voice-copy > p { margin-top: 22px; max-width: 58ch; color: var(--on-navy); font-size: 16px; line-height: 1.65; }
.smart-card--voice .voice-copy .voice-copy__detail { margin-top: 12px; color: var(--on-navy-2); font-size: 14px; }
.smart-card--voice .smart-card__list { margin-top: 30px; grid-template-columns: 1fr; gap: 14px; }
.smart-card--voice .smart-card__list li { color: var(--on-navy); }
.smart-card--voice .smart-card__list li > span { display: grid; gap: 2px; }
.smart-card--voice .smart-card__list b { color: #fff; font-size: 14px; }
.smart-card--voice .smart-card__list .icon { color: #7fe0ad; }
.voice-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: calc(var(--r-xl) - 4px);
  background:
    radial-gradient(circle at 35% 50%, rgba(79,106,246,.2), transparent 42%),
    rgba(255,255,255,.045);
  overflow: hidden;
}
.voice-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.voice-visual img { position: relative; z-index: 1; width: 112%; max-width: none; height: auto; filter: drop-shadow(0 18px 32px rgba(31,72,197,.28)); }
.voice-visual__chip { position: absolute; z-index: 2; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(14,22,52,.64); backdrop-filter: blur(12px); color: var(--on-navy); font-size: 12px; font-weight: 600; }
.voice-visual__chip i { width: 8px; height: 8px; border-radius: 50%; background: #ff5c6c; box-shadow: 0 0 0 5px rgba(255,92,108,.14); }
.voice-visual__notes { position: absolute; z-index: 2; right: 18px; bottom: 18px; display: grid; gap: 7px; min-width: 190px; }
.voice-visual__notes span { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(14,22,52,.68); backdrop-filter: blur(12px); color: var(--on-navy); font-size: 11px; }
.voice-visual__notes i { width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
.voice-visual__notes b { color: #fff; font-size: 10px; font-weight: 500; }
.smart-card__list { display: grid; gap: 12px; margin-top: 22px; }
.smart-card__list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.smart-card__list .icon { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 2px; }
.smart__promise {
  margin-top: var(--gap);
  padding: 24px clamp(24px, 3vw, 34px);
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: var(--r-xl);
  color: #fff;
  background: var(--navy);
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.smart__promise-mark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #bfc9ff; flex: none; }
.smart__promise-mark .icon { width: 21px; height: 21px; }
.smart__promise b { display: block; font-family: var(--f-head); font-size: 19px; }
.smart__promise span { display: block; margin-top: 5px; color: var(--on-navy-2); font-size: 14.5px; line-height: 1.55; }

/* ---------- 14 Seguridad ---------- */
.diagram {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1.15fr auto 1.25fr;
  align-items: center; gap: 0;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 48px);
}
.node { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; text-align: center; box-shadow: var(--shadow-card); }
.node__ico { width: 44px; height: 44px; margin: 0 auto; border-radius: 12px; display: grid; place-items: center; background: var(--warm); color: var(--ink-2); }
.node b { display: block; margin-top: 12px; font-weight: 500; font-size: 15px; }
.node span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.node--core { background: var(--navy); border-color: var(--navy); color: #fff; }
.node--core .node__ico { background: rgba(255,255,255,.1); color: #fff; }
.node--core span { color: var(--on-navy-2); }
.node--core .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 10px; }
.node--core .chips i { font-style: normal; font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--on-navy); }
.node-stack { display: grid; gap: 12px; }
.node-stack .node { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; }
.node-stack .node__ico { margin: 0; width: 38px; height: 38px; }
.node-stack .node b { margin-top: 0; }
.wire { width: clamp(20px, 3vw, 44px); height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px); position: relative; }
.wire--lock::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; translate: -50% -50%;
  border-radius: 50%; background: var(--ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid #cfe9d9;
}
.commit { margin-top: clamp(40px, 5vw, 64px); max-width: 900px; margin-inline: auto; }
.commit__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 6vw, 88px); padding: 32px 0; border-bottom: 1px solid var(--line); }
.commit__row:first-child { padding-top: 0; }
.commit__row:last-child { border-bottom: 0; }
.commit__row h3 { font-size: 21px; line-height: 1.3; }
.commit__row p { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.commit__row p + p { margin-top: 10px; }

/* ---------- 15 Piloto ---------- */
.pilot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.pilot li { background: var(--brand-tint); border-radius: var(--r-md); padding: 28px 22px; text-align: center; }
.pilot__ico { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); }
.pilot h3 { margin-top: 16px; font-size: 18px; line-height: 1.3; }
.pilot p { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.pilot__note { margin-top: 22px; text-align: center; font-size: 13px; color: var(--soft); }

/* ---------- 16 Precio ---------- */
.price {
  max-width: 680px; margin: 0 auto;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 52px); text-align: center;
}
.price h3 { font-size: clamp(22px, 2vw, 28px); }
.price__sub { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.switch { display: inline-flex; gap: 4px; padding: 4px; margin-top: 26px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.switch button { height: 38px; padding: 0 16px; border-radius: 9px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.switch small { font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); font-weight: 600; }
.switch button[aria-pressed="true"] small { background: rgba(255,255,255,.16); color: #fff; }
.amount { margin-top: 26px; display: flex; align-items: flex-start; justify-content: center; gap: 6px; font-family: var(--f-head); color: var(--ink); }
.amount__cur { font-size: 20px; margin-top: 12px; color: var(--soft); }
.amount__v { font-size: clamp(64px, 7vw, 88px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; }
.amount__per { align-self: flex-end; margin-bottom: 10px; font-size: 16px; color: var(--soft); font-family: var(--f-body); }
.price__eq { margin-top: 10px; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.incl { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; text-align: left; border-top: 1px solid var(--line); padding-top: 24px; }
.incl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.incl .icon { width: 17px; height: 17px; color: var(--ok); stroke-width: 2; margin-top: 1px; }
.price .btn { margin-top: 30px; }
.price__fine { margin-top: 14px; font-size: 13px; color: var(--soft); }

/* ---------- 16 FAQ ---------- */
.faq h2 { font-size: var(--fs-h2); margin-bottom: clamp(28px, 4vw, 44px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-weight: 500; font-size: 16.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__a { padding: 0 48px 26px 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.faq__a p + p { margin-top: 10px; }

/* ---------- 17 CTA final ---------- */
.final { text-align: center; padding-block: clamp(96px, 12vw, 160px); }
.final h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; }
.final p { margin-top: 18px; color: var(--muted); font-size: var(--fs-lead); }
.final__cta { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- 18 Footer ---------- */
.footer {
  background: var(--navy); color: var(--on-navy-2);
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: clamp(56px, 6vw, 72px) 0 32px;
}
.footer__top { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.footer__about p { margin-top: 16px; font-size: 14.5px; line-height: 1.6; max-width: 32ch; }
.footer .brand { color: #fff; }
.footer .brand__word span { color: #aeaaff; }
.footer h2 { font-family: var(--f-body); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer li + li { margin-top: 12px; }
.footer a { color: var(--on-navy-2); text-decoration: none; font-size: 14.5px; }
.footer a:hover { color: #fff; }
.footer__mid { margin-top: clamp(56px, 7vw, 96px); display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.footer__mark { width: clamp(96px, 11vw, 150px); height: auto; opacity: .95; }
.footer__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--on-navy-3); }
.footer__bottom .footer__credit a { color: inherit; font-size: inherit; }

/* ---------- Diálogo de creación ---------- */
.dialog {
  width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink);
  box-shadow: 0 40px 120px rgba(13, 20, 48, .35);
}
.dialog::backdrop { background: rgba(13, 20, 48, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dialog[open] { animation: pop .28s var(--ease); }
.dialog__in { padding: clamp(24px, 4vw, 36px); position: relative; }
.dialog__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--ivory); display: grid; place-items: center; cursor: pointer; }
.dialog h2 { font-size: 28px; padding-right: 40px; }
.dialog__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.form { margin-top: 24px; display: grid; gap: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field__hint { font-size: 12.5px; color: var(--soft); margin-top: 6px; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.input[aria-invalid="true"] { border-color: var(--red); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--red-tint); }
.affix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.affix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.affix.is-invalid { border-color: var(--red); }
.affix .input { border: 0; border-radius: 0; box-shadow: none !important; min-width: 0; }
.affix__s { display: flex; align-items: center; padding: 0 14px; background: var(--ivory); color: var(--muted); font-size: 15px; border-left: 1px solid var(--line); white-space: nowrap; }
.field__err { color: var(--red); font-size: 13px; margin-top: 6px; display: none; }
.field__err.is-shown { display: block; }
.form__alert { display: none; padding: 12px 14px; border-radius: 10px; font-size: 14px; line-height: 1.5; background: var(--red-tint); color: #8f201c; }
.form__alert.is-shown { display: block; }
.form__fine { font-size: 12.5px; color: var(--soft); text-align: center; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }
.success { text-align: center; padding: 8px 0 4px; }
.success__ico { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--ok-tint); color: var(--ok); }
.success__ico .icon { width: 26px; height: 26px; stroke-width: 2; }
.success h2 { margin-top: 18px; padding-right: 0; }
.success p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.success .btn { margin-top: 22px; }

/* ---------- Animación de entrada ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="2"] { transition-delay: .08s; }
.js [data-reveal="3"] { transition-delay: .16s; }
.js [data-reveal="4"] { transition-delay: .24s; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .converge .frag { opacity: 1 !important; transform: none !important; }
  .step__line i { transform: scaleY(1) !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links { gap: 0; }
  .nav__link { padding: 0 10px; }
  .hero__visual .micro--c { right: -6px; }
  .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 1060px) {
  /* 1024: tablet horizontal */
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__actions { margin-left: auto; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .hero__visual { max-width: 860px; }

  .odonto__panel { grid-template-columns: 1fr; }
  .record dl { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }

  .c-6, .c-8, .c-4 { grid-column: span 12; }
  .c-3 { grid-column: span 6; }
  .c-4 { display: flex; flex-direction: column; }
  .c-4 .cell__media { margin-top: 24px; padding-top: 0; }
  .c-row2 { grid-row: auto; }
  .cell--split { grid-template-columns: 1fr; }

  .mosaic .m-5, .mosaic .m-7, .mosaic .m-8, .mosaic .m-3 { grid-column: span 6; }
  .mosaic .m-4 { grid-column: span 4; }
  .mosaic .tile--brand { grid-column: span 12; }
  .tile--brand .fields { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .mosaic .m-r2 { grid-row: auto; }
  .mosaic .m-wide-t { grid-column: span 12; }

  .diagram { grid-template-columns: 1fr; justify-items: stretch; gap: 0; }
  .wire { width: 2px; height: 28px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 11px); }
  .node-stack { grid-template-columns: 1fr 1fr; }

  .pilot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .smart__grid { grid-template-columns: 1fr 1fr; }
  .smart-card--feature { grid-column: 1 / -1; }
  .smart-card--voice { grid-column: 1 / -1; grid-template-columns: 1fr; min-height: 0; }
  .voice-visual { min-height: 350px; }
  .converge__grid { grid-template-columns: 1fr 1fr; }
  .converge__center { grid-column: 1 / -1; grid-row: 1; }
  .converge__col { justify-items: stretch; }
  .frag { width: 100%; }
  .converge__svg { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(2) { border-right: 0; margin-right: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}

@media (max-width: 860px) {
  /* 768: tablet vertical */
  .product-highlights__grid { grid-template-columns: 1fr; }
  .product-highlight { min-height: 0; }
  .product-highlight blockquote, .product-highlight__list { margin-top: 36px; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 2; }
  .stats__grid { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .commit__row { grid-template-columns: 1fr; gap: 12px; }


  .step { grid-template-columns: 44px minmax(0, 1fr); }
  .step .stage { grid-column: 2; margin-top: 28px; }
  .step__n { font-size: 19px; }

  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  /* 390 / 360: móvil */
  :root { --fs-body: 16px; --gap: 14px; --nav-h: 60px; }
  .nav .btn--sm { padding: 0 12px; font-size: 14px; }
  .brand__word { font-size: 18px; }

  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__visual { padding: 0; }
  .hero__visual .micro { position: static; box-shadow: var(--shadow-card); }
  .hero__micros { display: grid; gap: 10px; margin-top: 12px; }

  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .caps li:last-child { grid-column: 1 / -1; }

  .converge__grid { grid-template-columns: 1fr; }
  .js .converge .frag { transform: translateY(14px) !important; }
  .js .converge.is-in .frag { transform: none !important; }

  .tabs { width: 100%; justify-content: flex-start; }
  .tab { padding: 0 14px; }
  .record { padding: 20px; }
  .record dl { grid-template-columns: 1fr; }
  .legend { justify-content: flex-start; }
  .legend li { max-width: none; }

  .c-3, .c-4 { grid-column: span 12; }
  .c-4 { display: flex; }
  .c-4 .cell__media { margin-top: 24px; padding-top: 0; }
  .cell { min-height: 0; }
  .tile--brand .fields { grid-template-columns: 1fr; }

  .mosaic .m-4, .mosaic .m-5, .mosaic .m-7, .mosaic .m-8, .mosaic .m-3, .mosaic .m-6 { grid-column: span 12; }
  .c-3 .cell__media { margin-inline: calc(-1 * clamp(22px, 2.4vw, 32px)); }

  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; margin-right: 0; padding-right: 0; }
  .fact + .fact { border-top: 1px solid var(--line); margin-top: 24px; }
  .fin__stack { padding-bottom: 0; }
  .fin__stack .shot--overlay { position: relative; width: 100%; right: auto; margin-top: 12px; }

  .kpis { grid-template-columns: 1fr; }
  .kpi:nth-child(odd) { border-right: 0; }
  .kpi:nth-child(even) { padding-left: 0; }
  .charts ul { grid-template-columns: 1fr; }

  .node-stack { grid-template-columns: 1fr; }
  .pilot { grid-template-columns: 1fr; }
  .smart__grid { grid-template-columns: 1fr; }
  .smart-card--feature { grid-column: auto; display: block; }
  .smart-card--feature .smart-card__k { margin-top: 22px; }
  .smart-card--feature .smart-card__list { margin-top: 22px; }
  .smart-card--voice { grid-column: auto; padding: 28px 22px; gap: 32px; }
  .smart-card--voice h3 { font-size: 38px; }
  .voice-visual { min-height: 270px; }
  .voice-visual img { width: 140%; }
  .voice-visual__notes { position: relative; right: auto; bottom: auto; z-index: 2; width: calc(100% - 28px); min-width: 0; margin: 160px 14px 14px; }
  .smart__promise { align-items: flex-start; }
  .incl { grid-template-columns: 1fr; }
  .faq__a { padding-right: 0; }
  .final__cta .btn { flex: 1 1 100%; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__cta { width: 100%; }
  .footer__cta .btn { flex: 1; }
  .affix__s { padding: 0 10px; font-size: 14px; }
}
