/* ==========================================================================
   Asesorías MV — visual system v2 (Archivo / ink / cobalt / signal)
   Single family: Archivo Variable (wdth 62.5–125, wght 100–900).
   Flat surfaces, 0–2px radii, no shadows, no gradients, no motifs.
   ========================================================================== */

:root {
  /* Color tokens */
  --ink: #111820;
  --surface: #F2F3F1;
  --white: #FFFFFF;
  --brand: #2347D8;
  --brand-dark: #1834A3;
  --signal: #F6B900;
  --success: #13795B;
  --danger: #B3261E;
  --muted: #5B6570;
  --line: #C7CDD3;
  /* Geometry */
  --radius-control: 2px;
  --radius-card: 0px;
  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --s9: 88px;
  /* Containers */
  --container-reading: 760px;
  --container-operational: 960px;
  --container-wide: 1180px;
  --side: 20px;
  --font: "Archivo", -apple-system, "Segoe UI", Arial, sans-serif;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.52;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

/* Typography ------------------------------------------------------------- */
h1, h2, .page-heading {
  font-stretch: 75%;
  font-weight: 800;
  font-size: 36px;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h3 {
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
h4 {
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
p, li { max-width: 62ch; }
.support { font-size: 15px; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); }
.kicker {
  /* interior pages only (pending restyle); homepage has no kickers */
  display: block;
  font-size: 13px;
  font-stretch: 87.5%;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s3);
}
a { color: var(--brand); }
strong { font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Containers -------------------------------------------------------------- */
.wrap {
  padding-left: var(--side); padding-right: var(--side);
  max-width: var(--container-reading); margin: 0 auto;
}
.wrap--op { max-width: var(--container-operational); }
.wrap--wide { max-width: var(--container-wide); }

/* Fallback section rhythm for interior pages not yet restyled.
   Homepage sections override with their own spacing classes. */
section { padding: 40px 0 48px; }

/* Homepage section spacing (mobile) --------------------------------------- */
.sec-situations { padding: var(--s6) 0 40px; }
.sec-value { padding: 40px 0; }
.sec-process { padding: 36px 0 40px; }
.sec-evidence { padding: var(--s6) 0 var(--s7); }
.sec-services { padding: 40px 0 var(--s7); }
.sec-pro { padding: 0 0 40px; }
.sec-plans { padding: 40px 0 var(--s7); }
.sec-proof { padding: var(--s6) 0 40px; }
.sec-faq { padding: 36px 0 var(--s7); }
.final-cta { padding: 40px 0; }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-control);
  font-family: var(--font);
  font-size: 17px; font-stretch: 87.5%; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary {
  background: transparent; color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-secondary:hover { background: rgba(35, 71, 216, 0.06); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { filter: brightness(0.96); }
.btn-compact { min-height: 40px; padding: 8px 14px; font-size: 15px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  color: var(--brand);
  font-stretch: 87.5%; font-weight: 700;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); margin-top: var(--s5); }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 62px;
  padding: 0 var(--side);
  max-width: var(--container-wide); margin: 0 auto;
}
.brand {
  font-stretch: 75%; font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mv { color: var(--brand); }
.header-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { display: none; }
.menu-btn {
  min-height: 44px; min-width: 44px; padding: 8px 12px;
  background: transparent; border: 0;
  font-family: var(--font);
  font-size: 15px; font-stretch: 87.5%; font-weight: 700;
  letter-spacing: 0.045em;
  color: var(--ink); cursor: pointer;
}

/* Mobile menu ------------------------------------------------------------- */
.menu-panel {
  position: fixed; inset: 62px 0 0 0; z-index: 49;
  background: var(--white);
  overflow-y: auto;
  padding: var(--s3) var(--side) 40px;
  border-top: 1px solid var(--line);
}
.menu-panel[hidden] { display: none; }
.menu-nav ul { list-style: none; margin: 0; padding: 0; }
.menu-nav a {
  display: block; padding: 15px 4px;
  font-size: 21px; font-stretch: 87.5%; font-weight: 700;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.menu-contact { margin-top: var(--s6); }
.menu-contact p { margin-bottom: var(--s2); }
.menu-contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-stretch: 87.5%; }

/* Hero -------------------------------------------------------------------- */
.hero {
  background: var(--brand);
  color: var(--white);
  padding: 42px 0 0;
}
.hero h1 {
  font-size: clamp(48px, 13vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  max-width: 9ch;
  color: var(--white);
}
.hero .lede { margin-top: var(--s5); font-size: 18px; max-width: 34ch; color: var(--white); }
.hero .link-arrow { color: var(--white); text-decoration: underline; }
.hero :focus-visible { outline-color: var(--white); }
.cred-line {
  max-width: none;
  margin-top: 36px;
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 13px; font-weight: 700; font-stretch: 87.5%;
  letter-spacing: 0.045em;
}

/* Customer-situation list -------------------------------------------------- */
.situation-list { list-style: none; margin: var(--s5) 0 0; padding: 0; }
.situation-list li { max-width: none; }
.situation-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: var(--s4);
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none; color: inherit;
}
.situation-list li:last-child .situation-link { border-bottom: 2px solid var(--ink); }
.situation-num {
  font-size: 14px; font-weight: 800; color: var(--brand);
  font-variant-numeric: lining-nums tabular-nums;
  padding-top: 5px;
}
.situation-title {
  display: block;
  font-size: 22px; font-stretch: 87.5%; font-weight: 700;
  line-height: 1.08; letter-spacing: -0.015em;
}
.situation-desc { display: block; margin-top: var(--s1); font-size: 15px; color: var(--muted); }
.situation-arrow { color: var(--ink); font-size: 22px; font-weight: 700; padding-top: 2px; }
.situation-link:hover .situation-title,
.situation-link:focus-visible .situation-title,
.situation-link:hover .situation-arrow,
.situation-link:focus-visible .situation-arrow { color: var(--brand); }

/* Editorial rows ----------------------------------------------------------- */
.editorial-rows { margin-top: var(--s2); }
.editorial-row { border-top: 1px solid var(--line); padding: 22px 0; }
.editorial-row:last-child { border-bottom: 2px solid var(--ink); }
.editorial-row h3 { margin-bottom: var(--s1); }

/* Value proposition (ink field) -------------------------------------------- */
.sec-value { background: var(--ink); color: var(--white); }
.sec-value h2 { color: var(--white); }
.sec-value .editorial-row { border-top: 1px solid rgba(255, 255, 255, 0.25); }
.sec-value .editorial-row:last-child { border-bottom: 0; }
.sec-value .editorial-row h3 { color: var(--white); }
.sec-value .editorial-row p { color: var(--line); }

/* Process steps (documentary rows) ----------------------------------------- */
.sec-process { background: var(--surface); }
.steps { list-style: none; margin: var(--s5) 0 0; padding: 0; counter-reset: step; }
.steps > li {
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: var(--s4);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
  max-width: none;
}
.steps > li::before {
  content: "0" counter(step);
  grid-row: 1 / span 2;
  font-size: 48px;
  font-stretch: 75%; font-weight: 800;
  line-height: 0.9;
  color: var(--brand);
  font-variant-numeric: lining-nums tabular-nums;
}
.steps > li:last-child { border-bottom: 2px solid var(--ink); }
.steps h3 { grid-column: 2; margin-bottom: var(--s1); }
.steps p { grid-column: 2; }

/* Monthly evidence document ------------------------------------------------ */
.example-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-top: var(--s5);
}
.example-head {
  text-transform: uppercase;
  font-size: 13px; font-stretch: 87.5%; font-weight: 700;
  letter-spacing: 0.045em;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
/* legacy pair kept for interior pages pending restyle */
.example-tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 13px; font-stretch: 87.5%; font-weight: 700;
  letter-spacing: 0.045em;
  color: var(--muted);
  margin-bottom: var(--s3);
}
.example-month {
  font-size: 20px; font-stretch: 75%; font-weight: 800;
  margin-bottom: var(--s3);
  font-variant-numeric: lining-nums tabular-nums;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  column-gap: var(--s3);
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  max-width: none; font-size: 16px;
}
.timeline li:first-child { border-top: 0; }
.timeline .t-date {
  font-size: 14px; color: var(--muted);
  font-variant-numeric: lining-nums tabular-nums;
}
.timeline .t-event { color: var(--ink); font-weight: 600; }
.t-done {
  justify-self: end; text-align: right;
  font-size: 13px; font-stretch: 87.5%; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--success);
}
@media (max-width: 479px) {
  .timeline li { grid-template-columns: 64px 1fr; }
  .timeline .t-done { grid-column: 2; justify-self: start; text-align: left; margin-top: 2px; }
}
.next-step {
  background: var(--signal);
  color: var(--ink);
  border-radius: 0;
  padding: 16px 20px;
  margin-top: var(--s5);
}
.example-card .next-step { margin: 20px -20px -20px; }
.next-step h4 { margin-bottom: var(--s1); text-transform: uppercase; font-size: 13px; letter-spacing: 0.045em; }
.next-step p { font-size: 16px; color: var(--ink); }
.next-step a { color: var(--ink); }

/* Service modules ---------------------------------------------------------- */
.module { border-top: 1px solid var(--line); padding: var(--s5) 0; }
.module:last-of-type { border-bottom: 2px solid var(--ink); }
.module h3 { margin-bottom: var(--s1); }
.module ul { margin: var(--s3) 0; padding-left: 20px; }
.module li { margin-bottom: var(--s1); font-size: 16px; }

/* Secondary surface sections (interior pages) ------------------------------ */
.section-maiz { background: var(--surface); }

/* Professional section ----------------------------------------------------- */
.pro-portrait {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #D8DCE0;
  display: block;
  border-radius: 0;
}
.pro-body { padding-top: var(--s5); }
.pro-body h2 { margin-bottom: var(--s4); }
.pro-name {
  font-size: 22px; font-stretch: 87.5%; font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: var(--s5);
}
.pro-role { color: var(--brand); font-weight: 700; font-stretch: 87.5%; margin: 2px 0 var(--s3); }
/* interior accountability block (la-firma) */
.pro-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: var(--s5) 20px;
  margin-top: var(--s5);
}
.pro-card .pro-name { margin-top: 0; }

