/* ═══════════════════════════════════════════════
   MEAL TRACK HUB — LANDING PAGE STYLES
   Aesthetic: SaaS 2026 · Premium · Clean
   ═══════════════════════════════════════════════ */

/* ─── CSS VARIABLES ───────────────────────── */
:root {
  /* Brand colors — rebrand 2026 */
  --blue:        #5E3A9E;   /* purple primario */
  --blue-dark:   #4A2D88;
  --blue-light:  #ECE6F7;
  --blue-soft:   #D5C8EF;
  --orange:      #9561E2;   /* violet acento */
  --orange-light:#EEE6FC;
  --green:       #79C314;   /* lima acento */
  --green-light: #EDF8D9;

  /* Neutrals */
  --ink:         #252340;
  --ink-80:      #322D52;
  --ink-60:      #5A5070;
  --ink-40:      #8A7FA0;
  --ink-20:      #BCB4CC;
  --ink-10:      #E4E0EC;
  --ink-5:       #F4F2F8;
  --white:       #FFFFFF;

  /* UI */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(37,35,64,0.08);
  --shadow-md:   0 4px 16px rgba(37,35,64,0.10);
  --shadow-lg:   0 12px 40px rgba(37,35,64,0.12);
  --shadow-xl:   0 24px 60px rgba(37,35,64,0.14);
  --shadow-blue: 0 8px 30px rgba(94,58,158,0.25);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --section-gap: 100px;
  --container:   1200px;
}

/* ─── RESET ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ─── LAYOUT ──────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── TYPOGRAPHY ──────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.section-sub {
  font-size: 17px;
  color: var(--ink-60);
  line-height: 1.65;
  max-width: 520px;
}
.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, #B47FFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── SECTION HEADER ──────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-sub {
  margin: 16px auto 0;
}

/* ─── BADGES ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.badge--blue {
  background: var(--blue-light);
  color: var(--blue-dark);
  border: 1px solid var(--blue-soft);
}
.badge--muted {
  background: var(--ink-5);
  color: var(--ink-60);
  border: 1px solid var(--ink-10);
}

/* ─── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(94,58,158,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--ink-80);
  border: 1.5px solid var(--ink-10);
}
.btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-60);
}
.btn--ghost:hover { color: var(--blue); }
.btn--white {
  background: var(--white);
  color: var(--blue-dark);
  font-weight: 700;
}
.btn--white:hover { background: var(--blue-light); }
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}
.btn--lg { padding: 14px 28px; font-size: 15px; }

/* ═══════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  border-bottom-color: var(--ink-10);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 68px;
}
.nav__logo img { height: 38px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--blue); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  padding-top: 140px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(94,58,158,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(94,58,158,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 580px;
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
  margin-bottom: 20px;
}
.hero__sub {
  font-size: 18px;
  color: var(--ink-60);
  line-height: 1.6;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero__microcopy {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.micro-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
}
.micro-item svg { color: var(--green); flex-shrink: 0; }
.micro-item--brand { color: var(--blue); font-weight: 600; }
.micro-item--brand svg { color: var(--blue); }

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px 0 60px;
}
.trust-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-60);
  box-shadow: var(--shadow-sm);
}
.trust-pill svg { color: var(--blue); }

/* ─── HERO VISUAL ─────────────────────────── */
.hero__visual {
  position: relative;
  z-index: 2;
}

