/* ==========================================================================
   ModaFlow — estilos base, componentes compartidos, landing y planes
   ========================================================================== */
:root {
  --ink: #16132b; --ink-2: #39355a; --muted: #6c6889; --line: #e8e5f2; --line-2: #f1eff8;
  --bg: #faf9fd; --card: #fff; --soft: #f4f1ff;
  --violet: #6c4cf5; --violet-2: #8b73ff; --violet-d: #4f33d6; --pink: #ff5c8a; --pink-2: #ff8fb0;
  --mint: #12a88f; --amber: #e8970c; --red: #e0444b; --blue: #2f7cf6;
  --grad: linear-gradient(135deg, #6c4cf5 0%, #b04cf0 52%, #ff5c8a 100%);
  --c1: #6c4cf5; --c2: #ff5c8a; --c3: #12a88f; --c4: #f5a524; --c5: #2f7cf6;
  --r: 14px; --r-lg: 22px; --r-sm: 9px;
  --sh: 0 1px 2px rgba(22, 19, 43, .05), 0 6px 20px rgba(22, 19, 43, .06);
  --sh-lg: 0 24px 60px -18px rgba(44, 26, 120, .32);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15.5px; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--violet); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 28px; height: 28px; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s; white-space: nowrap; text-decoration: none; line-height: 1.2; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--violet); color: #fff; box-shadow: 0 8px 20px -8px rgba(108, 76, 245, .7); }