/* Plans -------------------------------------------------------------------- */
.plans { display: flex; flex-direction: column; gap: var(--s5); margin-top: var(--s5); }
.plan-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 24px;
  display: flex; flex-direction: column;
}
.plan-card h3 {
  font-size: 30px; font-stretch: 75%; font-weight: 800;
  letter-spacing: -0.02em; line-height: 1;
}
.plan-for { color: var(--muted); font-size: 15px; margin: var(--s2) 0 var(--s4); }
.plan-price { font-size: 17px; font-weight: 400; }
.price-amount {
  display: block;
  font-size: 36px; font-stretch: 75%; font-weight: 800;
  line-height: 1.05;
  font-variant-numeric: lining-nums tabular-nums;
}
.plan-price small {
  display: block; font-size: 14px; font-weight: 400; color: var(--muted);
  margin-top: var(--s2); max-width: 34ch;
}
.plan-card ul { margin: var(--s4) 0; padding-left: 20px; }
.plan-card li { margin-bottom: var(--s2); font-size: 16px; }
.plan-card .btn {
  width: 100%;
  background: var(--brand); color: var(--white); border: 0;
  margin-top: var(--s2);
}
.plan-card .btn:hover { background: var(--brand-dark); }
.price-drivers { margin-top: var(--s2); font-size: 14px; color: var(--muted); }