/* Dashboard mockup */
.mockup-dashboard {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--ink-5);
  border-bottom: 1px solid var(--ink-10);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red    { background: #FF5F57; }
.dot--yellow { background: #FEBC2E; }
.dot--green  { background: #28C840; }
.mockup-bar__title {
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink-40);
  font-family: var(--font-body);
}
.mockup-body {
  display: flex;
  height: 340px;
}

/* Sidebar */
.mock-sidebar {
  width: 52px;
  background: var(--ink-80);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.mock-sidebar__logo {
  margin-bottom: 8px;
}
.mock-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.mock-icon-box--blue { background: var(--blue); }
.mock-nav-item {
  width: 28px;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}
.mock-nav-item--active { background: var(--blue); }

/* Main content */
.mock-main { flex: 1; padding: 16px; overflow: hidden; }
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mock-title-block { display: flex; flex-direction: column; gap: 4px; }
.mock-line { background: var(--ink-10); border-radius: 3px; }
.mock-line--h  { width: 100px; height: 8px; background: var(--ink-20); }
.mock-line--sm { width: 70px; height: 5px; }
.mock-line--xs { width: 50px; height: 5px; }
.mock-date-badge {
  width: 60px; height: 20px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
}

/* Stats */
.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.mock-stat {
  background: var(--ink-5);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-stat__label { height: 5px; width: 60%; background: var(--ink-10); border-radius: 3px; }
.mock-stat__value { height: 8px; width: 40%; background: var(--ink-20); border-radius: 3px; }
.mock-stat__bar {
  height: 3px;
  background: var(--ink-10);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.mock-stat__bar::after {
  content: '';
  position: absolute;
  inset: 0;
  right: calc(100% - var(--fill));
  border-radius: 2px;
}
.mock-stat--1 .mock-stat__bar::after { background: var(--blue); }
.mock-stat--2 .mock-stat__bar::after { background: var(--green); }
.mock-stat--3 .mock-stat__bar::after { background: var(--orange); }

/* Chart */
.mock-chart {
  background: var(--ink-5);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 10px;
  height: 70px;
  display: flex;
  align-items: flex-end;
}
.mock-chart__bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  width: 100%;
  height: 50px;
}
.mock-bar {
  flex: 1;
  background: var(--ink-10);
  border-radius: 3px 3px 0 0;
  height: var(--h);
  transition: height 0.6s ease;
}
.mock-bar--accent { background: var(--blue); opacity: 0.7; }

/* Table */
.mock-table { display: flex; flex-direction: column; gap: 4px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--ink-5);
}
.mock-row--head .mock-cell { background: var(--ink-10); }
.mock-cell {
  height: 6px;
  flex: 1;
  background: var(--ink-5);
  border-radius: 3px;
}
.mock-cell--wide { flex: 2; }
.mock-cell--badge {
  width: 40px;
  flex: none;
  height: 14px;
  background: var(--ink-10);
  border-radius: var(--radius-full);
}
.mock-cell--green { background: var(--green-light); }
.mock-cell--orange { background: var(--orange-light); }

/* ─── MOBILE MOCKUP ───────────────────────── */
.mockup-mobile {
  position: absolute;
  bottom: -24px;
  right: -32px;
  z-index: 10;
}
.mock-phone {
  width: 130px;
  background: var(--ink-80);
  border-radius: 18px;
  padding: 6px;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255,255,255,0.1);
}
.mock-phone__notch {
  width: 40px;
  height: 6px;
  background: var(--ink);
  border-radius: 3px;
  margin: 0 auto 6px;
}
.mock-phone__screen {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  padding: 8px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-app-greeting {
  width: 55px;
  height: 6px;
  background: var(--ink-20);
  border-radius: 3px;
}
.mock-app-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.mock-app-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #B47FFF 100%);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.mock-app-banner__text {
  width: 70px;
  height: 6px;
  background: rgba(255,255,255,0.7);
  border-radius: 3px;
}
.mock-app-banner__sub {
  width: 50px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 3px;
}
.mock-app-menu-label {
  width: 50px;
  height: 5px;
  background: var(--ink-10);
  border-radius: 3px;
  margin-top: 2px;
}
.mock-app-items { display: flex; flex-direction: column; gap: 4px; }
.mock-app-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  background: var(--ink-5);
  border-radius: 6px;
}
.mock-app-item__img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--blue-soft);
  flex-shrink: 0;
}
.mock-app-item__img--2 { background: var(--orange-light); }
.mock-app-item__img--3 { background: var(--green-light); }
.mock-app-item__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.mock-app-item__price {
  width: 20px;
  height: 6px;
  background: var(--blue);
  border-radius: 3px;
}
.mock-app-cta-bar {
  margin-top: auto;
  display: flex;
}
.mock-app-cta-btn {
  flex: 1;
  height: 20px;
  background: var(--blue);
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════
   PROBLEMS
═══════════════════════════════════════════════ */
.problems {
  padding: var(--section-gap) 0;
  background: var(--ink-5);
}
.problems__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.problem-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--ink-10);
  transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.problem-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--orange);
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.problem-card p {
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════
   VALUE / SOLUTION
═══════════════════════════════════════════════ */
.value { padding: var(--section-gap) 0; }
.value__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.value__pillars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 32px 0;
}
.value__pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.pillar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.pillar__dot--blue   { background: var(--blue); }
.pillar__dot--orange { background: var(--orange); }
.pillar__dot--green  { background: var(--green); }
.value__pillar strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.value__pillar p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.55;
}

/* ─── Platform Diagram — SVG connections + animated pulses ─── */
.platform-diagram {
  position: relative;
  width: 440px;
  height: 440px;
  flex-shrink: 0;
  margin: 0 auto;
}

/* SVG layer */
.pdiag-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* Connection lines — draw in when .visible is added */
.pconn {
  stroke: rgba(94,58,158,0.18);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  transition: stroke-dashoffset 0.7s ease;
}
.platform-diagram.visible .pconn { stroke-dashoffset: 0; }
.platform-diagram.visible .pconn--1 { transition-delay: 0.10s; }
.platform-diagram.visible .pconn--2 { transition-delay: 0.22s; }
.platform-diagram.visible .pconn--3 { transition-delay: 0.34s; }
.platform-diagram.visible .pconn--4 { transition-delay: 0.46s; }
.platform-diagram.visible .pconn--5 { transition-delay: 0.58s; }
.platform-diagram.visible .pconn--6 { transition-delay: 0.70s; }

/* Central hub */
.pdiag-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(94,58,158,0.35);
  box-shadow: 0 0 0 10px rgba(94,58,158,0.06), var(--shadow-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
/* Pulsating ring around center */
.pdiag-center::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(94,58,158,0.12);
  animation: hubRingPulse 2.8s ease-in-out infinite;
}
.pdiag-center::after {
  content: '';
  position: absolute;
  inset: -26px;
  border-radius: 50%;
  border: 1px solid rgba(94,58,158,0.06);
  animation: hubRingPulse 2.8s ease-in-out infinite 0.6s;
}
@keyframes hubRingPulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.4; }
}

