:root {
  --mk-bg: #ffffff;
  --mk-bg-soft: #f8fafc;
  --mk-text: #172033;
  --mk-muted: #64748b;
  --mk-border: #e2e8f0;
  --mk-primary: #d94f52;
  --mk-primary-dark: #b93d40;
  --mk-dark: #111827;
  --mk-radius: 18px;
  --mk-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --mk-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--mk-text);
  background: var(--mk-bg);
  font-family: var(--mk-font);
}

a {
  color: inherit;
}

.mk-main {
  min-height: 55vh;
}

/* Header */

.mk-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(14px);
}

.mk-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.mk-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mk-logo__mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--mk-primary), #fb7185);
  border-radius: 11px;
  box-shadow: 0 10px 25px rgba(217, 79, 82, 0.25);
}

.mk-logo__text {
  font-size: 1.16rem;
}

.mk-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.mk-nav a {
  color: var(--mk-muted);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mk-nav a:hover,
.mk-nav a.is-active {
  color: var(--mk-primary);
}

.mk-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--mk-primary);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(217, 79, 82, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mk-header__cta:hover {
  background: var(--mk-primary-dark);
  transform: translateY(-1px);
}

.mk-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--mk-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.mk-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--mk-dark);
  border-radius: 999px;
}

/* Footer */

.mk-footer {
  margin-top: 72px;
  color: #e5e7eb;
  background:
    radial-gradient(circle at top left, rgba(217, 79, 82, 0.28), transparent 30%),
    #111827;
}

.mk-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 38px;
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  gap: 56px;
}

.mk-logo--footer .mk-logo__text {
  color: #fff;
}

.mk-footer__brand p {
  max-width: 420px;
  margin: 18px 0 0;
  color: #cbd5e1;
  line-height: 1.65;
}

.mk-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mk-footer__links h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.94rem;
}

.mk-footer__links a {
  display: block;
  margin: 10px 0;
  color: #cbd5e1;
  font-size: 0.94rem;
  text-decoration: none;
}

.mk-footer__links a:hover {
  color: #fff;
}

.mk-footer__bottom {
  border-top: 1px solid rgba(226, 232, 240, 0.14);
}

.mk-footer__bottom p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Páginas heredadas */

.mk-legacy-page .mk-main {
  width: 100%;
}

/* Responsive */

@media (max-width: 900px) {
  .mk-header__inner {
    min-height: 68px;
  }

  .mk-nav-toggle {
    display: block;
  }

  .mk-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--mk-border);
    border-radius: 18px;
    box-shadow: var(--mk-shadow);
  }

  .mk-nav.is-open {
    display: flex;
  }

  .mk-nav a {
    padding: 13px 12px;
    border-radius: 12px;
  }

  .mk-nav a:hover,
  .mk-nav a.is-active {
    background: var(--mk-bg-soft);
  }

  .mk-header__cta {
    display: none;
  }

  .mk-footer__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mk-footer__links {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   PÁGINAS COMERCIALES — Metriko
   Sistema de componentes para: home, diagnóstico, programa de mejora,
   pricing, success y payment-error.
   Todas las clases usan el prefijo mk- y se anidan dentro de
   contenedores mk- para NO afectar las páginas legacy (que traen su
   propio <style> y no usan clases mk-).
   ===================================================================== */

:root {
  --mk-ink: #0c1424;            /* base de secciones oscuras / hero alt */
  --mk-ink-2: #13203a;          /* degradado oscuro */
  --mk-on-dark: #c6d2e4;        /* texto cuerpo sobre oscuro */
  --mk-on-dark-soft: #93a3bd;   /* texto secundario sobre oscuro */
  --mk-primary-soft: #fdecec;   /* fondo coral muy suave */
  --mk-success: #16a877;        /* "con datos" / tratamiento / éxito */
  --mk-success-dark: #0f8a61;
  --mk-success-soft: #e8f8f1;
  --mk-warn: #c2410c;           /* error de pago */
  --mk-warn-soft: #fdeee3;
  --mk-shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --mk-shadow-lg: 0 30px 60px rgba(15, 23, 42, 0.12);
}

/* ---- Estructura base ---- */

.mk-wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.mk-wrap--narrow {
  width: min(760px, calc(100% - 40px));
}

.mk-section {
  padding: clamp(56px, 7vw, 104px) 0;
}

.mk-section--soft {
  background: var(--mk-bg-soft);
}

.mk-section--tight {
  padding: clamp(40px, 5vw, 72px) 0;
}

.mk-section--dark {
  color: var(--mk-on-dark);
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(217, 79, 82, 0.20), transparent 60%),
    radial-gradient(700px 420px at 100% 0%, rgba(22, 168, 119, 0.12), transparent 55%),
    linear-gradient(160deg, var(--mk-ink), var(--mk-ink-2));
}

