/* =====================================================================
   RifaPanel — Landing pública
   Índigo de marca, mucho blanco, hexágono como motivo. Rejilla de 8px.
   ===================================================================== */
:root {
  --brand: #4F46E5; --brand-600: #4338CA; --brand-700: #3730A3;
  --b50: #EEF2FF; --b100: #E0E7FF; --b200: #C7D2FE;
  --ink: #1E1B3A; --ink-2: #3F3C5C; --muted: #5F5C82;
  --line: #E9E8F3; --bg-tint: #F7F7FD;
  --amber: #F59E0B; --amber-50: #FEF3C7; --amber-ink: #92400E;
  --wa: #128C7E;
  --r-lg: 24px; --r: 16px; --r-sm: 12px;
  --sh-sm: 0 1px 2px rgba(30,27,58,.06), 0 1px 3px rgba(30,27,58,.04);
  --sh: 0 8px 24px rgba(79,70,229,.08), 0 2px 6px rgba(30,27,58,.05);
  --sh-lg: 0 24px 56px rgba(79,70,229,.18), 0 8px 16px rgba(30,27,58,.08);
  --f-title: 'Baloo 2', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-text: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hd-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --hex: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 16px); }
body { margin: 0; font-family: var(--f-text); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--f-title); color: var(--ink); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-600); }
svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid transparent; font: 800 15px/1.2 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s; }
.btn svg { width: 20px; height: 20px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.28); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(79,70,229,.34); }
.btn--ghost { color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--b50); color: var(--brand-600); }
.btn--soft { background: var(--b50); color: var(--brand-700); }
.btn--soft:hover { background: var(--b100); transform: translateY(-2px); }
.btn--outline { border-color: var(--b200); color: var(--brand-700); background: #fff; }
.btn--outline:hover { border-color: var(--brand); background: var(--b50); }
.btn--white { background: #fff; color: var(--brand-700); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,27,58,.25); }
.btn--onbrand { color: #fff; border-color: rgba(255,255,255,.45); }
.btn--onbrand:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn__arrow { display: inline-block; transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.hd.is-scrolled { box-shadow: 0 6px 24px rgba(30,27,58,.07); border-color: var(--line); }
.hd__in { display: flex; align-items: center; gap: 24px; min-height: var(--hd-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand__mark { color: var(--brand); display: grid; transition: transform .4s var(--ease); }
.brand__mark svg { width: 36px; height: 36px; }
.brand:hover .brand__mark { transform: rotate(30deg); }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt strong { font: 800 22px/1 var(--f-title); letter-spacing: -.01em; }
.brand__txt small { font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.hd__nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.hd__links { display: flex; gap: 4px; }
.hd__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--ink-2); font-weight: 700; font-size: 15px; text-decoration: none; transition: color .2s, background-color .2s; }
.hd__links a:hover { color: var(--brand-600); background: var(--b50); }
.hd__actions { display: flex; gap: 8px; }
.hd__toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--b50); color: var(--brand-700); cursor: pointer; align-items: center; justify-content: center; }
.hd__burger { display: grid; gap: 5px; width: 20px; }
.hd__burger i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.hd__toggle[aria-expanded="true"] .hd__burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hd__toggle[aria-expanded="true"] .hd__burger i:nth-child(2) { opacity: 0; }
.hd__toggle[aria-expanded="true"] .hd__burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .js .hd__toggle { display: inline-flex; }
  .js .hd__nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgba(30,27,58,.10); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
  .js .hd__nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .js .hd__links { flex-direction: column; }
  .js .hd__links a { min-height: 48px; font-size: 17px; padding: 0 12px; border-radius: 12px; }
  .js .hd__actions .btn { flex: 1; min-height: 48px; }
  /* sin JS: la navegación se acomoda en una segunda fila */
  html:not(.js) .hd__in { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .hd__nav { width: 100%; flex-wrap: wrap; gap: 8px; margin: 0; }
  html:not(.js) .hd__links { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 60% at 85% 20%, rgba(199,210,254,.55), transparent 70%),
  radial-gradient(40% 50% at 0% 100%, rgba(238,242,255,.9), transparent 70%); }
.hero__bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16zM28 62v35M0 0' fill='none' stroke='%23C7D2FE' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 75%); mask-image: radial-gradient(70% 80% at 80% 30%, #000, transparent 75%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--b100); box-shadow: var(--sh-sm); font-size: 14px; font-weight: 800; color: var(--brand-700); }
.eyebrow__hex { width: 14px; height: 16px; background: var(--amber); clip-path: var(--hex); }
.hero__title { margin-top: 24px; font-size: clamp(2.75rem, 1.4rem + 4.6vw, 5.25rem); line-height: 1; letter-spacing: -.03em; }
.hl { color: var(--brand); position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .14em; border-radius: 99px; background: var(--amber); opacity: .85; z-index: -1; transform-origin: left; }
.hero__lead { margin-top: 24px; font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 18px; height: 18px; color: var(--brand); }

/* demo */
.hero__demo { position: relative; }
.demo { position: relative; margin: 0; padding: 24px; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-lg); }
.demo::before { content: ""; position: absolute; inset: -24px -24px auto auto; width: 120px; height: 138px; background: var(--b100); clip-path: var(--hex); z-index: -1; transform: rotate(12deg); }
.demo__top { display: flex; align-items: center; gap: 12px; }
.demo__logo { display: grid; place-items: center; width: 44px; height: 48px; background: var(--brand); color: #fff; clip-path: var(--hex); }
.demo__logo svg { width: 22px; height: 22px; }
.demo__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.demo__name strong { font: 800 18px/1.2 var(--f-title); }
.demo__name span { font-size: 13px; color: var(--muted); font-weight: 600; }
.demo__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #047857; background: #ECFDF5; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.demo__live i { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulse 2.4s infinite; }
.demo__hive { display: block; width: 100%; height: auto; margin: 20px 0 16px; }
.hx polygon { fill: #fff; stroke: var(--b200); stroke-width: 1.5; transition: fill .45s var(--ease), stroke .45s var(--ease); }
.hx text { font: 800 10.5px var(--f-text); fill: var(--muted); text-anchor: middle; transition: fill .45s; }
.hx.is-held polygon { fill: var(--amber-50); stroke: var(--amber); }
.hx.is-held text { fill: var(--amber-ink); }
.hx.is-sold polygon { fill: var(--brand); stroke: var(--brand); }
.hx.is-sold text { fill: #fff; }
.hx { transform-box: fill-box; }
.hx.is-pop polygon { animation: pop .5s var(--ease); transform-box: fill-box; transform-origin: center; }
.demo__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo__stats div { display: flex; flex-direction: column; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg-tint); }
.demo__stats b { font: 800 22px/1.1 var(--f-title); font-variant-numeric: tabular-nums; }
.demo__stats span { font-size: 12px; font-weight: 700; color: var(--muted); }
.demo__stats div:first-child b { color: var(--brand); }
.demo__bar { height: 8px; margin-top: 12px; border-radius: 99px; background: var(--b50); overflow: hidden; }
.demo__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #6366F1); transition: width .6s var(--ease); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 16px; clip-path: var(--hex); display: inline-block; }
.lg--free { background: var(--b200); }
.lg--held { background: var(--amber); }
.lg--sold { background: var(--brand); }
.toast { position: absolute; right: -32px; bottom: -28px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(30,27,58,.16); min-width: 232px; }
.toast__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--wa); color: #fff; }
.toast__ic svg { width: 22px; height: 22px; }
.toast__txt { display: flex; flex-direction: column; line-height: 1.3; }
.toast__txt strong { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 800; }
.toast__txt > span { font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.toast__ok { color: var(--wa); display: inline-grid; }
.toast__ok svg { width: 16px; height: 16px; stroke-width: 3; }
.toast.is-in { animation: toastIn .55s var(--ease) both; }

/* ---------- Cifras ---------- */
.stats { padding: 0 0 32px; }
.stats__list { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-sm); }
.stats__list li { padding: 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.stats__list li + li { border-left: 1px solid var(--line); }
.stats__list b { font: 800 clamp(2rem, 1.5rem + 1.5vw, 2.75rem)/1 var(--f-title); color: var(--brand); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stats__list li > span { font-size: 15px; font-weight: 700; color: var(--muted); }

/* ---------- Secciones ---------- */
.sec { padding: 112px 0; }
.sec--tint { background: var(--bg-tint); position: relative; }
.sec__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec__head--left { margin: 0; text-align: left; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.kicker::before { content: ""; width: 10px; height: 12px; background: var(--amber); clip-path: var(--hex); }
.sec__title { margin-top: 12px; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); }
.sec__lead { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 36px; left: 16%; right: 16%; border-top: 2px dashed var(--b200); z-index: 0; }
.step { position: relative; z-index: 1; padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-align: left; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.step__n { display: grid; place-items: center; width: 56px; height: 64px; margin: -64px 0 24px; background: var(--brand); color: #fff; clip-path: var(--hex); font: 800 26px/1 var(--f-title); }
.steps .step { margin-top: 32px; }
.step h3 { font-size: 24px; }
.step p { margin-top: 8px; color: var(--muted); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: var(--b100); }
.card h3 { font-size: 20px; margin-top: 20px; }
.card p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.ic { display: grid; place-items: center; width: 48px; height: 54px; background: var(--b50); color: var(--brand); clip-path: var(--hex); transition: background-color .25s, color .25s, transform .4s var(--ease); }
.ic svg { width: 24px; height: 24px; }
.card:hover .ic { background: var(--brand); color: #fff; transform: rotate(-8deg); }
.card--wide { grid-column: span 2; }
.card--hive { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #fff 30%, var(--b50)); }
.card--hive h3 { font-size: 28px; }
.card--hive p { font-size: 17px; max-width: 28em; }
.card__hive { display: block; width: 100%; max-width: 560px; height: auto; margin: 24px auto 0; }
.card__hive .hx polygon { stroke-width: 2; }
.card--hive:hover .card__hive .hx:not(.is-sold):not(.is-held) polygon { fill: var(--b50); }
.card--accent { background: linear-gradient(140deg, var(--brand), var(--brand-700)); border-color: transparent; }
.card--accent h3, .card--accent p { color: #fff; }
.card--accent p { color: #E0E7FF; }
.card--accent .ic { background: rgba(255,255,255,.16); color: #fff; }
.card--accent:hover .ic { background: #fff; color: var(--brand); }

/* para quién */
.who { padding: 72px 0; border-block: 1px solid var(--line); }
.who__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.who__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); max-width: 12em; }
.who__list { display: flex; flex-wrap: wrap; gap: 12px; }
.who__list li { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 20px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; color: var(--ink); transition: border-color .2s, transform .2s var(--ease); }
.who__list li:hover { border-color: var(--b200); transform: translateY(-2px); }
.who__ic { display: grid; place-items: center; width: 34px; height: 38px; background: var(--b50); color: var(--brand); clip-path: var(--hex); }
.who__ic svg { width: 18px; height: 18px; }

/* precios */
.free { display: flex; align-items: center; gap: 16px; max-width: 880px; margin: 0 auto 40px; padding: 16px 16px 16px 20px; border-radius: var(--r); background: #FFFBEB; border: 1px solid #FDE68A; }
.free__ic { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 50px; background: var(--amber); color: #fff; clip-path: var(--hex); }
.free__ic svg { width: 22px; height: 22px; }
.free p { flex: 1; color: var(--ink-2); font-size: 16px; }
.free strong { color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sh); }
.plan--featured { border: 2px solid var(--brand); box-shadow: var(--sh-lg); }
.plan__badge { position: absolute; top: -14px; left: 32px; padding: 4px 12px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; }
.plan__name { font-size: 26px; }
.plan__desc { margin-top: 4px; color: var(--muted); font-size: 15px; min-height: 3.2em; }
.plan__price { margin-top: 16px; display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font: 800 56px/1 var(--f-title); letter-spacing: -.03em; }
.plan__cur { font-weight: 800; color: var(--muted); font-size: 15px; }
.plan__rifas { margin-top: 8px; font-weight: 800; color: var(--brand-700); }
.plan__rifas span { color: var(--muted); font-weight: 700; }
.plan__list { margin: 24px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15px; color: var(--ink-2); flex: 1; align-content: start; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); stroke-width: 2.6; }
.plans__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 32px auto 0; max-width: 720px; text-align: center; color: var(--muted); font-size: 15px; font-weight: 600; }
.plans__note svg { color: var(--brand); width: 18px; height: 18px; }
.plans__note strong { color: var(--ink); }

/* FAQ */
.faq__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.faq__item:has([aria-expanded="true"]) { border-color: var(--b200); box-shadow: var(--sh); }
.faq__q { font: inherit; }
.faq__q button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 64px; padding: 16px 20px 16px 24px; background: none; border: 0; border-radius: var(--r); text-align: left; cursor: pointer; font: 800 18px/1.35 var(--f-text); color: var(--ink); }
.faq__q button:hover { color: var(--brand-700); }
.faq__icon { position: relative; flex: 0 0 auto; width: 32px; height: 36px; background: var(--b50); clip-path: var(--hex); transition: background-color .25s, transform .35s var(--ease); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2.5px; margin: -1.25px 0 0 -6px; background: var(--brand); border-radius: 2px; transition: transform .3s var(--ease), background-color .25s; }
.faq__icon::after { transform: rotate(90deg); }
[aria-expanded="true"] .faq__icon { background: var(--brand); transform: rotate(180deg); }
[aria-expanded="true"] .faq__icon::before, [aria-expanded="true"] .faq__icon::after { background: #fff; }
[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease); }
.faq__inner { overflow: hidden; }
.faq__inner p { padding: 0 24px 24px; color: var(--muted); }
.js .faq__a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .35s var(--ease), visibility 0s .35s; }
.js .faq__a.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .35s var(--ease); }

/* CTA final */
.cta { padding: 112px 0; }
.cta__box { position: relative; overflow: hidden; padding: 80px 48px; border-radius: 32px; text-align: center; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%); color: #fff; isolation: isolate; }
.cta__pattern { position: absolute; inset: 0; z-index: -1; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 54 16v31L28 62 2 47V16zM28 62v35' fill='none' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 97px; -webkit-mask-image: radial-gradient(60% 90% at 50% 50%, transparent 30%, #000); mask-image: radial-gradient(60% 90% at 50% 50%, transparent 30%, #000); }
.cta__title { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); max-width: 16em; margin: 0 auto; }
.cta__lead { margin-top: 16px; font-size: 19px; color: #E0E7FF; }
.cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.cta .btn:focus-visible { outline-color: #fff; }

/* Footer */
.ft { padding: 64px 0 32px; border-top: 1px solid var(--line); }
.ft__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ft__brand p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 24em; }
.ft__nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ft__nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink-2); font-weight: 700; text-decoration: none; font-size: 15px; transition: background-color .2s, color .2s; }
.ft__nav a:hover { background: var(--b50); color: var(--brand-700); }
.ft__nav svg { width: 18px; height: 18px; color: var(--wa); }
.ft__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.ft__legal p { font-size: 14px; color: var(--muted); }

/* ---------- Revelado al hacer scroll (solo con JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hl::after { transform: scaleX(0); transition: transform .8s var(--ease) .5s; }
.js .hero__title.is-in .hl::after { transform: scaleX(1); }

@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70%, 100% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--hive { grid-row: auto; }
  .toast { right: -16px; }
}
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero__in { grid-template-columns: 1fr; gap: 56px; }
  .hero__demo { max-width: 560px; width: 100%; margin: 0 auto; }
  .stats__list { grid-template-columns: repeat(2, 1fr); }
  .stats__list li:nth-child(3) { border-left: 0; }
  .stats__list li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sec { padding: 88px 0; }
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .steps::before { top: 32px; bottom: 32px; left: 60px; right: auto; border-top: 0; border-left: 2px dashed var(--b200); }
  .steps .step { margin-top: 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 24px; padding: 24px; }
  .step__n { margin: 0; grid-row: span 2; }
  .step p { margin-top: 4px; }
  .plans { grid-template-columns: 1fr; max-width: 520px; gap: 32px; }
  .plan__desc { min-height: 0; }
  .faq__wrap { grid-template-columns: 1fr; gap: 40px; }
  .sec__head--left { text-align: center; max-width: 720px; margin: 0 auto; }
  .who__in { flex-direction: column; text-align: center; }
  .who__title { max-width: none; }
  .who__list { justify-content: center; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  :root { --hd-h: 64px; }
  .brand__mark svg { width: 32px; height: 32px; }
  .brand__txt strong { font-size: 20px; }
  .js .hd__nav { padding: 8px 16px 16px; }
  .hero { padding: 32px 0 56px; }
  .hero__title { font-size: clamp(2.5rem, 1.6rem + 5vw, 3.25rem); }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__trust { gap: 8px 16px; font-size: 14px; }
  .demo { padding: 16px; border-radius: 20px; }
  .demo::before { display: none; }
  .demo__live { display: none; }
  .demo__stats b { font-size: 20px; }
  .demo__stats div { padding: 8px; }
  .toast { position: relative; right: auto; bottom: auto; margin: 16px 0 0; box-shadow: var(--sh); min-width: 0; }
  .stats__list li { padding: 20px 16px; }
  .stats__list li > span { font-size: 14px; }
  .sec { padding: 72px 0; }
  .sec__head { margin-bottom: 40px; }
  .sec__lead { font-size: 17px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .card--wide, .card--hive { grid-column: auto; }
  .card { padding: 24px; }
  .card--hive h3 { font-size: 24px; }
  .steps::before { left: 44px; }
  .steps .step { grid-template-columns: 56px 1fr; column-gap: 16px; padding: 20px 16px; }
  .step h3 { font-size: 21px; }
  .who { padding: 56px 0; }
  .who__list li { padding-right: 16px; font-size: 15px; }
  .free { flex-direction: column; text-align: center; padding: 20px; }
  .free .btn { width: 100%; }
  .plan { padding: 28px 24px; }
  .faq__q button { font-size: 16px; padding: 12px 16px 12px 20px; }
  .faq__inner p { padding: 0 20px 20px; font-size: 15px; }
  .cta { padding: 72px 0; }
  .cta__box { padding: 56px 24px; border-radius: 24px; }
  .cta__btns { flex-direction: column; }
  .cta__btns .btn { width: 100%; }
  .ft__in { flex-direction: column; }
  .ft__nav { margin-left: -16px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hl::after { transform: none; }
}

/* Hero visible sin esperar a JavaScript (mejor LCP / SEO): animación CSS al cargar */
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: heroIn .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--d, 0ms) * .6); }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .js .hero [data-reveal] { animation: none; } }