/* Nodes */
.pdiag-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  background: var(--white);
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-60);
  white-space: nowrap;
  cursor: default;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease,
              border-color 0.2s,
              box-shadow 0.2s,
              color 0.2s,
              transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pdiag-node:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -50%) scale(1.07);
}
/* Staggered reveal */
.platform-diagram.visible .pdiag-node        { opacity: 1; }
.platform-diagram.visible .pdiag-node--1 { transition-delay: 0.20s; }
.platform-diagram.visible .pdiag-node--2 { transition-delay: 0.36s; }
.platform-diagram.visible .pdiag-node--3 { transition-delay: 0.52s; }
.platform-diagram.visible .pdiag-node--4 { transition-delay: 0.68s; }
.platform-diagram.visible .pdiag-node--5 { transition-delay: 0.84s; }
.platform-diagram.visible .pdiag-node--6 { transition-delay: 1.00s; }

/* Positions: evenly spaced at radius 170 on 440×440 viewBox */
/* Top (12h) */    .pdiag-node--1 { left: 50%;    top: 11.4%; }
/* Top-right */   .pdiag-node--2 { left: 83.4%;  top: 30.7%; }
/* Bottom-right */.pdiag-node--3 { left: 83.4%;  top: 69.3%; }
/* Bottom (6h) */  .pdiag-node--4 { left: 50%;    top: 88.6%; }
/* Bottom-left */ .pdiag-node--5 { left: 16.6%;  top: 69.3%; }
/* Top-left */    .pdiag-node--6 { left: 16.6%;  top: 30.7%; }

/* Node icon */
.pdiag-node__icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pdiag-node__icon--blue   { background: var(--blue-light);   color: var(--blue); }
.pdiag-node__icon--orange { background: var(--orange-light); color: var(--orange); }
.pdiag-node__icon--green  { background: var(--green-light);  color: var(--green); }

/* ═══════════════════════════════════════════════
   BENEFITS
═══════════════════════════════════════════════ */
.benefits {
  padding: var(--section-gap) 0;
  background: var(--ink-5);
}
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.benefit-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--ink-10);
  transition: box-shadow 0.2s, transform 0.2s;
}
.benefit-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.benefit-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.benefit-card__icon--blue   { background: var(--blue-light);   color: var(--blue); }
.benefit-card__icon--orange { background: var(--orange-light); color: var(--orange); }
.benefit-card__icon--green  { background: var(--green-light);  color: var(--green); }
.benefit-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.benefit-card p {
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════
   MODULES
═══════════════════════════════════════════════ */
.modules { padding: var(--section-gap) 0; }
.modules__carousel-wrap { position: relative; }

.modules__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Base card — sin hover, se agrega solo en desktop via media query */
.module-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.module-card--featured {
  background: linear-gradient(135deg, var(--blue) 0%, #B47FFF 100%);
  border-color: transparent;
  color: var(--white);
}

/* Dots — solo visibles en mobile */
.modules__dots { display: none; }
.modules__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-20);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  flex-shrink: 0;
}
.modules__dot.active {
  background: var(--blue);
  width: 22px;
  border-radius: var(--radius-full);
}
.module-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.module-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.module-icon--blue   { background: var(--blue-light);   color: var(--blue); }
.module-icon--orange { background: var(--orange-light); color: var(--orange); }
.module-icon--green  { background: var(--green-light);  color: var(--green); }
.module-icon--white  { background: rgba(255,255,255,0.2); color: var(--white); }
.module-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-40);
  background: var(--ink-5);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.module-card--featured .module-tag { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }
.module-tag--white { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.8); }
.module-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.module-card--featured h3 { color: var(--white); }
.module-card p {
  font-size: 12.5px;
  color: var(--ink-60);
  line-height: 1.5;
  margin-bottom: 12px;
}
.module-card--featured p { color: rgba(255,255,255,0.8); }
.module-impact {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
.module-impact--white {
  color: var(--white);
  background: rgba(255,255,255,0.2);
}

/* ═══════════════════════════════════════════════
   DUAL B2B + B2C
═══════════════════════════════════════════════ */
.dual {
  padding: var(--section-gap) 0;
  background: var(--ink-5);
}
.dual__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}
.dual-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--ink-10);
  transition: box-shadow 0.2s;
}
.dual-card:hover { box-shadow: var(--shadow-lg); }
.dual-card--b2b { border-top: 4px solid var(--blue); }
.dual-card--b2c { border-top: 4px solid var(--orange); }
.dual-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.dual-card__label--orange { color: var(--orange); }
.badge-new {
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dual-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.dual-card__desc {
  font-size: 14.5px;
  color: var(--ink-60);
  line-height: 1.6;
  margin-bottom: 24px;
}
.dual-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dual-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-60);
}
.dual-list li svg { color: var(--green); flex-shrink: 0; }
.dual-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
}
.dual-divider__line {
  width: 1px;
  flex: 1;
  background: var(--ink-10);
}
.dual-divider__plus {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--ink-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-40);
  flex-shrink: 0;
}
.dual__callout {
  text-align: center;
  background: linear-gradient(135deg, var(--blue-light) 0%, #f5f0ff 100%);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  border: 1px solid var(--blue-soft);
}
.dual__callout p {
  font-size: 16px;
  color: var(--ink-60);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto;
}
.dual__callout strong { color: var(--ink); }

/* ═══════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════ */
.how { padding: var(--section-gap) 0; }

/* ─── Tab nav ─────────────────────────────── */
.how__tabs { max-width: 760px; margin: 0 auto; }

.how__tab-nav {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 6px;
  margin-bottom: 36px;
  overflow: hidden;
}
.how__tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-60);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.how__tab-btn:hover:not(.active) {
  color: var(--blue);
  background: var(--blue-light);
}
.how__tab-btn.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.how__tab-icon { display: flex; align-items: center; flex-shrink: 0; }

