/* Nexia · commercial site. Same tokens as the Nexia UI kit (nexia.css), no external scripts. */
:root {
  --primary: #6d5ef9;
  --primary-strong: #5a4ae6;
  --violet: #8b5cf6;
  --lilac: #a78bfa;
  --periwinkle: #a5b4fc;
  --lavender: #eff1ff;
  --ink: #15152b;
  --ink-2: #1e1d3a;
  --ink-3: #2a2950;
  --bg: #fbfbfe;
  --surface: #ffffff;
  --text: #15152b;
  --text-2: #4b4d6b;
  --muted: #62668a; /* 5.4:1 on the page background (WCAG AA) */
  --border: #eceef7;
  --whatsapp: #22a95b;
  --whatsapp-soft: #e8f7ef;
  --instagram: #d6337a;
  --amber: #f59e0b;
  --grad: linear-gradient(135deg, #6d5ef9 0%, #8b5cf6 55%, #a78bfa 100%);
  --shadow: 0 2px 4px rgba(21, 21, 43, 0.04), 0 24px 60px -28px rgba(76, 64, 190, 0.38);
  --shadow-lg: 0 40px 90px -36px rgba(21, 21, 43, 0.45);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.035em; line-height: 1.08; font-weight: 800; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(109, 94, 249, 0.45); outline-offset: 3px; border-radius: 10px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--ink); }
.logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff; font-weight: 800; font-size: 17px; box-shadow: 0 10px 22px -12px rgba(109, 94, 249, 0.9); }
.logo.sm { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }

