/* ============================================================
   VERSA SOL — Design System v2
   Principio: Cada color, sombra y línea tiene una función.
   Nada decorativo. Todo intencional.
   ============================================================ */

:root {
  /* Semantic color tokens */
  --color-action: #1b6ff8;
  --color-action-hover: #1558ce;
  --color-trust: #0f6ea8;
  --color-confidence: #00b8a9;
  --color-warning: #d59014;
  --color-danger: #d64c4c;

  /* APEX brand */
  --color-apex: #531714;
  --color-apex-warm: #b47022;
  --color-apex-cream: #f8efe1;

  /* Neutrals */
  --color-ink: #102033;
  --color-muted: #5d6f83;
  --color-line: #dce4ee;
  --color-surface: #f9fafb;
  --color-surface-alt: #f3f6fa;
  --color-white: #ffffff;
  --color-navy: #071624;
  --color-navy-light: #0d2133;

  /* Elevation — minimal, solo donde tiene propósito funcional */
  --elevation-product: 0 24px 64px rgba(7, 22, 36, 0.12);
  --elevation-card: 0 1px 3px rgba(0, 0, 0, 0.04);

  /* Typography */
  --font-display: "Libre Franklin", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-data: "JetBrains Mono", monospace;

  /* Spacing */
  --section-gap: clamp(80px, 10vw, 140px);
  --content-max: 1180px;
  --content-padding: clamp(24px, 5vw, 64px);
}

/* ============================================================
   RESET
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   UTILITY: Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--color-white);
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 22, 36, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.brand {
  width: 150px;
  flex: 0 0 auto;
}

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

.nav-links a {
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: var(--color-white);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
  cursor: pointer;
}

.button:hover {
  transform: scale(1.02);
}

.header-cta {
  background: var(--color-confidence);
  color: #062220;
}

.header-cta:hover {
  background: #00a093;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 6px auto;
  background: var(--color-white);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding: 120px var(--content-padding) 80px;
  background: linear-gradient(135deg, #071624 0%, #0d2133 62%, #09231f 100%);
  overflow: hidden;
}

.hero-content {
  flex: 1;
  max-width: 680px;
  color: var(--color-white);
  position: relative;
  z-index: 2;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button.primary {
  background: var(--color-action);
  color: var(--color-white);
}

.button.primary:hover {
  background: var(--color-action-hover);
  box-shadow: 0 6px 20px rgba(27, 111, 248, 0.35);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.button.light {
  background: var(--color-white);
  color: var(--color-navy);
}

.button.light:hover {
  background: #eef2f6;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.hero-product {
  flex: 0 0 min(520px, 45%);
  position: relative;
  z-index: 1;
}

.hero-capture {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--elevation-product);
}

.hero-capture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 16px;
  background: #f8fafc;
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}

.trust-item {
  padding: 28px 24px;
  border-right: 1px solid var(--color-line);
  text-align: center;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1;
}

.trust-item span {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

/* ============================================================
   DECISION
   ============================================================ */

.decision {
  padding: var(--section-gap) var(--content-padding);
  background: var(--color-white);
}

.decision h2 {
  max-width: 780px;
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 12px;
}

.decision-card {
  min-height: 200px;
  padding: 28px;
  border-radius: 12px;
  background: var(--color-surface);
}

.decision-main {
  background: var(--color-navy);
  color: var(--color-white);
}

.decision-main h3,
.decision-main p {
  color: rgba(255, 255, 255, 0.85);
}

.apex-card {
  background: var(--color-apex);
  color: var(--color-white);
}

.apex-card h3,
.apex-card p {
  color: var(--color-apex-cream);
}

.decision-card span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-action);
}

.decision-main span {
  color: var(--color-confidence);
}

.apex-card span {
  color: var(--color-apex-warm);
}

.decision-card h3 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.decision-card p {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   FLOW
   ============================================================ */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}

.flow-step {
  padding: 32px 28px 36px;
  border-right: 1px solid var(--color-line);
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step strong {
  display: block;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-action);
}