/* ─── Panel description ───────────────────── */
.how__panel-desc {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.6;
  background: var(--ink-5);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin-bottom: 36px;
  border-left: 3px solid var(--blue);
}

/* ─── Tab panels ──────────────────────────── */
.how__tab-panel { display: none; }
.how__tab-panel.active { display: block; }

/* ─── Steps ───────────────────────────────── */
.how__steps {
  display: flex;
  flex-direction: column;
}
.how-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.how-step__number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue-light);
  border: 2px solid var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.how-step__content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  padding-top: 12px;
}
.how-step__content p {
  font-size: 14.5px;
  color: var(--ink-60);
  line-height: 1.6;
}
.how-step__connector {
  height: 36px;
  width: 1px;
  background: var(--ink-10);
  margin: 4px 0 4px 25px;
}

/* Step entrance animation when panel becomes active */
.how__tab-panel.active .how-step {
  animation: howStepIn 0.45s both ease;
}
.how__tab-panel.active .how-step:nth-child(1)  { animation-delay: 0.00s; }
.how__tab-panel.active .how-step:nth-child(3)  { animation-delay: 0.08s; }
.how__tab-panel.active .how-step:nth-child(5)  { animation-delay: 0.16s; }
.how__tab-panel.active .how-step:nth-child(7)  { animation-delay: 0.24s; }
.how__tab-panel.active .how-step__connector { animation: howStepIn 0.3s both ease; }
@keyframes howStepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════════
   PRODUCT TABS
═══════════════════════════════════════════════ */
.product { padding: var(--section-gap) 0; background: var(--ink-5); }
.product__tabs { margin-top: 0; }
.product__tab-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 32px;
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-lg);
  padding: 6px;
  width: fit-content;
  margin: 0 auto 32px;
}
.product__tab-btn {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-60);
  transition: all 0.2s;
}
.product__tab-btn:hover { color: var(--blue); }
.product__tab-btn.active {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.product__tab-panel { display: none; }
.product__tab-panel.active { display: flex; gap: 48px; align-items: flex-start; }

/* Screen mockup */
.screen-mockup {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-10);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.screen-mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--ink-5);
  border-bottom: 1px solid var(--ink-10);
}
.screen-url {
  font-size: 11px;
  color: var(--ink-40);
  margin-left: 8px;
  font-family: monospace;
}
.screen-body {
  display: flex;
  height: 380px;
}

/* Sidebar */
.screen-sidebar {
  width: 160px;
  background: var(--ink);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.screen-sidebar__logo-area {
  height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}
.screen-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
}
.screen-nav-item--active { background: rgba(94,58,158,0.15); }
.screen-nav-icon {
  width: 14px; height: 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  flex-shrink: 0;
}
.screen-nav-item--active .screen-nav-icon { background: var(--blue); }
.screen-nav-label {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.screen-nav-item--active .screen-nav-label { background: rgba(255,255,255,0.3); }

/* Content area */
.screen-content { flex: 1; padding: 20px; overflow: hidden; }
.screen-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.screen-title-block {
  width: 120px; height: 10px;
  background: var(--ink-20);
  border-radius: 4px;
  margin-bottom: 6px;
}
.screen-sub-block {
  width: 80px; height: 6px;
  background: var(--ink-10);
  border-radius: 3px;
}
.screen-btn-mock {
  width: 90px; height: 28px;
  background: var(--blue);
  border-radius: 8px;
  opacity: 0.8;
}
.screen-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.screen-kpi {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--ink-10);
  display: flex;
  gap: 8px;
  align-items: center;
}
.screen-kpi--1 { border-top: 2px solid var(--blue); }
.screen-kpi--2 { border-top: 2px solid var(--green); }
.screen-kpi--3 { border-top: 2px solid var(--orange); }
.screen-kpi--4 { border-top: 2px solid var(--blue-dark); }
.screen-kpi__icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--ink-5);
  flex-shrink: 0;
}
.screen-kpi__val {
  height: 8px; width: 45px;
  background: var(--ink-20);
  border-radius: 3px;
  margin-bottom: 4px;
}
.screen-kpi__lbl {
  height: 5px; width: 35px;
  background: var(--ink-10);
  border-radius: 3px;
}
.screen-charts {
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 10px;
  height: 120px;
}
.screen-chart-main, .screen-chart-side {
  background: var(--ink-5);
  border-radius: 8px;
  padding: 10px;
  overflow: hidden;
}
.screen-chart-title {
  height: 6px; width: 60px;
  background: var(--ink-10);
  border-radius: 3px;
  margin-bottom: 8px;
}
.screen-chart-area { height: 70px; display: flex; align-items: flex-end; }
.screen-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 100%;
  height: 60px;
}
.s-bar {
  flex: 1;
  background: var(--ink-10);
  border-radius: 2px 2px 0 0;
  height: var(--h);
}
.s-bar--acc { background: var(--blue); opacity: 0.7; }
.screen-donut {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0% 45%, var(--green) 45% 70%, var(--orange) 70% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto;
}
.screen-donut__inner {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink-5);
}
.screen-legend { display: flex; flex-direction: column; gap: 3px; }
.screen-legend-item { display: flex; align-items: center; gap: 4px; }
.screen-legend-dot { width: 6px; height: 6px; border-radius: 50%; }
.screen-legend-item--1 .screen-legend-dot { background: var(--blue); }
.screen-legend-item--2 .screen-legend-dot { background: var(--orange); }
.screen-legend-item--3 .screen-legend-dot { background: var(--green); }
.screen-legend-text { height: 4px; width: 30px; background: var(--ink-10); border-radius: 2px; }

