/**
 * Landing system — Taste + Impeccable Design (instructions.md)
 * Compatible con temas propios de cada landing. Requiere motion.css opcional.
 */
@import url("landing-footer-nav.css");

.landing-flow,
.motion-landing main,
main.page-root {
  --ls-4: 4px;
  --ls-8: 8px;
  --ls-12: 12px;
  --ls-16: 16px;
  --ls-24: 24px;
  --ls-32: 32px;
  --ls-48: 48px;
  --ls-64: 64px;
  --ls-96: 96px;
  --ls-max: min(1100px, 92vw);
  --ls-muted: var(--muted, #8b95a5);
  --ls-accent: var(--accent, #00b4ff);
  --ls-radius: 16px;
  --ls-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Typography rhythm ── */
.landing-eyebrow {
  margin: 0 0 var(--ls-12);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ls-muted);
}

.landing-lead {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.02rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--ls-muted);
}

.landing-hero-note {
  margin: var(--ls-16) 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ls-muted);
}

.landing-hero-note strong {
  color: inherit;
  font-weight: 600;
}

/* Hero: jerarquía clara (qué / por qué / qué hacer) */
.landing-flow .hero .landing-eyebrow,
.landing-flow .hm-hero .landing-eyebrow {
  color: var(--ls-accent);
}

/* ── Secciones: ritmo 48–96 ── */
.landing-flow .section,
.landing-flow .hm-problem,
.landing-flow .hm-approach,
.landing-flow .hm-proof,
.landing-flow .section--contact {
  padding-block: var(--ls-64);
}

.landing-flow .section--tight {
  padding-block: var(--ls-48);
}

.landing-section-head {
  max-width: var(--ls-max);
  margin: 0 auto var(--ls-32);
}

.landing-section-head--center {
  text-align: center;
}

.landing-section-head--center .landing-lead {
  margin-inline: auto;
}

/* ── Costo de inacción ── */
.landing-cost {
  max-width: var(--ls-max);
  margin: 0 auto var(--ls-48);
  padding: var(--ls-24) var(--ls-32);
  border-radius: var(--ls-radius);
  border: 1px solid color-mix(in srgb, var(--ls-accent) 28%, transparent);
  background: color-mix(in srgb, var(--ls-accent) 6%, transparent);
}

.landing-cost__label {
  margin: 0 0 var(--ls-8);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ls-accent);
}

.landing-cost__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: inherit;
}

.landing-cost__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ls-24);
  margin-top: var(--ls-24);
  padding-top: var(--ls-24);
  border-top: 1px solid color-mix(in srgb, var(--ls-accent) 15%, transparent);
}

.landing-cost__metric {
  flex: 1 1 140px;
  min-width: 0;
}

.landing-cost__metric strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.landing-cost__metric span {
  display: block;
  margin-top: var(--ls-4);
  font-size: 0.82rem;
  color: var(--ls-muted);
  line-height: 1.4;
}

/* ── Prueba social compacta ── */
.landing-proof {
  max-width: var(--ls-max);
  margin: 0 auto var(--ls-48);
  padding: var(--ls-32);
  text-align: center;
  border-radius: var(--ls-radius);
  border: 1px solid color-mix(in srgb, currentColor 8%, transparent);
  background: color-mix(in srgb, currentColor 3%, transparent);
}

.landing-proof__quote {
  margin: 0 0 var(--ls-16);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  font-style: normal;
  color: inherit;
}

.landing-proof__author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ls-muted);
}

.landing-proof__author strong {
  color: var(--ls-accent);
  font-weight: 600;
}

/* ── Banda CTA final ── */
.landing-cta-band {
  padding: var(--ls-64) var(--ls-16);
  border-block: 1px solid color-mix(in srgb, var(--ls-accent) 18%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ls-accent) 8%, transparent),
    color-mix(in srgb, var(--ls-accent) 3%, transparent)
  );
}

.landing-cta-band__inner {
  display: grid;
  gap: var(--ls-24);
  max-width: var(--ls-max);
  margin-inline: auto;
  align-items: center;
}

.landing-cta-band__copy h2 {
  margin: 0 0 var(--ls-12);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.landing-cta-band__copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--ls-muted);
  line-height: 1.55;
}

.landing-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ls-12);
}

.landing-cta-band__actions .btn,
.landing-cta-band__actions .button {
  min-width: min(100%, 220px);
}

/* ── Sticky CTA móvil ── */
.landing-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: var(--ls-12) var(--ls-16);
  padding-bottom: max(var(--ls-12), env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg, #0b0f17) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid color-mix(in srgb, var(--ls-accent) 22%, transparent);
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 380ms var(--ls-ease),
    opacity 280ms var(--ls-ease);
}

.landing-sticky-cta.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.landing-sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ls-12);
  max-width: var(--ls-max);
  margin-inline: auto;
}

.landing-sticky-cta__text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ls-muted);
  min-width: 0;
}

.landing-sticky-cta__text strong {
  display: block;
  font-size: 0.92rem;
  color: inherit;
  font-weight: 600;
}

.landing-sticky-cta .btn,
.landing-sticky-cta .button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Ocultar sticky cuando el formulario final está visible */
.landing-sticky-cta.is-hidden {
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  pointer-events: none;
}

/* ── Beneficios: lista limpia ── */
.landing-benefits {
  display: grid;
  gap: var(--ls-12);
  margin: var(--ls-24) 0 0;
  padding: 0;
  list-style: none;
}

.landing-benefits li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ls-muted);
}

.landing-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ls-accent);
}

/* ── Reducir ruido visual ── */
.landing-flow .section__lead,
.landing-flow .hm-section__lede {
  max-width: 40rem;
}

.landing-flow img[loading="lazy"] {
  content-visibility: auto;
}

/* Desktop CTA band */
@media (min-width: 768px) {
  .landing-cta-band__inner {
    grid-template-columns: 1fr auto;
  }

  .landing-sticky-cta {
    display: none;
  }
}

@media (max-width: 767px) {
  .landing-flow .section,
  .landing-flow .hm-problem,
  .landing-flow .hm-approach,
  .landing-flow .hm-proof {
    padding-block: var(--ls-48);
  }

  body:has(.landing-sticky-cta.is-visible) {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-sticky-cta {
    transition: none;
  }
}
