/* EasyTech — upgrade visual (Notion + Stripe/Linear: aire + impacto, sin plantilla ruidosa) */

:root {
  --primary: #1e3a8a;
  --primary-bright: #3b82f6;
  --text: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.08);
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --glow: rgba(59, 130, 246, 0.35);
  --max: 640px;
  --max-wide: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.35s;
}

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

figure {
  margin: 0;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-stack-layer,
  .demo-layer,
  .btn {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(30, 58, 138, 0.14), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 38%);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  opacity: 0.92;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo span {
  color: var(--muted);
  font-weight: 500;
}

/* Logo con marca gráfica + nombre (navbar) */
.logo.logo--with-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark .logo-img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 112px;
  object-fit: contain;
  object-position: left center;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.nav a {
  transition: color var(--dur) var(--ease-out);
}

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

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.header-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0.25rem;
  transition: color 0.2s var(--ease-out);
}

.header-link:hover {
  color: var(--text);
  opacity: 1;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.header-cta:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.08);
  transform: translateY(-1px);
  opacity: 1;
}

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

@media (min-width: 768px) {
  .nav {
    font-size: 0.875rem;
    gap: 1.75rem;
  }
}

/* Hero: sin scroll horizontal (sombras / base del portátil no deben desbordar el viewport) */
.hero-wrap {
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
}

.hero-bg {
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 85%;
  background: radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.18), transparent 55%);
  pointer-events: none;
}

.hero {
  position: relative;
  max-width: var(--max-wide);
  margin: 0 auto;
  /* Menos aire arriba: antes el centro vertical del grid dejaba un “hueco” bajo el header */
  padding: clamp(1.25rem, 3vw, 2rem) 1.5rem clamp(3rem, 7vw, 4.5rem);
}

.hero.hero--ramp {
  max-width: min(100%, 1240px);
}

@media (min-width: 900px) {
  .hero.hero--ramp {
    padding-left: clamp(0.875rem, 2vw, 1.25rem);
    padding-right: clamp(1.25rem, 3vw, 2rem);
  }
}

.hero-inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  isolation: isolate;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem 3rem;
  }

  /* Ramp: copy un poco más a la izquierda + calle más ancha antes del portátil */
  .hero--ramp .hero-inner {
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.02fr);
    gap: 2rem clamp(2.75rem, 6.5vw, 5.75rem);
    align-items: start;
  }
}

.hero-copy {
  text-align: center;
}

@media (min-width: 900px) {
  .hero-copy {
    text-align: left;
    position: relative;
    z-index: 2;
    min-width: 0;
    justify-self: start;
    padding-right: clamp(0.75rem, 2vw, 1.75rem);
  }

  .hero--ramp .hero-copy {
    max-width: min(26rem, 100%);
  }
}

/* Badge tipo landing premium (anuncio corto bajo el menú) */
.hero-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  text-align: left;
  animation: heroFadeIn 0.9s var(--ease-out) both;
}

@media (min-width: 900px) {
  .hero-badge {
    justify-content: flex-start;
  }
}

.hero-badge-tag {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 999px;
}

.hero-badge-text {
  flex: 1;
  min-width: 12rem;
  max-width: 22rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Patrón Vercel: rótulo “técnico” + fila tipo “frameworks” */
.hero-kicker {
  margin: 0 0 0.85rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  animation: heroFadeIn 0.9s var(--ease-out) both;
}

.hero-pills {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  animation: heroFadeIn 0.9s var(--ease-out) 0.2s both;
}

@media (min-width: 900px) {
  .hero-pills {
    justify-content: flex-start;
  }
}

.hero-pills a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.hero-pills a:hover {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.28);
  background: #fff;
  transform: translateY(-1px);
  opacity: 1;
}

/* Prueba social “honesta” (estilo Vercel: una franja bajo el hero, sin cifras inventadas) */
.hero-trust {
  margin: 1.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: -0.01em;
  animation: heroFadeIn 0.9s var(--ease-out) 0.24s both;
}