/* Tab caption */
.tab-caption {
  width: 240px;
  flex-shrink: 0;
  padding-top: 24px;
}
.tab-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.tab-caption p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.6;
}

/* Menu tab */
.screen-body--menus { padding: 20px; align-items: flex-start; }
.menu-grid-mock { width: 100%; }
.menu-week-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}
.menu-week-day {
  height: 8px;
  background: var(--c, var(--ink-10));
  border-radius: 3px;
  opacity: 0.7;
}
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.menu-item-card {
  height: 60px;
  border-radius: 8px;
  border: 1px dashed var(--ink-10);
  background: var(--ink-5);
}
.menu-item-card--filled {
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-soft) 100%);
  border: 1px solid var(--blue-soft);
}

/* Orders tab */
.screen-body--orders { padding: 20px; flex-direction: column; }
.orders-mock { width: 100%; }
.orders-filter-bar { display: flex; gap: 8px; margin-bottom: 14px; }
.orders-filter-chip {
  height: 26px; width: 70px;
  background: var(--ink-5);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-full);
}
.orders-filter-chip--active {
  background: var(--blue-light);
  border-color: var(--blue-soft);
}
.orders-list { display: flex; flex-direction: column; gap: 1px; }
.order-row {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  background: var(--white);
  border-radius: 6px;
}
.order-row--alt { background: var(--ink-5); }
.order-row--head { background: var(--ink-5); }
.or-col { flex: 1; height: 6px; background: var(--ink-10); border-radius: 3px; align-self: center; }
.or-col--wide { flex: 2; }
.or-col--status { height: 18px; width: 70px; flex: none; border-radius: var(--radius-full); background: var(--ink-10); }
.or-col--green  { background: var(--green-light); }
.or-col--orange { background: var(--orange-light); }
.or-col--blue   { background: var(--blue-light); }

