/* ==========================================================================
   DatumLynk México portal
   Builds on /css/styles.css (tokens, header, footer, lp-* landing patterns).
   Only portal-specific components live here.
   ========================================================================== */

.mx .brand { align-items: center; }
.mx-brand-market {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  margin-left: 10px;
  padding-left: 8px;
  border-left: 1px solid var(--border-strong);
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--slate);
}

.mx-section { padding: var(--section-y) 0; }
.mx-head { max-width: 72ch; margin-bottom: clamp(28px, 3vw, 40px); }
.mx-h1,
.mx-h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--ink);
}
.mx-h1 { font-size: clamp(32px, 2vw + 18px, 46px); margin-bottom: 16px; }
.mx-h2 { font-size: clamp(28px, 1.6vw + 16px, 40px); }
.mx-lede { max-width: 64ch; margin: 0 0 24px; font-size: var(--fs-lede); line-height: 1.6; color: #3d4659; }
.mx-narrow .wrap { max-width: 760px; }
.mx-error-page { padding-block: 64px; }

/* Hero: the core proposition only ------------------------------------------ */
.mx-hero {
  display: flex;
  align-items: center;
  min-height: min(72vh, 680px);
  padding: clamp(56px, 8vw, 120px) 0;
  text-align: center;
}
.mx-hero .wrap { width: 100%; }
@media (max-width: 640px) { .mx-hero { min-height: 0; } }
.mx-hero-title {
  margin: 0 auto 40px;
  text-wrap: balance;
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.6vw + 16px, 84px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.mx-ink { color: var(--ink); }
.mx-hero-title > span { display: block; }
.mx-hero-title .accent { color: var(--indigo); }
.mx-hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Nuggets ------------------------------------------------------------------ */
.mx-nugget { padding: clamp(56px, 7vw, 104px) 0; }
.mx-nugget-statement { border-top: 1px solid var(--hairline); }
.mx-nugget-statement .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px clamp(32px, 5vw, 80px);
}
.mx-nugget-statement .mx-statement { margin: 0; }
@media (max-width: 860px) { .mx-nugget-statement .wrap { grid-template-columns: 1fr; } }
.mx-statement {
  max-width: 28ch;
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 2vw + 16px, 46px);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
}
.mx-statement-sub { max-width: 60ch; margin: 0; font-size: var(--fs-lede); line-height: 1.6; color: #3d4659; }
.mx-statement-center { max-width: 36ch; margin: 0 auto; text-align: center; }
.mx-nugget-band { background: var(--stone); }

/* Balanced content blocks (Cómo funciona, Industrias, Tu información, FAQ) */
.mx-block { padding: var(--section-y) 0; }
.mx-block-band { background: var(--stone); }
.mx-block-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.mx-block-head .mx-h2,
.mx-block-head .mx-h1 { margin: 0; }
.mx-block-lede { margin: 16px auto 0; max-width: 60ch; font-size: var(--fs-lede); line-height: 1.6; color: #3d4659; }

.mx-cards { list-style: none; display: grid; gap: 20px; margin: 0; padding: 0; }
.mx-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .mx-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .mx-cards-4 { grid-template-columns: 1fr; } }
.mx-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 28px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mx-block-band .mx-card { border-color: var(--stone-line); }
.mx-card svg { color: var(--indigo); }
.mx-card-step { margin: 16px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6475; }
.mx-card h3 { margin: 14px 0 8px; font-size: 19px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.mx-card-step + h3 { margin-top: 0; }
.mx-card p:last-child { margin: 0; font-size: 15px; line-height: 1.6; color: #3d4659; }

.mx-industries {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
}
.mx-industries li {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.mx-faq-list { max-width: 860px; margin: 0 auto; }

/* Evaluation note, last block of every page */
.mx-evaluation { border-bottom: 0; }
.mx-evaluation .wrap { justify-content: center; }
.mx-evaluation p,
.mx-evaluation p:first-child { flex: 0 1 900px; }

/* Contact block centered, like the sections above it */
.mx .contact-inner { margin-inline: auto; text-align: center; }
.mx .contact-section .eyebrow { justify-content: center; }
.mx .contact-section .contact-text { margin-inline: auto; }

/* Formas de colaborar ---------------------------------------------------- */
.mx-opps { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1040px; margin: 0 auto; }
@media (max-width: 820px) { .mx-opps { grid-template-columns: 1fr; } }
.mx-opp {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--indigo);
  border-radius: var(--radius);
}
.mx-opp h2 { margin: 0 0 12px; font-family: var(--font-serif); font-size: clamp(24px, 0.8vw + 18px, 30px); font-weight: 700; line-height: 1.2; color: var(--ink); }
.mx-opp > p:not(.mx-tag) { margin: 0 0 20px; font-size: 17px; line-height: 1.6; color: #3d4659; }
.mx-tag {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--indigo);
}
.mx-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: auto 0 24px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-weight: 600;
  color: var(--indigo);
  cursor: pointer;
}
.mx-more:hover { border-color: var(--indigo); background: var(--tint); }
.mx-opp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mx-opp-actions .btn { justify-content: center; width: 100%; padding-inline: 12px; text-align: center; }
@media (max-width: 420px) { .mx-opp-actions { grid-template-columns: 1fr; } }

/* Details pop-up (native popover: works without JavaScript) */
.mx-pop {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: clamp(24px, 3vw, 40px);
  overflow-y: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 24px 64px rgba(11, 31, 58, 0.28);
}
.mx-pop::backdrop { background: rgba(11, 31, 58, 0.55); }
.mx-pop h2 { margin: 0 0 12px; padding-right: 40px; font-family: var(--font-serif); font-size: clamp(22px, 0.8vw + 17px, 28px); line-height: 1.2; color: var(--ink); }
.mx-pop > p { margin: 0 0 16px; line-height: 1.6; color: #3d4659; }
.mx-pop .mx-tag { display: inline-block; }
.mx-pop-sub { font-weight: 600; color: var(--ink) !important; margin-bottom: 10px !important; }
.mx-pop .mx-tags { margin-bottom: 20px; }
.mx-pop-note { padding: 14px 16px; background: var(--tint); border-radius: var(--radius-sm); font-size: var(--fs-small); }
.mx-pop .mx-opp-actions { margin-top: 24px; }
.mx-pop-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}
.mx-pop-close:hover { border-color: var(--indigo); color: var(--indigo); }

/* Back link on calculator pages */
.mx-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px; font-size: var(--fs-small); font-weight: 600; color: var(--indigo); }

.mx-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.mx-tags li {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--off-white);
  font-size: 14px;
  line-height: 1.4;
  color: var(--charcoal-soft);
}