@media (min-width: 900px) {
  .hero-trust {
    justify-content: flex-start;
  }
}

.hero-trust-sep {
  color: #cbd5e1;
  user-select: none;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--text);
  animation: heroFadeIn 0.9s var(--ease-out) both;
}

/* Ramp: titular en 3 líneas + más grande (marca editorial) */
.hero .hero-title--ramp {
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.052em;
  line-height: 1.05;
  max-width: none;
}

.hero .hero-title-line {
  display: block;
  /* Evita cortes raros; el ancho de columna + gap ya no recorta “un” */
  white-space: nowrap;
  overflow: visible;
}

.hero .hero-title-line + .hero-title-line {
  margin-top: 0.06em;
}

.hero .hero-title-accent {
  color: var(--primary);
  font-weight: 800;
}

@media (max-width: 420px) {
  .hero .hero-title-line {
    white-space: normal;
  }

  .hero .hero-title--ramp {
    font-size: clamp(1.85rem, 5.2vw, 4rem);
  }
}

.hero-sub--ramp {
  max-width: 28rem;
  margin-top: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

/* Stripe /stripe.com/es: palabra clave en cursiva + gradiente en el titular */
.hero-stripe-em {
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(100deg, #2563eb 0%, #6366f1 45%, #7c3aed 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Franja tipo “La columna vertebral…” (Stripe): números grandes + copy corto */
.stripe-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  background:
    radial-gradient(ellipse 80% 120% at 20% 0%, rgba(37, 99, 235, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 100% at 100% 50%, rgba(124, 58, 237, 0.07), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.stripe-band-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(2.25rem, 5vw, 3.25rem) 1.5rem;
  display: grid;
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .stripe-band-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.stripe-stat {
  margin: 0;
  text-align: center;
}

@media (min-width: 900px) {
  .stripe-stat {
    text-align: left;
  }
}

.stripe-stat-value {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
  background: linear-gradient(120deg, #1e40af, #4f46e5 50%, #6d28d9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stripe-stat-value--word {
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
}

.stripe-stat-label {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

.stripe-stat-desc {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 17rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .stripe-stat-desc {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-sub {
  margin: 1.25rem auto 0;
  max-width: 26rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
  line-height: 1.55;
  animation: heroFadeIn 0.9s var(--ease-out) 0.08s both;
}

@media (min-width: 900px) {
  .hero-sub {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  animation: heroFadeIn 0.9s var(--ease-out) 0.16s both;
}

.hero--ramp .hero-actions {
  margin-top: 1.5rem;
}

.hero--ramp .hero-pills {
  margin-top: 1.2rem;
}

@media (min-width: 900px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

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

/* Hero visual — stack */
.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 260px;
  perspective: 900px;
}

/* Ramp: un solo dashboard a escala “producto protagonista” */
.hero-visual--mega {
  min-height: 200px;
  perspective: none;
}

.hero-mega {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 28px 56px rgba(15, 23, 42, 0.1),
    0 8px 24px rgba(30, 58, 138, 0.07);
  transition: box-shadow 0.35s var(--ease-out);
}

.hero-mega img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(58vh, 520px);
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 900px) {
  .hero-mega img {
    max-height: min(70vh, 720px);
  }
}

@media (min-width: 1200px) {
  .hero-mega img {
    max-height: min(78vh, 820px);
  }
}

.hero-mega.is-missing img {
  display: none;
}

.hero-mega-fallback {
  display: none;
  padding: 2.75rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-mega-fallback code {
  font-size: 0.8125rem;
  padding: 0.12em 0.35em;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 4px;
  color: var(--primary);
}

.hero-mega.is-missing .hero-mega-fallback {
  display: block;
}

@media (hover: hover) {
  .hero--ramp .hero-mega:hover {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.95) inset,
      0 36px 72px rgba(15, 23, 42, 0.12),
      0 14px 36px rgba(59, 130, 246, 0.09);
  }
}

@media (min-width: 900px) {
  .hero-visual:not(.hero-visual--mega) {
    min-height: 320px;
    padding-top: 0.35rem;
  }
}

.hero-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
}

@media (min-width: 900px) {
  .hero-stack {
    margin: 0 0 0 auto;
  }
}

.hero-stack-layer {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 24px 50px rgba(30, 58, 138, 0.12),
    0 0 40px rgba(59, 130, 246, 0.08);
  transform-origin: 50% 100%;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.hero-stack-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-stack-layer.is-missing img {
  display: none;
}

.hero-stack-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(160deg, #eff6ff, #f8fafc);
}

.hero-stack-layer.is-missing .hero-stack-fallback {
  display: flex;
}

.hero-stack-layer--1 {
  z-index: 3;
  transform: translateY(0) scale(1);
}

.hero-stack-layer--2 {
  z-index: 2;
  transform: translate(12px, 14px) scale(0.94) rotate(2deg);
  opacity: 0.98;
}

.hero-stack-layer--3 {
  z-index: 1;
  transform: translate(22px, 28px) scale(0.88) rotate(3.5deg);
  opacity: 0.95;
}

@media (hover: hover) {
  .hero-stack:hover .hero-stack-layer--1 {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.6) inset,
      0 32px 60px rgba(30, 58, 138, 0.16),
      0 0 50px rgba(59, 130, 246, 0.12);
  }

  .hero-stack:hover .hero-stack-layer--2 {
    transform: translate(14px, 12px) scale(0.94) rotate(2deg);
  }

  .hero-stack:hover .hero-stack-layer--3 {
    transform: translate(24px, 26px) scale(0.88) rotate(3.5deg);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  transition:
    transform 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.btn-icon {
  flex-shrink: 0;
  margin-left: 0.1rem;
}

.btn-primary .btn-icon {
  opacity: 0.95;
}

.btn-primary {
  background: linear-gradient(180deg, #1e40af 0%, var(--primary) 100%);
  color: #fff;
  border-color: rgba(30, 58, 138, 0.5);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 2px 4px rgba(30, 58, 138, 0.2),
    0 0 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 8px 24px rgba(30, 58, 138, 0.28),
    0 0 32px rgba(59, 130, 246, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}

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

.reveal.reveal--instant {
  opacity: 1;
  transform: none;
  transition: none;
}

#demo-overlap.reveal {
  transition-delay: 0.04s;
}

.demo-footnote.reveal {
  transition-delay: 0.12s;
}

.flow-steps .reveal:nth-child(1) {
  transition-delay: 0.05s;
}

.flow-steps .reveal:nth-child(2) {
  transition-delay: 0.11s;
}

.flow-steps .reveal:nth-child(3) {
  transition-delay: 0.17s;
}

/* Demo overlap */
.demo {
  padding: 0 1.5rem 4rem;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.demo-label {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.demo-overlap {
  position: relative;
  min-height: clamp(280px, 52vw, 420px);
  max-width: 920px;
  margin: 0 auto;
}

.demo-overlap[data-demo-stack] {
  min-height: clamp(320px, 58vw, 500px);
  perspective: 1200px;
}

.demo-layer {
  position: absolute;
  left: 50%;
  width: min(92%, 820px);
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow:
    0 24px 48px rgba(17, 24, 39, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform-origin: center bottom;
  transition:
    transform 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out),
    filter 0.45s var(--ease-out);
}

.demo-overlap[data-demo-stack] .demo-layer {
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    transform 0.58s var(--ease-out),
    box-shadow 0.58s var(--ease-out),
    filter 0.45s var(--ease-out);
}

.demo-overlap[data-demo-stack] .demo-layer:focus {
  outline: none;
}

.demo-overlap[data-demo-stack] .demo-layer:focus-visible {
  box-shadow:
    0 24px 48px rgba(17, 24, 39, 0.12),
    0 0 0 2px rgba(59, 130, 246, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.demo-layer img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: transform 0.6s var(--ease-out);
}

.demo-layer-visual {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 9px;
}

.hero-screen-visual {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 5px;
}

/* Cinco capturas solapadas: data-stack-rank 0 = atrás … 4 = frente (actualizado por JS al clic) */
.demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="0"] {
  z-index: 5;
  filter: brightness(0.94);
  transform: translate(-50%, 0) translateX(-62px) translateY(6px) rotate(-3deg) scale(0.89);
  box-shadow:
    0 16px 36px rgba(17, 24, 39, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="1"] {
  z-index: 6;
  filter: brightness(0.96);
  transform: translate(-50%, 0) translateX(-31px) translateY(24px) rotate(-1.5deg) scale(0.91);
  box-shadow:
    0 18px 40px rgba(17, 24, 39, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.48) inset;
}

.demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="2"] {
  z-index: 7;
  filter: brightness(0.97);
  transform: translate(-50%, 0) translateX(0) translateY(42px) rotate(0deg) scale(0.93);
  box-shadow:
    0 20px 44px rgba(17, 24, 39, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="3"] {
  z-index: 8;
  filter: brightness(0.98);
  transform: translate(-50%, 0) translateX(31px) translateY(60px) rotate(1.5deg) scale(0.95);
  box-shadow:
    0 22px 48px rgba(17, 24, 39, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="4"] {
  z-index: 9;
  filter: brightness(1);
  transform: translate(-50%, 0) translateX(0) translateY(2px) rotate(0deg) scale(1.02);
  box-shadow:
    0 28px 56px rgba(17, 24, 39, 0.14),
    0 12px 32px rgba(30, 58, 138, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.55) inset;
}

.demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="4"] .demo-layer-caption {
  opacity: 1;
}

.demo-overlap[data-demo-stack] .demo-layer .demo-layer-caption {
  transition: opacity 0.35s var(--ease-out);
}

.demo-overlap[data-demo-stack] .demo-layer:not([data-stack-rank="4"]) .demo-layer-caption {
  opacity: 0;
}

@keyframes demo-stack-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  40% {
    filter: brightness(1.06);
    box-shadow:
      0 32px 64px rgba(30, 58, 138, 0.16),
      0 14px 36px rgba(59, 130, 246, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.55) inset;
  }
}

.demo-overlap[data-demo-stack] .demo-layer.is-stack-pulse {
  animation: demo-stack-pulse 0.42s var(--ease-out);
}

@media (hover: hover) {
  .demo-overlap[data-demo-stack]:hover .demo-layer[data-stack-rank="4"] {
    transform: translate(-50%, 0) translateX(0) translateY(-2px) rotate(0deg) scale(1.025);
  }

  .demo-overlap[data-demo-stack]:hover .demo-layer[data-stack-rank="4"] img {
    transform: scale(1.01);
  }
}

.demo-layer-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem 0.55rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.82) 0%, rgba(17, 24, 39, 0.45) 55%, transparent 100%);
}

.demo-layer-caption-title {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-layer-caption-desc {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-transform: none;
  opacity: 0.95;
}

.demo-layer.is-missing .demo-layer-visual {
  min-height: 200px;
}

.demo-layer.is-missing img {
  display: none;
}

.demo-layer.is-missing .demo-layer-caption {
  display: none;
}

.demo-layer-fallback {
  display: none;
  min-height: 200px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2rem 1rem;
  text-align: center;
  background: linear-gradient(165deg, #eff6ff 0%, #f8fafc 100%);
}

.demo-layer.is-missing .demo-layer-fallback {
  display: flex;
}

.demo-layer-fallback-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.demo-layer-fallback-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.demo-footnote {
  margin: 2rem auto 0;
  max-width: 28rem;
  text-align: center;
  font-size: 0.875rem;
}

.demo-footnote a {
  color: var(--primary-bright);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.demo-footnote a:hover {
  opacity: 1;
  color: var(--primary);
}

/* Aclaración ERP / Odoo (consultores independientes) */
.odoo-relation-note {
  margin: -0.35rem auto 2rem;
  max-width: 42rem;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.odoo-relation-note strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 700px) {
  .demo-overlap:not([data-demo-stack]) {
    min-height: 0;
    padding-bottom: 2rem;
  }

  .demo-overlap:not([data-demo-stack]) .demo-layer {
    position: relative;
    left: auto;
    width: 100%;
    transform: none !important;
    margin-bottom: 1rem;
  }

  .demo-overlap:not([data-demo-stack]) .demo-layer:last-child {
    margin-bottom: 0;
  }

  .demo-overlap:not([data-demo-stack]) .demo-layer img {
    transform: none !important;
  }

  .demo-overlap[data-demo-stack] {
    min-height: clamp(260px, 78vw, 420px);
    padding-bottom: 1.5rem;
  }

  .demo-overlap[data-demo-stack] .demo-layer {
    width: min(94%, 540px);
  }

  .demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="0"] {
    transform: translate(-50%, 0) translateX(-36px) translateY(4px) rotate(-2.5deg) scale(0.88);
  }

  .demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="1"] {
    transform: translate(-50%, 0) translateX(-18px) translateY(18px) rotate(-1.2deg) scale(0.9);
  }

  .demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="2"] {
    transform: translate(-50%, 0) translateX(0) translateY(32px) rotate(0deg) scale(0.92);
  }

  .demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="3"] {
    transform: translate(-50%, 0) translateX(18px) translateY(46px) rotate(1.2deg) scale(0.94);
  }

  .demo-overlap[data-demo-stack] .demo-layer[data-stack-rank="4"] {
    transform: translate(-50%, 0) translateX(0) translateY(0) rotate(0deg) scale(0.98);
  }

  @media (hover: hover) {
    .demo-overlap[data-demo-stack]:hover .demo-layer[data-stack-rank="4"] {
      transform: translate(-50%, 0) translateX(0) translateY(-2px) rotate(0deg) scale(1);
    }
  }
}

/* Flow — Así funciona */
.section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
}

.section--tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section-title {
  margin: 0 0 2.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text);
}

.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .flow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(17, 24, 39, 0.04);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

@media (hover: hover) {
  .flow-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(30, 58, 138, 0.08);
  }
}

.flow-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.flow-step-body h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.flow-step-body p {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Productos */
.products {
  border-top: 1px solid var(--line);
}

.products-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.35rem, 3.5vw, 2rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 720px) {
  .products-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .products-inner .product-block {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .products-inner .product-block > a {
    margin-top: auto;
    padding-top: 0.65rem;
  }
}

/* De kit banners: rótulo corto + barra (misma idea que Syne .label, sin oscurecer el layout) */
.product-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.product-block[data-accent="nodeone"] .product-eyebrow {
  color: #2563eb;
}

.product-block[data-accent="econverso"] .product-eyebrow {
  color: #059669;
}

.product-block[data-accent="odoo"] .product-eyebrow {
  color: #714bc2;
}

.product-block h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-block p {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.product-block a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-bright);
}

.product-block a:hover {
  text-decoration: underline;
  opacity: 1;
}

/* Soluciones ERP Odoo */
.erp-options {
  border-top: 1px solid var(--line);
}

.erp-modules {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1.35rem;
}

.erp-module {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: grid;
}

.erp-module-copy {
  padding: 1.2rem 1.2rem 1.1rem;
}

.erp-module-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-bright);
}

.erp-module-copy h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.erp-module-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.erp-module-copy ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.erp-module-copy li + li {
  margin-top: 0.3rem;
}

.erp-module-visual {
  margin: 0;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.erp-module-visual img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 980px) {
  .erp-module {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .erp-module--reverse .erp-module-copy {
    order: 2;
  }

  .erp-module--reverse .erp-module-visual {
    order: 1;
  }

  .erp-module-visual {
    border-top: none;
    border-left: 1px solid var(--line);
  }

  .erp-module--reverse .erp-module-visual {
    border-left: none;
    border-right: 1px solid var(--line);
  }
}

/* Beneficios */
.benefits {
  background: rgba(248, 250, 252, 0.85);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefits-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.benefits-list li {
  padding: 0.85rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.benefits-list li:last-child {
  border-bottom: none;
}

/* Beneficios detallados (soluciones ERP): franja oscura, mismas tarjetas que módulos */
.benefits.erp-benefits {
  background: linear-gradient(180deg, #0f172a 0%, #111827 45%, #0f172a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.benefits.erp-benefits .section-title {
  color: #f8fafc;
}

.benefits.erp-benefits .pillars-lede {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #94a3b8;
}

.benefits.erp-benefits .erp-modules {
  margin-top: 0.5rem;
}

.benefits.erp-benefits .erp-module {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(30, 41, 59, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.benefits.erp-benefits .erp-module-kicker {
  color: #34d399;
}

.benefits.erp-benefits .erp-module-copy h3 {
  color: #f1f5f9;
}

.benefits.erp-benefits .erp-module-copy > p,
.benefits.erp-benefits .erp-module-copy ul {
  color: #cbd5e1;
}

.benefits.erp-benefits .erp-module-visual {
  background: #0b1220;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.benefits.erp-benefits .erp-module-visual img {
  object-fit: contain;
  object-position: center;
  padding: 0.75rem;
  max-height: 320px;
}

@media (min-width: 980px) {
  .benefits.erp-benefits .erp-module-visual {
    border-left-color: rgba(255, 255, 255, 0.1);
  }

  .benefits.erp-benefits .erp-module--reverse .erp-module-visual {
    border-right-color: rgba(255, 255, 255, 0.1);
  }
}

/* Lo que puedes lograr en 30 dias */
.thirty-days {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.thirty-days-eyebrow {
  margin: 0 0 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
}

.thirty-days-lede {
  margin: 0.9rem auto 2rem;
  max-width: 44rem;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.thirty-days-grid {
  display: grid;
  gap: 1rem;
  max-width: 1160px;
  margin: 0 auto;
}

.thirty-days-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 1rem 1.05rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.thirty-days-week {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-bright);
}

.thirty-days-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.thirty-days-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (min-width: 800px) {
  .thirty-days-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1160px) {
  .thirty-days-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Agenda — embed + fallback */
.schedule {
  border-top: 1px solid var(--line);
}

/* Página solo agenda: menos espacio bajo el header */
.section.schedule--solo {
  padding-top: clamp(1.35rem, 3.5vw, 2rem);
  border-top: none;
}

.section.schedule--solo .section-title {
  margin-top: 0;
}

/* Agenda: texto ~25% + Calendly ~75% (desktop) */
.schedule--split .schedule-layout {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  align-items: start;
  width: 100%;
}

.schedule--split .schedule-calendar-col {
  min-width: 0;
  width: 100%;
}

@media (min-width: 880px) {
  .schedule--split .schedule-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
  }

  .schedule--split .schedule-copy .section-title {
    text-align: left;
  }

  .schedule--split .schedule-lede {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
  }

  .schedule--split .schedule-steps {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .schedule--split .schedule-external {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
  }
}

.schedule .section-title {
  margin-bottom: 1rem;
}

.schedule-lede {
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.schedule-lede strong {
  color: var(--text);
  font-weight: 600;
}

.schedule-external {
  margin: 0 auto 1.1rem;
  max-width: 36rem;
  text-align: center;
  font-size: 0.9375rem;
}

.schedule-external-link {
  color: var(--primary-bright);
  font-weight: 500;
  text-decoration: none;
}

.schedule-external-link:hover {
  text-decoration: underline;
}

.schedule-steps {
  max-width: 28rem;
  margin: 0 auto 2rem;
  padding: 0;
  list-style: none;
  counter-reset: sch;
}

.schedule-steps li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
  counter-increment: sch;
}

.schedule-steps li:last-child {
  margin-bottom: 0;
}

.schedule-steps li::before {
  content: counter(sch) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--primary-bright);
}

.schedule-shell {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.06);
}

.schedule--split .schedule-calendar-col .schedule-shell {
  max-width: none;
  margin: 0;
}

.schedule-shell--loading.schedule-shell--fallback .schedule-fallback {
  display: none !important;
}

.schedule-calendly-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 4;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.94);
  text-align: center;
}

.schedule-shell--loading .schedule-calendly-loading {
  display: flex;
}

.schedule-calendly-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid var(--line);
  border-top-color: var(--primary-bright);
  border-radius: 50%;
  animation: schedule-calendly-spin 0.8s linear infinite;
}

.schedule-calendly-loading-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 14rem;
  line-height: 1.45;
}

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

@media (prefers-reduced-motion: reduce) {
  .schedule-calendly-loading-spinner {
    animation: none;
    border-color: rgba(59, 130, 246, 0.35);
    border-top-color: var(--primary-bright);
    opacity: 0.9;
  }
}

/* Con Calendly embebido: no recortar el iframe (overflow:hidden colapsa el calendario) */
.schedule-shell--has-calendly {
  overflow: visible;
  min-height: 720px;
}

.schedule-calendly-wrap {
  width: 100%;
  min-height: 720px;
  background: #fff;
}

/* Calendly inyecta .calendly-inline-widget + iframe; sin altura mínima queda solo el encabezado */
.schedule-calendly-wrap .calendly-inline-widget {
  min-width: 320px !important;
  min-height: 680px !important;
  height: auto !important;
  width: 100% !important;
}

.schedule-calendly-wrap iframe {
  min-height: 640px !important;
  width: 100% !important;
}

.schedule-calendly-wrap[hidden] {
  display: none !important;
}

.schedule-shell--has-calendly .schedule-iframe {
  display: none;
}

.schedule-iframe {
  display: block;
  width: 100%;
  min-height: min(720px, 85vh);
  border: none;
  background: #fff;
}

.schedule-shell--fallback .schedule-iframe {
  display: none;
}

.schedule-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  gap: 1rem;
}

.schedule-shell--fallback .schedule-fallback {
  display: flex;
}

.schedule-fallback-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.schedule-fallback-text {
  margin: 0;
  max-width: 26rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.schedule-fallback-text code {
  font-size: 0.8125rem;
  padding: 0.12em 0.35em;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 4px;
  color: var(--primary);
}

.schedule-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.25rem;
}

.schedule-note {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  text-align: center;
}

.schedule-note-inner {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.schedule-note-inner a {
  color: var(--primary-bright);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.schedule-note-inner a:hover {
  color: var(--primary);
  opacity: 1;
}

/* CTA */
.cta {
  text-align: center;
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta > p {
  margin: 0.75rem auto 0;
  max-width: 22rem;
  color: var(--muted);
}

.cta-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Bloque final tipo Ramp */
.company-scale {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-scale-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-bright);
}

.company-scale-lede {
  max-width: 44rem;
  margin: 0.85rem auto 1.9rem;
  color: var(--muted);
}

.company-scale-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.company-scale-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 1rem 1.05rem;
}

.company-scale-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.company-scale-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .company-scale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

/* Footer */
.site-footer {
  margin: 0;
  padding: 2.2rem 1.5rem 1.4rem;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
  opacity: 1;
}

.site-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.site-footer-brand {
  max-width: 26rem;
}

.site-footer-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-footer-tag {
  margin: 0.55rem 0 0;
  line-height: 1.55;
}

.site-footer-contact {
  margin: 0.65rem 0 0;
  line-height: 1.65;
}

.site-footer-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.site-footer-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.site-footer-title {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer-copy {
  max-width: 1180px;
  margin: 1.4rem auto 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

@media (min-width: 860px) {
  .site-footer-inner {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.75fr);
    align-items: start;
  }

  .site-footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