.btn.primary:hover { background: var(--violet-d); }
.btn.grad { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(176, 76, 240, .8); }
.btn.grad:hover { filter: brightness(1.06); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--violet-2); color: var(--violet); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.danger { background: var(--red); color: #fff; }
.btn.wa { background: #1fa855; color: #fff; }
.btn.wa:hover { background: #178c46; }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn.lg { padding: 14px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { color: var(--violet); border-color: var(--violet-2); }
.link-btn { background: none; border: 0; padding: 0; color: var(--violet); font-weight: 700; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Chips e insignias ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--violet-d); font-size: .78rem; font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.badge.ok { background: #e3f7f1; color: #0b7a66; }
.badge.warn { background: #fff3dc; color: #a2620a; }
.badge.bad { background: #fde8e9; color: #b4252c; }
.badge.info { background: #e7efff; color: #2357b8; }
.badge.neutral { background: #efedf5; color: var(--ink-2); }
.badge.violet { background: var(--soft); color: var(--violet-d); }
.badge.pink { background: #ffe6ee; color: #c62d5c; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--violet); margin-bottom: 14px; }
.demo-note { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: #8a5a00; background: #fff6df; border: 1px solid #f5e1ad; padding: 4px 10px; border-radius: 999px; }

/* ---------- Formularios ---------- */
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 500; font-size: .95rem; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(108, 76, 245, .12); }
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.lbl { font-size: .86rem; font-weight: 700; color: var(--ink-2); display: block; margin-bottom: 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.actions.center { justify-content: center; }
.actions.start { justify-content: flex-start; }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { width: 40px; height: 23px; border-radius: 99px; background: #d9d5e6; position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--violet); }
.switch input:checked + span::after { transform: translateX(17px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(108, 76, 245, .2); }
.seg { display: inline-flex; background: #efedf6; border-radius: 12px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 700; font-size: .85rem; color: var(--ink-2); cursor: pointer; }
.seg button.on { background: #fff; color: var(--violet-d); box-shadow: var(--sh); }

/* ---------- Modales y avisos ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(22, 19, 43, .5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 18px; z-index: 100; opacity: 0; transition: opacity .18s; }
.modal-wrap.open { opacity: 1; }
.modal { background: #fff; border-radius: var(--r-lg); width: min(100%, 620px); max-height: calc(100vh - 36px); display: flex; flex-direction: column; box-shadow: var(--sh-lg); transform: translateY(10px) scale(.98); transition: transform .2s; }
.modal-wrap.open .modal { transform: none; }
.modal.sm { width: min(100%, 420px); }
.modal.lg { width: min(100%, 880px); }
.modal.xl { width: min(100%, 1040px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { margin: 0; font-size: 1.12rem; }
.modal-body { padding: 20px; overflow: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line-2); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 200; width: min(92vw, 440px); }
.toast { display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--sh-lg); font-size: .92rem; font-weight: 600; animation: tin .25s ease; transition: opacity .3s, transform .3s; }
.toast.error .icon { color: #ff8a8f; }
.toast.ok .icon { color: #5ee6c7; }
.toast.out { opacity: 0; transform: translateY(8px); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Encabezado del sitio ---------- */
.proto-ribbon { background: var(--ink); color: #d9d4f7; font-size: .8rem; text-align: center; padding: 7px 14px; }
.proto-ribbon b { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 253, .85); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(22, 19, 43, .2); }
.site-header .container { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -.02em; }
.mf-logo svg { width: 34px; height: 34px; display: block; }
.site-nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink-2); font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover, .site-nav a.active { color: var(--violet); background: var(--soft); }
.site-nav .btn { margin-left: 6px; color: #fff; }
.site-nav .btn:hover { color: #fff; }
.nav-toggle { display: none; margin-left: auto; }

/* ---------- Secciones ---------- */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 90px; }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto auto; width: 760px; height: 760px; background: radial-gradient(circle at center, rgba(176, 76, 240, .18), transparent 62%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: -200px; bottom: -260px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(255, 92, 138, .14), transparent 60%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 560px; }
.hero .actions { justify-content: flex-start; margin: 28px 0 22px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .9rem; font-weight: 600; padding: 0; margin: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--mint); }
.hero-visual { position: relative; min-height: 470px; }
.mock-window { position: absolute; inset: 10px 0 auto 40px; background: #fff; border-radius: 18px; box-shadow: var(--sh-lg); border: 1px solid var(--line); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); align-items: center; background: #fbfaff; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e4e0f0; }
.mock-bar span { margin-left: 10px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 54px 1fr; min-height: 330px; }
.mock-side { background: var(--ink); display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 16px 0; }
.mock-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .14); }
.mock-side i:first-child { background: var(--grad); }
.mock-main { padding: 16px; display: grid; gap: 12px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-kpi { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; }
.mock-kpi small { display: block; color: var(--muted); font-size: .68rem; font-weight: 700; }
.mock-kpi b { font-size: 1.04rem; }
.mock-kpi em { font-style: normal; font-size: .66rem; color: var(--mint); font-weight: 800; }
.mock-chart { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; height: 130px; display: flex; align-items: flex-end; gap: 7px; }
.mock-chart span { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--violet-2), var(--violet)); opacity: .9; animation: grow 1s ease both; transform-origin: bottom; }
.mock-chart span:nth-child(3n) { background: linear-gradient(180deg, var(--pink-2), var(--pink)); }
@keyframes grow { from { transform: scaleY(0); } }
.mock-rows { display: grid; gap: 7px; }
.mock-row { display: flex; align-items: center; gap: 9px; font-size: .74rem; font-weight: 600; }
.mock-row img { width: 26px; height: 32px; object-fit: cover; border-radius: 6px; }
.mock-row span { flex: 1; }
.mock-row b { color: var(--ink); }
.float-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--sh-lg); border: 1px solid var(--line); padding: 12px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.float-phone { right: -6px; bottom: -8px; width: 188px; padding: 8px; border-radius: 26px; background: var(--ink); animation-delay: -2s; }
.float-phone .screen { background: #fff7f9; border-radius: 20px; overflow: hidden; }
.float-phone .ph-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-weight: 800; font-size: .74rem; color: #c62d5c; }
.float-phone .ph-head img { width: 22px; height: 22px; border-radius: 50%; }
.float-phone .ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 8px 8px; }
.float-phone .ph-grid figure { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; font-size: .62rem; font-weight: 700; }
.float-phone .ph-grid img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.float-phone .ph-grid figcaption { padding: 4px 6px; }
.float-phone .ph-btn { margin: 0 8px 10px; background: #1fa855; color: #fff; border-radius: 10px; text-align: center; font-size: .66rem; font-weight: 800; padding: 7px; }
.float-ai { left: -10px; top: 250px; width: 220px; display: flex; gap: 10px; align-items: center; }
.float-ai img { width: 46px; height: 58px; border-radius: 10px; object-fit: cover; }
.float-ai small { display: block; font-size: .66rem; color: var(--violet); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.float-ai b { font-size: .82rem; display: block; line-height: 1.25; }
.float-ai span { font-size: .7rem; color: var(--muted); }
.float-sale { left: 120px; top: -16px; display: flex; gap: 10px; align-items: center; font-size: .8rem; animation-delay: -4s; }
.float-sale .icon { color: #fff; background: var(--mint); border-radius: 10px; padding: 6px; width: 32px; height: 32px; }
.float-sale b { display: block; }
.float-sale span { color: var(--muted); font-size: .72rem; }

.trust { padding: 0 0 30px; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.trust-item .icon { color: var(--violet); width: 26px; height: 26px; }
.trust-item b { display: block; font-size: 1.05rem; }
.trust-item span { color: var(--muted); font-size: .84rem; }

/* ---------- Problemas ---------- */
.problems { background: #fff; border-block: 1px solid var(--line); }
.problem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.problem { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); }
.problem .before, .problem .after { display: grid; gap: 4px; }
.problem small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.problem .before small { color: var(--red); }
.problem .after small { color: var(--mint); }
.problem p { margin: 0; font-size: .92rem; font-weight: 600; }
.problem .before p { color: var(--ink-2); }
.problem .arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--violet); }

/* ---------- IA ---------- */
.ai-section { background: radial-gradient(1200px 500px at 80% 0%, rgba(108, 76, 245, .14), transparent 60%), var(--ink); color: #fff; }
.ai-section .section-head p { color: #bdb7e0; }
.ai-section .eyebrow { color: var(--pink-2); }
.ai-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 40px; align-items: start; }
.ai-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; counter-reset: s; }
.ai-flow li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 12px 14px; border-radius: 14px; transition: background .2s; }
.ai-flow li:hover { background: rgba(255, 255, 255, .05); }
.ai-flow li::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.ai-flow li:nth-child(2)::before, .ai-flow li:nth-child(3)::before { background: var(--grad); border-color: transparent; }
.ai-flow b { display: block; font-size: .98rem; }
.ai-flow span { color: #bdb7e0; font-size: .88rem; }
.ai-box { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }

/* Asistente IA (compartido con el panel) */
.ai-steps { display: flex; list-style: none; padding: 0; margin: 0 0 16px; gap: 6px; }
.ai-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: var(--line-2); }
.ai-steps li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: .74rem; }
.ai-steps li.on { background: var(--soft); color: var(--violet-d); }
.ai-steps li.on span { background: var(--violet); color: #fff; }
.ai-steps li.done { color: var(--mint); }
.ai-steps li.done span { background: var(--mint); color: #fff; }
.ai-lead { font-weight: 600; color: var(--ink-2); }
.ai-samples { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ai-sample { border: 2px solid transparent; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--line-2); aspect-ratio: 3/4; transition: transform .15s, border-color .15s; }
.ai-sample:hover { transform: translateY(-2px); border-color: var(--violet-2); }
.ai-sample img { width: 100%; height: 100%; object-fit: cover; }
.ai-sample.upload { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--violet); font-size: .74rem; text-align: center; font-weight: 800; border: 2px dashed #cbc2f5; background: var(--soft); padding: 6px; }
.ai-scan-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.ai-scan { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; background: #eee; }
.ai-scan img { width: 100%; height: 100%; object-fit: cover; }
.scan-line { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #b8a9ff, #ff8fb0, transparent); box-shadow: 0 0 22px 6px rgba(176, 76, 240, .55); animation: scan 1.4s ease-in-out infinite alternate; }
.scan-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 22px 22px; mix-blend-mode: overlay; }
@keyframes scan { from { top: 4%; } to { top: 94%; } }
.ai-progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ai-progress li { display: flex; gap: 10px; align-items: center; font-weight: 700; color: #b9b5cc; transition: color .2s; }
.ai-progress li .icon { color: #d9d5e6; }
.ai-progress li.run { color: var(--violet); }
.ai-progress li.run .icon { color: var(--violet); animation: spin 1s linear infinite; }
.ai-progress li.ok { color: var(--ink); }
.ai-progress li.ok .icon { color: var(--mint); }
@keyframes spin { to { transform: rotate(360deg); } }
.ai-review { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.ai-photo { position: relative; }
.ai-photo img { border-radius: 14px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.ai-conf { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 4px; align-items: center; font-size: .72rem; font-weight: 800; padding: 4px 8px; border-radius: 99px; background: rgba(255, 255, 255, .92); }
.ai-conf.hi { color: #0b7a66; }
.ai-conf.lo { color: #a2620a; }
.ai-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-hint { display: flex; gap: 6px; align-items: center; margin: 0; padding: 8px 12px; background: var(--soft); color: var(--violet-d); border-radius: 10px; font-size: .84rem; font-weight: 700; }
.size-qty { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sq { display: grid; gap: 4px; text-align: center; font-size: .8rem; }
.sq input { text-align: center; padding: 8px 4px; }
.ai-done { text-align: center; padding: 18px 0 8px; }
.ok-badge { width: 64px; height: 64px; border-radius: 50%; background: #e3f7f1; color: var(--mint); display: grid; place-items: center; margin: 0 auto 12px; }
.ok-badge .icon { width: 34px; height: 34px; }
.ai-disclaimer { display: flex; gap: 6px; align-items: flex-start; font-size: .76rem; color: var(--muted); margin: 14px 0 0; }
.ai-wiz.compact .ai-samples { grid-template-columns: repeat(5, 1fr); }

/* ---------- Planes ---------- */
.plan-toggle { display: flex; justify-content: center; margin: -18px 0 30px; }
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan-card.popular { border: 2px solid var(--violet); box-shadow: 0 30px 60px -30px rgba(108, 76, 245, .55); }
.plan-card.enterprise { background: linear-gradient(180deg, #1d1838, #16132b); color: #fff; border-color: #2b2650; }
.plan-card.enterprise .plan-tag, .plan-card.enterprise .plan-feats li { color: #d4cff2; }
.plan-card.enterprise .plan-feats .icon { color: var(--pink-2); }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.plan-icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); color: var(--violet); margin-bottom: 14px; }
.plan-card.enterprise .plan-icon { background: rgba(255, 255, 255, .08); color: var(--pink-2); }
.plan-card h3 { font-size: 1.3rem; margin: 0 0 4px; }
.plan-tag { color: var(--muted); font-size: .88rem; min-height: 2.6em; margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price b { font-size: 2.3rem; letter-spacing: -.03em; line-height: 1; }
.plan-price span { color: var(--muted); font-weight: 700; }
.plan-card.enterprise .plan-price span { color: #b7b0e0; }
.plan-renew { font-size: .78rem; color: #b7b0e0; margin: 6px 0 0; }
.plan-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 16px 0; }
.plan-limits div { background: var(--line-2); border-radius: 10px; padding: 7px 9px; }
.plan-card.enterprise .plan-limits div { background: rgba(255, 255, 255, .07); }
.plan-limits small { display: block; font-size: .68rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.plan-card.enterprise .plan-limits small { color: #a59fd0; }
.plan-limits b { font-size: .95rem; }
.plan-inherit { font-size: .82rem; font-weight: 800; color: var(--violet); margin: 0 0 8px; }
.plan-card.enterprise .plan-inherit { color: var(--pink-2); }
.plan-feats { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; font-size: .88rem; flex: 1; }
.plan-feats li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.plan-feats .icon { color: var(--mint); margin-top: 2px; }
.plan-feats li.more { color: var(--violet); font-weight: 700; cursor: pointer; }
.plan-card .btn + .btn { margin-top: 8px; }
.plan-card.enterprise .btn.ghost { background: transparent; color: #fff; border-color: #4a4378; }
.plan-note { font-size: .76rem; line-height: 1.45; color: #b7b0e0; border-top: 1px solid #2f2a55; padding-top: 12px; margin-top: 12px; }
.plans-foot { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 22px; }

/* Comparador */
.compare-wrap { overflow: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; box-shadow: var(--sh); }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.compare th, .compare td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.compare th:first-child, .compare td:first-child { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; font-weight: 600; }
.compare thead th { position: sticky; top: 0; background: #fff; z-index: 2; vertical-align: bottom; padding-top: 18px; }
.compare thead th:first-child { z-index: 3; }
.compare thead .ph-name { font-size: 1.05rem; font-weight: 800; display: block; }
.compare thead .ph-price { color: var(--muted); font-size: .82rem; font-weight: 700; display: block; margin-bottom: 8px; }
.compare tr.grp td { background: var(--line-2); font-weight: 800; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); text-align: left; }
.compare .yes { color: var(--mint); }
.compare .no { color: #c9c4d9; }
.compare .col-hi { background: #faf8ff; }
.compare td.txt { font-weight: 700; color: var(--ink-2); font-size: .86rem; }
.compare-filter { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- Por qué / beneficios ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: transform .2s, box-shadow .2s; }
.why:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.why .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--violet); margin-bottom: 12px; }
.why:nth-child(3n+2) .ic { background: #ffe9f0; color: var(--pink); }
.why:nth-child(3n) .ic { background: #e3f7f1; color: var(--mint); }
.why b { display: block; margin-bottom: 4px; }
.why p { color: var(--muted); font-size: .88rem; margin: 0; }

/* Demos */
.demo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.demo-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); transition: transform .2s, box-shadow .2s; color: var(--ink); }
.demo-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.demo-card .shot { height: 180px; background: var(--grad); position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.demo-card .shot .icon { width: 56px; height: 56px; stroke-width: 1.5; }
.demo-card .shot.store { background: linear-gradient(135deg, #ffd6e2, #f7e9df); }
.demo-card .shot.store img { position: absolute; width: 33%; height: 100%; object-fit: cover; top: 0; }
.demo-card .shot.dark { background: linear-gradient(135deg, #16132b, #3a2c80); }
.demo-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.demo-card .body p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.demo-card .go { font-weight: 800; color: var(--violet); display: inline-flex; gap: 6px; align-items: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--sh); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--violet); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 16px; margin: 0; }

/* CTA y pie */
.cta-band { background: var(--grad); border-radius: 28px; color: #fff; padding: 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; box-shadow: var(--sh-lg); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-band p { color: rgba(255, 255, 255, .86); margin: 0; }
.cta-band .actions { justify-content: flex-end; }
.cta-band .btn.ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; background: #fff; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink-2); font-weight: 600; }
.legal { font-size: .78rem; color: var(--muted); max-width: 760px; }

/* Página de planes */
.page-hero { padding: 56px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0 auto; font-size: 1.06rem; }
.license-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); align-items: start; }
.license-box .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #1d1838; color: var(--pink-2); }
.license-box ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); }
.license-box li { margin-bottom: 4px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.calc-out { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 24px; }
.calc-out .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
.calc-out .row b { font-size: 1rem; }
.calc-out .rec { margin-top: 14px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.calc-out .rec strong { font-size: 1.3rem; display: block; }
.range-row { display: grid; gap: 6px; margin-bottom: 16px; }
.range-row .top { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; }
.range-row .top b { color: var(--violet); }
input[type=range] { padding: 0; border: 0; accent-color: var(--violet); box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .hero-grid, .ai-layout, .cta-band, .calc { grid-template-columns: 1fr; }
  .hero-visual { min-height: 440px; max-width: 560px; margin: 0 auto; width: 100%; }
  .demo-cards { grid-template-columns: 1fr; }
  .cta-band .actions { justify-content: flex-start; }
  .nav-toggle { display: inline-grid; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2); display: none; }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: 6px 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  section { padding: 60px 0; }
  .container { width: min(100% - 28px, var(--max)); }
  .plans-grid, .why-grid, .trust-row { grid-template-columns: 1fr; }
  .problem { grid-template-columns: 1fr; }
  .problem .arrow { transform: rotate(90deg); }
  .mock-window { left: 0; }
  .float-ai { left: 0; top: 270px; width: 196px; }
  .float-sale { left: 30px; }
  .float-phone { width: 160px; }
  .hero-visual { min-height: 420px; }
  .ai-samples { grid-template-columns: repeat(4, 1fr); }
  .ai-scan-wrap, .ai-review { grid-template-columns: 1fr; }
  .ai-scan { max-width: 220px; margin: 0 auto; }
  .ai-photo { max-width: 220px; margin: 0 auto; }
  .ai-steps li { font-size: 0; justify-content: center; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 22px; }
  .modal-wrap { padding: 0; align-items: end; }
  .modal { border-radius: 22px 22px 0 0; max-height: 92vh; width: 100% !important; }
  .size-qty { grid-template-columns: repeat(5, 1fr); gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }

/* ---------- Registro con IA real (Claude) ---------- */
.ai-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: .86rem; line-height: 1.45; margin-bottom: 8px; border: 1px solid transparent; }
.ai-note .icon { margin-top: 2px; }
.ai-note.ok { background: #eefaf6; border-color: #c6eadf; color: #0b6b59; }
.ai-note.info { background: #eef3ff; border-color: #cfdcfb; color: #23468f; }
.ai-note.warn { background: #fff7e6; border-color: #f5dfa8; color: #7a4f00; }
.ai-note.bad { background: #fdeeee; border-color: #f6caca; color: #9b1f26; }
.ai-note code, .ai-meta code, .ai-usage code { font-size: .8rem; background: rgba(0, 0, 0, .05); padding: 1px 5px; border-radius: 5px; }
.ai-preview { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
.ai-photo-big { border-radius: 14px; overflow: hidden; background: #f3eeea; aspect-ratio: 3/4; }
.ai-photo-big img { width: 100%; height: 100%; object-fit: cover; }
.ai-preview h4 { margin: 4px 0 6px; }
.ai-working { display: grid; justify-items: start; gap: 8px; }
.ai-working b { font-size: 1.05rem; color: var(--violet-d); }
.ai-working small { color: var(--muted); font-size: .86rem; }
.ai-working.inline { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--soft); margin-bottom: 8px; }
.ai-working.inline b { font-size: .92rem; }
.ai-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #e3dcff; border-top-color: var(--violet); animation: spin .8s linear infinite; flex: none; }
.ai-working.inline .ai-spinner { width: 20px; height: 20px; border-width: 2.5px; }
.ai-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-bottom: 12px; }
.ai-meta .link-btn { font-size: .8rem; margin-left: auto; }
.ai-filled { background: #f7f4ff !important; border-color: #cbbcff !important; }
em.need { font-style: normal; font-size: .66rem; font-weight: 800; color: #a2620a; background: #fff3dc; padding: 1px 6px; border-radius: 99px; margin-left: 4px; }
.ai-seller { border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 2px; font-size: .9rem; }
.ai-details { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.ai-details summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--ink-2); }
.ai-samples .ai-sample.upload { order: -1; }
.ai-usage { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ai-usage > div { background: var(--line-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ai-usage small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); }
.ai-usage b { font-size: 1.15rem; display: block; }
.ai-usage b span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ai-usage > div > span { display: block; font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-usage-panel { margin-bottom: 14px; }
@media (max-width: 760px) {
  .ai-usage { grid-template-columns: 1fr 1fr; }
  .ai-preview { grid-template-columns: 1fr; }
  .ai-photo-big { max-width: 240px; }
}
.lbl-t { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