/* Calculators -------------------------------------------------------------- */
.mx-calc-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }

.mx-calc-form {
  display: grid;
  gap: 20px;
  padding: clamp(20px, 2.6vw, 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
}
.mx-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.mx-field > label,
.mx-field legend { display: block; margin: 0 0 8px; padding: 0; font-weight: 600; color: var(--ink); }
.mx-field input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
}
.mx-field input[type="number"]:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(31, 47, 152, 0.12); }
.mx-help { margin: 6px 0 0; font-size: var(--fs-meta); color: var(--slate); }
.mx-error { margin: 6px 0 0; font-size: var(--fs-meta); color: #b42318; }
.mx-error:empty { display: none; }

/* Sliders: shown only with JavaScript; the number input is the fallback. */
.mx-slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.mx-slider-head label { margin: 0; font-weight: 600; color: var(--ink); }
.mx-slider-value { flex: 0 0 auto; font-size: 20px; font-weight: 700; color: var(--indigo); font-variant-numeric: tabular-nums; }
.mx-slider-value:empty,
.mx-slider-ui { display: none; }
.js .mx-slider-ui { display: block; }
.js .mx-slider-field input[type="number"] { display: none; }
.mx-slider {
  --fill: 0%;
  width: 100%;
  height: 44px; /* comfortable touch target; the visible bar stays 6px */
  margin: -8px 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y; /* horizontal drags belong to the slider, vertical ones scroll */
  -webkit-appearance: none;
  appearance: none;
}
.mx-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--indigo) var(--fill), var(--border-strong) var(--fill));
}
.mx-slider::-moz-range-track { height: 6px; border-radius: 999px; background: var(--border-strong); }
.mx-slider::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--indigo); }
.mx-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo), 0 2px 6px rgba(15, 26, 51, 0.25);
}
.mx-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo), 0 2px 6px rgba(15, 26, 51, 0.25);
}
/* No focus rectangle on the slider; keyboard focus shows as a halo on the handle. */
.mx-slider:focus,
.mx-slider:focus-visible { outline: none; }
.mx-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--indigo), 0 0 0 6px rgba(31, 47, 152, 0.2); }
.mx-slider:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--indigo), 0 0 0 6px rgba(31, 47, 152, 0.2); }
.mx-slider-scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: var(--fs-meta); color: var(--slate); font-variant-numeric: tabular-nums; }

