/* Landing comercial de Super RMA.
   Marca y color: docs/19-design-system.md. Petróleo = marca; oro = la acción (como el punto
   del logo: «la oportunidad»); verde solo para lo que mejora; neutros pizarra para el resto. */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/inter-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(assets/fonts/inter-latin.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0e1a2b;
  --muted: #4f5d6f;
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --surface-2: #eef2f6;
  --line: #dce3ea;
  --field: #c3cdd8;

  --brand: #145c73;
  --brand-strong: #0f4a5d;
  --brand-soft: #e2f0f4;
  --brand-bright: #7fcadc;
  --gold: #f2a93b;
  --gold-hover: #f6bb5e;
  --gold-ink: #1d1404;

  --night: #07111f;
  --night-2: #0b1b2c;
  --night-line: rgba(255, 255, 255, 0.1);
  --on-dark: #eef3f8;
  --on-dark-muted: #a9b8c9;

  --good-text: #146c3a;
  --good-bg: #e7f5ec;
  --danger-text: #a3261b;
  --danger-bg: #fdecea;

  --series-1: #2a78d6;
  --series-neutral: #94a3b8;

  --radius: 16px;
  --shadow-card: 0 1px 2px rgba(14, 26, 43, 0.04), 0 8px 24px -12px rgba(14, 26, 43, 0.12);
  --shadow-lift: 0 2px 4px rgba(14, 26, 43, 0.04), 0 22px 44px -18px rgba(14, 26, 43, 0.28);
  --shadow-float: 0 30px 60px -22px rgba(3, 10, 20, 0.55), 0 12px 24px -12px rgba(3, 10, 20, 0.35);

  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 72px;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ── Botones ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.btn .icon {
  width: 18px;
  height: 18px;
}
.btn-lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 16.5px;
}
.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14.5px;
}
.btn-block {
  width: 100%;
}

.btn-gold {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 8px 24px -10px rgba(242, 169, 59, 0.65);
}
.btn-gold:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -12px rgba(242, 169, 59, 0.75);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn[aria-busy="true"] {
  opacity: 0.8;
  cursor: progress;
  transform: none;
}

/* ── Navegación ───────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  color: var(--on-dark);
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex;
  flex-shrink: 0;
}
.nav-logo img {
  height: 38px;
  width: auto;
}
.logo-on-light {
  display: none !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a:not(.btn) {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: inherit;
  opacity: 0.86;
  transition:
    opacity 0.2s ease,
    background-color 0.2s ease;
}
.nav-links a:not(.btn):hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}
/* «Inicia sesión»: secundario junto a la demo. Claro sobre el hero, oscuro con el menú sólido. */
.nav-login {
  margin-left: 8px;
  gap: 8px;
  padding: 0 16px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: inherit;
}
.nav-login .icon {
  width: 17px;
  height: 17px;
}
.nav-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}
.nav.is-solid .nav-login {
  border-color: var(--field);
}
.nav.is-solid .nav-login:hover {
  background: var(--surface-2);
  border-color: var(--brand);
  color: var(--brand);
}
.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle .icon {
  width: 22px;
  height: 22px;
}