/* Mobile preview */
.screen-mockup--mobile-centered { display: flex; align-items: center; justify-content: center; background: var(--ink-5); min-height: 380px; border: none; box-shadow: none; }
.mobile-preview__phone {
  width: 200px;
  background: var(--ink-80);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255,255,255,0.1);
}
.mobile-preview__notch {
  width: 60px; height: 8px;
  background: var(--ink);
  border-radius: 4px;
  margin: 0 auto 8px;
}
.mobile-preview__screen {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  padding: 12px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mp-topbar { display: flex; align-items: center; gap: 8px; }
.mp-back { width: 16px; height: 16px; background: var(--ink-10); border-radius: 50%; }
.mp-title { flex: 1; height: 7px; background: var(--ink-20); border-radius: 3px; margin: 0 16px; }
.mp-cart { position: relative; width: 24px; height: 24px; background: var(--blue-light); border-radius: 50%; }
.mp-cart-badge { position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; background: var(--orange); border-radius: 50%; }
.mp-hero-img { height: 100px; background: linear-gradient(135deg, var(--blue-soft) 0%, var(--blue-light) 100%); border-radius: 12px; }
.mp-product-info { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.mp-name { height: 9px; width: 80%; background: var(--ink-20); border-radius: 3px; }
.mp-desc { height: 6px; width: 95%; background: var(--ink-10); border-radius: 3px; }
.mp-desc + .mp-desc { width: 70%; }
.mp-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.mp-price { height: 12px; width: 50px; background: var(--blue); border-radius: 4px; }
.mp-qty-ctrl { display: flex; align-items: center; gap: 8px; }
.mp-qty-btn { width: 22px; height: 22px; background: var(--ink-5); border-radius: 50%; }
.mp-qty-btn--add { background: var(--blue); }
.mp-qty-num { height: 8px; width: 14px; background: var(--ink-20); border-radius: 3px; }
.mp-add-cart-btn { height: 36px; background: var(--blue); border-radius: 10px; margin-top: auto; }

/* Reports tab */
.screen-body--reports { padding: 20px; flex-direction: column; }
.reports-mock { width: 100%; }
.reports-header-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.report-title-block { height: 8px; width: 120px; background: var(--ink-20); border-radius: 3px; }
.report-filter-group { display: flex; gap: 6px; }
.report-filter { height: 24px; width: 70px; background: var(--ink-5); border: 1px solid var(--ink-10); border-radius: 6px; }
.report-export-btn { height: 24px; width: 60px; background: var(--blue-light); border-radius: 6px; }
.reports-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.rep-kpi { height: 52px; border-radius: 8px; border: 1px solid var(--ink-10); }
.rep-kpi--1 { border-top: 2px solid var(--blue); }
.rep-kpi--2 { border-top: 2px solid var(--orange); }
.rep-kpi--3 { border-top: 2px solid var(--green); }
.reports-chart-area { height: 180px; background: var(--ink-5); border-radius: 8px; padding: 16px; }
.rep-line-chart { width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════
   CASES
═══════════════════════════════════════════════ */
.cases { padding: var(--section-gap) 0; }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.case-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.case-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.case-card p {
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.6;
  margin-bottom: 16px;
}
.case-outcome {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}
.case-outcome svg { flex-shrink: 0; margin-top: 1px; }

/* ═══════════════════════════════════════════════
   TRUST
═══════════════════════════════════════════════ */
.trust {
  padding: var(--section-gap) 0;
  background: var(--ink-5);
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-item {
  background: var(--white);
  border: 1px solid var(--ink-10);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.trust-item__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.trust-item h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.trust-item p {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   CTA FINAL
═══════════════════════════════════════════════ */
.cta-final {
  padding: var(--section-gap) 0;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-80) 50%, #1A1640 100%);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(94,58,158,0.20) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(121,195,20,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-final__badge {
  margin: 0 auto 24px;
  width: 72px; height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-final__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.cta-final__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 36px;
}
.cta-final__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cta-final__note {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.footer { background: var(--ink); padding: 60px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand img { margin-bottom: 16px; }
.footer__brand p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 12px;
}
.footer__email {
  font-size: 14px;
  color: var(--blue);
  font-weight: 500;
  transition: color 0.2s;
}
.footer__email:hover { color: #B47FFF; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.footer__bottom span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.25);
}
.footer__back-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.footer__back-top:hover { color: var(--white); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fade-left"] {
  transform: translateX(32px);
}
[data-animate].animated {
  opacity: 1;
  transform: none;
}

/* Stagger children */
[data-animate] .problem-card,
[data-animate] .benefit-card,
[data-animate] .module-card,
[data-animate] .case-card,
[data-animate] .trust-item,
[data-animate] .how-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].animated .problem-card,
[data-animate].animated .benefit-card,
[data-animate].animated .module-card,
[data-animate].animated .case-card,
[data-animate].animated .trust-item,
[data-animate].animated .how-step { opacity: 1; transform: none; }

[data-animate].animated .problem-card:nth-child(1)  { transition-delay: 0.05s; }
[data-animate].animated .problem-card:nth-child(2)  { transition-delay: 0.10s; }
[data-animate].animated .problem-card:nth-child(3)  { transition-delay: 0.15s; }
[data-animate].animated .problem-card:nth-child(4)  { transition-delay: 0.20s; }
[data-animate].animated .problem-card:nth-child(5)  { transition-delay: 0.25s; }
[data-animate].animated .problem-card:nth-child(6)  { transition-delay: 0.30s; }
[data-animate].animated .problem-card:nth-child(7)  { transition-delay: 0.35s; }
[data-animate].animated .problem-card:nth-child(8)  { transition-delay: 0.40s; }
[data-animate].animated .benefit-card:nth-child(1)  { transition-delay: 0.05s; }
[data-animate].animated .benefit-card:nth-child(2)  { transition-delay: 0.10s; }
[data-animate].animated .benefit-card:nth-child(3)  { transition-delay: 0.15s; }
[data-animate].animated .benefit-card:nth-child(4)  { transition-delay: 0.20s; }
[data-animate].animated .benefit-card:nth-child(5)  { transition-delay: 0.25s; }
[data-animate].animated .benefit-card:nth-child(6)  { transition-delay: 0.30s; }
[data-animate].animated .benefit-card:nth-child(7)  { transition-delay: 0.35s; }
[data-animate].animated .benefit-card:nth-child(8)  { transition-delay: 0.40s; }
[data-animate].animated .module-card:nth-child(1)   { transition-delay: 0.05s; }
[data-animate].animated .module-card:nth-child(2)   { transition-delay: 0.10s; }
[data-animate].animated .module-card:nth-child(3)   { transition-delay: 0.15s; }
[data-animate].animated .module-card:nth-child(4)   { transition-delay: 0.20s; }
[data-animate].animated .module-card:nth-child(5)   { transition-delay: 0.25s; }
[data-animate].animated .module-card:nth-child(6)   { transition-delay: 0.05s; }
[data-animate].animated .module-card:nth-child(7)   { transition-delay: 0.10s; }
[data-animate].animated .module-card:nth-child(8)   { transition-delay: 0.15s; }
[data-animate].animated .module-card:nth-child(9)   { transition-delay: 0.20s; }
[data-animate].animated .module-card:nth-child(10)  { transition-delay: 0.25s; }
[data-animate].animated .case-card:nth-child(1)     { transition-delay: 0.05s; }
[data-animate].animated .case-card:nth-child(2)     { transition-delay: 0.10s; }
[data-animate].animated .case-card:nth-child(3)     { transition-delay: 0.15s; }
[data-animate].animated .case-card:nth-child(4)     { transition-delay: 0.20s; }
[data-animate].animated .case-card:nth-child(5)     { transition-delay: 0.25s; }
[data-animate].animated .case-card:nth-child(6)     { transition-delay: 0.30s; }
[data-animate].animated .trust-item:nth-child(1)    { transition-delay: 0.05s; }
[data-animate].animated .trust-item:nth-child(2)    { transition-delay: 0.10s; }
[data-animate].animated .trust-item:nth-child(3)    { transition-delay: 0.15s; }
[data-animate].animated .trust-item:nth-child(4)    { transition-delay: 0.20s; }
[data-animate].animated .trust-item:nth-child(5)    { transition-delay: 0.25s; }
[data-animate].animated .trust-item:nth-child(6)    { transition-delay: 0.30s; }

/* Hero stagger */
.hero__content .badge        { animation: fadeUp 0.5s 0.1s both ease; }
.hero__title                 { animation: fadeUp 0.6s 0.2s both ease; }
.hero__sub                   { animation: fadeUp 0.6s 0.3s both ease; }
.hero__actions               { animation: fadeUp 0.6s 0.4s both ease; }
.hero__microcopy             { animation: fadeUp 0.6s 0.5s both ease; }
.hero__visual .mockup-dashboard { animation: fadeLeft 0.8s 0.3s both ease; }
.hero__visual .mockup-mobile { animation: fadeLeft 0.8s 0.5s both ease; }
.trust-strip .trust-pill:nth-child(1) { animation: fadeUp 0.5s 0.6s both ease; }
.trust-strip .trust-pill:nth-child(2) { animation: fadeUp 0.5s 0.7s both ease; }
.trust-strip .trust-pill:nth-child(3) { animation: fadeUp 0.5s 0.8s both ease; }
.trust-strip .trust-pill:nth-child(4) { animation: fadeUp 0.5s 0.9s both ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   DESKTOP HOVER — modules expand (solo ≥ 681px)
   Separado de la base para no interferir con mobile
═══════════════════════════════════════════════ */
@media (min-width: 681px) {
  .modules__grid { isolation: isolate; }

  .module-card {
    transform-origin: center center;
    transition:
      box-shadow   0.38s ease,
      transform    0.38s cubic-bezier(0.34, 1.1, 0.64, 1),
      border-color 0.38s ease,
      opacity      0.38s ease;
  }

  /* Las columnas de los extremos expanden hacia el centro */
  .module-card:nth-child(5n+1) { transform-origin: left center; }
  .module-card:nth-child(5n)   { transform-origin: right center; }

  /* Card con hover: crece 28%, sube al frente */
  .module-card:hover {
    transform: scale(1.28);
    z-index: 30;
    box-shadow: 0 16px 48px rgba(37,35,64,0.18), 0 4px 16px rgba(37,35,64,0.08);
    border-color: var(--blue-soft);
  }

  /* Las demás: leve dimming, sin moverlas */
  .modules__grid:hover .module-card:not(:hover) {
    opacity: 0.72;
  }

  .module-card--featured:hover {
    box-shadow: 0 16px 48px rgba(94,58,158,0.38), 0 4px 16px rgba(94,58,158,0.18);
    border-color: transparent;
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .modules__grid { grid-template-columns: repeat(3, 1fr); }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .problems__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-gap: 70px; }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__visual { display: none; }
  .value__inner { grid-template-columns: 1fr; gap: 40px; }
  .platform-diagram { width: 100%; max-width: 380px; height: 380px; }
  .dual__grid { grid-template-columns: 1fr; }
  .dual-divider { flex-direction: row; height: 40px; }
  .dual-divider__line { flex: 1; width: auto; height: 1px; }
  .modules__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .product__tab-panel.active { flex-direction: column; }
  .tab-caption { width: 100%; padding-top: 0; padding-bottom: 0; }
}

@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--ink-10);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .problems__grid { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }

  /* ── Carrusel de módulos ─────────────────────── */
  .modules__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 0;
  }
  .modules__grid::-webkit-scrollbar { display: none; }

  .module-card {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
  }

  .modules__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
  }
  .trust__grid { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .cta-final__actions { flex-direction: column; align-items: center; }

  /* ── Diagrama de plataforma ────────────────── */
  .platform-diagram {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-width: 340px;
  }
  /* Nodos más pequeños en pantallas chicas */
  .pdiag-node {
    padding: 7px 10px;
    font-size: 11px;
    gap: 6px;
  }
  .pdiag-node__icon { width: 22px; height: 22px; }
  .pdiag-center { width: 90px; height: 90px; }
  .pdiag-center img { width: 52px; height: 52px; }

  /* ── Hero microcopy: wrap en columna ───────── */
  .hero__microcopy { flex-direction: column; gap: 8px; }
  .trust-strip { gap: 8px; }
  .trust-pill { font-size: 12px; padding: 6px 12px; }

  /* ── Product tabs ──────────────────────────── */
  .product__tab-nav {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    border-radius: var(--radius-md);
  }
  .product__tab-btn { padding: 8px 14px; font-size: 12px; white-space: nowrap; }
  .screen-body { height: 260px; }
  .screen-sidebar { width: 110px; }
  .screen-mockup { max-width: 100%; overflow: hidden; }

  /* ── Sección de pasos ──────────────────────── */
  .how__tab-nav { flex-direction: column; gap: 4px; border-radius: var(--radius-md); }
  .how__tab-btn { justify-content: flex-start; }
  .how__tab-label { font-size: 13px; }
  .how__steps { padding: 0 4px; }
  .how-step { grid-template-columns: 48px 1fr; gap: 16px; }
  .how-step__number { width: 44px; height: 44px; font-size: 13px; }

  /* ── Dual B2B/B2C ──────────────────────────── */
  .dual-card { padding: 28px 20px; }
  .dual__callout { padding: 20px; }

  /* ── Footer ────────────────────────────────── */
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer__brand p { max-width: 100%; }
  .cta-final__title { font-size: clamp(24px, 7vw, 36px); }
}

/* ═══════════════════════════════════════════════
   PLANES / PRECIOS
═══════════════════════════════════════════════ */
.planes {
  padding: var(--section-gap) 0;
  background: var(--ink-5);
}
.planes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  align-items: stretch;
}

/* ─── Card base ───────────────────────────── */
.plan-card {
  background: var(--white);
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius-xl);
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.plan-card--featured {
  background: linear-gradient(145deg, #4A2D88 0%, var(--blue) 40%, #7B3CC9 70%, var(--orange) 100%);
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(94,58,158,0.35);
}
.plan-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(94,58,158,0.45);
}
.plan-card--dark {
  background: var(--ink);
  border-color: transparent;
}

/* ─── "Más elegido" badge ─────────────────── */
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

/* ─── Tag ─────────────────────────────────── */
.plan-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.plan-tag--feat  { color: rgba(255,255,255,0.9);  background: rgba(255,255,255,0.15); }
.plan-tag--light { color: rgba(255,255,255,0.7);  background: rgba(255,255,255,0.1);  }

/* ─── Heading & desc ──────────────────────── */
.plan-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 2px 0 4px;
}
.plan-card--featured h3,
.plan-card--dark     h3 { color: var(--white); }

.plan-card__desc {
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.55;
  margin-top: -8px;
}
.plan-card--featured .plan-card__desc,
.plan-card--dark     .plan-card__desc { color: rgba(255,255,255,0.55); }

/* ─── Price block ─────────────────────────── */
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px;
  padding: 16px 0;
  border-top: 1.5px solid var(--ink-10);
  border-bottom: 1.5px solid var(--ink-10);
}
.plan-card--featured .plan-price { border-color: rgba(255,255,255,0.2); }
.plan-card--dark     .plan-price { border-color: rgba(255,255,255,0.1); }