/* Segmented choice (radio cards) */
.mx-segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.mx-segment { position: relative; display: block; cursor: pointer; }
.mx-segment input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mx-segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  color: var(--charcoal-soft);
  background: var(--white);
}
.mx-segment input:checked + span { border-color: var(--indigo); background: var(--indigo); color: var(--white); }
.mx-segment input:focus { outline: none; }
.mx-segment input:focus-visible + span { box-shadow: 0 0 0 3px rgba(31, 47, 152, 0.25); }

/* Checkbox list */
.mx-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.mx-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.mx-check input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--indigo); flex: 0 0 auto; }
.mx-check:has(input:checked) { border-color: var(--indigo); background: var(--tint); }

/* Estimate card: a white report card, not a payout screen. ------------------ */
.mx-estimate {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 2.8vw, 32px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  color: var(--charcoal-soft);
}
.mx-estimate > .mx-tag { margin: 0; justify-self: start; }
.mx-estimate p { margin: 0; }
.mx-estimate-label { margin: 0 0 6px !important; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.mx-estimate-row { padding-bottom: 18px; border-bottom: 1px solid var(--hairline); }
.mx-estimate-hours { font-size: 17px; color: var(--ink); }
.mx-estimate-hours span { font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-estimate-title { font-family: var(--font-serif); font-size: clamp(22px, 0.8vw + 17px, 28px); font-weight: 700; line-height: 1.2; color: var(--ink); }
.mx-estimate-range { margin-top: 14px; }
.mx-estimate-range[hidden] { display: none; }
.mx-estimate-value {
  font-size: clamp(24px, 1vw + 18px, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}
.mx-estimate-unit { margin-top: 4px !important; font-size: var(--fs-small); color: var(--slate); }
.mx-estimate-drivers ul,
.mx-next ol { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.mx-estimate-drivers li { position: relative; padding-left: 20px; font-size: var(--fs-small); line-height: 1.5; }
.mx-estimate-drivers li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.mx-next ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mx-next li { display: flex; align-items: center; gap: 8px; padding: 10px; background: var(--off-white); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.3; color: var(--ink); }
.mx-next li span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--tint); font-size: 12px; font-weight: 700; color: var(--indigo); }
@media (max-width: 480px) { .mx-next ol { grid-template-columns: 1fr; } }

.mx-tiers { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.mx-tiers li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.35;
}
.mx-tiers li strong { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-tiers li.is-active { border-color: var(--indigo); background: var(--tint); color: var(--ink); }
.mx-note { padding: 12px 14px; background: #fffaeb; border-radius: var(--radius-sm); font-size: var(--fs-small); color: var(--ink); }
.mx-note:empty { display: none; }
.mx-disclaimer { font-size: 13px; line-height: 1.6; color: var(--slate); }
.mx-estimate .lp-btn { justify-self: center; }

/* With JavaScript the video result updates live; the button is only a fallback. */
.js .mx-calc-submit { display: none; }


@media (max-width: 640px) {
  .mx-brand-market { display: none; }
}

/* Video calculator: result card below the form, one centered column. */
.mx-calc-stacked { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }

/* Data calculator: the result card follows the user while the long form scrolls
   (two-column layout only; the header is sticky from 768px and 84px tall). */
/* Sticky only where the whole card (≈ 970 px) fits below the header; otherwise its
   button would be cut off. On shorter screens it is about as tall as the form anyway. */
@media (min-width: 900px) and (min-height: 1100px) {
  .mx-result-sticky { position: sticky; top: 108px; }
}

/* ==========================================================================
   Account, onboarding and dashboard
   ========================================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mx-panel {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 44px);
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--indigo);
  border-radius: var(--radius);
}
.mx-panel-wide { max-width: 820px; }
.mx-panel .mx-h1 { margin-bottom: 12px; }
.mx-panel .mx-lede { margin-bottom: 24px; }
.mx-auth { background: var(--off-white); }

.mx-form { display: grid; gap: 22px; }
.mx-field input[type="text"],
.mx-field input[type="email"],
.mx-field input[type="url"],
.mx-field input[type="tel"],
.mx-field select,
.mx-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
}
.mx-field textarea { min-height: 0; line-height: 1.5; resize: vertical; }
.mx-field select { appearance: auto; }
.mx-field input:focus,
.mx-field select:focus,
.mx-field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(31, 47, 152, 0.12); }
.mx-field.has-error input,
.mx-field.has-error select,
.mx-field.has-error textarea { border-color: #b42318; }
.mx-field legend + .mx-help { margin: -2px 0 10px; }
.mx-optional { font-weight: 400; color: var(--slate); }
.mx-required-note { margin: 0 0 24px; }
.mx-error-box { margin: 0 0 20px; padding: 12px 14px; background: #fef3f2; border-radius: var(--radius-sm); font-size: var(--fs-small); }
.mx-notice { margin: 0 0 20px; padding: 12px 14px; background: var(--tint); border-radius: var(--radius-sm); font-size: var(--fs-small); color: var(--ink); }
.mx-form-submit { width: 100%; }
.mx-code-input { font-size: 26px !important; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.mx-consent .mx-check { border: 0; padding: 0; }
.mx-consent a { white-space: nowrap; }
.mx-static-label { display: block; margin: 0 0 6px; font-weight: 600; color: var(--ink); }
.mx-static-value { margin: 0; padding: 12px 14px; background: var(--off-white); border-radius: var(--radius-sm); color: var(--charcoal-soft); }
.mx-form-section { margin: 12px 0 -6px; padding-top: 20px; border-top: 1px solid var(--hairline); font-family: var(--font-serif); font-size: 22px; color: var(--ink); }
.mx-form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.mx-auth-switch { margin: 24px 0 0; font-size: var(--fs-small); text-align: center; color: var(--slate); }
.mx-auth-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 20px 0 12px; font-size: var(--fs-small); }
.mx-junk-tip p { margin: 0 0 4px; }
.mx-junk-tip ul { margin: 0; padding-left: 1.2em; }
.mx-junk-tip li + li { margin-top: 2px; }
.mx-link-button { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--indigo); cursor: pointer; }
.mx-link-button:hover:not(:disabled) { text-decoration: underline; }
.mx-link-button:disabled { color: var(--slate); cursor: not-allowed; opacity: .7; }
.mx-resend-wait { font-size: .9em; color: var(--slate); }
.mx-logout { margin: 0; }
.mx-logout button { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.mx-logout button:hover { color: var(--blue); }

/* Wizard progress */
.mx-wizard { background: var(--off-white); }
.mx-progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 0;
}
.mx-progress li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--slate); }
.mx-progress li + li::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--border-strong);
  z-index: 0;
}
.mx-progress li.is-done + li::before,
.mx-progress li.is-current::before { background: var(--indigo); }
.mx-progress-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--white);
  font-weight: 700;
}
.mx-progress li.is-current { color: var(--ink); font-weight: 600; }
.mx-progress li.is-current .mx-progress-dot { border-color: var(--indigo); color: var(--indigo); }
.mx-progress li.is-done .mx-progress-dot { border-color: var(--indigo); background: var(--indigo); color: var(--white); }
@media (max-width: 520px) { .mx-progress-label { display: none; } .mx-progress li.is-current .mx-progress-label { display: block; } }