.nav.is-solid {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(14, 26, 43, 0.25);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.nav.is-solid .logo-on-dark {
  display: none !important;
}
.nav.is-solid .logo-on-light {
  display: block !important;
}
.nav.is-solid .nav-links a:not(.btn):hover {
  background: var(--surface-2);
}
.nav.is-solid .nav-toggle {
  border-color: var(--line);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 6vw, 72px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 82% 8%, rgba(31, 126, 152, 0.5), transparent 62%),
    radial-gradient(40% 45% at 4% 96%, rgba(91, 63, 196, 0.2), transparent 64%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.hero-bg-soft {
  background:
    radial-gradient(50% 70% at 90% 0%, rgba(31, 126, 152, 0.4), transparent 62%),
    radial-gradient(40% 60% at 0% 100%, rgba(242, 169, 59, 0.1), transparent 64%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow-on-dark {
  color: var(--brand-bright);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.18);
}

.hero h1 {
  font-size: clamp(2.55rem, 5.3vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
  font-weight: 720;
  color: #fff;
}
.hero h1 .hl {
  color: var(--gold);
  white-space: nowrap;
}

.lead {
  margin-top: 22px;
  max-width: 35em;
  color: var(--on-dark-muted);
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
}
.lead-strong {
  margin-top: 14px;
  color: var(--on-dark);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--on-dark-muted);
  font-size: 15px;
}
.hero-proof strong {
  color: #fff;
  font-weight: 600;
}
.hero-proof .icon {
  color: var(--brand-bright);
}

/* Maqueta del producto (ilustrativa: sin cifras ni marcas) */

.hero-visual {
  position: relative;
  padding: 28px 0 40px;
}

.mock {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-size: 12px;
  line-height: 1.4;
}
@media (min-width: 1025px) {
  .mock {
    transform: perspective(1800px) rotateY(-7deg) rotateX(3deg);
    transform-origin: 30% 50%;
  }
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mock-dots {
  display: inline-flex;
  gap: 5px;
  margin-right: 10px;
}
.mock-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.mock-tab {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 550;
}
.mock-tab.is-active {
  background: var(--brand-soft);
  color: var(--brand);
}

.mock-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.chip {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11.5px;
}

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface-2);
}
.kpi-label {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 550;
}
.spark {
  width: 100%;
  height: 26px;
  fill: none;
  stroke: var(--series-1);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.spark path {
  vector-effect: non-scaling-stroke;
}
.kpi-dark {
  background: var(--ink);
}
.kpi-dark .kpi-label {
  color: #c7d3e0;
}
.kpi-dark .spark {
  stroke: #8fd3e3;
}
.kpi .badge {
  align-self: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.badge .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.badge-good {
  background: var(--good-bg);
  color: var(--good-text);
}

.mock-panel {
  margin-top: 8px;
  padding: 10px 12px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.mock-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 650;
  font-size: 12px;
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}
.legend i {
  width: 10px;
  height: 3px;
  border-radius: 2px;
}
.lg-a {
  background: var(--series-1);
}
.lg-b {
  background: var(--series-neutral);
  margin-left: 6px;
}
.trend {
  width: 100%;
  height: 104px;
  margin-top: 6px;
}
.trend path {
  vector-effect: non-scaling-stroke;
}
.trend .grid {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}
.trend .area {
  fill: rgba(42, 120, 214, 0.1);
  stroke: none;
}
.trend .line-a {
  fill: none;
  stroke: var(--series-1);
  stroke-width: 2.25;
  stroke-linecap: round;
}
.trend .line-b {
  fill: none;
  stroke: var(--series-neutral);
  stroke-width: 1.75;
  stroke-dasharray: 4 4;
}

.mock-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 10px;
  padding: 2px 2px 0;
}
.ch {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.ch b {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--series-1) var(--w), var(--surface-2) var(--w));
}
.ch b.w1 {
  --w: 92%;
}
.ch b.w2 {
  --w: 64%;
}
.ch b.w3 {
  --w: 48%;
}
.ch b.w4 {
  --w: 31%;
}

.float {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 232px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-float);
  font-size: 12.5px;
  line-height: 1.45;
}
.float-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.float-eyebrow .icon {
  width: 15px;
  height: 15px;
}
.float strong {
  font-size: 14.5px;
  font-weight: 680;
  letter-spacing: -0.01em;
}
.float-text {
  color: var(--muted);
}
.float-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--brand);
  font-weight: 650;
}
.float-action .icon {
  width: 14px;
  height: 14px;
}

/* Las tarjetas flotantes tapan lo menos informativo de la maqueta: el tramo plano de la
   tendencia (izquierda) y las barras de canal (abajo a la derecha). */
.float-insight {
  top: 60%;
  left: -56px;
}
.float-lift {
  right: -30px;
  bottom: -8px;
  width: 200px;
}
.lift {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  height: 78px;
  margin: 6px 0 8px;
}
.lift-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10.5px;
}
.lift-bar {
  width: 38px;
  border-radius: 6px 6px 2px 2px;
}
.lift-a {
  height: 58px;
  background: var(--series-1);
}
.lift-b {
  height: 30px;
  background: var(--series-neutral);
}
.float-lift .badge {
  align-self: flex-start;
}

@media (prefers-reduced-motion: no-preference) {
  .float-insight {
    animation: bob 7s ease-in-out infinite;
  }
  .float-lift {
    animation: bob 7s ease-in-out -3.5s infinite;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.trustbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--night-line);
  list-style: none;
}
.trustbar li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--on-dark-muted);
  font-size: 14.5px;
  line-height: 1.45;
}
.trustbar .icon {
  width: 22px;
  height: 22px;
  color: var(--brand-bright);
}

/* ── Secciones ────────────────────────────────────────────────────────────── */