.mk-section--dark .mk-eyebrow {
  color: #fda4a6;
}

.mk-divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--mk-border);
}

/* ---- Tipografía de cabeceras ---- */

.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--mk-primary);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mk-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mk-h1 {
  margin: 0;
  font-size: clamp(2.1rem, 1.35rem + 3.3vw, 3.45rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--mk-text);
}

.mk-h2 {
  margin: 0;
  font-size: clamp(1.62rem, 1.2rem + 1.7vw, 2.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--mk-text);
}

.mk-section--dark .mk-h1,
.mk-section--dark .mk-h2 {
  color: #fff;
}

.mk-lead {
  margin: 18px 0 0;
  max-width: 60ch;
  font-size: clamp(1.04rem, 0.98rem + 0.4vw, 1.2rem);
  line-height: 1.62;
  color: var(--mk-muted);
}

.mk-section--dark .mk-lead {
  color: var(--mk-on-dark);
}

.mk-section-head {
  max-width: 720px;
}

.mk-section-head--center {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.mk-emph {
  color: var(--mk-primary);
}

.mk-emph--ok {
  color: var(--mk-success);
}

/* ---- Botones ---- */

.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mk-btn--primary {
  color: #fff;
  background: var(--mk-primary);
  box-shadow: 0 14px 30px rgba(217, 79, 82, 0.28);
}

.mk-btn--primary:hover {
  background: var(--mk-primary-dark);
  transform: translateY(-2px);
}

.mk-btn--ghost {
  color: var(--mk-text);
  background: #fff;
  border-color: var(--mk-border);
}

.mk-btn--ghost:hover {
  border-color: #cbd5e1;
  background: var(--mk-bg-soft);
  transform: translateY(-2px);
}

.mk-btn--light {
  color: var(--mk-ink);
  background: #fff;
}

.mk-btn--light:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.mk-btn--ondark {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
}

.mk-btn--ondark:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.mk-btn--lg {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1.04rem;
}

.mk-btn--block {
  width: 100%;
}

.mk-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.mk-microcopy {
  margin: 16px 0 0;
  color: var(--mk-muted);
  font-size: 0.92rem;
}

.mk-section--dark .mk-microcopy {
  color: var(--mk-on-dark-soft);
}

/* ---- HERO ---- */

.mk-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 88px) 0 clamp(52px, 6vw, 92px);
  background:
    radial-gradient(1000px 560px at 88% -10%, rgba(217, 79, 82, 0.10), transparent 60%),
    linear-gradient(180deg, #fff, var(--mk-bg-soft));
}

.mk-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
}

.mk-hero__copy {
  max-width: 620px;
}

.mk-hero .mk-lead {
  max-width: 52ch;
}

.mk-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--mk-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.mk-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mk-trust-row svg {
  flex: none;
  color: var(--mk-success);
}

/* ====================================================================== */
/* Radiografía de salud comercial · instrumento de diagnóstico en vivo     */
/* (elemento firma del hero — reemplaza al antiguo tablero estático)       */
/* ====================================================================== */