.mx-wizard-actions { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; }
.mx-wizard-actions .btn { min-width: 150px; }
.mx-summary { display: grid; gap: 8px; margin: 0; padding: 16px; background: var(--tint); border-radius: var(--radius-sm); }
.mx-summary div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.mx-summary dt { font-size: var(--fs-small); color: var(--slate); }
.mx-summary dd { margin: 0; font-weight: 600; color: var(--ink); }

/* Confirmation and dashboard */
.mx-reference { margin: 0 0 16px; padding: 14px; background: var(--tint); border-radius: var(--radius-sm); font-size: 22px; font-weight: 700; text-align: center; letter-spacing: 0.04em; color: var(--ink); }
.mx-panel .mx-tags { margin: 0 0 16px; }
.mx-app { margin-bottom: 20px; }
.mx-app h2 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 24px; color: var(--ink); }
.mx-app-tracks { list-style: none; display: grid; gap: 8px; margin: 16px 0 0; padding: 0; }
.mx-app-tracks li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.mx-app-tracks strong { color: var(--indigo); }

/* Draft legal page */
.mx-legal h2 { margin: 32px 0 8px; font-size: 20px; color: var(--ink); }
.mx-legal p, .mx-legal li { line-height: 1.7; color: var(--charcoal-soft); }
.mx-legal-version { margin: -8px 0 24px; font-size: var(--fs-small); color: var(--charcoal-soft); }
.mx-legal code { font-size: 0.95em; }
.mx-privacy-short { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.mx-privacy-short p { margin: 0; font-size: var(--fs-small); line-height: 1.6; color: var(--charcoal-soft); }
.mx-panel .mx-tag { display: inline-block; }
.mx-consent .mx-check { gap: 12px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.mx-consent .mx-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--indigo); }
.mx-consent .mx-check:has(input:checked) { background: none; }
.mx-field.mx-consent > label.mx-check { display: flex; margin: 0; font-weight: 400; }

