:root {
  --bold-purple: #534ab7;
  --purple-dark: #2f286f;
  --ink: #17172a;
  --muted: #67677d;
  --line: #e7e6f2;
  --panel: #ffffff;
  --page: #f7f7fb;
  --critical: #d94f4f;
  --weak: #d59b32;
  --regular: #4d84d8;
  --strong: #29a36a;
  font-family: "Roboto Slab", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #efeff7;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  max-width: 1180px;
  min-height: 104px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: right;
}

.main-nav a {
  color: #252a59;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.logo-link img {
  display: block;
  max-width: 180px;
  height: auto;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  min-height: 42px;
  padding: 12px 14px;
  border: 1px solid #252a59;
  color: #252a59;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 210px;
  padding: 10px;
  background: #fff;
  border: 1px solid #e7e6f2;
  box-shadow: 0 18px 40px rgba(20, 20, 45, 0.14);
  text-align: left;
}

.mobile-menu-panel a {
  padding: 12px 10px;
  color: #252a59;
  text-decoration: none;
}

.sales-hero,
.result-hero {
  display: grid;
  align-items: center;
  min-height: 460px;
  color: #fff;
}

.sales-hero {
  background:
    linear-gradient(90deg, rgba(9, 10, 18, 0.96), rgba(9, 10, 18, 0.78)),
    url("./assets/hero-desktop-diagnostico.png") center / cover no-repeat;
}

.result-hero {
  background:
    linear-gradient(90deg, rgba(9, 10, 18, 0.96), rgba(9, 10, 18, 0.72)),
    url("./assets/hero-desktop-resultado.png") center / cover no-repeat;
}

.sales-hero-copy,
.result-hero > div {
  width: min(620px, calc(100% - 48px));
  margin-left: max(24px, calc((100vw - 1180px) / 2 + 160px));
}

.result-hero > div {
  width: min(720px, calc(100% - 64px));
  margin-left: max(24px, calc((100vw - 1180px) / 2 + 48px));
}

.sales-hero h1,
.result-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.35rem);
  font-weight: 850;
  line-height: 1.05;
}

.result-hero h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
}

.sales-hero h2 {
  margin: 22px 0 18px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.sales-hero p,
.result-hero p {
  max-width: 430px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.hero-cta,
.plan-page-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 0;
  padding: 0 28px;
  background: var(--bold-purple);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

.pain-section,
.diagnostic-section,
.plan-page,
.case-section,
.final-cta-section {
  padding: 72px 24px;
  background: #fff;
}

.content-narrow,
.section-heading,
.plan-content,
.case-content {
  width: min(720px, 100%);
  margin: 0 auto;
}

.content-narrow h2,
.section-heading h2,
.plan-content h2,
.case-content h2 {
  color: #252a59;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.pain-list,
.priority-placeholders {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding-left: 22px;
  color: #9a3d43;
  font-size: 1.1rem;
  line-height: 1.4;
}

.diagnostic-section {
  background: var(--page);
}

.case-section,
.final-cta-section {
  border-top: 1px solid #252a59;
}

.case-content h3 {
  margin: 36px 0 22px;
  color: #252a59;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.case-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(28px, 1fr));
  align-items: end;
  gap: 14px;
  min-height: 310px;
  padding: 28px 24px 44px;
  background: #28258a;
  overflow-x: auto;
}

.case-chart span {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  min-width: 34px;
  height: calc(var(--value) * 0.78px);
  min-height: 7px;
  padding-top: 8px;
  background: #ed1b2f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.case-chart span::after {
  content: attr(data-label);
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
}

.case-result {
  margin: 34px 0 0;
  color: #252a59;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.45;
}

.final-cta-section p {
  margin: 34px 0 44px;
  color: #252a59;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 48px max(24px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-top: 1px solid #252a59;
  color: #252a59;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer div {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #252a59;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.plan-page {
  color: #30355f;
}

.score-token {
  margin: 0 0 24px;
  color: #252a59;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
}

.plan-content h3 {
  margin: 30px 0 0;
}

.plan-content p,
.plan-content li {
  color: #495071;
  font-weight: 700;
  line-height: 1.55;
}

.plan-content hr {
  margin: 54px 0 34px;
  border: 0;
  border-top: 1px solid #252a59;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.check-list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  border-radius: 999px;
  background: #1ecb52;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(120px, 1fr));
  gap: 10px 14px;
  align-items: center;
  margin-top: 26px;
  font-size: 0.9rem;
}

.comparison-table a,
.comparison-table b {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid #252a59;
  border-radius: 8px;
  color: #252a59;
  text-decoration: none;
}

.comparison-table a {
  min-height: 58px;
  font-weight: 900;
}

.comparison-table .active,
.comparison-table.is-starter > :nth-child(4n + 2),
.comparison-table.is-growth > :nth-child(4n + 3),
.comparison-table.is-scale > :nth-child(4n + 4) {
  background: #252a59;
  color: #fff;
}

.comparison-table b {
  font-size: 0.78rem;
}

.comparison-table .no {
  color: #d94f4f;
}

button,
select,
a,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.workspace {
  min-width: 0;
}

.topbar,
.control-panel,
.summary-band,
.dimension-card,
.sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(44, 37, 96, 0.07);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-top: 4px solid var(--bold-purple);
}

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

.mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bold-purple);
  color: #fff;
  font-weight: 850;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--bold-purple);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.score-pill {
  display: grid;
  gap: 2px;
  min-width: 112px;
  padding: 12px 16px;
  border: 1px solid #d9d6fb;
  border-radius: 8px;
  text-align: center;
  color: var(--purple-dark);
}

.score-pill span {
  font-size: 1.65rem;
  font-weight: 850;
}