.section {
  position: relative;
  padding: clamp(72px, 9vw, 120px) 0;
}
.section-tight {
  padding: clamp(56px, 7vw, 88px) 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-dark {
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
}
.section-dark > .container {
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head h2,
.section-dark h2 {
  font-size: clamp(1.95rem, 3.4vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  font-weight: 710;
}
.section-lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.3vw, 1.15rem);
}

.grid {
  display: grid;
  gap: 20px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

h3 {
  font-size: 18.5px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 660;
}

/* Retos */

.pain {
  position: relative;
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.pain::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 20px;
  border-radius: 2px;
  background: var(--gold);
}
.pain p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Plataforma */

.feature,
.team {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.feature:hover,
.team:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: #c9d8e2;
}
.feature h3,
.team h3 {
  margin: 20px 0 8px;
}
.feature p,
.team p {
  color: var(--muted);
  font-size: 15.5px;
}

.tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.tile .icon {
  width: 24px;
  height: 24px;
}
.tile-lg {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}
.tile-lg .icon {
  width: 28px;
  height: 28px;
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 14.5px;
  line-height: 1.45;
}
.ticks li {
  position: relative;
  padding-left: 26px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145C73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.feature-accent {
  border-color: transparent;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(242, 169, 59, 0.16), transparent 60%),
    linear-gradient(160deg, #0f3442 0%, var(--night) 100%);
  color: var(--on-dark);
}
.feature-accent:hover {
  border-color: transparent;
}
.feature-accent h3 {
  color: #fff;
}
.feature-accent p {
  color: var(--on-dark-muted);
}
.feature-accent .tile {
  background: rgba(242, 169, 59, 0.14);
  color: var(--gold);
}
.feature-accent .ticks {
  border-top-color: var(--night-line);
  color: var(--on-dark);
}
.feature-accent .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2A93B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Por área */

.areas {
  gap: 28px;
}
.area {
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.area .icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.area h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}
.area p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Cómo funciona */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 32px;
  /* Termina en el centro del último círculo: una columna (de 4, con 3 huecos de 28 px)
     menos medio círculo. */
  right: calc((100% - 84px) / 4 - 32px);
  height: 2px;
  background: repeating-linear-gradient(90deg, #9fc3cf 0 8px, transparent 8px 16px);
}
.step {
  position: relative;
}
.step-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-card);
}
.step-icon .icon {
  width: 26px;
  height: 26px;
}
.step:last-child .step-icon {
  border-color: transparent;
  background: var(--gold);
  color: var(--gold-ink);
}
.step h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}
.step p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Equipo */

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-alt);
}
.plan {
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  height: 100%;
}
.plan-featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.plan-name {
  font-weight: 700;
  font-size: 16.5px;
}
.plan-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}
.plan-plus {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
}
.plan-plus .icon {
  width: 18px;
  height: 18px;
}

/* Caso de éxito */

.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.case-copy h2 {
  color: #fff;
}
.case-copy > p:not(.eyebrow):not(.case-tag) {
  margin-top: 20px;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}
.case-tag {
  display: inline-block;
  margin-top: 28px;
  padding: 6px 14px;
  border: 1px solid rgba(242, 169, 59, 0.4);
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.case-steps {
  display: grid;
  gap: 14px;
}
.case-step {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--night-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}
.case-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(242, 169, 59, 0.12);
  color: var(--gold);
}
.case-icon .icon {
  width: 22px;
  height: 22px;
}
.case-step h3 {
  color: #fff;
  font-size: 17.5px;
}
.case-step p {
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-size: 15.5px;
}

/* Confianza */

.principle {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.principle .icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.principle h3 {
  margin: 16px 0 8px;
  font-size: 18px;
}
.principle p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Ecosistema */

.eco-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.eco-main {
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.eco-label {
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eco-card img {
  align-self: flex-start;
  height: 40px;
  width: auto;
}
.eco-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.02em;
}
.eco-card h3 .icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.eco-card > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15.5px;
}

/* Preguntas */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-wrap .section-head {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 17.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23145C73' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: var(--brand);
}
.faq details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
  font-size: 16px;
}

/* Demo */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: start;
}
.demo-copy h2 {
  color: #fff;
}
.demo-copy > p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}
.demo-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}
.demo-list li {
  display: flex;
  gap: 12px;
  color: var(--on-dark);
  font-size: 16px;
}
.demo-list .icon {
  width: 22px;
  height: 22px;
  color: var(--gold);
  stroke-width: 2;
}

.form-card {
  padding: clamp(22px, 3.4vw, 36px);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-float);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}
.field label,
.field legend {
  padding: 0;
  font-size: 14px;
  font-weight: 550;
}
.field legend {
  margin-bottom: 8px;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--field);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.field textarea {
  padding: 12px 14px;
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F5D6F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    right 14px center / 18px no-repeat;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #9fb0c2;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 92, 115, 0.18);
}
.field .is-invalid,
.field .is-invalid:hover {
  border-color: var(--danger-text);
}
.field .is-invalid:focus {
  border-color: var(--danger-text);
  box-shadow: 0 0 0 3px rgba(163, 38, 27, 0.16);
}
.field-error {
  color: var(--danger-text);
  font-size: 13.5px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  position: relative;
}
.pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--field);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.pill span:hover {
  border-color: var(--brand);
}
.pill input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-weight: 600;
}
.pill input:focus-visible + span {
  outline: 3px solid var(--brand-bright);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
}
.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}
.consent a {
  color: var(--brand);
  font-weight: 550;
}
.consent.is-invalid {
  color: var(--danger-text);
}

