:root {
  --bg: #0b0f14;
  --panel: #111827;
  --panel-soft: #17202c;
  --text: #f5f7fa;
  --muted: #93a4b7;
  --green: #20e29a;
  --blue: #2f6bff;
  --line: rgba(245, 247, 250, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 16%, rgba(47, 107, 255, 0.24), transparent 30%),
    radial-gradient(circle at 88% 22%, rgba(32, 226, 154, 0.18), transparent 26%),
    linear-gradient(180deg, #0b0f14 0%, #0e141c 52%, #0b0f14 100%);
  font-family: Inter, Arial, sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(11, 15, 20, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--text);
}

.hero,
.section,
.problem,
.cta {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 56px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(46px, 6.8vw, 82px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.04;
}

h3 {
  font-size: 24px;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #06100c;
  background: var(--green);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(245, 247, 250, 0.06);
}

.proof-row,
.sector-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.proof-row span,
.sector-list span {
  padding: 10px 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 247, 250, 0.04);
}

.system-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.8);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  color: var(--muted);
}

.panel-top strong {
  color: var(--text);
}

.flow {
  display: grid;
  gap: 12px;
}

.node {
  padding: 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.node.active {
  color: var(--text);
  border-color: rgba(32, 226, 154, 0.56);
}

.connector {
  width: 2px;
  height: 22px;
  margin-left: 22px;
  background: linear-gradient(var(--green), var(--blue));
}

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

.metric-grid div,
.roi-card div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 247, 250, 0.05);
}

.metric-grid span,
.roi-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.metric-grid strong,
.roi-card strong {
  color: var(--green);
  font-size: 22px;
}

.problem {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 247, 250, 0.04);
}

.problem-list {
  display: grid;
  gap: 12px;
}

.problem-list p {
  margin: 0;
  padding: 16px;
  border-left: 4px solid var(--green);
  background: rgba(11, 15, 20, 0.46);
}

.section {
  padding: 84px 0 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

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

.offer-card {
  position: relative;
  min-height: 430px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.76);
}

.offer-card.featured {
  border-color: rgba(32, 226, 154, 0.68);
  background: linear-gradient(180deg, rgba(32, 226, 154, 0.12), rgba(17, 24, 39, 0.82));
}

.badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 10px;
  color: #06100c;
  background: var(--green);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.offer-header {
  margin-bottom: 18px;
}

.offer-header span {
  color: var(--green);
  font-weight: 800;
}

.offer-card p {
  color: var(--muted);
  line-height: 1.55;
}

ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.split p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.capability-grid div {
  min-height: 90px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 247, 250, 0.05);
  font-weight: 800;
}

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

.roi-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.25;
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 84px;
  margin-bottom: 48px;
  padding: 34px;
  border: 1px solid rgba(32, 226, 154, 0.4);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(47, 107, 255, 0.16), rgba(32, 226, 154, 0.12));
}

.cta p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* ── Cómo funciona ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.76);
}

.step-number {
  display: block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

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

/* ── FAQ ── */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.76);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--green);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Founder note ── */
.founder-note {
  margin-top: 18px;
  padding: 18px;
  border-left: 3px solid var(--green);
  background: rgba(32, 226, 154, 0.06);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.founder-note strong {
  color: var(--text);
}

/* ── Footer ── */
.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.9);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.footer-brand p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links .eyebrow {
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-soon {
  color: rgba(147, 164, 183, 0.45);
  font-size: 14px;
}

.footer-location {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
  color: rgba(147, 164, 183, 0.5);
  font-size: 13px;
}

/* ── Button small variant ── */
.button.small {
  padding: 8px 16px;
  font-size: 13px;
}

/* ── Diagnóstico page ── */
.diag-hero .hero-copy {
  max-width: 780px;
}

.diag-disclaimer {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.diag-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px;
}

.diag-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 12px 0 8px;
}

.diag-item p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.diag-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.diag-check {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* ── Casos page ── */
.casos-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0;
}

.casos-empty-icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.casos-empty h2 {
  margin-bottom: 16px;
}

.casos-empty p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}

@media (max-width: 860px) {
  nav {
    display: none;
  }

  .hero,
  .problem,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .offer-grid,
  .roi-card,
  .steps-grid,
  .diag-grid,
  .diag-checklist {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .system-panel {
    order: -1;
  }
}

@media (max-width: 560px) {
  .hero,
  .section,
  .problem,
  .cta {
    width: min(100% - 28px, 1160px);
  }

  .problem,
  .cta {
    padding: 22px;
  }

  .metric-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