.score-pill small {
  color: var(--muted);
  font-weight: 700;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(190px, 1fr) minmax(210px, 1fr) auto auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dcdbea;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--bold-purple);
  box-shadow: 0 0 0 3px rgba(83, 74, 183, 0.14);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  background: var(--bold-purple);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid #d9d6fb;
  border-radius: 8px;
  padding: 0 16px;
  background: #fff;
  color: var(--purple-dark);
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.secondary-button:hover {
  border-color: var(--bold-purple);
  color: var(--bold-purple);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.summary-band {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px 20px;
}

.summary-band p:last-child {
  margin-bottom: 0;
  color: #393950;
  line-height: 1.5;
}

.mode-badge {
  align-self: flex-start;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  background: #eeecff;
  color: var(--purple-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.mode-badge.is-demo {
  background: #fff4df;
  color: #8c5b0b;
}

.status-stack {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.lead-status {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.dimension-card {
  overflow: hidden;
}

.dimension-head {
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.dimension-head > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.dimension-head span {
  color: var(--bold-purple);
  font-weight: 850;
}

.mini-bar,
.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #efeff7;
}

.mini-bar i,
.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--bold-purple);
  transition: width 0.25s ease;
}

.criteria-list {
  display: grid;
}

.criterion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.criterion:last-child {
  border-bottom: 0;
}

.criterion-copy {
  min-width: 0;
}

.criterion strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.criterion p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.score-actions {
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 6px;
}

.score-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #deddec;
  border-radius: 8px;
  background: #fff;
  color: #59596c;
  cursor: pointer;
  font-weight: 850;
}

.score-button.active {
  color: #fff;
  border-color: transparent;
}

.score-button.critical.active {
  background: var(--critical);
}

.score-button.weak.active {
  background: var(--weak);
}

.score-button.regular.active {
  background: var(--regular);
}

.score-button.strong.active {
  background: var(--strong);
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 18px;
}

.side-section + .side-section,
.legend {
  margin-top: 22px;
}

.dimension-bars {
  display: grid;
  gap: 15px;
}

.bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 0.86rem;
}

.bar-label span {
  color: #393950;
  font-weight: 760;
}

.bar-label b {
  color: var(--bold-purple);
}

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

.priority-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.priority-score {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f0fb;
  color: var(--bold-purple);
  font-weight: 900;
}

.priority-list strong {
  display: block;
  font-size: 0.87rem;
  line-height: 1.25;
}

.priority-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f1f0fb;
  color: var(--bold-purple);
}

.plan-recommendation {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #d9d6fb;
  border-radius: 8px;
  background: #fbfbff;
}

.plan-recommendation strong {
  color: var(--purple-dark);
  font-size: 0.96rem;
  line-height: 1.25;
}

.plan-recommendation p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.plan-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-meta b {
  color: var(--bold-purple);
  font-size: 1.08rem;
}

.plan-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--bold-purple);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.plan-button.disabled {
  pointer-events: none;
  background: #deddec;
  color: #6f6f7e;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 16px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .main-nav {
    min-height: 76px;
    justify-content: space-between;
    text-align: right;
    background: #fff;
  }

  .main-nav > a:not(.logo-link) {
    display: none !important;
  }

  .logo-link {
    display: inline-flex !important;
    align-items: center;
    margin-right: 0;
  }

  .logo-link img {
    display: block !important;
    width: auto;
    max-width: 128px;
    height: auto;
  }

  .mobile-menu {
    display: block !important;
  }

  .sales-hero,
  .result-hero {
    min-height: 560px;
  }

  .sales-hero {
    background:
      linear-gradient(180deg, rgba(9, 10, 18, 0.62), rgba(9, 10, 18, 0.96)),
      url("./assets/hero-mobile-diagnostico.png") center / cover no-repeat;
  }

  .result-hero {
    background:
      linear-gradient(180deg, rgba(9, 10, 18, 0.62), rgba(9, 10, 18, 0.96)),
      url("./assets/hero-mobile-resultado.png") center / cover no-repeat;
  }

  .sales-hero-copy,
  .result-hero > div {
    width: calc(100% - 40px);
    margin: 0 auto;
    align-self: end;
    padding-bottom: 54px;
  }

  .sales-hero h1,
  .result-hero h1 {
    font-size: clamp(2rem, 10vw, 3.05rem);
  }

  .result-hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .pain-section,
  .diagnostic-section,
  .plan-page,
  .case-section,
  .final-cta-section {
    padding: 52px 18px;
  }

  .case-chart {
    gap: 10px;
    min-height: 250px;
    padding: 22px 16px 42px;
  }

  .case-chart span {
    height: calc(var(--value) * 0.58px);
  }

  .site-footer {
    display: grid;
    padding: 34px 20px;
  }

  .site-footer p {
    text-align: left;
  }

  .app-shell {
    padding: 14px;
  }

  .topbar,
  .summary-band {
    align-items: stretch;
    flex-direction: column;
  }

  .control-panel,
  .dimension-grid {
    grid-template-columns: 1fr;
  }

  .primary-button {
    width: 100%;
  }

  .secondary-button {
    width: 100%;
  }

  .comparison-table {
    grid-template-columns: 1fr repeat(3, minmax(72px, 1fr));
    gap: 8px;
    font-size: 0.74rem;
    overflow-x: auto;
  }

  .comparison-table a,
  .comparison-table b {
    min-height: 30px;
    padding: 0 5px;
  }

  .comparison-table a {
    min-height: 46px;
  }
}

@media (max-width: 560px) {
  .criterion {
    grid-template-columns: 1fr;
  }

  .score-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .score-button {
    width: 100%;
  }
}