.plan-price__value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -1px;
  white-space: nowrap;
}
.plan-card--featured .plan-price__value { color: var(--white); }
.plan-card--dark     .plan-price__value { color: var(--orange); }

.plan-price__period {
  font-size: 14px;
  color: var(--ink-60);
  font-weight: 400;
  align-self: flex-end;
  padding-bottom: 4px;
  margin-left: 2px;
}
.plan-card--featured .plan-price__period,
.plan-card--dark     .plan-price__period { color: rgba(255,255,255,0.45); }

.plan-price__note {
  width: 100%;
  font-size: 12px;
  color: var(--ink-60);
  margin-top: 5px;
}
.plan-card--featured .plan-price__note,
.plan-card--dark     .plan-price__note { color: rgba(255,255,255,0.4); }

.plan-price--consult {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.plan-price--consult .plan-price__label {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.plan-price--consult .plan-price__sublabel {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* ─── Feature list ────────────────────────── */
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-60);
  line-height: 1.4;
}
.plan-list li svg { color: var(--green); flex-shrink: 0; margin-top: 1px; }
.plan-card--featured .plan-list li       { color: rgba(255,255,255,0.82); }
.plan-card--featured .plan-list li svg   { color: #A8E563; }
.plan-card--dark     .plan-list li       { color: rgba(255,255,255,0.65); }
.plan-card--dark     .plan-list li svg   { color: var(--green); }

/* ─── Block button ────────────────────────── */
.btn--block { width: 100%; justify-content: center; }
.btn--white {
  background: var(--white);
  color: var(--blue);
  border-color: transparent;
}
.btn--white:hover { background: rgba(255,255,255,0.88); }

/* ─── Callout ─────────────────────────────── */
.planes__callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--blue-light);
  border: 1.5px solid var(--blue-soft);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  max-width: 720px;
  margin: 0 auto;
}
.planes__callout svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.planes__callout p   { font-size: 14px; color: var(--ink-60); line-height: 1.6; }
.planes__callout strong { color: var(--ink); }