.mk-rx {
  position: relative;
  padding: 16px 16px 12px;
  border-radius: 26px;
  background:
    radial-gradient(125% 120% at 16% -10%, rgba(217, 79, 82, 0.18), transparent 55%),
    radial-gradient(120% 120% at 105% 110%, rgba(22, 168, 119, 0.16), transparent 52%),
    linear-gradient(165deg, #101c32 0%, #0b1424 58%, #0a1120 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 42px 80px -34px rgba(6, 11, 24, 0.9),
    0 20px 46px -30px rgba(217, 79, 82, 0.5);
  overflow: hidden;
  isolation: isolate;
}

/* halo de borde sutil tipo cristal */
.mk-rx::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.mk-rx__scope {
  display: block;
  width: 100%;
  height: auto;
  font-family: Inter, system-ui, sans-serif;
}

/* --- tipografía interna (SVG <text>) --- */
.mk-rx-kicker     { font-size: 11px;  font-weight: 700; letter-spacing: 0.18em; fill: rgba(214, 224, 240, 0.62); }
.mk-rx-livetxt    { font-size: 10px;  font-weight: 800; letter-spacing: 0.16em; fill: #9be8c9; }
.mk-rx-ring-label { font-size: 10px;  font-weight: 700; letter-spacing: 0.2em;  fill: rgba(214, 224, 240, 0.5); }
.mk-rx-score      { font-size: 50px;  font-weight: 800; letter-spacing: -0.03em; fill: #ffffff; }
.mk-rx-score-sub  { font-size: 14px;  font-weight: 700; fill: rgba(214, 224, 240, 0.58); }
.mk-rx-delta      { font-size: 11px;  font-weight: 800; fill: #bff3dc; }
.mk-rx-dim        { font-size: 14px;  font-weight: 700; fill: rgba(233, 239, 248, 0.92); }
.mk-rx-dim-state  { font-size: 12px;  font-weight: 700; }
.mk-rx-state--ok  { fill: #7fe6c0; }
.mk-rx-state--mid { fill: #f4c453; }
.mk-rx-state--low { fill: #ff9ea1; }

/* --- anillo, marcas y arco del medidor --- */
.mk-rx-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 14;
  stroke-linecap: round;
}
.mk-rx-ticks {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 2;
  stroke-dasharray: 2 13;
  stroke-linecap: round;
}
.mk-rx-grid-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1.5;
}
.mk-rx-arc {
  fill: none;
  stroke: url(#mkRxArc);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 452.39;
  stroke-dashoffset: 452.39;
  animation: mk-rx-arc-draw 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s forwards;
}
.mk-rx-arc-glow {
  fill: none;
  stroke: url(#mkRxArc);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 452.39;
  stroke-dashoffset: 144.76;
  filter: url(#mkRxSoft);
  opacity: 0;
  animation: mk-rx-glow 3.8s ease-in-out 2.6s infinite;
}

/* --- marcador de posición --- */
.mk-rx-marker { fill: #ffffff; }
.mk-rx-marker-glow {
  fill: #ff6b6e;
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  animation: mk-rx-ping 3.8s ease-out 2.6s infinite;
}

/* --- radar sweep (escaneo continuo) --- */
.mk-rx-sweep {
  transform-box: view-box;
  transform-origin: 140px 252px;
  animation: mk-rx-spin 5.6s linear infinite;
  will-change: transform;
}
.mk-rx-sweep__sector { fill: url(#mkRxSweep); }
.mk-rx-sweep__hand {
  stroke: #ff7e80;
  stroke-width: 2;
  stroke-linecap: round;
  filter: url(#mkRxSoft);
}

/* --- score central --- */
.mk-rx-score { paint-order: stroke; }

/* --- barras de dimensión --- */
.mk-rx-bar-track { fill: rgba(255, 255, 255, 0.07); }
.mk-rx-bar-fill {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
  animation: mk-rx-fill 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.mk-rx-bar-fill--1 { animation-delay: 0.45s; }
.mk-rx-bar-fill--2 { animation-delay: 0.6s; }
.mk-rx-bar-fill--3 { animation-delay: 0.75s; }
.mk-rx-bar-fill--4 { animation-delay: 0.9s; }
.mk-rx-bar-shine {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: mk-rx-shine 3.6s ease-in-out infinite;
}
.mk-rx-bar-shine--1 { animation-delay: 1.8s; }
.mk-rx-bar-shine--2 { animation-delay: 2.5s; }
.mk-rx-bar-shine--3 { animation-delay: 3.2s; }
.mk-rx-bar-shine--4 { animation-delay: 3.9s; }

/* --- monitoreo EKG en vivo --- */
.mk-rx-ekg-base { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.mk-rx-ekg__scroll {
  animation: mk-rx-scroll 4.2s linear infinite;
  will-change: transform;
}
.mk-rx-ekg__line {
  fill: none;
  stroke: #ff6b6e;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: url(#mkRxSoft);
}
.mk-rx-ekg-dot {
  fill: #ff8588;
  transform-box: fill-box;
  transform-origin: center;
  animation: mk-rx-ping 1.6s ease-out infinite;
}

/* --- señales convergentes (señales dispersas → lectura) --- */
.mk-rx-sig {
  fill: #ff9ea1;
  opacity: 0;
  animation: mk-rx-signal 4.8s ease-in infinite;
}

/* --- haz de escaneo / "EN VIVO" --- */
.mk-rx-scanbeam {
  opacity: 0;
  animation: mk-rx-scan 6.8s ease-in-out infinite;
}
.mk-rx-live-dot {
  fill: #39d98a;
  transform-box: fill-box;
  transform-origin: center;
  animation: mk-rx-blink 1.8s ease-in-out infinite;
}

@keyframes mk-rx-arc-draw { to { stroke-dashoffset: 144.76; } }
@keyframes mk-rx-glow     { 0%, 100% { opacity: 0; } 50% { opacity: 0.55; } }
@keyframes mk-rx-spin     { to { transform: rotate(360deg); } }
@keyframes mk-rx-fill     { to { transform: scaleX(1); } }
@keyframes mk-rx-shine {
  0%        { transform: translateX(-115%); opacity: 0; }
  12%       { opacity: 0.7; }
  46%, 100% { transform: translateX(115%);  opacity: 0; }
}
@keyframes mk-rx-scroll { to { transform: translateX(-236px); } }
@keyframes mk-rx-ping {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes mk-rx-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes mk-rx-signal {
  0%   { transform: translate(var(--sx), var(--sy)); opacity: 0; }
  18%  { opacity: 0.85; }
  75%  { opacity: 0.4; }
  100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes mk-rx-scan {
  0%   { transform: translateY(-26px); opacity: 0; }
  18%  { opacity: 0.16; }
  82%  { opacity: 0.04; }
  100% { transform: translateY(474px); opacity: 0; }
}

/* pausa cuando el instrumento sale de pantalla (lo activa health-monitor.js) */
.mk-rx.is-paused .mk-rx-sweep,
.mk-rx.is-paused .mk-rx-ekg__scroll,
.mk-rx.is-paused .mk-rx-arc-glow,
.mk-rx.is-paused .mk-rx-bar-shine,
.mk-rx.is-paused .mk-rx-sig,
.mk-rx.is-paused .mk-rx-scanbeam,
.mk-rx.is-paused .mk-rx-marker-glow,
.mk-rx.is-paused .mk-rx-ekg-dot,
.mk-rx.is-paused .mk-rx-live-dot {
  animation-play-state: paused;
}

/* ---- Grids y tarjetas genéricas ---- */

.mk-grid {
  display: grid;
  gap: 20px;
  margin-top: 44px;
}

.mk-grid--2 { grid-template-columns: repeat(2, 1fr); }
.mk-grid--3 { grid-template-columns: repeat(3, 1fr); }
.mk-grid--4 { grid-template-columns: repeat(4, 1fr); }

.mk-card {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
  box-shadow: var(--mk-shadow-sm);
}

.mk-card__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 13px;
  color: var(--mk-primary);
  background: var(--mk-primary-soft);
}

.mk-card__icon--ok {
  color: var(--mk-success-dark);
  background: var(--mk-success-soft);
}

.mk-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.mk-card p {
  margin: 0;
  color: var(--mk-muted);
  line-height: 1.6;
  font-size: 0.97rem;
}

/* ---- Pilares (Diagnóstico / Tratamiento / Monitoreo) ---- */

.mk-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.mk-pillar {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--mk-radius);
  border: 1px solid var(--mk-border);
  background: #fff;
  box-shadow: var(--mk-shadow-sm);
}

.mk-pillar__step {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mk-muted);
}

.mk-pillar h3 {
  margin: 6px 0 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mk-pillar p {
  margin: 0;
  color: var(--mk-muted);
  line-height: 1.62;
}

.mk-pillar--diag { border-top: 4px solid var(--mk-primary); }
.mk-pillar--trat { border-top: 4px solid #e3a008; }
.mk-pillar--moni { border-top: 4px solid var(--mk-success); }

/* ---- Pasos sobre una "espina" de pulso ---- */

.mk-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 52px;
}

.mk-steps::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, #d3dae6, var(--mk-primary));
  z-index: 0;
}

.mk-step {
  position: relative;
  z-index: 1;
  text-align: left;
}

.mk-step__num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  font-weight: 800;
  color: #fff;
  background: var(--mk-primary);
  box-shadow: 0 0 0 6px #fff, 0 10px 22px rgba(217, 79, 82, 0.25);
}

.mk-step:nth-child(4) .mk-step__num { background: var(--mk-success); box-shadow: 0 0 0 6px #fff, 0 10px 22px rgba(22, 168, 119, 0.25); }

.mk-step h3 {
  margin: 0 0 7px;
  font-size: 1.08rem;
  font-weight: 750;
}

.mk-step p {
  margin: 0;
  color: var(--mk-muted);
  line-height: 1.58;
  font-size: 0.95rem;
}

/* ---- Comparación A ciegas vs Con Metriko ---- */

.mk-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 44px;
}

.mk-compare__col {
  padding: 30px 28px;
  border-radius: var(--mk-radius);
  border: 1px solid var(--mk-border);
}

.mk-compare__col--bad {
  background: #fff;
}

.mk-compare__col--good {
  background: var(--mk-ink);
  border-color: transparent;
  color: var(--mk-on-dark);
  box-shadow: var(--mk-shadow-lg);
}

.mk-compare__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mk-compare__col--bad .mk-compare__label { color: var(--mk-muted); }
.mk-compare__col--good .mk-compare__label { color: #6ee7b7; }

.mk-compare__col h3 {
  margin: 0 0 16px;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mk-compare__col--good h3 { color: #fff; }

.mk-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mk-list li {
  position: relative;
  padding: 9px 0 9px 30px;
  line-height: 1.5;
}

.mk-list li + li {
  border-top: 1px solid var(--mk-border);
}

.mk-compare__col--good .mk-list li + li {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.mk-list--bad li::before,
.mk-list--good li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.mk-list--bad li::before {
  content: "—";
  color: var(--mk-primary);
  background: var(--mk-primary-soft);
}

.mk-list--good li::before {
  content: "✓";
  color: #052e1f;
  background: #6ee7b7;
}

.mk-list--good li {
  color: var(--mk-on-dark);
}

/* ---- Beneficios (grid compacto con check) ---- */

.mk-benefit {
  display: flex;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
}

.mk-benefit__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  color: var(--mk-success-dark);
  background: var(--mk-success-soft);
}

.mk-benefit h3 {
  margin: 2px 0 5px;
  font-size: 1.04rem;
  font-weight: 750;
}

.mk-benefit p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* ---- Bloque "pilares de confianza" sobre oscuro ---- */

.mk-trust-card {
  padding: 26px;
  border-radius: var(--mk-radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mk-trust-card .mk-card__icon {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.mk-trust-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 750;
}

.mk-trust-card p {
  margin: 0;
  color: var(--mk-on-dark);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* ---- Oferta / precio ---- */

.mk-offer {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--mk-border);
  box-shadow: var(--mk-shadow-lg);
  background: #fff;
}

.mk-offer__main {
  padding: clamp(28px, 4vw, 46px);
}

.mk-offer__main h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.mk-offer__sub {
  margin: 0 0 22px;
  color: var(--mk-muted);
}

.mk-includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
}

.mk-includes li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
  font-weight: 600;
}

.mk-includes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--mk-success-dark);
  background: var(--mk-success-soft);
}

.mk-offer__aside {
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--mk-on-dark);
  background:
    radial-gradient(500px 300px at 110% -10%, rgba(217, 79, 82, 0.30), transparent 60%),
    linear-gradient(160deg, var(--mk-ink), var(--mk-ink-2));
}

.mk-price__tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mk-on-dark-soft);
}

.mk-price__value {
  margin: 8px 0 2px;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.mk-price__note {
  margin: 0 0 24px;
  color: var(--mk-on-dark-soft);
  font-size: 0.92rem;
}

.mk-price__cur {
  font-size: 1rem;
  font-weight: 700;
  vertical-align: super;
  color: var(--mk-on-dark-soft);
}

.mk-offer__aside .mk-microcopy {
  color: var(--mk-on-dark-soft);
}

.mk-checkout-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fda4a6;
}

.mk-checkout-status[data-state="ok"] { color: #6ee7b7; }

/* ---- Banda CTA final ---- */

.mk-band {
  text-align: center;
}

.mk-band .mk-cta-row {
  justify-content: center;
}

.mk-band .mk-h2 {
  max-width: 18ch;
  margin-inline: auto;
}

.mk-band .mk-lead {
  margin-inline: auto;
  text-align: center;
}

/* ---- Páginas de estado (success / error) ---- */

.mk-status {
  min-height: 60vh;
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
  text-align: center;
}

.mk-status__inner {
  width: min(560px, calc(100% - 40px));
}

.mk-status__badge {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
}

.mk-status__badge--ok {
  color: var(--mk-success-dark);
  background: var(--mk-success-soft);
}

.mk-status__badge--err {
  color: var(--mk-warn);
  background: var(--mk-warn-soft);
}

.mk-status h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mk-status p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--mk-muted);
  line-height: 1.65;
}

.mk-status .mk-cta-row {
  justify-content: center;
  margin-top: 32px;
}

.mk-status__ref {
  margin-top: 26px;
  font-size: 0.86rem;
  color: var(--mk-muted);
}

.mk-status__ref code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--mk-bg-soft);
  border: 1px solid var(--mk-border);
  border-radius: 7px;
  padding: 2px 8px;
}

/* ---- FAQ mínimo ---- */

.mk-faq {
  margin-top: 40px;
  display: grid;
  gap: 12px;
}

.mk-faq details {
  border: 1px solid var(--mk-border);
  border-radius: 14px;
  background: #fff;
  padding: 4px 20px;
}

.mk-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mk-faq summary::-webkit-details-marker { display: none; }

.mk-faq summary::after {
  content: "+";
  color: var(--mk-primary);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1;
}

.mk-faq details[open] summary::after { content: "–"; }

.mk-faq p {
  margin: 0 0 18px;
  color: var(--mk-muted);
  line-height: 1.62;
}

/* ---- Accesibilidad ---- */

.mk-btn:focus-visible,
.mk-faq summary:focus-visible {
  outline: 3px solid rgba(217, 79, 82, 0.4);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  /* La radiografía deja de animarse y se muestra en su estado final legible */
  .mk-rx-sweep,
  .mk-rx-ekg__scroll,
  .mk-rx-arc-glow,
  .mk-rx-bar-shine,
  .mk-rx-sig,
  .mk-rx-scanbeam,
  .mk-rx-marker-glow,
  .mk-rx-ekg-dot,
  .mk-rx-live-dot {
    animation: none !important;
  }
  .mk-rx-arc {
    animation: none !important;
    stroke-dashoffset: 144.76;
  }
  .mk-rx-bar-fill {
    animation: none !important;
    transform: scaleX(1);
  }
  .mk-rx-sweep { opacity: 0.5; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .mk-hero__grid { grid-template-columns: 1fr; }
  .mk-hero__media { order: -1; }
  .mk-grid--3,
  .mk-grid--4,
  .mk-pillars { grid-template-columns: 1fr 1fr; }
  .mk-steps { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .mk-steps::before { display: none; }
  .mk-offer { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .mk-grid--2,
  .mk-grid--3,
  .mk-grid--4,
  .mk-pillars,
  .mk-compare,
  .mk-steps { grid-template-columns: 1fr; }
  .mk-cta-row .mk-btn { width: 100%; }
}

/* ====================================================================== */
/* Componentes visuales: logo-imagen, figuras, mockups, testimonios       */
/* (añadidos para reducir la sensación plana y subir conversión)          */
/* ====================================================================== */

/* --- Isotipo en el logo (reemplaza la "M") --- */
.mk-logo__img {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 11px;
  flex: none;
}
.mk-logo--footer .mk-logo__img { width: 34px; height: 34px; }

/* --- Figura / espacio de imagen reutilizable --- */
.mk-figure {
  position: relative;
  margin: 0;
  border-radius: var(--mk-radius);
  overflow: hidden;
  background: var(--mk-bg-soft);
  border: 1px solid var(--mk-border);
  box-shadow: var(--mk-shadow-sm);
}
.mk-figure__img {
  display: block;
  width: 100%;
  height: auto;
}
.mk-figure__cap {
  display: block;
  font-size: 0.84rem;
  color: var(--mk-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.mk-figure__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--mk-primary);
  box-shadow: var(--mk-shadow-sm);
}

/* --- Bloque media: texto + imagen en dos columnas --- */
.mk-media {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.mk-media--reverse .mk-media__visual { order: -1; }
.mk-media__copy .mk-h2 { margin-top: 6px; }

/* --- Marco tipo "captura de pantalla / dispositivo" --- */
.mk-shot {
  position: relative;
  border-radius: 26px;
  padding: 12px;
  background: linear-gradient(165deg, var(--mk-ink) 0%, var(--mk-ink-2) 100%);
  box-shadow: var(--mk-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mk-shot::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}
.mk-shot__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.mk-shot--device {
  max-width: 300px;
  margin-inline: auto;
  border-radius: 34px;
  padding: 10px;
}
.mk-shot--device .mk-shot__img { border-radius: 26px; }

/* --- Mini prueba social (avatares apilados + texto) --- */
.mk-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.mk-proof__avatars { display: inline-flex; }
.mk-proof__avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--mk-bg);
  object-fit: cover;
  margin-left: -12px;
  box-shadow: var(--mk-shadow-sm);
}
.mk-proof__avatars img:first-child { margin-left: 0; }
.mk-proof__text { font-size: 0.9rem; color: var(--mk-muted); line-height: 1.45; }
.mk-proof__text strong { color: var(--mk-text); font-weight: 700; }
.mk-proof__stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.95rem; }

/* --- Testimonios --- */
.mk-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.mk-testimonial {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
  padding: 26px;
  box-shadow: var(--mk-shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mk-testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--mk-shadow-lg);
}
.mk-testimonial__stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.95rem; }
.mk-testimonial__quote {
  font-size: 0.98rem;
  color: var(--mk-text);
  line-height: 1.6;
  flex: 1;
}
.mk-testimonial__person {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--mk-border);
  padding-top: 16px;
}
.mk-testimonial__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--mk-border);
}
.mk-testimonial__name { font-weight: 700; font-size: 0.92rem; color: var(--mk-text); }
.mk-testimonial__role { font-size: 0.8rem; color: var(--mk-muted); }
.mk-testimonial__result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mk-success-dark);
  background: var(--mk-success-soft);
  padding: 5px 11px;
  border-radius: 999px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .mk-media { grid-template-columns: 1fr; }
  .mk-media--reverse .mk-media__visual { order: 0; }
  .mk-media__visual { order: -1; }
  .mk-testimonials { grid-template-columns: 1fr; }
}


.mk-hero--diagnostico {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  background: #06111f;
  color: #ffffff;
}

/* Imagen de fondo */
.mk-hero--diagnostico::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--mk-hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.03);
}

/* Capa oscura premium */
.mk-hero--diagnostico::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 12, 24, 0.88) 0%,
      rgba(5, 12, 24, 0.72) 45%,
      rgba(5, 12, 24, 0.45) 100%
    ),
    rgba(0, 0, 0, 0.22);
}