/* No focus rectangles on checkboxes, radios or the cards that wrap them. */
.mx-check input:focus,
.mx-check:focus-within { outline: none; }
.mx-check input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(31, 47, 152, 0.25); border-radius: 3px; }

/* Honeypot: off-screen for people, still present for bots that fill every field. */
.mx-trap { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.mx-turnstile { min-height: 65px; }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.mx-dash { background: var(--off-white); }
.mx-dash .wrap { max-width: 980px; }
.mx-dash-head { margin-bottom: 28px; }
.mx-dash-head .mx-h1 { margin-bottom: 4px; }
.mx-app-card {
  margin-bottom: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--indigo);
  border-radius: var(--radius);
  overflow: hidden;
}
.mx-app-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--hairline); }
.mx-app-header .mx-tag { display: inline-block; margin: 0 0 10px; }
.mx-app-header h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(24px, 1vw + 18px, 30px); line-height: 1.2; color: var(--ink); }
.mx-app-meta { display: grid; gap: 6px; margin: 0; font-size: var(--fs-small); }
.mx-app-meta div { display: flex; gap: 10px; }
.mx-app-meta dt { min-width: 150px; color: var(--slate); }
.mx-app-meta dd { margin: 0; font-weight: 600; color: var(--ink); }

.mx-track { padding: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--hairline); }
.mx-track-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.mx-track-head h3 { margin: 0; font-size: 20px; color: var(--ink); }
.mx-status { margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 700; color: var(--indigo); }
.mx-status-en_produccion { background: #ecfdf3; color: #067647; }
.mx-status-en_pausa { background: #fffaeb; color: #93370d; }
.mx-status-no_seleccionada,
.mx-status-cerrada { background: #f2f4f7; color: #344054; }

.mx-tracker { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 20px; padding: 0; }
.mx-tracker li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--slate); }
.mx-tracker li + li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.mx-tracker li.is-done + li::before,
.mx-tracker li.is-current::before { background: var(--indigo); }
.mx-tracker-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--border-strong); border-radius: 50%; background: var(--white); font-weight: 700; }
.mx-tracker li.is-done .mx-tracker-dot { border-color: var(--indigo); background: var(--indigo); color: var(--white); }
.mx-tracker li.is-current { color: var(--ink); font-weight: 700; }
.mx-tracker li.is-current .mx-tracker-dot { border-color: var(--indigo); color: var(--indigo); box-shadow: 0 0 0 5px rgba(31, 47, 152, 0.12); }
.mx-tracker.is-stopped li.is-done .mx-tracker-dot { border-color: #98a2b3; background: #98a2b3; }
.mx-tracker.is-stopped li.is-done + li::before { background: #98a2b3; }
@media (max-width: 640px) {
  .mx-tracker { grid-template-columns: 1fr; gap: 10px; }
  .mx-tracker li { flex-direction: row; text-align: left; gap: 12px; }
  .mx-tracker li + li::before { top: -10px; left: 15px; right: auto; width: 3px; height: 10px; }
}

.mx-track-explain { padding: 14px 16px; background: var(--tint); border-radius: var(--radius-sm); }
.mx-track-explain p { margin: 0; color: var(--ink); line-height: 1.55; }
.mx-track-explain.is-terminal { background: #f2f4f7; }

.mx-messages { margin-top: 22px; }
.mx-messages h4 { margin: 0 0 10px; font-size: 15px; color: var(--ink); }
.mx-message { padding: 12px 14px; border: 1px solid var(--border); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); }
.mx-message + .mx-message { margin-top: 8px; }
.mx-message-meta { margin: 0 0 4px; font-size: 13px; color: var(--slate); }
.mx-message-body { margin: 0; line-height: 1.55; color: var(--ink); }

.mx-app-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; padding: clamp(20px, 3vw, 32px); background: var(--off-white); font-size: var(--fs-small); }
.mx-app-contact p { margin: 0; line-height: 1.6; }
@media (max-width: 640px) {
  .mx-app-meta div { flex-direction: column; gap: 0; }
  .mx-app-meta dt { min-width: 0; }
}