/* ─── Responsive ──────────────────────────── */
@media (max-width: 960px) {
  .planes__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 680px) {
  .planes__grid { grid-template-columns: 1fr; }
  .plan-card { padding: 28px 22px; }
}

/* ═══════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
═══════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
  animation: waEntrance 0.6s 1.2s both cubic-bezier(0.34,1.56,0.64,1);
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(37,211,102,0.50), 0 4px 12px rgba(0,0,0,0.18);
}
.wa-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35);
  animation: waPulse 2.4s ease-in-out infinite;
}
@keyframes waPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.18); opacity: 0; }
}
@keyframes waEntrance {
  from { transform: scale(0) rotate(-30deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}
@media (max-width: 680px) {
  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
}

/* ═══════════════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════════════ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid var(--ink-10);
  border-radius: var(--radius-full);
  padding: 4px 5px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-40);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: color 0.18s ease, background 0.18s ease;
  line-height: 1;
}
.lang-btn.active {
  color: var(--white);
  background: var(--blue);
}
.lang-btn:hover:not(.active) {
  color: var(--ink);
  background: var(--ink-5);
}
.lang-sep {
  width: 1px;
  height: 12px;
  background: var(--ink-10);
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .lang-btn { font-size: 0.7rem; padding: 3px 6px; }
}
