/* =========================================================
   Yappa · Landing por sector — hoja de estilos compartida
   Marca Yappa: rojo #e63d44 · Plus Jakarta Sans
   --client = color de la marca del cliente (demo marca blanca)
   ========================================================= */

:root {
  --ink: #181411;
  --ink-2: #221710;
  --muted: #6f5b4d;
  --line: #e9e1db;
  --paper: #fbf8f5;
  --cream: #f4ebe4;
  --white: #ffffff;

  --red: #e63d44;
  --red-btn: #d9363d;
  --red-deep: #c22a31;
  --red-light: #ff8a8f;

  --night: #14100d;
  --night-2: #1e1813;
  --night-3: #261f19;
  --night-line: #33291f;
  --night-text: #f6ede7;
  --night-muted: #bfb1a6;

  --ok-bg: #e8f8ef;
  --ok: #1d683a;

  --client: #c2560c;
  --client-ink: #ffffff;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(24, 20, 17, .05), 0 18px 40px -18px rgba(24, 20, 17, .25);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
p { margin: 0; }
em { font-style: normal; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipos ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 18px;
}
.section-night .eyebrow, .band .eyebrow, .cta-box .eyebrow { color: var(--red-light); }
h2.h2 { font-size: clamp(2rem, 3.7vw, 3.15rem); letter-spacing: -.032em; line-height: 1.05; }
.section-lead { font-size: 1.13rem; color: var(--muted); margin-top: 18px; max-width: 40em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-size: 15.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--red-btn); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 245, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand-word { font-weight: 800; font-size: 25px; letter-spacing: -.045em; color: var(--ink); }
.brand-slash { color: var(--red); font-weight: 700; font-size: 20px; }
.brand-for { color: var(--muted); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); opacity: .78; transition: opacity .2s, color .2s; }
.nav-links a:hover { opacity: 1; color: var(--red-deep); }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 104px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 4.6vw, 3.95rem); line-height: 1.02; letter-spacing: -.04em; }
.hero h1 em { color: var(--red); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--muted); margin-top: 26px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hero-note .ok { width: 26px; height: 26px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 640px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 7% 2% 5% 12%;
  background: var(--cream); border-radius: 44px; transform: rotate(-5deg);
}
.hero-visual::after {
  content: ""; position: absolute; inset: 7% 2% 5% 12%; border-radius: 44px; transform: rotate(-5deg);
  background-image: radial-gradient(rgba(24, 20, 17, .13) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(135deg, #000 0%, transparent 60%);
  mask-image: linear-gradient(135deg, #000 0%, transparent 60%);
}

.ok {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok);
  display: grid; place-items: center;
}
.ok svg { width: 58%; height: 58%; }

/* ---------- Teléfono (mock marca blanca) ---------- */
.phone {
  position: relative; z-index: 1;
  width: 300px; height: 620px; padding: 11px;
  border-radius: 48px; background: #15110e;
  box-shadow: 0 50px 90px -35px rgba(24, 20, 17, .55), inset 0 0 0 2px #2d241d;
}
.phone::before {
  content: ""; position: absolute; z-index: 3; top: 21px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 25px; border-radius: 20px; background: #15110e;
}
.phone-screen { height: 100%; border-radius: 38px; overflow: hidden; background: #f6f2ee; display: flex; flex-direction: column; }
.app-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 54px 16px 16px;
  background: var(--client); color: var(--client-ink);
  transition: background-color .35s, color .35s;
}
.app-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-logo {
  width: 36px; height: 36px; flex: none; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--client-ink); color: var(--client);
  font-weight: 800; font-size: 13.5px; letter-spacing: -.02em;
  transition: background-color .35s, color .35s;
}
.app-id strong { display: block; font-size: 15px; line-height: 1.15; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-id small { display: block; font-size: 11.5px; opacity: .85; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-pill { font-size: 10.5px; font-weight: 700; padding: 5px 9px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--client-ink) 20%, transparent); }
.app-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 14px 13px; }
.app-hello { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.app-label { font-size: 14px; font-weight: 800; letter-spacing: -.02em; margin-top: -4px; }
.app-card { background: #fff; border-radius: 18px; padding: 13px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 18px -10px rgba(0, 0, 0, .18); }
.app-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tag-hot { font-size: 10px; font-weight: 800; color: #fff; background: var(--red-btn); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-client { font-size: 10px; font-weight: 800; color: var(--client-ink); background: var(--client); padding: 3px 8px; border-radius: 999px; white-space: nowrap; transition: background-color .35s, color .35s; }
.app-card h4 { font-size: 15.5px; line-height: 1.2; letter-spacing: -.025em; margin: 8px 0 3px; }
.app-card p { font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.app-qr { display: flex; align-items: center; gap: 11px; margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); }
.qr { width: 70px; height: 70px; flex: none; color: var(--ink); }
.qr svg { width: 100%; height: 100%; }
.app-qr span { font-size: 11px; line-height: 1.4; color: var(--muted); }
.app-cta { display: block; margin-top: 10px; padding: 9px; border-radius: 12px; text-align: center; font-size: 12.5px; font-weight: 700; background: var(--client); color: var(--client-ink); transition: background-color .35s, color .35s; }
.app-mini { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 9px 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.app-mini i { width: 34px; height: 34px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--client) 16%, #fff); position: relative; transition: background-color .35s; }
.app-mini i::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--client); opacity: .55; transition: background-color .35s; }
.app-mini b { display: block; font-size: 12px; line-height: 1.25; }
.app-mini > div { min-width: 0; }
.app-mini small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-foot { padding: 9px; text-align: center; font-size: 10.5px; color: var(--muted); background: #fff; border-top: 1px solid var(--line); }
.app-foot b { color: var(--ink); letter-spacing: -.02em; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.stamp {
  aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed #d8ccc3;
  display: grid; place-items: center; text-align: center;
  font-size: 9.5px; font-weight: 700; color: var(--muted); line-height: 1.15; padding: 2px;
}
.stamp.done { border: 1.5px solid var(--client); background: color-mix(in srgb, var(--client) 12%, #fff); color: var(--ink); transition: border-color .35s, background-color .35s; }
.stamp.gift { border: 1.5px solid var(--red); background: #fff1f1; color: var(--red-deep); }

/* Tarjetas flotantes */
.float {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 15px; border-radius: 16px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.3;
}
.float strong { display: block; font-size: 13.5px; letter-spacing: -.01em; }
.float small { display: block; font-size: 12px; color: var(--muted); }
.float-num strong { font-size: 24px; letter-spacing: -.035em; font-weight: 800; }
.float-a { left: -2%; bottom: 7%; }
.float-b { right: -3%; top: 0; flex-direction: column; align-items: flex-start; gap: 2px; }

/* ---------- Banda "yappa" ---------- */
.band { background: var(--ink); color: var(--night-text); padding: 30px 0; }
.band .wrap { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; }
.band p.eyebrow { margin: 0; font-size: 12.5px; font-weight: 500; letter-spacing: .12em; }
.band p { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -.015em; max-width: 54em; }
.band p span { color: var(--night-muted); font-weight: 500; }

/* ---------- Secciones ---------- */
.section { padding: clamp(76px, 9vw, 124px) 0; }
.section-cream { background: var(--cream); }
.section-night { background: var(--night); color: var(--night-text); }
.section-night .section-lead { color: var(--night-muted); }
.section-head { max-width: 780px; margin-bottom: 56px; }

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

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 32px; }
.card-n { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--red-deep); }
.card h3 { font-size: 1.32rem; letter-spacing: -.022em; line-height: 1.2; margin: 16px 0 10px; }
.card p { color: var(--muted); font-size: 16px; }
.section-cream .card { border-color: #e5d9cf; }

/* Pasos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.step { padding: 28px 24px 6px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid rgba(24, 20, 17, .14); }
.step-n { display: block; margin-bottom: 20px; font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--red-deep); }
.step h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Mecánicas */
.mech { display: flex; flex-direction: column; gap: 12px; padding: 32px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.mech.key { border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.mech-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mech.key .mech-tag { color: var(--red-deep); }
.mech h3 { font-size: 1.38rem; letter-spacing: -.024em; line-height: 1.2; }
.mech p { color: var(--muted); }
.mech-quote { margin-top: 6px; padding: 12px 16px; border-radius: 12px; border-left: 3px solid var(--red); background: var(--cream); font-weight: 700; font-size: 15.5px; color: var(--ink); }

/* ---------- Marca blanca ---------- */
.wl-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.ticks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d683a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks strong { font-weight: 700; }
.ticks span { color: var(--muted); }
.ticks.light li::before { background-color: rgba(255, 255, 255, .1); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a8f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

.wl-controls { margin-top: 34px; padding: 22px; display: grid; gap: 18px; background: #fff; border: 1px solid #e5d9cf; border-radius: var(--radius); }
.wl-controls-title { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--red-deep); }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 13.5px; font-weight: 700; padding: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--line);
  transition: box-shadow .2s, transform .2s;
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.swatch-custom { position: relative; overflow: hidden; display: inline-block; background: conic-gradient(#e63d44, #f59e0b, #16a34a, #0ea5e9, #6d28d9, #e63d44); }
.swatch-custom input { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); opacity: 0; cursor: pointer; }
.swatch-custom:focus-within { box-shadow: 0 0 0 2.5px var(--ink); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(24, 20, 17, .08); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f5b4d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }

/* Navegador (portal marca blanca) */
.browser { background: #fff; border: 1px solid #e5d9cf; border-radius: 18px; overflow: hidden; box-shadow: 0 50px 90px -45px rgba(24, 20, 17, .45); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #f1ebe6; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d9cdc4; }
.url { flex: 1; max-width: 360px; margin-left: 12px; padding: 5px 12px; border-radius: 8px; background: #fff; font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-head { display: flex; align-items: center; gap: 11px; padding: 14px 22px; background: var(--client); color: var(--client-ink); transition: background-color .35s, color .35s; }
.portal-head strong { font-size: 16px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.portal-head nav { margin-left: auto; display: flex; gap: 18px; font-size: 13px; font-weight: 600; opacity: .92; white-space: nowrap; }
.portal-hero { padding: 24px 22px 4px; }
.portal-hero h4 { font-size: 1.4rem; letter-spacing: -.03em; }
.portal-hero p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 18px 22px 22px; }
.p-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.p-img { position: relative; display: block; height: 92px; background: color-mix(in srgb, var(--client) 14%, #fff); transition: background-color .35s; overflow: hidden; }
.p-img::before { content: ""; position: absolute; right: -18px; top: -18px; width: 76px; height: 76px; border-radius: 50%; background: var(--client); opacity: .22; transition: background-color .35s; }
.p-img::after { content: ""; position: absolute; right: 22px; bottom: 14px; width: 30px; height: 30px; border-radius: 9px; background: var(--client); opacity: .5; transform: rotate(12deg); transition: background-color .35s; }
.p-img em { position: absolute; left: 12px; bottom: 10px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, .85); padding: 3px 7px; border-radius: 6px; }
.p-body { padding: 10px 12px 13px; }
.p-body b { display: block; font-size: 13.5px; line-height: 1.25; letter-spacing: -.01em; }
.p-body small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.portal-foot { display: flex; justify-content: space-between; gap: 12px; padding: 11px 22px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.portal-foot b { color: var(--ink); }

/* ---------- Tablero (sección oscura) ---------- */
.dash { padding: 22px; border-radius: 24px; background: var(--night-2); border: 1px solid var(--night-line); box-shadow: 0 50px 110px -50px rgba(0, 0, 0, .7); }
.dash-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 2px 4px 18px; border-bottom: 1px solid var(--night-line); }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
.dash-top strong { font-size: 15px; letter-spacing: -.01em; }
.dash-top small { font-size: 13px; color: var(--night-muted); }
.dash-badge { margin-left: auto; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--night-line); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 12px; }
.kpi { padding: 16px 18px; border-radius: 14px; background: var(--night-3); }
.kpi small { display: block; font-size: 12.5px; color: var(--night-muted); }
.kpi strong { display: block; margin-top: 6px; font-size: clamp(1.45rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.kpi span { display: block; margin-top: 4px; font-size: 12px; color: #7fdca6; }
.dash-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.dash-row.wide { grid-template-columns: 1.55fr 1fr; }
.panel { padding: 18px 18px 20px; border-radius: 14px; background: var(--night-3); min-width: 0; }
.panel h4 { font-size: 13.5px; font-weight: 700; letter-spacing: 0; margin-bottom: 18px; color: var(--night-text); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 156px; }
.bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, #c22a31, #ff7a6b); }
.bars i.low { background: #3d3229; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 9px; font-family: var(--mono); font-size: 11px; color: var(--night-muted); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; counter-reset: r; }
.rank li { display: grid; grid-template-columns: 18px 1fr auto; column-gap: 10px; row-gap: 6px; align-items: center; font-size: 14px; counter-increment: r; }
.rank li::before { content: counter(r); font-family: var(--mono); font-size: 12px; color: var(--night-muted); }
.rank b { font-family: var(--mono); font-size: 13px; font-weight: 600; }
.rank .meter { grid-column: 2 / 4; height: 4px; border-radius: 4px; background: #3d3229; overflow: hidden; }
.rank .meter i { display: block; height: 100%; width: var(--w); background: var(--red); border-radius: 4px; }
.dash-notes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 40px; }
.note { padding-top: 18px; border-top: 1px solid var(--night-line); }
.note h3 { font-size: 1.1rem; letter-spacing: -.015em; margin-bottom: 8px; }
.note p { color: var(--night-muted); font-size: 15.5px; }

/* Mapa de recorrido (centros comerciales) */
.map svg { width: 100%; height: auto; }
.map .floor { fill: #1a1511; stroke: #3d3229; }
.map .hall { fill: #2a221c; }
.map .store { fill: #332a22; stroke: #45392f; }
.map .store-label { fill: var(--night-text); font-family: var(--font); font-size: 12px; font-weight: 600; }
.map .flow { fill: none; stroke: var(--red); stroke-linecap: round; opacity: .82; }
.map .node { fill: #ff8a8f; }
.map-legend { margin-top: 10px; font-size: 12px; color: var(--night-muted); }

/* ---------- Cobro ---------- */
.model-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.model-big { font-size: clamp(2.8rem, 5.4vw, 4.6rem); line-height: .98; letter-spacing: -.045em; }
.model-big em { color: var(--red); }
.model-copy { margin-top: 22px; font-size: 1.12rem; color: var(--muted); max-width: 30em; }
.model-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.model-list li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.model-list .k { padding-top: 4px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--red-deep); }
.model-list strong { display: block; font-size: 1.14rem; letter-spacing: -.015em; }
.model-list p { margin-top: 4px; font-size: 15.5px; color: var(--muted); }

/* ---------- Preguntas ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-side p:not(.eyebrow) { margin-top: 18px; color: var(--muted); }
.faq-side a { color: var(--red-deep); font-weight: 700; }
.faq details { border-bottom: 1px solid rgba(24, 20, 17, .14); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { position: relative; padding: 22px 48px 22px 0; list-style: none; cursor: pointer; font-weight: 700; font-size: 1.08rem; letter-spacing: -.012em; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }

/* ---------- Demo / formulario ---------- */
.cta-box {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start;
  padding: clamp(32px, 5.5vw, 68px);
  border-radius: 30px; background: var(--ink); color: var(--night-text);
}
.cta-box::before {
  content: ""; position: absolute; left: -160px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(230, 61, 68, .38), transparent);
}
.cta-copy { position: relative; }
.cta-copy h2 { font-size: clamp(2rem, 3.7vw, 3.05rem); letter-spacing: -.035em; line-height: 1.04; }
.cta-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.08rem; color: var(--night-muted); }
.lead-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 28px; border-radius: 20px; background: #fff; color: var(--ink); }
.lead-form .full { grid-column: 1 / -1; }
.lead-form label { display: grid; gap: 6px; min-width: 0; }
.lead-form label > span { font-size: 13px; font-weight: 700; }
.lead-form label > span i { font-style: normal; font-weight: 500; color: var(--muted); }
.lead-form textarea { min-height: 96px; resize: vertical; }
.form-legal { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
.form-legal a { color: var(--ink); }
.form-status { grid-column: 1 / -1; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--ok-bg); color: #14532d; }
.form-status.warn { background: #fff7ed; color: #9a3412; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-grid > div > p { margin-top: 14px; max-width: 26em; font-size: 15px; color: var(--muted); }
.foot-grid h4 { margin-bottom: 14px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; font-size: 15px; }
.foot-grid a:hover { color: var(--red-deep); }
.foot-grid a[aria-current="page"] { font-weight: 800; }
.foot-grid a[aria-current="page"]::after { content: " ←"; color: var(--red); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }

/* ---------- Aparición al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .float-a { left: -2%; }
  .float-b { right: -2%; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin-left: 0; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    padding: 6px 24px 18px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .site-header.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .hero { padding: 40px 0 72px; }
  .hero-grid, .wl-grid, .model-grid, .faq-grid, .cta-box { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-visual { min-height: 0; padding: 36px 0; }
  .float-a { left: 2%; }
  .float-b { right: 2%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step { padding-bottom: 30px; }
  .wl-grid, .model-grid, .faq-grid { gap: 40px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .dash-row, .dash-row.wide { grid-template-columns: 1fr; }
  .dash-notes { grid-template-columns: 1fr; gap: 0; }
  .note + .note { margin-top: 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 36px); }
  .brand-for, .brand-slash { display: none; }
  .nav { gap: 12px; }
  .nav-toggle { margin-left: auto; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; }
  .step + .step { border-top: 1px solid rgba(24, 20, 17, .14); }
  .model-list li { grid-template-columns: 1fr; gap: 6px; }
  .portal-grid { grid-template-columns: 1fr 1fr; }
  .portal-grid .p-card:nth-child(3) { display: none; }
  .portal-head nav { display: none; }
  .lead-form { grid-template-columns: 1fr; padding: 20px; }
  .lead-form > * { grid-column: 1 / -1; }
  .float { padding: 10px 12px; }
  .float-a { left: 0; bottom: 6%; }
  .float-b { right: 0; top: 0; }
  .dash { padding: 14px; }
  .dash-badge { margin-left: 0; }
  .faq summary { font-size: 1rem; }
}
@media (max-width: 440px) {
  .nav-cta { display: none; }
  .phone { width: 272px; height: 566px; border-radius: 44px; }
  .phone-screen { border-radius: 34px; }
  .float { max-width: 62%; }
  .hero-ctas .btn { width: 100%; }
}

/* =========================================================
   MOTION + ICONOS
   - .m  = el visitante NO pidió reducir movimiento (lo pone un script en <head>)
   - .js = main.js cargó
   - Solo se animan transform y opacity.
   ========================================================= */
:root {
  --ease-out: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes showLate { to { opacity: 1; } }
@keyframes wordUp { from { transform: translateY(108%); } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(70px) rotate(3deg); } }
@keyframes popIn { from { opacity: 0; transform: scale(.7) translateY(12px); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes scan { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(64px); } }
@keyframes pulseRing { 0% { transform: scale(.7); opacity: .7; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes drawCheck { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
@keyframes orbA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, 40px) scale(1.15); } }
@keyframes orbB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, -30px) scale(.9); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes meterIn { from { transform: scaleX(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: .9; } }
@keyframes flowDots { to { stroke-dashoffset: -8; } }
@keyframes flash { from { opacity: .55; } to { opacity: 0; } }
@keyframes pop { 0% { transform: scale(.5); } 100% { transform: scale(1); } }
@keyframes feedIn { from { opacity: 0; transform: translateY(7px); } }
@keyframes numPop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes shine { from { transform: translateX(-160%) skewX(-20deg); } to { transform: translateX(360%) skewX(-20deg); } }

/* ---------- Iconos (Phosphor, sprite inline) ---------- */
.i { width: 1em; height: 1em; fill: currentColor; flex: none; display: inline-block; }
.btn .i { width: 19px; height: 19px; }
.btn .i, .btn svg { transition: transform .28s var(--ease-out); }
.btn:hover .i, .btn:hover svg { transform: translateX(3px); }

.ico {
  position: relative; flex: none;
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center;
  background: #fdeceb; color: var(--red-deep);
}
.ico .i { width: 29px; height: 29px; transition: transform .5s var(--ease-spring); }
.card:hover .ico .i, .mech:hover .ico .i, .step:hover .ico .i { transform: rotate(-10deg) scale(1.12); }
.mech.key .ico { background: var(--ink); color: #fff; }
.step .ico { background: #fff; box-shadow: 0 0 0 1px #e5d9cf; margin-bottom: 18px; }
.step .ico + .step-n { margin-bottom: 10px; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-top + h3 { margin-top: 24px; }
.mech .ico { margin-bottom: 6px; }
.model-list .k { display: flex; align-items: flex-start; gap: 8px; }
.model-list .k .i { width: 18px; height: 18px; margin-top: -1px; }
.wl-controls-title { display: flex; align-items: center; gap: 8px; }
.wl-controls-title .i { width: 18px; height: 18px; }
.tag-hot, .tag-client { display: inline-flex; align-items: center; gap: 3px; }
.tag-hot .i { width: 11px; height: 11px; }

/* Reveal escalonado de iconos */
.m.js [data-reveal] .ico { opacity: 0; transform: scale(.6) rotate(-14deg); transition: opacity .35s ease, transform .7s var(--ease-spring); transition-delay: calc(var(--i, 0) * 60ms + .25s); }
.m.js [data-reveal].in .ico { opacity: 1; transform: none; }
.js [data-reveal] { transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- Tarjetas: elevación + luz que sigue al cursor ---------- */
.card, .mech {
  --mx: -999px; --my: -999px;
  background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(230, 61, 68, .075), transparent 42%);
}
.js .card[data-reveal].in, .js .mech[data-reveal].in { transition: opacity .7s ease, transform .5s var(--ease-out), box-shadow .4s ease, border-color .4s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.js .card[data-reveal].in:hover, .js .mech[data-reveal].in:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(24, 20, 17, .4); border-color: #dccdc2; }
.js .mech.key[data-reveal].in:hover { box-shadow: 9px 9px 0 var(--ink); transform: translate(-3px, -3px); }

/* ---------- Pasos: línea de progreso que se dibuja ---------- */
.steps { position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--red); transform: scaleX(1); transform-origin: left; }
.m.js .steps::before { transform: scaleX(0); transition: transform 1.8s var(--ease-out) .2s; }
.m.js .steps.in::before { transform: scaleX(1); }
.m.js .steps .step { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 140ms + .2s); }
.m.js .steps.in .step { opacity: 1; transform: none; }
.m.js .steps .step .ico { transition-delay: calc(var(--i, 0) * 140ms + .45s); }

/* ---------- Header: subrayado animado + barra de progreso ---------- */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }

/* ---------- Botón principal: brillo al pasar el cursor ---------- */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); transform: translateX(-160%) skewX(-20deg); pointer-events: none; z-index: -1; }
.m .btn-primary:hover::after { animation: shine .9s var(--ease-out); }

/* ---------- HERO: coreografía de entrada ---------- */
.hero > .wrap { position: relative; z-index: 1; }
.hero-orbs { display: none; position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.m .hero-orbs { display: block; }
.hero-orbs i { position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-orbs i:nth-child(1) { width: 460px; height: 460px; right: 0; top: -60px; background: color-mix(in srgb, var(--client) 30%, transparent); animation: orbA 17s ease-in-out infinite; transition: background-color .5s; }
.hero-orbs i:nth-child(2) { width: 380px; height: 380px; left: -140px; bottom: -160px; background: rgba(230, 61, 68, .16); animation: orbB 21s ease-in-out infinite; }
.hero-orbs i:nth-child(3) { width: 280px; height: 280px; right: 32%; bottom: -80px; background: rgba(244, 190, 150, .35); animation: orbA 24s ease-in-out infinite reverse; }

.m .hero-copy > * { animation: fadeUp .8s var(--ease-out) both; }
.m .hero-copy > .eyebrow { animation-delay: .05s; }
.m .hero-copy > h1 { animation: none; }
.m .hero-copy > .lead { animation-delay: .5s; }
.m .hero-copy > .hero-ctas { animation-delay: .62s; }
.m .hero-copy > .hero-note { animation-delay: .74s; }
.m .hero h1:not(.is-split) { opacity: 0; animation: showLate 0s 1.5s forwards; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .12em; margin: -.06em 0 -.12em; }
.hero h1 .w > span { display: inline-block; }
.m .hero h1 .w > span { animation: wordUp .95s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms + .12s); }

.m .hero-visual::before { animation: fadeIn 1s .1s both; }
.m .phone { animation: phoneIn 1.15s var(--ease-out) .25s both, floaty 7s ease-in-out 1.5s infinite; }
.m .float-b { animation: popIn .75s var(--ease-spring) .95s both, bob 5s ease-in-out 1.8s infinite; }
.m .float-a { animation: popIn .75s var(--ease-spring) 1.2s both, bob 6s ease-in-out 2.1s infinite; }

/* Burbujas de iconos alrededor del teléfono */
.bubble {
  position: absolute; z-index: 2;
  width: 54px; height: 54px; border-radius: 17px;
  display: grid; place-items: center;
  background: #fff; color: var(--red-deep);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bubble .i { width: 28px; height: 28px; }
.bubble-1 { left: 5%; top: 24%; }
.bubble-2 { right: 5%; bottom: 30%; color: var(--client); transition: color .35s; }
.m .bubble-1 { animation: popIn .7s var(--ease-spring) 1.35s both, bob 4.6s ease-in-out 2.2s infinite; }
.m .bubble-2 { animation: popIn .7s var(--ease-spring) 1.5s both, bob 5.4s ease-in-out 2.6s infinite; }

/* QR que se escanea */
.qr { position: relative; overflow: hidden; border-radius: 4px; }
.m .phone .qr::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 0; height: 3px; border-radius: 3px;
  background: var(--red); box-shadow: 0 0 12px 3px rgba(230, 61, 68, .5);
  animation: scan 2.6s ease-in-out infinite;
}

/* "Canje validado": check que se dibuja + anillo + texto que rota */
.float-a .ok { position: relative; }
.float-a .ok path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.m .float-a .ok path { animation: drawCheck .6s ease-out 1.75s both; }
.float-a .ok::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; pointer-events: none; }
.m .float-a.swap .ok::after { animation: pulseRing .9s ease-out; }
.m .float-a.swap .ok path { animation: drawCheck .5s ease-out both; }
.m .float-a.swap > div { animation: feedIn .45s var(--ease-out) both; }
.float-num strong, .kpi strong { font-variant-numeric: tabular-nums; }
.float-b strong { transform-origin: left center; }
.m .float-b strong.tick { animation: numPop .5s var(--ease-spring); }

/* ---------- Cinta en movimiento (marquee) ---------- */
.marquee { position: relative; overflow: hidden; background: var(--red-btn); color: #fff; padding: 15px 0; }
.marquee::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 190px; background: linear-gradient(90deg, rgba(217, 54, 61, 0), var(--red-btn) 48%); pointer-events: none; }
.marquee-track { display: flex; width: max-content; }
.m .marquee-track { animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee-list li { display: flex; align-items: center; gap: 14px; padding: 0 22px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.marquee-list li .i { width: 18px; height: 18px; opacity: .9; }
.marquee-toggle {
  position: absolute; z-index: 1; right: 14px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(24, 20, 17, .28); color: #fff;
  transition: background-color .2s;
}
.marquee-toggle:hover { background: rgba(24, 20, 17, .45); }
.marquee-toggle .i { width: 18px; height: 18px; }
.marquee-toggle .i-play, .marquee.paused .marquee-toggle .i-pause { display: none; }
.marquee.paused .marquee-toggle .i-play { display: block; }
html:not(.m) .marquee-track { width: auto; }
html:not(.m) .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
html:not(.m) .marquee-list[aria-hidden="true"], html:not(.m) .marquee-toggle, html:not(.m) .marquee::after { display: none; }

/* ---------- Demo marca blanca: respuesta al cambiar ---------- */
.app-bar, .portal-head { position: relative; }
.app-bar::after, .portal-head::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.m.wl-pulse .app-bar::after, .m.wl-pulse .portal-head::after { animation: flash .7s ease-out; }
.m.wl-pulse .app-logo { animation: pop .55s var(--ease-spring); }
.swatch { transition: box-shadow .2s, transform .35s var(--ease-spring); }
.swatch[aria-pressed="true"] { transform: scale(1.1); }

/* ---------- Tablero: barras, medidores, contadores, mapa ---------- */
.bars i { transform-origin: bottom; }
.m.js .dash.in .bars i { animation: barUp 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms + .3s); }
.rank .meter i { transform-origin: left; }
.m.js .dash.in .rank .meter i { animation: meterIn 1.1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 100ms + .55s); }
.kpi { transition: transform .3s var(--ease-out), background-color .3s; }
.kpi:hover { transform: translateY(-3px); background: #2d251e; }
.dash-dot { position: relative; }
.dash-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ddc84; opacity: 0; }
.m .dash-dot::after { animation: pulseRing 2s ease-out infinite; }
.m.js .map .flow { stroke-dasharray: 1; stroke-dashoffset: 1; }
.m.js .dash.in .map .flow { animation: draw 1.5s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 140ms + .5s); }
.map .flow-dots { fill: none; stroke: #ffe1dc; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .1 7.9; opacity: 0; }
.m.js .dash.in .map .flow-dots { animation: appear .5s ease 2.2s forwards, flowDots 1.3s linear 2.2s infinite; }
html:not(.m) .map .flow-dots { display: none; }

/* ---------- Cobro: subrayado que se dibuja + filas escalonadas ---------- */
.model-big em { position: relative; display: inline-block; isolation: isolate; }
.model-big em::after { content: ""; position: absolute; z-index: -1; left: -.04em; right: -.04em; bottom: .1em; height: .3em; border-radius: .08em; background: currentColor; opacity: .16; transform: scaleX(1); transform-origin: left; }
.m.js .model-big em::after { transform: scaleX(0); transition: transform 1s var(--ease-out) .45s; }
.m.js .in .model-big em::after { transform: scaleX(1); }
.m.js .model-list li { opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + .2s); }
.m.js .model-list.in li { opacity: 1; transform: none; }

/* ---------- Preguntas ---------- */
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--red-deep); }
.m .faq details[open] > p { animation: faqIn .4s var(--ease-out); }

/* ---------- Demo / CTA ---------- */
.cta-box::after {
  content: ""; position: absolute; right: -140px; top: -180px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--client) 45%, transparent), transparent);
  pointer-events: none; z-index: 0;
}
.cta-copy, .lead-form { z-index: 1; }
.m .cta-box::before { animation: orbB 16s ease-in-out infinite; }
.m .cta-box::after { animation: orbA 19s ease-in-out infinite; }
.lead-form label > span { transition: color .2s; }
.lead-form label:focus-within > span { color: var(--red-deep); }
.m .form-status:not([hidden]) { animation: feedIn .4s var(--ease-out); }

/* Pausa de bucles fuera de pantalla */
.offscreen, .offscreen *, .offscreen::before, .offscreen::after, .offscreen *::before, .offscreen *::after { animation-play-state: paused !important; }

@media (max-width: 640px) {
  .marquee-list li { font-size: 16px; padding: 0 16px; }
  .bubble { width: 46px; height: 46px; border-radius: 14px; }
  .bubble .i { width: 23px; height: 23px; }
}
@media (max-width: 440px) {
  .bubble { display: none; }
}
@media (max-width: 960px) {
  .hero-orbs i:nth-child(1) { top: auto; bottom: 4%; right: -140px; width: 340px; height: 340px; }
  .hero-orbs i:nth-child(3) { display: none; }
}

/* Campo trampa anti-bots (invisible) y botón enviando */
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"], .btn:disabled { opacity: .75; cursor: progress; }