.form-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger-text);
  font-size: 14.5px;
}

.form-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 12px;
  text-align: center;
}
.form-done:focus {
  outline: none;
}
.form-done h3 {
  font-size: 24px;
}
.form-done p {
  max-width: 28em;
  color: var(--muted);
}
.form-done .btn {
  margin-top: 12px;
}
.done-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--good-bg);
  color: var(--good-text);
}
.done-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}

/* ── Pie ──────────────────────────────────────────────────────────────────── */

.footer {
  padding: 64px 0 28px;
  background: #050c17;
  color: var(--on-dark-muted);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img {
  height: 38px;
  width: auto;
}
.footer-brand p {
  margin-top: 16px;
  max-width: 24em;
}
.footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer nav a {
  display: block;
  margin: 8px 0;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer nav a:hover {
  color: #fff;
}
.footer-legal {
  margin-top: 48px;
  font-size: 13.5px;
}
.footer-legal p {
  padding-top: 22px;
  border-top: 1px solid var(--night-line);
}

.footer > .footer-legal:first-child {
  margin-top: 0;
}
.footer > .footer-legal:first-child p {
  padding-top: 0;
  border-top: 0;
}

/* ── Aviso de privacidad ──────────────────────────────────────────────────── */

.legal {
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 72px));
}
.legal-body {
  max-width: 760px;
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 710;
}
.legal-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}
.legal h2 {
  margin: 36px 0 10px;
  font-size: 20px;
  letter-spacing: -0.012em;
  font-weight: 660;
}
.legal p + p {
  margin-top: 10px;
}
.legal-body > p:not(.eyebrow):not(.legal-meta) {
  color: #2c3a4c;
}
.legal a:not(.btn) {
  color: var(--brand);
  font-weight: 550;
}
.legal-back {
  margin-top: 40px !important;
}

/* ── WhatsApp flotante ────────────────────────────────────────────────────── */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #062a18;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 14px 30px -12px rgba(6, 42, 24, 0.55);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(6, 42, 24, 0.6);
}
.wa-float .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

/* ── Aparición al desplazarse (solo con JS y sin «reducir movimiento») ────── */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.7s ease,
      transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* ── Responsivo ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    max-width: 680px;
  }
  .hero-visual {
    max-width: 640px;
    margin: 8px auto 0;
    width: 100%;
  }
  .float-insight {
    left: -16px;
  }
  .float-lift {
    right: -12px;
  }
  .grid-4,
  .trustbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 40px;
  }
  .steps::before {
    display: none;
  }
  .plans {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .plans .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .case,
  .demo-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
  }
  .faq-wrap .section-head {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Menú desplegable: por debajo de este ancho, los seis enlaces, «Inicia sesión» y la demo no
   caben en una línea. Si agregas un enlace al menú, vuelve a medirlo. */
@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line), 0 24px 40px -20px rgba(14, 26, 43, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }
  .nav.is-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: none;
  }
  .nav-links a:not(.btn) {
    padding: 12px 8px;
    font-size: 16px;
    opacity: 1;
  }
  .nav-links a:not(.btn):hover {
    background: var(--surface-2);
  }
  .nav-login,
  .nav-cta {
    margin: 8px 0 0;
  }
  /* El menú abierto es blanco aunque el nav esté sobre el hero. */
  .nav-login {
    border-color: var(--field);
  }
  .nav-login:hover {
    background: var(--surface-2);
    border-color: var(--brand);
    color: var(--brand);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }
  .grid-3,
  .grid-4,
  .steps,
  .trustbar,
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero h1 .hl {
    white-space: normal;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .hero-visual {
    padding: 0 0 8px;
  }
  .mock {
    padding: 10px;
    font-size: 11px;
  }
  .mock-tab:not(.is-active) {
    display: none;
  }
  .mock-kpis .badge {
    font-size: 10px;
    padding: 2px 7px;
  }
  .mock-channels {
    grid-template-columns: 1fr;
  }
  .float {
    position: relative;
    inset: auto;
    width: auto;
    margin-top: 12px;
    animation: none !important;
  }
  .float-lift {
    display: none;
  }
  .steps {
    row-gap: 28px;
  }
  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 16px;
  }
  .step-icon {
    grid-row: span 2;
    width: 52px;
    height: 52px;
  }
  .step-icon .icon {
    width: 22px;
    height: 22px;
  }
  .step h3 {
    margin: 2px 0 6px;
    font-size: 18px;
  }
  .plans {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .plan-plus {
    justify-self: center;
  }
  .plans .btn {
    width: 100%;
  }
  .case-step {
    padding: 20px;
    gap: 14px;
  }
  .faq details p {
    padding-right: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .wa-float {
    right: 14px;
    bottom: 14px;
    width: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
  }
  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
}