/* Asegura que el contenido quede encima del overlay */
.mk-hero--diagnostico .mk-wrap {
  position: relative;
  z-index: 2;
}

/* Contraste del texto */
.mk-hero--diagnostico .mk-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.mk-hero--diagnostico .mk-h1 {
  color: #ffffff;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.mk-hero--diagnostico .mk-lead {
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
}

/* Botón secundario sobre fondo oscuro */
.mk-hero--diagnostico .mk-btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.mk-hero--diagnostico .mk-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.52);
}

.mk-hero--tratamiento {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(560px, 78vh, 760px);
  display: flex;
  align-items: center;
  background: #050a30;
  color: #ffffff;
}

/* Imagen de fondo */
.mk-hero--tratamiento::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--mk-hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.035);
}

/* Overlay oscuro premium */
.mk-hero--tratamiento::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 10, 48, 0.92) 0%,
      rgba(5, 10, 48, 0.78) 42%,
      rgba(5, 10, 48, 0.48) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.38) 100%
    );
}

/* Contenido por encima */
.mk-hero--tratamiento .mk-wrap {
  position: relative;
  z-index: 2;
}

/* Texto en blanco */
.mk-hero--tratamiento .mk-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.mk-hero--tratamiento .mk-h1 {
  color: #ffffff;
  text-shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

.mk-hero--tratamiento .mk-lead {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
}

/* Botón ghost sobre fondo oscuro */
.mk-hero--tratamiento .mk-btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.mk-hero--tratamiento .mk-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.54);
}

