/* NUA — landing. Usa los tokens de nua.css.
   Concepto: banda musgo con líneas finas de la Órbita → secciones sobre hueso → cierre musgo. */
:root {
  --band: #24392F; --band-ink: #F6F4EE; --band-muted: #C3D2C7; --band-line: rgba(246, 244, 238, .22);
  --wa: #1F7A4D;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --band: #18251F; --band-ink: #EEF2EC; --band-muted: #A9BCAF; --band-line: rgba(238, 242, 236, .18); --wa: #2E9B64; }
}
:root[data-theme="dark"] { --band: #18251F; --band-ink: #EEF2EC; --band-muted: #A9BCAF; --band-line: rgba(238, 242, 236, .18); --wa: #2E9B64; }

.l-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.l-section { padding-block: 88px; }
.l-section h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.l-lead { font-size: 17px; line-height: 27px; color: var(--ink-muted); max-width: 60ch; }
.l-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.l-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 720px; }

/* Navegación */
.l-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--band); color: var(--band-ink); border-bottom: 1px solid var(--band-line); }
.l-nav .l-wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.l-nav .nua-mark { color: var(--band-ink); }
.l-nav nav { display: flex; gap: 22px; margin-left: auto; }
.l-nav nav a { color: var(--band-muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.l-nav nav a:hover { color: var(--band-ink); }
.l-nav .btn { min-height: 40px; padding: 0 18px; font-size: 14px; background: var(--band-ink); color: var(--band); }
@media (max-width: 820px) { .l-nav nav { display: none; } .l-nav .btn { margin-left: auto; } }

/* Hero */
.l-hero { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.l-hero .l-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-block: 72px 96px; position: relative; z-index: 1; }
.l-orbit-bg { position: absolute; right: -180px; top: -120px; width: 760px; height: 760px; color: var(--band-line); pointer-events: none; }
.l-hero h1 { font-size: clamp(48px, 8vw, 96px); line-height: .95; font-weight: 800; letter-spacing: -0.035em; }
.l-hero .l-sub { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; color: var(--band-muted); max-width: 34ch; }
.l-hero .l-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.l-hero .l-eyebrow { color: var(--band-muted); }
.l-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.l-hero .btn { background: var(--band-ink); color: var(--band); }
.l-hero .btn.secondary { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.l-note { font-size: 13px; color: var(--band-muted); }
@media (max-width: 860px) {
  .l-hero .l-wrap { grid-template-columns: minmax(0, 1fr); padding-block: 48px 64px; }
  .l-orbit-bg { width: 520px; height: 520px; right: -220px; top: -60px; }
}

/* Teléfono */
.phone { width: min(320px, 100%); margin: 0 auto; aspect-ratio: 9 / 19; border-radius: 46px; padding: 12px; background: #0B110E; box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 0 0 2px #2A3430; position: relative; }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #33493E, #1A2620); display: flex; flex-direction: column; gap: 12px; padding: 44px 14px 14px; position: relative; }
.phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px; border-radius: 20px; background: #0B110E; }
.lock-time { text-align: center; color: #F6F4EE; font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lock-date { text-align: center; color: #D7E3D9; font-size: 13px; font-weight: 600; margin-top: -6px; }
.notif { background: rgba(246, 244, 238, .9); color: #14201B; border-radius: 18px; padding: 10px 12px; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 12.5px; line-height: 1.35; }
.notif-icon { width: 34px; height: 34px; border-radius: 9px; background: #24392F; color: #fff; display: grid; place-items: center; }
.notif-icon svg { width: 22px; height: 22px; }
.notif b { display: block; font-size: 12.5px; }
.notif small { color: #5A655F; }
.phone .pass { margin-top: auto; padding: 14px 14px 16px; gap: 12px; box-shadow: none; }
.phone .pass .biz { font-size: 17px; }
.phone .pass .pvalue { font-size: 20px; }
.phone .pass .pname { font-size: 16px; }
.phone .stamps { gap: 8px; }
.pass .mini-qr { width: 64px; height: 64px; margin: 0 auto; background: #fff; border-radius: 6px; padding: 5px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.pass .mini-qr i { background: #14201B; border-radius: 1px; }
.pass .mini-qr i.o { background: transparent; }

/* Datos rápidos */
.l-facts { border-bottom: 1px solid var(--hairline); }
.l-facts .l-wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 36px; gap: 24px; }
.fact strong { display: block; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fact span { color: var(--ink-muted); font-size: 14px; }
@media (max-width: 760px) { .l-facts .l-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.step::before { counter-increment: step; content: counter(step); font-size: 44px; line-height: 1; font-weight: 300; color: var(--brand); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 19px; font-weight: 700; }
.step p { color: var(--ink-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Funciones */
.features { display: flex; flex-direction: column; gap: 72px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature:nth-child(even) .feature-visual { order: -1; }
.feature-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feature-copy h3 { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.feature-copy p { color: var(--ink-muted); font-size: 16px; line-height: 25px; max-width: 46ch; }
.feature-copy ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-copy li { display: flex; gap: 10px; align-items: baseline; }
.feature-copy li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0; transform: translateY(-2px); }
.feature-visual { background: var(--surface-200); border: 1px solid var(--hairline); border-radius: 24px; padding: 32px; min-height: 280px; display: grid; place-items: center; min-width: 0; }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 24px; } .feature:nth-child(even) .feature-visual { order: 0; } }

.fv-stack { width: min(340px, 100%); display: flex; flex-direction: column; gap: 10px; }
.fv-map { position: relative; width: min(320px, 100%); aspect-ratio: 4 / 3; border-radius: 16px; background: var(--surface-100); border: 1px solid var(--hairline); overflow: hidden; }
.fv-map svg { width: 100%; height: 100%; }
.fv-map .street { stroke: var(--hairline); stroke-width: 10; }
.fv-map .radius { fill: var(--mist); stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 4 4; }
.fv-map .shop { fill: var(--brand); }
.fv-map .me { fill: var(--accent); }
.scan-card { width: min(300px, 100%); background: var(--surface-100); border: 1px solid var(--hairline); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.scan-card .row { justify-content: space-between; flex-wrap: nowrap; }
.scan-card .big-number { font-size: 40px; }
.dash { width: min(380px, 100%); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dash .tile { background: var(--surface-100); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px; }
.dash .tile strong { display: block; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dash .tile span { color: var(--ink-muted); font-size: 12px; font-weight: 600; }
.dash .bars { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 14px; background: var(--surface-100); border: 1px solid var(--hairline); border-radius: 14px; }
.dash .bars i { flex: 1; background: var(--brand); border-radius: 4px 4px 0 0; opacity: .85; }
.guard { width: min(340px, 100%); display: flex; flex-direction: column; gap: 10px; }
.guard .line { display: flex; justify-content: space-between; gap: 12px; background: var(--surface-100); border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.guard .line span:last-child { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.guard .line.warn { border-color: var(--accent); }

/* Tu marca */
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.brands .pass { min-width: 0; }
@media (max-width: 860px) { .brands { grid-template-columns: minmax(0, 1fr); max-width: 380px; margin: 0 auto; } }
.l-caption { margin-top: 16px; font-size: 13px; color: var(--ink-muted); text-align: center; }

/* Próximamente */
.soon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.soon .card { display: flex; flex-direction: column; gap: 8px; background: transparent; }
.soon h3 { font-size: 16px; font-weight: 700; }
.soon p { color: var(--ink-muted); font-size: 14px; line-height: 21px; }
@media (max-width: 860px) { .soon { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .soon { grid-template-columns: minmax(0, 1fr); } }

/* Planes */
.billing { display: inline-flex; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-200); border: 1px solid var(--hairline); gap: 4px; }
.billing button { font: 600 14px var(--font); border: 0; background: transparent; color: var(--ink-muted); padding: 8px 16px; border-radius: var(--radius-pill); cursor: pointer; min-height: 40px; }
.billing button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--hairline); border-radius: 22px; padding: 28px; background: var(--surface-100); }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan h3 { font-size: 20px; font-weight: 800; }
.plan .who { color: var(--ink-muted); font-size: 14px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price strong { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-muted); font-size: 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; flex: 1; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--brand); background: radial-gradient(circle, var(--brand) 0 3px, transparent 3.5px); }
.plan .tag { align-self: flex-start; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 440px; } }

/* Preguntas */
.faq { display: flex; flex-direction: column; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 6px 0; }
.faq summary { font-weight: 700; font-size: 17px; list-style: none; justify-content: space-between; padding-block: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; color: var(--brand); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { margin-bottom: 0; }
.faq p { color: var(--ink-muted); padding-bottom: 16px; max-width: 62ch; }

/* Cierre y pie */
.l-final { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.l-final .l-wrap { padding-block: 96px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; position: relative; z-index: 1; }
.l-final h2 { font-size: clamp(36px, 6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; text-wrap: balance; }
.l-final p { color: var(--band-muted); font-size: 18px; max-width: 44ch; }
.l-final .btn { background: var(--band-ink); color: var(--band); }
.l-final .l-orbit-bg { right: -220px; top: -200px; }
.l-footer { padding-block: 32px 48px; }
.l-footer .l-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.l-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.l-footer a { color: var(--ink-muted); }

.wa-float { position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 12px 18px 12px 14px; border-radius: var(--radius-pill); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.wa-float svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: no-preference) {
  .notif.pop { animation: pop .6s cubic-bezier(.2, .8, .2, 1) both; }
  .notif.pop.late { animation-delay: .5s; }
  @keyframes pop { from { transform: translateY(-10px) scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }
}

/* Paletas de ejemplo para las tarjetas (white-label) */
.pass.b-mandarina { --pass-bg: #A9B9A0; --pass-fg: #14201B; --pass-label: #702D3B; --pass-stamp: #702D3B; }
.pass.b-verde { --pass-bg: #E8F0E3; --pass-fg: #1D2B1A; --pass-label: #3F6B35; --pass-stamp: #5C8F4E; }
.pass.b-forja { --pass-bg: #1B1D22; --pass-fg: #F2F2F2; --pass-label: #F2B33D; --pass-stamp: #F2B33D; }
.pass.b-luna  { --pass-bg: #F3E9DF; --pass-fg: #3A2A20; --pass-label: #8A5A3C; --pass-stamp: #B9824F; }
.stamps.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stamps.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stamps.cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pass .mark-text { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.pass .qr-mini { width: 64px; height: 64px; margin: 0 auto; background: #fff; border-radius: 6px; padding: 5px; }
.dash .bars i.h35 { height: 35%; } .dash .bars i.h40 { height: 40%; } .dash .bars i.h55 { height: 55%; }
.dash .bars i.h60 { height: 60%; } .dash .bars i.h70 { height: 70%; } .dash .bars i.h90 { height: 90%; } .dash .bars i.h100 { height: 100%; }
.scan-card h2 { font-size: 18px; }