.flow-step h3 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.1;
}

.flow-step p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.flow-step-apex {
  background: #fdf8f2;
}

.flow-step-apex strong {
  color: var(--color-apex-warm);
}

/* ============================================================
   CMMS OVERVIEW
   ============================================================ */

.cmms-overview {
  padding: var(--section-gap) var(--content-padding);
  background: var(--color-surface);
}

.cmms-overview h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.section-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.55;
}

.cmms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.cmms-card {
  padding: 24px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--elevation-card);
}

.cmms-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.cmms-card p {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ============================================================
   POSITIONING
   ============================================================ */

.positioning {
  padding: var(--section-gap) var(--content-padding);
  background: var(--color-white);
}

.positioning-grid {
  display: grid;
  gap: 20px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.pos-card {
  padding: clamp(32px, 5vw, 56px);
  border-radius: 16px;
}

.pos-dark {
  background: linear-gradient(135deg, #091725 0%, #0d2133 100%);
  color: var(--color-white);
}

.pos-light {
  background: var(--color-surface);
}

.pos-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pos-dark .pos-eyebrow {
  color: var(--color-confidence);
}

.pos-light .pos-eyebrow {
  color: var(--color-action);
}

.pos-card h2 {
  max-width: 800px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.pos-card p {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.55;
}

.pos-dark p {
  color: rgba(255, 255, 255, 0.74);
}

.pos-light p {
  color: var(--color-muted);
}

.pos-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.pos-price {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.pos-price:first-child {
  border-color: rgba(0, 184, 169, 0.45);
  background: rgba(0, 184, 169, 0.1);
}

.pos-price span,
.pos-price small {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pos-price strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--color-white);
  font-family: var(--font-data);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1;
}

.pos-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.pos-list li {
  position: relative;
  padding-left: 20px;
  color: #26384e;
  font-weight: 600;
  font-size: 15px;
}

.pos-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-confidence);
}

/* ============================================================
   SHOWCASE
   ============================================================ */

.showcase {
  padding: var(--section-gap) var(--content-padding);
  background: var(--color-surface);
}

.showcase h2 {
  max-width: 640px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.showcase-gallery {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.showcase-wide {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: var(--elevation-card);
}

.showcase-wide:first-of-type {
  grid-template-columns: minmax(320px, 1fr) minmax(0, 0.8fr);
}

.showcase-wide:last-of-type {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(20px, 3vw, 38px);
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: var(--elevation-card);
}

.showcase-shot {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: var(--elevation-product);
}

.showcase-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 10px;
}

.showcase-text h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.showcase-text p {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================================
   OBJECTIONS
   ============================================================ */

.objections {
  padding: var(--section-gap) var(--content-padding);
  background: var(--color-white);
}

.objections h2 {
  max-width: 640px;
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.objections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.objection-card {
  padding: 28px;
  border-radius: 14px;
  background: var(--color-surface);
}

.objection-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--color-ink);
}

.objection-card p {
  margin: 14px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
}

.objection-card-apex {
  background: var(--color-apex-cream);
  border: 1px solid rgba(180, 112, 34, 0.18);
}

.objection-card-apex h3 {
  color: var(--color-apex);
}

.objection-card-apex p {
  color: #5c3a22;
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing {
  padding: var(--section-gap) var(--content-padding);
  background: var(--color-surface);
}

.pricing h2 {
  max-width: 600px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.pricing-table-wrap {
  margin-top: 36px;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--color-line);
  background: var(--color-white);
}

.pricing-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.pricing-table th {
  background: #f5f8fb;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink);
}

.pricing-table td {
  color: var(--color-muted);
}

.pricing-table td:first-child {
  color: var(--color-ink);
  font-weight: 700;
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.pricing-table td strong {
  font-family: var(--font-data);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

.pricing-comparison {
  margin-top: 28px;
  padding: 28px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--elevation-card);
}

.pricing-comparison h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.pricing-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compare-item {
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
}

.compare-ours {
  border-color: var(--color-confidence);
  background: rgba(0, 184, 169, 0.04);
}

.compare-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
}

.compare-price {
  display: block;
  font-family: var(--font-data);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.compare-item span:last-child {
  font-size: 13px;
  color: var(--color-muted);
}

.compare-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--color-muted);
  font-weight: 600;
}

/* ============================================================
   APEX
   ============================================================ */

.apex {
  padding: var(--section-gap) var(--content-padding);
  background: linear-gradient(135deg, rgba(83, 23, 20, 0.97) 0%, rgba(93, 35, 20, 0.95) 56%, rgba(14, 18, 28, 0.98) 100%);
  color: var(--color-apex-cream);
}

.apex-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 36px;
}

.apex-eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-apex-warm);
}