/* Accordions --------------------------------------------------------------- */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 2px solid var(--ink); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 4px; min-height: 48px;
  font-size: 17px; font-stretch: 87.5%; font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--brand); flex: none; }
details[open] summary::after { content: "–"; }
details .details-body { padding: 0 4px 18px; }
details .details-body p, details .details-body li { font-size: 16px; }
details .details-body ul { margin: var(--s2) 0; padding-left: 20px; }
.plan-card details, .plan-card details:last-of-type { border-bottom: 0; margin-top: var(--s1); }

/* Proof -------------------------------------------------------------------- */
.proof-item { border-top: 1px solid var(--line); padding: 20px 0; }
.proof-item h3 { margin-bottom: var(--s1); }
.proof-item:last-of-type { border-bottom: 2px solid var(--ink); }

/* Final CTA ---------------------------------------------------------------- */
.final-cta {
  background: var(--white);
  border-top: 2px solid var(--ink);
}
.final-cta h2 { color: var(--ink); }
.final-cta p { color: var(--ink); }
.final-cta .support { color: var(--muted); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: var(--line); padding: var(--s7) 0 var(--s6); font-size: 15px; }
.site-footer .brand, .site-footer .brand-mv { color: var(--white); }
.site-footer h4 {
  color: var(--white);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.045em;
  margin: 22px 0 var(--s2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--s1); }
