:root {
  --bg: #070b14;
  --bg-soft: #0d1422;
  --text: #f4f7ff;
  --muted: #b8c2d8;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --blue-1: #2f7cff;
  --blue-2: #1d4ed8;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(47, 124, 255, 0.22), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(59, 130, 246, 0.14), transparent 35%),
    var(--bg);
  line-height: 1.6;

  /* 🔥 evita que el CTA fijo tape contenido */
  padding-bottom: 100px;
}

.container { width: min(var(--container), 92vw); margin: 0 auto; padding: 0 16px; }
.section { padding: 104px 0; }
.section-soft { background: var(--bg-soft); }
a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 4vw;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid var(--card-border);
}

.brand-block { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand { font-weight: 700; }
.brand-role { color: #c5d3ff; font-size: 1rem; }
.main-nav { justify-self: center; display: flex; gap: 1.2rem; color: var(--muted); }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: #fff; }

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  padding: 0.86rem 1.2rem;
  background: linear-gradient(135deg, var(--blue-1), var(--blue-2));
  border: 0;
  box-shadow: 0 10px 22px rgba(45, 102, 255, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(45, 102, 255, 0.42); }
.btn-secondary { background: transparent; border: 1px solid var(--card-border); box-shadow: none; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: center;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 0; max-width: 16ch; }
.hero-subtitle { font-size: clamp(1.05rem, 1.8vw, 1.28rem); margin: 0.9rem 0 0.35rem; color: #dbe6ff; }
.hero-micro { margin: 0; color: var(--muted); }
.cta-row { margin-top: 1.45rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-proof {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: #d8e2fb;
  font-size: 0.96rem;
}
.hero-proof strong { color: #fff; }

.chart-card,
.card,
.metric-card,
.chips span {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
}

.chart-card { padding: 1rem 1rem 0.8rem; }
.chart-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 0.8rem; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: #60a5fa; box-shadow: 0 0 0 6px rgba(96, 165, 250, 0.16); }
.growth-chart { width: 100%; height: auto; min-height: 300px; }
.grid line { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.growth-line { fill: none; stroke: url(#lineGrad); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.points circle { fill: #93c5fd; opacity: 0.85; }

.metrics {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.metrics-separate { padding-top: 80px; }
.metric-card { padding: 1rem; }
.metric-card strong { display: block; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1; }
.metric-card p { margin: 0.45rem 0 0; }
.metric-card span { color: var(--muted); }

h2 { margin: 0 0 0.8rem; font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
.section-intro { color: var(--muted); max-width: 860px; }

.problem-list { margin-top: 1rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.problem-focus { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 2rem; }

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
  margin-top: 1.3rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { padding: 1.1rem; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(148, 182, 255, 0.6); background: rgba(255, 255, 255, 0.08); }
.service-card { min-height: 185px; }

.method-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.8), rgba(96, 165, 250, 0));
  margin: 0.2rem 0 1.2rem;
}
.step {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.65);
}

.case-card .case-metric { font-size: 2rem; font-weight: 800; line-height: 1; margin: 0.4rem 0 0.5rem; color: #dbe7ff; }

.chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.chips span { padding: 0.6rem 0.85rem; font-weight: 600; color: #dce6ff; }

.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 1.5rem; align-items: center; }
.about-photo-wrap img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card);
}
.method-cta-wrap { margin-top: 1.2rem; display: flex; justify-content: center; }

.final-cta { text-align: center; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }

.sticky-cta {
  position: fixed;
  bottom: 0.8rem;
  left: 1rem;
  right: 1rem;
  z-index: 999;
  text-align: center;
}

.reveal {
  animation: fadeUp 0.7s ease both;
  animation-timeline: view();
  animation-range: entry 10% cover 28%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3,
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.75rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .metrics,
  .problem-focus {
    grid-template-columns: 1fr;
  }

  .btn,
  .btn-secondary,
  .btn-nav {
    width: 100%;
    text-align: center;
  }

  .section { padding: 82px 0; }
  .metrics-separate { padding-top: 50px; }
}

.linkedin-section {
  border-top: 1px solid var(--card-border);
}

.linkedin-grid {
  margin-top: 1.4rem;
}

.linkedin-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.linkedin-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8c8ff;
  border: 1px solid rgba(168, 200, 255, 0.35);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
}

.linkedin-profile-cta {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
}