/* Buttons */
.btn, .btn-ghost, .btn-text { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; border-radius: 14px; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s; }
.btn { padding: 12px 20px; color: #fff; background: var(--grad); border: 0; box-shadow: 0 14px 28px -14px rgba(109, 94, 249, 0.9); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(109, 94, 249, 0.95); }
.btn-ghost { padding: 11px 19px; color: var(--ink); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--border); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: #d6d9ee; transform: translateY(-2px); }
.btn-text { padding: 10px 12px; color: var(--text-2); }
.btn-text:hover { color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 16px; }
.btn.light { background: #fff; color: var(--primary-strong); box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.6); }
.btn-ghost.light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.nav.scrolled { background: rgba(251, 251, 254, 0.78); backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--ink); background: rgba(109, 94, 249, 0.07); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.aurora { position: absolute; inset: -20% -10% auto; height: 820px; pointer-events: none; z-index: -1; filter: blur(70px); opacity: 0.85; }
.aurora span { position: absolute; border-radius: 50%; animation: drift 18s var(--ease) infinite alternate; }
.aurora span:nth-child(1) { width: 560px; height: 560px; left: 46%; top: 6%; background: radial-gradient(circle, rgba(139, 92, 246, 0.42), transparent 65%); }
.aurora span:nth-child(2) { width: 460px; height: 460px; left: 66%; top: 22%; background: radial-gradient(circle, rgba(91, 141, 239, 0.32), transparent 65%); animation-delay: -6s; }
.aurora span:nth-child(3) { width: 420px; height: 420px; left: 8%; top: 0; background: radial-gradient(circle, rgba(167, 139, 250, 0.22), transparent 65%); animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--border); font-size: 13.5px; font-weight: 700; color: var(--text-2); box-shadow: 0 6px 18px -14px rgba(76, 64, 190, 0.5); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(34, 169, 91, 0.16); }
.hero h1 { margin-top: 22px; font-size: clamp(42px, 6.2vw, 80px); letter-spacing: -0.038em; line-height: 1.04; word-spacing: 0.04em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 24px; max-width: 560px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%236d5ef9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

.hero-visual { position: relative; justify-self: center; width: min(380px, 100%); }
.phone { position: relative; border-radius: 40px; padding: 14px; background: linear-gradient(160deg, #22213f, #121128); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; color: #fff; }
.phone-top strong { display: block; font-size: 14.5px; }
.phone-top small { color: rgba(255, 255, 255, 0.55); font-size: 12px; }
.avatar-sm { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); font-weight: 800; color: #fff; }
.chat { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 440px; padding: 18px 14px 22px; border-radius: 28px; background: #efeae2 radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px) 0 0 / 16px 16px; }
.msg { max-width: 84%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: #1d1d1d; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; }
.msg.ok { font-weight: 600; }
.js .chat[data-chat] .msg { opacity: 0; transform: translateY(8px) scale(0.985); transform-origin: bottom left; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .chat[data-chat] .msg.out { transform-origin: bottom right; }
.js .chat[data-chat] .msg.shown { opacity: 1; transform: none; }
.typing { position: absolute; right: 14px; top: 18px; z-index: 1; display: flex; gap: 4px; padding: 11px 13px; border-radius: 14px; border-top-right-radius: 4px; background: #d9fdd3; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); opacity: 0; transform: translateY(4px); pointer-events: none; }
/* Appears softly; disappears at once, the moment the reply takes its place. */
.typing.on { opacity: 1; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #a3a3a3; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.float-card { position: absolute; right: -44px; top: -26px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .float-card:not(.shown) { opacity: 0; transform: translate3d(16px, 8px, 0) scale(0.96); }
.float-card strong { display: block; font-size: 14px; color: var(--ink); }
.float-card small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fc-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--whatsapp-soft); color: var(--whatsapp); font-weight: 800; }

/* Sections */
.section { padding: 112px 0; }
.section-tint { background: linear-gradient(180deg, rgba(239, 241, 255, 0.55), rgba(239, 241, 255, 0)); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(32px, 4.4vw, 54px); }
.kicker { margin-bottom: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary-strong); }
.kicker.wa { color: var(--whatsapp); }
.kicker.ig { color: var(--instagram); }
.kicker .ch { display: inline-flex; align-items: center; gap: 7px; margin-right: 14px; }
.kicker .ch::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.kicker .ch.wa { color: var(--whatsapp); }
.kicker .ch.wa::before { background: var(--whatsapp); }
.kicker .ch.ig { color: var(--instagram); }
.kicker .ch.ig::before { background: linear-gradient(135deg, #fd5949, #d6249f 55%, #285aeb); }
.kicker.light { color: var(--periwinkle); }
.lead-sm { margin-top: 18px; font-size: 18px; color: var(--text-2); }
.lead-sm.light { color: rgba(255, 255, 255, 0.72); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(21, 21, 43, 0.03); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--lavender); color: var(--primary-strong); font-weight: 800; margin-bottom: 22px; }
.step h3 { font-size: 21px; }
.step p { margin-top: 10px; color: var(--text-2); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.checks { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 34px; color: var(--text-2); font-size: 16.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 8px; background: var(--lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%236d5ef9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.chat-card { max-width: 440px; margin-inline: auto; border-radius: 28px; padding: 12px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.chat-card-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px 14px; font-weight: 800; color: var(--ink); }
.wa-badge { width: 26px; height: 26px; border-radius: 9px; background: var(--whatsapp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 19l1.2-3.6A7.5 7.5 0 1 1 9 18.1z' fill='none' stroke='white' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.chat.static { min-height: 0; border-radius: 20px; }
.chat-card-top small { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.ig-badge { width: 26px; height: 26px; border-radius: 9px; position: relative; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ig-badge::before { content: ""; position: absolute; inset: 6px; border: 2px solid #fff; border-radius: 6px; }
.ig-badge::after { content: ""; position: absolute; inset: 9.5px; border: 2px solid #fff; border-radius: 50%; }
.chat.dm { background: #fff; border: 1px solid var(--border); }
.chat.dm .msg { box-shadow: none; border-radius: 20px; }
.chat.dm .msg.in { background: #efeff2; border-top-left-radius: 20px; border-bottom-left-radius: 6px; }
.chat.dm .msg.out { color: #fff; background: linear-gradient(135deg, #7c5cf5, #a855f7); border-top-right-radius: 20px; border-bottom-right-radius: 6px; }
.chat.dm .typing { background: #efeff2; border-radius: 18px; }
.plan-pill { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: var(--lavender); color: var(--primary-strong); font-size: 11px; letter-spacing: 0.04em; vertical-align: 1px; }

.ig-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 44px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.ig-card h2 { font-size: clamp(26px, 3vw, 38px); }


/* Channels: WhatsApp and Instagram Direct side by side, same weight */
.wrap.wide { width: min(1320px, 100% - 40px); }
.split.channels { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 52px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.duo .chat-card { display: flex; flex-direction: column; max-width: none; margin: 0; padding: 14px 14px 16px; border-radius: 28px; }
.duo .chat-card-top { padding: 8px 8px 12px; font-size: 15.5px; }
.duo .chat.static { flex: none; gap: 10px; margin-bottom: 14px; padding: 6px 4px 4px; border: 0; border-radius: 0; background: #fff; }
.app-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.app-icon svg { width: 21px; height: 21px; }
.app-icon.wa, .app-logo.wa { background: linear-gradient(160deg, #2fe07a, #1fb956); }
.app-icon.ig, .app-logo.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 95%); }
.duo .msg { max-width: 88%; padding: 10px 13px; font-size: 14px; line-height: 1.45; border-radius: 18px; box-shadow: none; }
.duo .msg.in { background: #f1f1f4; border-top-left-radius: 6px; }
.chat.wa .msg.out { background: #dcf8d3; border-top-right-radius: 6px; }
.chat.wa .typing { background: #dcf8d3; border-radius: 16px; border-top-right-radius: 4px; }
.duo .chat.dm .msg.in { border-bottom-left-radius: 18px; }
.duo .chat.dm .msg.out { border-top-right-radius: 6px; border-bottom-right-radius: 18px; }
.msg time { float: right; position: relative; top: 6px; margin-left: 10px; font-size: 11px; line-height: 1.6; color: rgba(21, 21, 43, 0.42); font-variant-numeric: tabular-nums; }
.chat.dm .msg.out time { color: rgba(255, 255, 255, 0.78); }
.msg time.read::after { content: ""; display: inline-block; width: 15px; height: 9px; margin-left: 4px; vertical-align: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M1 5.2l2.6 2.6L9 2.2M6.4 7.6L7 8.2 13.4 1.8' fill='none' stroke='%2334b7f1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.agenda-row { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 24px -20px rgba(76, 64, 190, 0.6); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .agenda-row:not(.shown) { opacity: 0; transform: translateY(6px); }
.agenda-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--lavender); color: var(--primary); }
.agenda-icon svg { width: 22px; height: 22px; }
.agenda-row strong { display: block; font-size: 14px; color: var(--ink); }
.agenda-row small { display: block; margin-top: 1px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.agenda-row .chev { margin-left: auto; color: var(--muted); }
.agenda-row .chev svg { width: 18px; height: 18px; }

/* «Tus clientes eligen el canal»: both logos, same size, linked through Nexia */
.logo-duo { position: relative; display: flex; align-items: center; gap: 18px; width: max-content; }
.logo-duo::before { content: ""; position: absolute; left: 44px; right: 44px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--periwinkle) 0 6px, transparent 6px 11px); z-index: 0; }
.app-logo { position: relative; z-index: 1; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 26px; box-shadow: 0 20px 40px -24px rgba(21, 21, 43, 0.55); }
.app-logo svg { width: 52px; height: 52px; }
.app-logo.wa { box-shadow: 0 20px 40px -22px rgba(31, 185, 86, 0.75); }
.app-logo.ig { box-shadow: 0 20px 40px -22px rgba(214, 36, 159, 0.7); }
.logo-link { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--border); color: var(--primary); box-shadow: 0 6px 16px -10px rgba(76, 64, 190, 0.6); }
.logo-link svg { width: 18px; height: 18px; }

/* AgendaFlow showcase */
.section-ink { position: relative; background: radial-gradient(900px 500px at 80% 0%, rgba(109, 94, 249, 0.35), transparent 60%), radial-gradient(700px 420px at 0% 100%, rgba(91, 141, 239, 0.22), transparent 60%), var(--ink); color: #fff; overflow: hidden; }
.section-ink h2, .section-ink h3 { color: #fff; }
.app-mock { display: grid; grid-template-columns: 200px minmax(0, 1fr); max-width: 1000px; margin: 0 auto; border-radius: 26px; overflow: hidden; background: #f7f8fc; color: var(--ink); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.am-side { display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; background: linear-gradient(180deg, #1b1a3a, #15152b); color: rgba(255, 255, 255, 0.72); font-size: 13.5px; font-weight: 600; }
.am-brand { display: flex; align-items: center; gap: 9px; margin: 0 6px 18px; color: #fff; font-weight: 800; }
.am-nav { padding: 9px 12px; border-radius: 11px; }
.am-nav.on { background: rgba(255, 255, 255, 0.1); color: #fff; }
.am-main { padding: 24px; min-width: 0; }
.am-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.am-head strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.am-head small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.am-toggle { position: relative; display: inline-flex; padding: 4px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.am-toggle span { position: relative; z-index: 1; padding: 6px 14px; color: var(--muted); transition: color 0.3s; }
.am-toggle span.on { color: #fff; }
.am-toggle::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: var(--grad); transition: transform 0.5s var(--ease); }
.am-toggle.pm::before { transform: translateX(100%); }
.am-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.am-kpis div { padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.am-kpis small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.am-kpis strong { font-size: 20px; letter-spacing: -0.03em; }
.am-day { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.am-col { display: grid; gap: 8px; transition: opacity 0.5s var(--ease); }
.am-day.pm .am-col[data-period="morning"], .am-day.am .am-col[data-period="afternoon"] { opacity: 0.38; }
.slot { position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); align-items: center; gap: 2px 10px; padding: 11px 12px 11px 16px; border-radius: 13px; background: #fff; border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; overflow: hidden; }
.slot::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--primary); }
.slot.wa::before { background: var(--whatsapp); }
.slot.extra::before { background: var(--amber); }
.slot b { grid-row: span 2; font-size: 13px; color: var(--ink); }
.slot em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.slot.wa em { color: var(--whatsapp); }
.slot.extra em { color: #b26a00; }
.slot.new { box-shadow: 0 0 0 2px rgba(34, 169, 91, 0.3); animation: glow 2.6s var(--ease) infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(34, 169, 91, 0.08); } }
.am-note { margin-top: 14px; text-align: right; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.feature { padding: 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: background 0.3s, transform 0.4s var(--ease); }
.feature:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-3px); }
.feature h3 { font-size: 17px; letter-spacing: -0.02em; }
.feature p { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, 0.68); }

/* Business */
.money-card { max-width: 440px; margin-inline: auto; padding: 26px; border-radius: 28px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); }
.mc-head { display: flex; justify-content: space-between; align-items: baseline; }
.mc-head strong { font-size: 18px; }
.mc-head small { color: var(--muted); font-size: 12px; font-weight: 700; }
.mc-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; height: 200px; margin: 26px 0 20px; }
.mc-bars div { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; justify-content: flex-end; }
.mc-bars span { width: 100%; max-width: 54px; height: var(--h); border-radius: 12px 12px 6px 6px; background: var(--grad); transform-origin: bottom; transform: scaleY(0); transition: transform 1.1s var(--ease); }
.mc-bars span.b2 { background: linear-gradient(180deg, #5b8def, #6d5ef9); }
.mc-bars span.b3 { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.mc-bars span.b4 { background: linear-gradient(180deg, #f9a8c4, #e1306c); }
.in .mc-bars span { transform: scaleY(1); }
.mc-bars small { font-size: 12px; font-weight: 700; color: var(--muted); }
.mc-total { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px dashed var(--border); }
.mc-total small { color: var(--muted); font-weight: 700; }
.mc-total strong { font-size: 24px; letter-spacing: -0.03em; color: var(--whatsapp); }

.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trust { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.trust h3 { font-size: 19px; }
.trust p { margin-top: 10px; color: var(--text-2); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured:hover { transform: translateY(-12px); }
.plan.featured { color: #fff; border: 0; transform: translateY(-8px); background: radial-gradient(420px 260px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 60%), var(--grad); box-shadow: 0 30px 70px -30px rgba(109, 94, 249, 0.85); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan .badge { position: absolute; top: 20px; right: 20px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--primary-strong); font-size: 12px; font-weight: 800; }
.plan h3 { font-size: 22px; letter-spacing: -0.02em; }
.plan .tag { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.plan.featured .tag { color: rgba(255, 255, 255, 0.78); }
.price { margin: 22px 0 6px; font-size: 48px; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); line-height: 1; }
.price small { font-size: 15px; font-weight: 600; letter-spacing: 0; opacity: 0.7; }
.plan ul { display: grid; gap: 11px; margin: 22px 0 28px; padding: 0; list-style: none; font-size: 14.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; flex: none; font-weight: 800; color: var(--primary); }
.plan.featured li::before { color: #fff; }
.plan.accent { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(160deg, rgba(109, 94, 249, 0.45), rgba(21, 21, 43, 0.12) 55%, rgba(167, 139, 250, 0.45)) border-box; border: 1px solid transparent; }
.plan.accent .badge { background: var(--ink); color: #fff; }
.plan.accent li::before { color: var(--ink); }
/* Advantages not built yet: no tick, muted, labelled «Próximamente». */
.plan li.planned { color: var(--muted); }
.plan li.planned::before, .plan.accent li.planned::before { content: "○"; color: var(--muted); font-weight: 700; }
.plan li .soon { margin-left: auto; flex: none; padding: 2px 8px; border-radius: 999px; background: rgba(109, 94, 249, 0.1); color: var(--primary-strong); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.plan.featured .badge { background: #fff; }
.plan .btn, .plan .btn-ghost { margin-top: auto; }
.plan.featured .btn { background: #fff; color: var(--primary-strong); }
.plans-note { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; font-size: 16.5px; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); }

/* CTA + footer */
.cta { padding: 40px 0 120px; }
.cta-in { padding: 72px 32px; border-radius: 34px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, 0.18), transparent 60%), radial-gradient(500px 300px at 100% 100%, rgba(91, 141, 239, 0.45), transparent 60%), var(--grad); box-shadow: 0 40px 90px -40px rgba(109, 94, 249, 0.9); }
.cta h2 { max-width: 760px; margin-inline: auto; color: #fff; font-size: clamp(30px, 4vw, 48px); }
.cta p { margin-top: 14px; font-size: 18px; color: rgba(255, 255, 255, 0.82); }
.footer { padding: 48px 0 56px; border-top: 1px solid var(--border); }
.footer-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 24px; align-items: center; }
.footer p { color: var(--muted); font-size: 14px; }
.footer nav { display: flex; gap: 18px; font-size: 14px; font-weight: 600; }
.footer nav a { color: var(--text-2); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer small { color: var(--muted); }

/* Reveal on scroll (only when JavaScript is running and motion is allowed) */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1180px) {
  .split.channels { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .split.channels .split-copy { max-width: 760px; }
}
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-card { right: -12px; top: -30px; }
}
@media (max-width: 920px) {
  .nav-links { position: fixed; inset: 72px 12px auto; flex-direction: column; gap: 2px; padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.98); border: 1px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.25s, transform 0.3s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 16px; }
  .menu-btn { display: inline-block; }
  .nav-cta .btn-sm { display: none; }
  .hero { padding-top: 28px; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .split.reverse .split-copy { order: 0; }
  .hero-visual { margin-bottom: 40px; }
  .steps, .trust-grid, .plans { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 460px; margin-inline: auto; }
  .app-mock { grid-template-columns: minmax(0, 1fr); }
  .am-side { display: none; }
  .ig-card { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 84px 0; }
}
@media (max-width: 680px) {
  .duo { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-inline: auto; }
  .app-logo { width: 72px; height: 72px; border-radius: 22px; }
  .app-logo svg { width: 42px; height: 42px; }
  .logo-duo::before { left: 36px; right: 36px; }
}
@media (max-width: 560px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .hero h1 { font-size: 42px; }
  .chat { min-height: 400px; }
  .float-card { right: 50%; transform: translateX(50%); top: auto; bottom: -26px; width: max-content; }
  .js .float-card:not(.shown) { transform: translateX(50%) translateY(8px) scale(0.96); }
  .am-main { padding: 16px; }
  .am-head { flex-direction: column; align-items: flex-start; }
  .am-day { grid-template-columns: minmax(0, 1fr); }
  .am-kpis strong { font-size: 17px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-in { padding: 52px 22px; border-radius: 26px; }
  .faq summary { padding: 18px; }
  .faq details p { padding: 0 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .chat .msg, .agenda-row { opacity: 1; transform: none; }
  .typing { display: none; }
  .mc-bars span { transform: none; }
}
/* Legal links, on their own row under the footer. */
.footer .footer-legal { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px 18px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.footer .footer-legal a { color: var(--muted); }
.footer .footer-legal a:hover { color: var(--ink); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.service-card { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(21, 21, 43, 0.03); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-card h3 { font-size: 19px; margin-top: 14px; }
.service-card p { margin-top: 8px; color: var(--text-2); }
.service-tag { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--lavender); color: var(--primary-strong); font-size: 12px; font-weight: 800; }
.service-tag.soft { background: #eef0f6; color: var(--text-2); }
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-card { grid-column: span 2; }
  .service-card:nth-child(n + 4) { grid-column: span 3; }
}

/* ---------- Request form (#demo) ---------- */
.cta-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 44px; align-items: start; text-align: left; padding: 60px 52px; }
.cta-split h2 { margin-inline: 0; }
.cta-points { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, 0.88); font-size: 15.5px; }
.cta-points li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.cta-points li::before { content: "✓"; flex: none; font-weight: 800; color: #fff; }
.cta-points a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.lead-form { padding: 28px; border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: 0 30px 60px -30px rgba(21, 21, 43, 0.55); }
.lead-form h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 18px; }
.lead-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.lead-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lead-field.full { grid-column: 1 / -1; }
.lead-field label { font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.lead-field .optional { font-weight: 500; color: var(--muted); }
.lead-field input, .lead-field select, .lead-field textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s; }
.lead-field textarea { resize: vertical; min-height: 104px; }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(109, 94, 249, 0.16); background: #fff; }
.lead-field [aria-invalid="true"] { border-color: #d6336c; box-shadow: 0 0 0 4px rgba(214, 51, 108, 0.12); }
.field-error { min-height: 0; font-size: 12.5px; font-weight: 600; color: #c2255c; }
.field-error:empty { display: none; }
.lead-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cta .lead-privacy { margin: 16px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lead-privacy a { color: var(--primary-strong); }
/* «Acceder» while the session hint arrives (session-link.js): keeps its place, invisible; shows anyway after 4 s. */
.is-pending { visibility: hidden; animation: nx-reveal 0s linear 4s forwards; }
@keyframes nx-reveal { to { visibility: visible; } }
.cta .lead-privacy strong { color: var(--text-2); }
[hidden] { display: none !important; }
/* Informative block while the form is off: same card, no fields. */
.lead-info { display: grid; gap: 14px; align-content: start; }
.lead-info h3 { margin-bottom: 0; }
.cta .lead-info p { margin: 0; color: var(--text-2); }
.lead-info .btn { width: 100%; }
.cta .lead-info .lead-badge { justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--lavender); color: var(--primary-strong); font-size: 12.5px; font-weight: 700; }
.cta .lead-info .lead-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lead-info .lead-note a { color: var(--primary-strong); }
/* Plans without prices during the demonstration phase. */
.plan .price-info { margin: 18px 0 4px; font-size: 14px; font-weight: 700; color: var(--primary-strong); }
.plan.featured .price-info { color: #fff; }
.lead-form .btn { width: 100%; }
.lead-form .btn:disabled { opacity: 0.7; cursor: progress; transform: none; }
.cta .lead-status { margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--text-2); }
.lead-status:empty { display: none; }
.lead-status.is-pending { color: var(--text-2); }
.lead-status.is-ok { padding: 12px 14px; border-radius: 12px; background: var(--whatsapp-soft); color: #13753d; }
.lead-status.is-error { padding: 12px 14px; border-radius: 12px; background: #fdecf2; color: #a61e4d; }
@media (max-width: 920px) {
  .cta-split { grid-template-columns: 1fr; gap: 28px; padding: 48px 28px; }
}
@media (max-width: 680px) {
  .cta-split { padding: 36px 16px 16px; }
  .lead-form { padding: 22px 18px; border-radius: 22px; }
  .lead-grid { grid-template-columns: 1fr; }
}
