:root {
  --blue: #1453F5;
  --violet: #842CEF;
  --lavender: #BA86F8;
  --navy: #071637;
  --white: #FFFFFF;
  --ink: #071637;
  --muted: #4A5578;
  --line: #E3E6F0;
  --surface: #F5F6FB;
  --radius: 18px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 24px rgba(20,83,245,.35); }
.btn-primary:hover { background: #0F46D6; }
.btn-ghost { color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--white); }

/* Cabecera */
/* Sólida: logo-dark.svg trae su propio fondo azul noche y se notaría sobre uno translúcido */
.nav { position: sticky; top: 0; z-index: 10; background: var(--navy); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255,255,255,.78); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--white); }
.nav-links .btn { padding: 10px 18px; font-size: 15px; color: var(--white); }

/* Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -40% 40%; height: 120%;
  background: radial-gradient(closest-side, rgba(132,44,239,.45), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: -30% 50% auto -20%; height: 90%;
  background: radial-gradient(closest-side, rgba(20,83,245,.35), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 88px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--lavender);
  background: rgba(186,134,248,.12); border: 1px solid rgba(186,134,248,.3);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; }
.hero h1 span { background: linear-gradient(90deg, var(--lavender), #7FA2FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.78); max-width: 520px; margin: 22px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; padding: 0; list-style: none; font-size: 15px; color: rgba(255,255,255,.7); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lavender); transform: skewY(-25deg); }

/* Teléfono con el chat */
.phone {
  justify-self: center; width: 330px; max-width: 100%;
  background: #0B1430; border-radius: 44px; padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(255,255,255,.08);
}
.screen { border-radius: 34px; overflow: hidden; background: #EFEAE2; display: flex; flex-direction: column; height: 600px; }
.wa-head { background: #075E54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: #F4B860; display: grid; place-items: center; font-weight: 800; color: #6B3A00; font-size: 15px; }
.wa-head strong { display: block; font-size: 15px; }
.wa-head small { font-size: 12px; opacity: .8; }
.chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-size: 13.5px; line-height: 1.4; }
.msg {
  max-width: 82%; padding: 7px 10px 6px; border-radius: 10px; color: #111B21;
  box-shadow: 0 1px .5px rgba(11,20,26,.13);
  opacity: 0; transform: translateY(8px);
  animation: appear .4s ease forwards; animation-delay: var(--d);
}
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.msg.out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 2px; }
.msg time { display: block; text-align: right; font-size: 10.5px; color: #667781; margin-top: 2px; }
.msg .line { display: flex; justify-content: space-between; gap: 12px; }
.msg .line span:last-child { white-space: nowrap; }
.msg .total { font-weight: 700; border-top: 1px dashed #c9d1d6; margin-top: 4px; padding-top: 4px; }
@keyframes appear { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .msg { animation: none; opacity: 1; transform: none; }
  .btn, html { transition: none; scroll-behavior: auto; }
}

/* Secciones */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .kicker { color: var(--violet); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-weight: 800; color: var(--white); margin-bottom: 18px;
}
.step:nth-child(1)::before { background: var(--violet); }
.step:nth-child(2)::before { background: var(--blue); }
.step:nth-child(3)::before { background: var(--lavender); color: var(--navy); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }

/* Panel */
.panel-section { background: var(--surface); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.browser { background: var(--white); border-radius: 16px; box-shadow: 0 30px 60px rgba(7,22,55,.14), 0 0 0 1px var(--line); overflow: hidden; }
.browser-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #E3E6F0; }
/* Copia del dashboard de ventas de vendor-panel-web: mismos colores, bordes y tipografía */
.dash { display: grid; grid-template-columns: 132px 1fr; background: #F2F4FA; font-size: 12px; }
.dash-side { background: var(--white); border-right: 1px solid #E1E5F0; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.dash-brand { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; margin: 0 4px 14px; }
.dash-brand img { width: 20px; height: 20px; }
.dash-side span { padding: 7px 8px; border-radius: 8px; color: var(--ink); }
.dash-side span.on { background: #E7EDFE; color: var(--blue); font-weight: 600; }
.dash-main { padding: 12px; display: grid; gap: 10px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dash-select { background: var(--white); border: 1px solid #CCD3E4; border-radius: 8px; padding: 5px 10px; font-weight: 600; }
.dash-open { display: flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid #E1E5F0; border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; }
.dash-open { position: relative; }
/* La pista: aparece cuando termina la primera conversación y se va al tocar un switch */
.hint-bubble {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(6px, -50%);
  background: var(--navy); color: var(--white); font-size: 11.5px; font-weight: 600; white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 2;
}
.hint-bubble::after { content: ""; position: absolute; left: 100%; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left-color: var(--navy); }
.demo.hint .hint-bubble { opacity: 1; transform: translate(0, -50%); }
.demo.hint .sw { animation: sw-pulse 1.6s ease-out infinite; }
@keyframes sw-pulse { from { box-shadow: 0 0 0 0 rgba(20,83,245,.5); } 70%, to { box-shadow: 0 0 0 8px rgba(20,83,245,0); } }
@media (prefers-reduced-motion: reduce) {
  .demo.hint .sw { animation: none; box-shadow: 0 0 0 3px rgba(20,83,245,.35); }
}
.sw { flex: none; width: 30px; height: 17px; border: 0; padding: 0; border-radius: 999px; background: #2F7A4F; position: relative; cursor: pointer; transition: background .2s; }
.sw::after { content: ""; position: absolute; left: 15px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--white); transition: left .2s; }
.sw[aria-checked="false"] { background: #CCD3E4; }
.sw[aria-checked="false"]::after { left: 2px; }
.sw:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.dash-open b { display: block; font-size: 11.5px; }
.dash-open small { color: #5F6A85; font-size: 10px; }
.dash-card { background: var(--white); border: 1px solid #E1E5F0; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-label { font-size: 9.5px; font-weight: 600; color: #5F6A85; text-transform: uppercase; letter-spacing: .3px; }
.dash-value { font-size: 18px; font-weight: 700; margin-top: 2px; white-space: nowrap; }
.dash-delta { font-size: 10px; color: #2F7A4F; font-weight: 600; }
.dash-sub { font-size: 10px; color: #5F6A85; }
.dash-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; }
.dash-card h5 { margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.dash-bars { display: flex; align-items: flex-end; gap: 3px; height: 96px; border-bottom: 1px solid #E1E5F0; }
.dash-bars i { flex: 1; height: var(--h); background: rgba(20,83,245,.7); border-radius: 3px 3px 0 0; }
.dash-bars i.peak { background: var(--blue); }
.dash-hours { display: flex; justify-content: space-between; font-size: 9px; color: #5F6A85; margin-top: 4px; }
.dash-value { transition: color .3s; }
.dash-value.bump { color: var(--blue); }
.dash-bars i { transition: height .8s ease; }
.dash-menu { display: grid; gap: 8px; }
.dash-menu label { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; cursor: pointer; }
.dash-menu label.off span, .dash-menu label.off em { color: #9AA3BA; text-decoration: line-through; }
.dash-menu em { font-style: normal; color: #5F6A85; }
.dash-orders { display: grid; }
.dash-order { display: grid; grid-template-columns: 38px 1fr auto 70px; gap: 8px; align-items: center; padding: 7px 0; border-top: 1px solid #EEF1F7; }
.dash-order:first-child { border-top: 0; }
.dash-order span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-order em { font-style: normal; font-weight: 600; }
.dash-order.in { animation: order-in .6s ease; background: #F3F6FF; border-radius: 8px; margin: 0 -6px; padding: 7px 6px; }
@keyframes order-in { from { opacity: 0; transform: translateY(-8px); } }
.st { font-style: normal; font-size: 10px; font-weight: 600; border-radius: 999px; padding: 2px 8px; text-align: center; }
.st-done { background: #E6F4EC; color: #2F7A4F; }
.st-new { background: #E7EDFE; color: var(--blue); }
.dash-pay { display: grid; gap: 9px; }
.dash-pay div { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; }
.dash-pay em { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: #E7EDFE; position: relative; overflow: hidden; }
.dash-pay em::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--blue); border-radius: inherit; }
.dash-pay b { font-weight: 600; }

/* Funciones */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature:nth-child(3n+1) .ic { background: #F2EAFE; color: var(--violet); }
.feature:nth-child(3n+2) .ic { background: #E6F0FF; color: var(--blue); }
.feature:nth-child(3n+3) .ic { background: #F6EFFE; color: #8F55D6; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

/* Escena: el chat y el panel lado a lado */
.demo { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: center; }
.phone-sm { width: 300px; border-radius: 40px; }
.phone-sm .screen { height: 540px; border-radius: 30px; }
.chat { overflow: hidden; }
.chat .msg { flex: none; }
.msg.typing { display: flex; gap: 4px; padding: 10px 12px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; animation: dot 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .15s; }
.msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .3; } }
.demo-foot { display: flex; justify-content: center; margin-top: 18px; min-height: 36px; }
.replay { font: inherit; font-weight: 700; font-size: 15px; color: var(--blue); background: none; border: 0; cursor: pointer; padding: 8px 12px; border-radius: 999px; visibility: hidden; }
.replay.show { visibility: visible; }
.replay:hover { background: #E7EDFE; }
.checks-grid { grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 40px; }

/* Tu cliente es tuyo */
.own { background: var(--navy); color: var(--white); }
.own .section-head .kicker { color: var(--lavender); }
.own .section-head p { color: rgba(255,255,255,.75); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px; }
.compare-col h3 { font-size: 20px; margin-bottom: 18px; color: rgba(255,255,255,.7); }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare-col li { display: flex; gap: 12px; color: rgba(255,255,255,.7); }
.compare-col li::before { content: "–"; color: rgba(255,255,255,.4); font-weight: 800; }
.compare-col.us { background: var(--white); border-color: var(--white); }
.compare-col.us h3 { color: var(--navy); }
.compare-col.us li { color: var(--ink); font-weight: 600; }
.compare-col.us li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat;
}

/* Botón fijo en el celular, cuando el del hero ya no se ve */
.sticky-cta { display: none; }

/* Precio */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.price-card {
  background: var(--navy); color: var(--white); border-radius: 24px; padding: 40px;
  position: relative; overflow: hidden;
}
.price-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px;
  background: url("../assets/symbol.svg") center/contain no-repeat; opacity: .18;
}
.price-card .big { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.price-card p { color: rgba(255,255,255,.75); margin: 10px 0 26px; max-width: 360px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; }
.price-card li::before { content: "→"; color: var(--lavender); font-weight: 800; }

/* Preguntas */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* Cierre */
.cta-band { background: linear-gradient(120deg, var(--violet), var(--blue)); color: var(--white); text-align: center; padding: 88px 0; }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.cta-band p { font-size: 19px; opacity: .85; margin: 14px 0 30px; }
.cta-band .btn { background: var(--white); color: var(--navy); box-shadow: 0 10px 30px rgba(7,22,55,.25); }

footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 48px 0 32px; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
footer img { height: 36px; width: auto; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--white); }
footer .legal { flex-basis: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; }

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .hero .wrap, .pricing, .demo, .compare, .checks-grid { grid-template-columns: 1fr; }
  .demo .phone-sm { justify-self: center; }
  .hero .wrap { padding-top: 48px; padding-bottom: 64px; gap: 56px; }
  .steps, .features { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .dash { grid-template-columns: 1fr; }
  .nav-links .btn { display: none; }
  .dash-side, .dash-hours-card, .dash-select { display: none; }
  .dash-top { justify-content: flex-end; }
  .dash-row { grid-template-columns: 1fr; }
  .dash-value { font-size: 15px; }
  .dash-order { grid-template-columns: 34px 1fr auto; }
  .dash-order .st { display: none; }
  .compare-col { padding: 24px; }
  .sticky-cta {
    display: flex; justify-content: center; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20;
    transform: translateY(160%); transition: transform .25s ease;
  }
  .sticky-cta.show { transform: none; }
  .price-card { padding: 30px 24px; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
}

/* Páginas legales */
.legal { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding: 64px 20px 96px; }
.legal-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: 4px; }
.legal-nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--violet); margin-bottom: 10px; }
.legal-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 10px; }
.legal-nav a:hover { color: var(--ink); background: var(--surface); }
.legal-nav a[aria-current="page"] { color: var(--blue); background: #E7EDFE; }
.legal-content { max-width: 720px; min-width: 0; }
.legal-content h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.legal-content h2 { font-size: 24px; font-weight: 800; margin: 44px 0 12px; }
.legal-content h3 { font-size: 18px; margin: 28px 0 8px; }
.legal-content p, .legal-content li { color: #2A3554; }
.legal-content ul, .legal-content ol { padding-left: 22px; }
.legal-content li { margin: 6px 0; }
.legal-content a { color: var(--blue); }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.legal-content th, .legal-content td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-content th { background: var(--surface); font-weight: 700; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; }
  .legal-nav h2 { flex-basis: 100%; margin-bottom: 4px; }
}