.mk-hero--home {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(620px, 86vh, 820px);
  display: flex;
  align-items: center;
  background: #050a30;
  color: #ffffff;
}

/* Imagen de fondo */
.mk-hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--mk-hero-img);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.035);
}

/* Overlay oscuro premium */
.mk-hero--home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 10, 48, 0.86) 0%,
      rgba(5, 10, 48, 0.68) 44%,
      rgba(5, 10, 48, 0.34) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.30) 100%
    );
}

/* Contenido encima de la imagen */
.mk-hero--home .mk-wrap {
  position: relative;
  z-index: 2;
}

.mk-hero--home .mk-hero__copy {
  position: relative;
  z-index: 2;
}

/* Texto */
.mk-hero--home .mk-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.mk-hero--home .mk-h1 {
  color: #ffffff;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
}

.mk-hero--home .mk-lead {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.30);
}

.mk-hero--home .mk-lead strong {
  color: #ffffff;
}

/* Botón ghost sobre fondo oscuro */
.mk-hero--home .mk-btn--ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.mk-hero--home .mk-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.54);
}

/* Trust row sobre fondo oscuro */
.mk-hero--home .mk-trust-row {
  color: rgba(255, 255, 255, 0.84);
}

.mk-hero--home .mk-trust-row span {
  color: rgba(255, 255, 255, 0.84);
}

.mk-hero--home .mk-trust-row svg {
  color: #ffffff;
}

/* Prueba social */
.mk-hero--home .mk-proof {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.mk-hero--home .mk-proof__text {
  color: rgba(255, 255, 255, 0.84);
}

.mk-hero--home .mk-proof__text strong {
  color: #ffffff;
}

.mk-hero--home .mk-proof__stars {
  color: #ffffff;
}