.site-footer ul a { color: var(--line); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.site-footer ul a:hover { color: var(--white); text-decoration: underline; }
.site-footer .footer-legal a { color: var(--line); }
.footer-legal {
  margin-top: var(--s6); padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px; color: var(--line);
}
.footer-legal p { margin-bottom: var(--s2); }

/* Forms -------------------------------------------------------------------- */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-stretch: 87.5%; font-weight: 700; margin-bottom: var(--s2); }
.form-field .field-hint { font-size: 14px; color: var(--muted); margin: -2px 0 var(--s2); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-family: var(--font); font-size: 17px; color: var(--ink);
  background: var(--white); border: 1px solid var(--muted);
  border-radius: var(--radius-control);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand);
}
.field-error { display: none; font-size: 14px; color: var(--danger); margin-top: var(--s2); font-weight: 700; }
.form-field.has-error .field-error { display: block; }
.form-field.has-error input { border-color: var(--danger); }
.data-note {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 0;
  padding: var(--s4); margin-top: var(--s5);
  font-size: 14px; color: var(--muted);
}
.data-note strong { color: var(--ink); }

/* Contact methods ---------------------------------------------------------- */
.contact-methods { list-style: none; margin: 20px 0 0; padding: 0; }
.contact-methods li { border-top: 1px solid var(--line); padding: 14px 0; max-width: none; }
.contact-methods li:last-child { border-bottom: 2px solid var(--ink); }
.contact-methods .method-label { font-size: 14px; color: var(--muted); }
.contact-methods a { font-weight: 700; font-stretch: 87.5%; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.recommended-tag {
  display: inline-block; margin-left: var(--s2);
  font-size: 12px; font-stretch: 87.5%; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted);
  vertical-align: middle;
}

/* Comparison table ---------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin-top: var(--s5); -webkit-overflow-scrolling: touch; }
.compare-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; background: var(--white); }
.compare-table caption { text-align: left; font-size: 14px; color: var(--muted); padding-bottom: var(--s3); }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--ink); color: var(--white); font-weight: 700; font-stretch: 87.5%; }
.compare-table tbody th { font-weight: 700; font-stretch: 87.5%; background: var(--surface); }
.compare-table td { font-variant-numeric: lining-nums tabular-nums; }
.yes { color: var(--ink); font-weight: 700; }
.no { color: var(--muted); }

/* Page hero (interior pages) ----------------------------------------------- */
.page-hero { padding: var(--s7) 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .lede { margin-top: var(--s4); font-size: 18px; }

/* Utility ------------------------------------------------------------------- */
.mt-3 { margin-top: var(--s5); }
.stack > * + * { margin-top: var(--s4); }
.checklist { list-style: none; margin: var(--s4) 0 0; padding: 0; }
.checklist li { padding: 6px 0 6px 28px; position: relative; font-size: 16px; }
.checklist li::before {
  content: "—"; position: absolute; left: 0; top: 6px;
  color: var(--ink); font-weight: 700;
}

/* Desktop adaptation -------------------------------------------------------- */
@media (min-width: 720px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  :root { --side: 32px; }
  body { font-size: 18px; }
  h1, h2, .page-heading { font-size: clamp(48px, 4vw, 68px); }
  .header-inner { height: 72px; }
  .brand { font-size: 20px; }
  .header-nav {
    display: flex; align-items: center; gap: 22px;
    flex: 1; justify-content: center; min-width: 0;
  }
  .header-nav a {
    font-size: 15px; font-stretch: 87.5%; font-weight: 700;
    color: var(--ink); text-decoration: none; white-space: nowrap;
  }
  .header-nav a:hover { color: var(--brand); }
  .menu-btn { display: none; }
  .menu-panel { display: none; }

  .hero { padding-top: var(--s8); }
  .hero h1 { font-size: clamp(72px, 7vw, 104px); }

  .sec-situations { padding: var(--s7) 0 var(--s8); }
  .sec-value { padding: var(--s8) 0; }
  .sec-process { padding: var(--s7) 0 var(--s8); }
  .sec-evidence { padding: var(--s7) 0 var(--s8); }
  .sec-services { padding: var(--s8) 0 var(--s8); }
  .sec-pro { padding: 0 0 var(--s8); }
  .sec-plans { padding: var(--s8) 0 var(--s8); }
  .sec-proof { padding: var(--s7) 0 var(--s8); }
  .sec-faq { padding: var(--s7) 0 var(--s8); }
  .final-cta { padding: var(--s8) 0; }

  .cta-row { flex-direction: row; align-items: center; gap: var(--s5); }
  .plans-row { flex-direction: row; align-items: stretch; }
  .plans-row .plan-card { flex: 1; }

  .pro-split {
    display: grid;
    grid-template-columns: 3fr 2fr;
    column-gap: var(--s7);
    align-items: center;
  }
  .pro-portrait { aspect-ratio: 3 / 2; }
  .pro-body { padding-top: var(--s6); }

  .footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--s6); }
}

/* Motion -------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