.apex-hero-text h2 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.apex-hero-text p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(248, 239, 225, 0.74);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.55;
}

.apex-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.apex-impact-grid article {
  padding: 22px;
  border: 1px solid rgba(240, 177, 90, 0.18);
  border-radius: 10px;
  background: rgba(248, 239, 225, 0.05);
}

.apex-impact-grid strong {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}

.apex-impact-grid span {
  display: block;
  margin-top: 10px;
  color: rgba(248, 239, 225, 0.65);
  font-size: 13px;
  line-height: 1.45;
}

.apex-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.apex-services-grid article {
  padding: 24px;
  border: 1px solid rgba(248, 239, 225, 0.12);
  border-radius: 10px;
  background: rgba(248, 239, 225, 0.05);
}

.apex-services-grid h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.apex-services-grid p {
  margin: 12px 0 0;
  color: rgba(248, 239, 225, 0.65);
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================================
   CTA FINAL
   ============================================================ */

.cta-final {
  padding: clamp(80px, 12vw, 140px) var(--content-padding);
  background: linear-gradient(135deg, #10243a 0%, #0b1c2f 60%, #0b2b24 100%);
  color: var(--color-white);
  text-align: center;
}

.cta-final h2 {
  max-width: 780px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.cta-final p {
  max-width: 600px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.cta-guarantee {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px var(--content-padding);
  background: #07111d;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
}

.footer img {
  width: 24px;
  opacity: 0.6;
}

/* ============================================================
   RESPONSIVE — Tablet (≤ 980px)
   ============================================================ */

@media (max-width: 980px) {
  .menu-button {
    display: block;
    margin-left: auto;
  }

  .header-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    padding: 16px;
    background: rgba(7, 22, 36, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
  }

  .site-header.is-open .nav-links {
    display: grid;
    gap: 4px;
  }

  .hero {
    flex-direction: column;
    min-height: auto;
    padding: 110px var(--content-padding) 60px;
    gap: 32px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-product {
    flex: 0 0 auto;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .decision-grid {
    grid-template-columns: 1fr 1fr;
  }

  .decision-main {
    grid-column: 1 / -1;
  }

  .flow {
    grid-template-columns: 1fr 1fr;
  }

  .flow-step:nth-child(2) {
    border-right: 0;
  }

  .cmms-grid {
    grid-template-columns: 1fr 1fr;
  }

  .objections-grid {
    grid-template-columns: 1fr;
  }

  .positioning-grid {
    gap: 16px;
  }

  .pos-comparison {
    grid-template-columns: 1fr;
  }

  .showcase-wide,
  .showcase-row {
    grid-template-columns: 1fr;
  }

  .showcase-wide:first-of-type,
  .showcase-wide:last-of-type {
    grid-template-columns: 1fr;
  }

  .pricing-compare-grid {
    grid-template-columns: 1fr;
  }

  .apex-impact-grid,
  .apex-services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 640px)
   ============================================================ */

@media (max-width: 640px) {
  .site-header {
    height: 64px;
    gap: 14px;
    padding: 0 16px;
  }

  .brand {
    width: 120px;
  }

  .nav-links {
    top: 64px;
    padding: 14px 16px 18px;
  }

  .nav-links a {
    padding: 12px 8px;
    font-size: 15px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 32px);
  }

  .hero {
    padding: 100px 16px 40px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .trust-sep {
    display: none;
  }

  .hero-product {
    max-width: 100%;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
    padding: 22px 18px;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .decision {
    padding: 60px 16px;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow-step {
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .flow-step:last-child {
    border-bottom: 0;
  }

  .cmms-overview {
    padding: 60px 16px;
  }

  .cmms-grid {
    grid-template-columns: 1fr;
  }

  .positioning {
    padding: 60px 16px;
  }

  .showcase {
    padding: 60px 16px;
  }

  .objections {
    padding: 60px 16px;
  }

  .pricing {
    padding: 60px 16px;
  }

  .pricing-table-wrap {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .pricing-table {
    min-width: 560px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .apex {
    padding: 60px 16px;
  }

  .apex-impact-grid,
  .apex-services-grid {
    grid-template-columns: 1fr;
  }

  .cta-final {
    padding: 70px 20px;
  }

  .cta-final h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  .footer {
    padding: 22px 16px;
    font-size: 12px;
  }
}

/* ============================================================
   HEADER LOGIN BUTTON
   ============================================================ */

.header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}

.header-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.48);
  color: var(--color-white);
}

@media (max-width: 480px) {
  .header-login {
    display: none;
  }
}

/* ============================================================
   BRAND INLINE LOGO
   ============================================================ */

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-icon { display: flex; align-items: center; flex-shrink: 0; }

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.brand-name {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.brand-sub {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: #26E67D;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* ============================================================
   DIAGNÓSTICO / FORMULARIO
   ============================================================ */

.diag-section {
  padding: var(--section-gap) var(--content-padding);
  background: var(--color-navy);
}

.diag-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.diag-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 16px;
  line-height: 1.22;
}

.diag-copy p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0 0 24px;
}

.diag-promises {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diag-promises li {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  padding-left: 20px;
  position: relative;
}

.diag-promises li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #26E67D;
  font-weight: 700;
}

/* Form */
.diag-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.diag-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diag-field--full {
  grid-column: 1 / -1;
}

.diag-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.req { color: var(--color-action); }
.opt { color: var(--color-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }

.diag-field input,
.diag-field select,
.diag-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-ink);
  background: var(--color-surface);
  border: 1.5px solid var(--color-line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 150ms ease;
  width: 100%;
  box-sizing: border-box;
}

.diag-field input:focus,
.diag-field select:focus,
.diag-field textarea:focus { border-color: var(--color-action); }

.diag-field textarea { resize: vertical; min-height: 80px; }

.diag-form-error {
  font-size: 13px;
  color: var(--color-danger);
  min-height: 18px;
  margin: 0;
}

.diag-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  border: none;
  border-radius: 10px;
  background: var(--color-action);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
  margin-top: 4px;
}

.diag-submit:hover { background: var(--color-action-hover); transform: scale(1.01); }
.diag-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.diag-submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: diagSpin 0.7s linear infinite;
}

.diag-submit.is-loading .diag-submit-text { display: none; }
.diag-submit.is-loading .diag-submit-spinner { display: block; }

@keyframes diagSpin { to { transform: rotate(360deg); } }

/* Success state */
.diag-success {
  background: #fff;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}

.diag-success--hidden { display: none; }

.diag-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #26E67D;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid #26E67D;
}

.diag-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 8px;
}

.diag-success p {
  font-size: 15px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   FOOTER NUEVO
   ============================================================ */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 24px var(--content-padding);
  background: #040d17;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 500;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-name {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.footer-sep { opacity: 0.3; }

.footer-tagline { color: rgba(255,255,255,0.4); }

.footer-parent {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.45);
}

.footer-parent strong { color: rgba(255,255,255,0.65); font-weight: 600; }

/* Responsive form */
@media (max-width: 900px) {
  .diag-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .diag-row {
    grid-template-columns: 1fr;
  }
  .diag-form {
    padding: 24px 20px;
  }
}
