/* =====================================================================
   ACCESO — componentes (mobile-first). Requiere tokens.css.
   ===================================================================== */

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font: 400 var(--fs-base)/var(--lh-body) var(--font-sans);
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out);
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-xs); }
::selection { background: rgba(46, 230, 166, .35); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--ring); }
.skip-link:focus { top: 1rem; }

/* Fondo con mesh + grilla sutil */
.bg-mesh { position: relative; isolation: isolate; }
.bg-mesh::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, var(--mesh-2), transparent 60%),
    radial-gradient(50% 45% at 10% 10%, var(--mesh-1), transparent 60%),
    radial-gradient(40% 40% at 50% 100%, var(--mesh-3), transparent 70%);
}
.bg-mesh--fade::before { -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 80%, transparent); }
.mini-toast { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: var(--fs-sm); }
.mini-toast small { display: block; color: var(--text-subtle); font-size: var(--fs-xs); }
.mp-dot { width: 30px; height: 30px; border-radius: 9px; background: #009ee3; color: #fff; display: grid; place-items: center; flex: none; }
.mp-dot svg { color: #fff; }
.bg-grid::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.row { display: flex; gap: var(--sp-3); align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: var(--sp-4); }

/* ---------- Tipografía ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .45rem;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: color-mix(in srgb, var(--surface) 70%, transparent);
  font: 500 var(--fs-sm)/1.2 var(--font-sans); color: var(--text-muted); backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: var(--text-on-brand); font-size: .7rem; font-weight: 700; }
.kicker { font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--accent-text); }
.h-hero, .h1, .h2, .h3 { font-family: var(--font-display); letter-spacing: var(--tracking-tight); font-weight: 700; }
.h-hero { font-size: var(--fs-hero); line-height: var(--lh-tight); font-weight: 800; }
.h1 { font-size: var(--fs-3xl); line-height: 1.05; }
.h2 { font-size: var(--fs-2xl); line-height: 1.1; }
.h3 { font-size: var(--fs-xl); line-height: var(--lh-snug); letter-spacing: -.02em; }
.h4 { font: 600 var(--fs-md)/1.3 var(--font-sans); letter-spacing: -.01em; }
.lead { font-size: var(--fs-lg); color: var(--text-muted); line-height: 1.55; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.num { font-variant-numeric: tabular-nums; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.strike { position: relative; white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -4%; right: -4%; top: 52%; height: .09em; background: var(--coral-400); border-radius: 4px; transform: rotate(-4deg); }
.text-success { color: var(--success); } .text-danger { color: var(--danger); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 800 1.3rem/1 var(--font-display); letter-spacing: -.03em; }
.logo-mark { width: 34px; height: 34px; flex: none; }

/* ---------- Botones ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--h); padding: 0 1.25rem; border-radius: var(--r-pill);
  font: 600 var(--fs-base)/1 var(--font-sans); letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid transparent; transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2), border-color var(--dur-2), color var(--dur-2);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible { border-radius: var(--r-pill); }
.btn--primary { color: var(--text-on-brand); background: var(--grad-brand); background-size: 160% 100%; background-position: 0% 50%; box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255,255,255,.45); }
.btn--primary:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 16px 40px -12px rgba(46,230,166,.7), inset 0 1px 0 rgba(255,255,255,.45); }
.btn--primary { transition: background-position var(--dur-4) var(--ease-out), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
.btn--secondary { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn--secondary:hover { border-color: var(--accent); background: var(--surface-3); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--outline { border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent-text); }
.btn--danger { background: var(--grad-danger); color: #fff; }
.btn--wa { background: var(--wa-green); color: #04220f; }
.btn--sm { --h: 38px; padding: 0 .95rem; font-size: var(--fs-sm); }
.btn--lg { --h: 56px; padding: 0 1.7rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }
.btn--icon { width: var(--h); padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-spinner { width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .6rem; border-radius: var(--r-pill); font: 600 var(--fs-xs)/1.3 var(--font-sans); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: var(--dot, none); }
.badge--dot { --dot: block; }
.badge--success { color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.badge--danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.badge--warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 14%, transparent); border-color: color-mix(in srgb, var(--warning) 32%, transparent); }
.badge--brand { color: var(--text-on-brand); background: var(--grad-brand); border-color: transparent; }
.badge--live::before { animation: pulse 1.6s var(--ease-out) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 6px transparent; } }

/* ---------- Cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.1rem, .9rem + .8vw, 1.6rem); box-shadow: var(--shadow-sm); }
.card--glass { background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.card--hover { transition: transform var(--dur-3) var(--ease-out), border-color var(--dur-3), box-shadow var(--dur-3); }
.card--hover:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card--brand { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box; border: 1.5px solid transparent; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-brand-soft); border: 1px solid var(--border); color: var(--accent-text); flex: none; }
.icon-tile svg { width: 22px; height: 22px; }

/* ---------- Nav ---------- */
.site-nav { position: sticky; top: 0; z-index: var(--z-nav); transition: background-color var(--dur-3), border-color var(--dur-3), backdrop-filter var(--dur-3); border-bottom: 1px solid transparent; }
.site-nav.is-scrolled { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a:not(.btn) { padding: .5rem .8rem; border-radius: var(--r-pill); color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color var(--dur-2), background-color var(--dur-2); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: .4rem; }
.nav-actions .btn--primary .arrow { display: none; }
.nav-theme { display: none; }
@media (min-width: 400px) { .nav-actions .btn--primary .arrow { display: block; } }
.menu-theme { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--text-muted); }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 60%, transparent); transition: border-color var(--dur-2), background-color var(--dur-2); }
.icon-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }
.menu-bars { position: relative; width: 18px; height: 12px; }
.menu-bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2), top var(--dur-3) var(--ease-out); }
.menu-bars span:nth-child(1) { top: 0; } .menu-bars span:nth-child(2) { top: 5px; } .menu-bars span:nth-child(3) { top: 10px; }
[aria-expanded="true"] .menu-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .menu-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 68px 0 0; z-index: var(--z-nav); background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(20px); padding: 1.25rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: .25rem; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), visibility var(--dur-3); }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a:not(.btn) { padding: 1rem .25rem; font: 600 1.4rem/1.1 var(--font-display); border-bottom: 1px solid var(--border); letter-spacing: -.02em; }
.mobile-menu .btn { margin-top: 1rem; }
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-theme { display: grid; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(1.5rem, 1rem + 3vw, 4rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); overflow: clip; }
.hero-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start; }
.hero-ctas { display: flex; flex-direction: column; gap: .7rem; width: 100%; }
.hero-ctas .btn { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--text-muted); font-size: var(--fs-sm); }
.trust-row li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row svg { width: 16px; height: 16px; color: var(--accent-text); }
@media (min-width: 560px) { .hero-ctas { flex-direction: row; width: auto; } .hero-ctas .btn { width: auto; } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }

/* Prueba social en el hero */
.hero-proof { display: flex; align-items: center; gap: .85rem; padding: .7rem 1rem .7rem .7rem; border-radius: var(--r-lg); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(10px); font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.35; }
.hero-proof b { color: var(--text); }
.hero-proof .faces { display: flex; flex: none; }
.hero-proof .faces span { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); display: grid; place-items: center; font: 700 11px/1 var(--font-sans); color: #04130c; }
.hero-proof .faces span + span { margin-left: -10px; }

/* Hero art (imagen 3D) */
.hero-art { position: relative; width: min(100%, 600px); margin-inline: auto; aspect-ratio: 1; }
.hero-media { width: 100%; height: 100%; -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); mask-image: radial-gradient(closest-side, #000 74%, transparent 100%); transform: translate3d(0,0,0); will-change: transform; transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.hero-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #05080f; }
.hero-art .chip-pay { top: auto; right: auto; left: 0; bottom: 9%; }
[data-theme="light"] .hero-art { background: radial-gradient(circle at 50% 45%, #0c1628, #05080f 72%); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); overflow: hidden; }
[data-theme="light"] .hero-art .chip-pay { left: 1rem; }
@media (min-width: 1024px) { .hero-art { width: 112%; max-width: 640px; margin-right: -6%; } }

/* Phone mockup */
.phone-stage { position: relative; display: grid; place-items: center; padding: 1rem 0 2rem; min-height: 560px; }
.phone-stage::before { content: ""; position: absolute; width: min(460px, 92%); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 200deg, #c6f432, #2ee6a6, #22c3ee, #c6f432); filter: blur(60px); opacity: .32; animation: float-rot 18s linear infinite; }
@keyframes float-rot { to { transform: rotate(360deg); } }
.phone { position: relative; width: 290px; max-width: 78vw; aspect-ratio: 290/590; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2a3650, #0c1322 40%, #1b263a); box-shadow: 0 0 0 1.5px rgba(255,255,255,.08), var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06); transform: rotate(-3deg); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: rotate(-3deg) translateY(-10px); } }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #070c17; color: #f2f5f9; display: flex; flex-direction: column; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #000; border-radius: 20px; z-index: 3; }
.phone-status { display: flex; justify-content: space-between; padding: 14px 22px 0; font: 600 11px/1 var(--font-sans); color: #dfe6f0; height: 40px; align-items: center; }

.ticket { margin: 8px 12px 12px; flex: 1; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--grad-ticket); border: 1px solid rgba(255,255,255,.08); }
.ticket-head { padding: 16px 16px 14px; background: radial-gradient(120% 100% at 0% 0%, rgba(198,244,50,.35), transparent 55%), radial-gradient(120% 120% at 100% 0%, rgba(34,195,238,.45), transparent 60%), #0e1a2e; }
.ticket-tag { display: inline-flex; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.12); font: 600 9.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.ticket-title { margin-top: 10px; font: 800 22px/1.02 var(--font-display); letter-spacing: -.03em; }
.ticket-meta { margin-top: 6px; font-size: 11px; color: #b8c3d4; }
.ticket-days { display: flex; gap: 5px; margin-top: 12px; }
.ticket-day { flex: 1; text-align: center; padding: 5px 0; border-radius: 9px; background: rgba(255,255,255,.07); font: 600 9.5px/1.1 var(--font-mono); color: #c6d0de; border: 1px solid rgba(255,255,255,.06); }
.ticket-day b { display: block; font: 700 13px/1.1 var(--font-sans); color: #fff; margin-top: 2px; }
.ticket-day.is-done { background: rgba(46,230,166,.18); border-color: rgba(46,230,166,.45); color: #7ff3c8; }
.ticket-day.is-today { background: var(--grad-brand); color: #04130c; border-color: transparent; }
.ticket-day.is-today b { color: #04130c; }
.ticket-cut { position: relative; height: 18px; display: flex; align-items: center; }
.ticket-cut::before, .ticket-cut::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #070c17; top: 0; }
.ticket-cut::before { left: -9px; } .ticket-cut::after { right: -9px; }
.ticket-cut span { flex: 1; margin: 0 14px; border-top: 1.5px dashed rgba(255,255,255,.18); }
.ticket-body { flex: 1; padding: 6px 16px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.qr-box { --qr-bg: #fff; width: 150px; padding: 10px; border-radius: 16px; background: #fff; color: #08111f; box-shadow: 0 0 0 4px rgba(46,230,166,.18); position: relative; }
.qr-box .qr-logo { fill: #0b9f6e; }
.qr-box::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; top: 10px; background: linear-gradient(90deg, transparent, #2ee6a6, transparent); box-shadow: 0 0 12px 2px rgba(46,230,166,.7); animation: scan 2.8s ease-in-out infinite; border-radius: 2px; }
@keyframes scan { 0%, 100% { top: 10px; } 50% { top: calc(100% - 12px); } }
.ticket-holder { text-align: center; }
.ticket-holder strong { display: block; font-size: 14px; }
.ticket-holder span { font-size: 11px; color: #a9b5c7; }
.ticket-foot { width: 100%; display: flex; justify-content: space-between; font: 500 10px/1.2 var(--font-mono); color: #8f9cb1; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.06); }

.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border-radius: 16px; background: color-mix(in srgb, var(--surface) 82%, transparent); border: 1px solid var(--border-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-md); font-size: var(--fs-sm); line-height: 1.25; animation: chip-float 6s ease-in-out infinite; }
.float-chip strong { display: block; font-weight: 700; }
.float-chip small { color: var(--text-muted); font-size: .75rem; }
.float-chip .chip-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float-chip .chip-ico svg { width: 18px; height: 18px; }
.chip-pay { top: 8%; right: 0; animation-delay: -2s; }
.chip-pay .chip-ico { background: #009ee3; color: #fff; }
.chip-ok { bottom: 16%; left: 0; }
.chip-ok .chip-ico { background: var(--grad-success); color: #04130c; }
.chip-fee { bottom: 3%; right: 0; animation-delay: -4s; }
.chip-fee .chip-ico { background: var(--grad-coral); color: #2b0d00; font: 800 13px/1 var(--font-display); }
@keyframes chip-float { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) {
  .phone-stage { min-height: 520px; }
  .phone { width: 260px; }
  .float-chip { padding: .55rem .7rem; font-size: .8rem; gap: .5rem; }
  .float-chip small { font-size: .7rem; }
  .float-chip .chip-ico { width: 28px; height: 28px; }
  .chip-pay { right: 0; top: 2%; } .chip-ok { left: 0; bottom: 10%; } .chip-fee { display: none; }
}

/* ---------- Social proof / caso ---------- */
.proof { border-block: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.proof-inner { display: grid; gap: 1.5rem; padding-block: 2rem; align-items: center; }
.proof-label { display: flex; align-items: center; gap: .8rem; }
.proof-label .h4 { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; }
.stat-num { font: 800 clamp(2rem, 1.5rem + 2vw, 3rem)/1 var(--font-display); letter-spacing: -.04em; }
.stat-label { font-size: var(--fs-sm); color: var(--text-muted); margin-top: .3rem; }
@media (min-width: 900px) { .proof-inner { grid-template-columns: .9fr 2fr; } .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Comparativa ---------- */
.compare { display: grid; gap: 1rem; }
.compare-col { border-radius: var(--r-xl); padding: clamp(1.3rem, 1rem + 1vw, 2rem); border: 1px solid var(--border); background: var(--surface); }
.compare-col--old { background: linear-gradient(160deg, color-mix(in srgb, var(--coral-400) 16%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--coral-400) 30%, transparent); }
.compare-col--new { background: linear-gradient(160deg, color-mix(in srgb, var(--mint-400) 12%, var(--surface)), var(--surface) 70%) padding-box, var(--grad-brand) border-box !important; }
.compare-col--new { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box; border: 1.5px solid transparent; box-shadow: var(--glow); }
.compare-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.1rem; margin-bottom: .6rem; border-bottom: 1px solid var(--border); }
.compare-big { font: 800 clamp(2.2rem, 1.8rem + 2vw, 3.2rem)/1 var(--font-display); letter-spacing: -.04em; }
.compare-list li { display: flex; gap: .75rem; padding: .7rem 0; align-items: flex-start; }
.compare-list li + li { border-top: 1px dashed var(--border); }
.compare-list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.compare-col--old svg { color: var(--danger); }
.compare-col--new svg { color: var(--success); }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }

/* ---------- Range / slider ---------- */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --fill: 50%; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #c6f432, #2ee6a6 50%, #22c3ee) 0 0 / var(--fill) 100% no-repeat, var(--surface-3); }
.range::-moz-range-track { height: 8px; border-radius: 99px; background: var(--surface-3); }
.range::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--grad-brand); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(46,230,166,.35), 0 4px 12px rgba(0,0,0,.35); transition: transform var(--dur-2) var(--ease-spring); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(46,230,166,.35), 0 4px 12px rgba(0,0,0,.35); }
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range:focus-visible { box-shadow: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(46,230,166,.35), var(--ring); }
.range-scale { display: flex; justify-content: space-between; font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-subtle); margin-top: .35rem; }

/* ---------- Calculadora ---------- */
.calc { display: grid; gap: 1rem; }
.calc-inputs { display: grid; gap: 1.4rem; }
.calc-results { display: grid; gap: .9rem; }
.result-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: var(--fs-sm); color: var(--text-muted); }
.result-row b { color: var(--text); font: 600 var(--fs-base)/1.2 var(--font-mono); white-space: nowrap; }
.bar { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; transition: width var(--dur-4) var(--ease-out); }
.bar--old > i { background: var(--grad-coral); }
.bar--new > i { background: var(--grad-brand); }
.savings { border-radius: var(--r-lg); padding: 1.3rem; background: var(--grad-brand); color: var(--text-on-brand); position: relative; overflow: hidden; }
.savings::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.25); filter: blur(40px); }
.savings-num { font: 800 clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem)/1 var(--font-display); letter-spacing: -.04em; margin-top: .3rem; }
.savings small { font-weight: 600; opacity: .85; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1.05fr; gap: 1.5rem; } }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: .45rem; }
.label { font: 600 var(--fs-sm)/1.2 var(--font-sans); color: var(--text); display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.label .hint { font-weight: 500; color: var(--text-subtle); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: var(--r-md);
  background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text);
  font-size: 1rem; transition: border-color var(--dur-2), box-shadow var(--dur-2), background-color var(--dur-2);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); opacity: .85; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a97ad' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.textarea { min-height: 110px; resize: vertical; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-right: 3rem; }
.input-wrap .prefix { position: absolute; left: 1rem; color: var(--text-subtle); font-family: var(--font-mono); pointer-events: none; }
.input-wrap .prefix + .input { padding-left: 2rem; }
.input-wrap .suffix-btn { position: absolute; right: .35rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--text-muted); }
.input-wrap .suffix-btn:hover { color: var(--text); background: var(--surface-2); }
.input-wrap .suffix-btn svg { width: 20px; height: 20px; }
.input-group { display: grid; grid-template-columns: 112px 1fr; gap: .5rem; }
.help { font-size: var(--fs-xs); color: var(--text-subtle); }
.error-msg { font-size: var(--fs-xs); color: var(--danger); font-weight: 600; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--fs-sm); color: var(--text-muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--bg-elev); display: grid; place-items: center; transition: background var(--dur-2), border-color var(--dur-2); }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--text-on-brand); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform var(--dur-2) var(--ease-spring); }
.check input:checked { background: var(--grad-brand); border-color: transparent; }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; }
.switch { position: relative; width: 46px; height: 28px; flex: none; appearance: none; -webkit-appearance: none; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border-strong); cursor: pointer; transition: background var(--dur-2); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-3) var(--ease-spring); }
.switch:checked { background: var(--grad-brand); border-color: transparent; }
.switch:checked::after { transform: translateX(18px); }
.segmented { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); gap: 2px; }
.segmented button { padding: .5rem .9rem; border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-sm); color: var(--text-muted); transition: background var(--dur-2), color var(--dur-2); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

.social-btns { display: grid; gap: .65rem; }
.btn-social { --h: 52px; width: 100%; background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text); border-radius: var(--r-md); font-weight: 600; }
.btn-social:hover { border-color: var(--text-subtle); background: var(--surface-2); }
.btn-social svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: .9rem; color: var(--text-subtle); font-size: var(--fs-sm); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; max-width: 360px; }
.otp input { width: 100%; aspect-ratio: 1/1.15; text-align: center; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--bg-elev); font: 700 1.5rem/1 var(--font-mono); transition: border-color var(--dur-2), box-shadow var(--dur-2), transform var(--dur-2) var(--ease-spring); }
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); transform: translateY(-2px); }
.otp input:not(:placeholder-shown) { border-color: var(--accent); }

.dropzone { border: 1.5px dashed var(--border-strong); border-radius: var(--r-lg); padding: 1.3rem; display: flex; gap: 1rem; align-items: center; background: color-mix(in srgb, var(--surface-2) 50%, transparent); transition: border-color var(--dur-2), background var(--dur-2); cursor: pointer; }
.dropzone:hover { border-color: var(--accent); background: var(--grad-brand-soft); }
.avatar-ph { width: 64px; height: 64px; border-radius: 18px; background: var(--grad-brand); display: grid; place-items: center; color: var(--text-on-brand); font: 800 1.5rem/1 var(--font-display); flex: none; }

/* ---------- Cómo funciona ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; padding: 1.4rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.step-num { font: 800 3.4rem/1 var(--font-display); letter-spacing: -.05em; position: absolute; right: 1rem; top: .6rem; opacity: .9; }
.step .icon-tile { margin-bottom: 1rem; }
.step .h4 { margin-bottom: .4rem; padding-right: 3.5rem; }
.step p { color: var(--text-muted); font-size: var(--fs-sm); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Features (bento) ---------- */
.bento { display: grid; gap: 1rem; }
.feature { display: flex; flex-direction: column; gap: .8rem; }
.feature p { color: var(--text-muted); font-size: var(--fs-sm); }
.feature .h4 { font-size: 1.08rem; }
.feature-visual { margin-top: auto; padding-top: .6rem; }
.feature--wide .feature-visual { padding-top: 1rem; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .feature--wide { grid-column: span 2; }
}
.mini-days { display: flex; gap: .4rem; }
.mini-days span { flex: 1; padding: .55rem .3rem; text-align: center; border-radius: 10px; font: 600 var(--fs-xs)/1.2 var(--font-mono); background: var(--surface-2); border: 1px solid var(--border); }
.mini-days span.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); }
.mini-devices { display: flex; gap: .5rem; align-items: center; }
.mini-device { width: 34px; height: 56px; border-radius: 9px; border: 2px solid var(--border-strong); position: relative; background: var(--surface-2); }
.mini-device::after { content: ""; position: absolute; inset: 30% 22%; border-radius: 3px; border: 2px solid var(--accent); opacity: .8; }
.mini-sync { flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); animation: dash 1s linear infinite; background-size: 12px 2px; }
@keyframes dash { to { background-position: 12px 0; } }
.mini-rank li { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); padding: .35rem 0; }
.mini-rank .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--font-sans); color: #04130c; flex: none; }
.mini-rank .meter { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.mini-rank .meter i { display: block; height: 100%; background: var(--grad-brand); border-radius: inherit; }
.mini-rank b { font-family: var(--font-mono); font-size: var(--fs-xs); min-width: 4.5rem; text-align: right; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 1rem; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3), border-color var(--dur-3); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card.is-popular { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-brand) border-box; border: 2px solid transparent; box-shadow: var(--glow); }
.price-card.is-match { border-color: var(--accent); box-shadow: var(--ring); }
.price-card.is-popular.is-match { box-shadow: var(--glow), var(--ring); }
.price-card .ribbon { position: absolute; top: -12px; left: 1.5rem; }
.price-qty { font: 700 var(--fs-sm)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.price-amount { font: 800 clamp(2rem, 1.8rem + 1vw, 2.5rem)/1 var(--font-display); letter-spacing: -.04em; }
.price-unit { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; font-size: var(--fs-sm); color: var(--text-muted); }
.price-unit b { color: var(--accent-text); font-family: var(--font-mono); font-size: var(--fs-base); }
.price-feats { display: grid; gap: .45rem; font-size: var(--fs-sm); color: var(--text-muted); }
.price-feats li { display: flex; gap: .5rem; align-items: flex-start; }
.price-feats svg { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 3px; }
.price-card .btn { margin-top: auto; }
@media (min-width: 640px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1140px) { .price-grid { grid-template-columns: repeat(5, 1fr); } .price-card { padding: 1.4rem 1.2rem; } }

.estimator { display: grid; gap: 1.5rem; align-items: center; }
.est-total { font: 800 clamp(2.4rem, 2rem + 2vw, 3.6rem)/1 var(--font-display); letter-spacing: -.04em; }
@media (min-width: 900px) { .estimator { grid-template-columns: 1.2fr 1fr; gap: 3rem; } }

/* ---------- Cobros (flujo de dinero) ---------- */
.money-flow { display: grid; gap: 1rem; align-items: center; }
.flow-node { border-radius: var(--r-lg); padding: 1.2rem; background: var(--surface); border: 1px solid var(--border); text-align: center; }
.flow-node .big { font: 800 1.9rem/1 var(--font-display); letter-spacing: -.03em; margin: .4rem 0 .2rem; }
.flow-line { position: relative; height: 56px; display: grid; place-items: center; }
.flow-line::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 14px); }
.flow-line span { position: relative; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--border-strong); font: 600 var(--fs-xs)/1.2 var(--font-mono); color: var(--accent-text); }
.flow-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: flow-v 2.2s var(--ease-out) infinite; }
@keyframes flow-v { from { top: 0; opacity: 0; } 20% { opacity: 1; } to { top: calc(100% - 10px); opacity: 0; } }
.mp-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem; border-radius: var(--r-pill); background: #009ee3; color: #fff; font: 700 var(--fs-xs)/1 var(--font-sans); }
@media (min-width: 860px) {
  .money-flow { grid-template-columns: 1fr 1.2fr 1fr; }
  .flow-line { height: 80px; }
  .flow-line::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px); }
  .flow-dot { top: calc(50% - 5px) !important; animation-name: flow-h; }
  @keyframes flow-h { from { left: 0; opacity: 0; } 20% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .65rem; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color var(--dur-2), background var(--dur-2); }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; cursor: pointer; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { border-radius: var(--r-lg); }
.faq .plus { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); transition: transform var(--dur-3) var(--ease-out), background var(--dur-2); }
.faq .plus svg { width: 14px; height: 14px; }
.faq details[open] .plus { transform: rotate(45deg); background: var(--grad-brand); color: var(--text-on-brand); border-color: transparent; }
.faq .answer { padding: 0 1.25rem 1.2rem; color: var(--text-muted); }
.faq details[open] .answer { animation: fade-down var(--dur-3) var(--ease-out); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: clamp(2.2rem, 1.5rem + 4vw, 5rem) clamp(1.3rem, 1rem + 3vw, 4rem); text-align: center; background: radial-gradient(80% 120% at 0% 0%, rgba(198,244,50,.28), transparent 55%), radial-gradient(70% 120% at 100% 100%, rgba(34,195,238,.35), transparent 55%), var(--ink-900); color: #f2f5f9; border: 1px solid rgba(255,255,255,.08); }
.cta-final .lead { color: #c3cddb; }
.cta-final .grad-text { background: linear-gradient(100deg, #d4fb4f, #3df0b0 45%, #49d2f5); -webkit-background-clip: text; background-clip: text; }
.cta-final .btn--secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.pill-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pill-list li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: var(--r-pill); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: var(--fs-sm); color: #dbe3ee; }
.pill-list svg { width: 14px; height: 14px; color: #5ff0bd; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: .9rem; max-width: 340px; }
.footer-col h3 { font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-subtle); margin-bottom: .9rem; }
.footer-col a { display: block; padding: .3rem 0; color: var(--text-muted); font-size: var(--fs-sm); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 2rem; margin-top: 2.5rem; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--text-subtle); }
.footer-word { font: 800 clamp(4rem, 2rem + 13vw, 13rem)/.8 var(--font-display); letter-spacing: -.06em; margin-top: 2rem; background: linear-gradient(180deg, var(--surface-3), transparent 90%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; text-align: center; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr repeat(3, 1fr); } .footer-brand { grid-column: auto; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: var(--z-float); display: flex; align-items: center; gap: .6rem; height: 56px; padding: 0 1.1rem 0 .95rem; border-radius: var(--r-pill); background: var(--wa-green); color: #04220f; font-weight: 700; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform var(--dur-2) var(--ease-spring); }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px) scale(1.03); }
.wa-float .wa-label { display: none; }
.wa-float { width: 56px; padding: 0; justify-content: center; }
@media (min-width: 760px) { .wa-float { width: auto; padding: 0 1.2rem 0 1rem; } .wa-float .wa-label { display: inline; } }

/* ---------- Tabla ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
.table th { text-align: left; font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-subtle); padding: .9rem 1rem; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur-1); }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.table .r { text-align: right; font-family: var(--font-mono); }
.person { display: flex; align-items: center; gap: .65rem; }
.person .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-sans); color: #04130c; flex: none; }
.person small { display: block; color: var(--text-subtle); font-size: var(--fs-xs); }

/* ---------- Dialog ---------- */
dialog.modal { width: min(640px, calc(100vw - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--border-strong); border-radius: var(--r-xl); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); overflow: auto; }
dialog.modal::backdrop { background: rgba(3, 6, 12, .66); backdrop-filter: blur(6px); }
dialog.modal[open] { animation: modal-in var(--dur-3) var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1.4rem 1.4rem 0; }
.modal-body { padding: 1.2rem 1.4rem; }
.modal-foot { display: flex; gap: .6rem; justify-content: flex-end; padding: 1rem 1.4rem 1.4rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
@media (max-width: 560px) {
  dialog.modal { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  dialog.modal[open] { animation-name: sheet-in; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .modal-foot .btn { flex: 1; }
}
.pack-options { display: grid; gap: .6rem; }
.pack-option { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: var(--r-md); border: 1.5px solid var(--border-strong); cursor: pointer; transition: border-color var(--dur-2), background var(--dur-2); }
.pack-option:hover { border-color: var(--text-subtle); }
.pack-option input { position: absolute; opacity: 0; }
.pack-option .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; display: grid; place-items: center; }
.pack-option .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-brand); transform: scale(0); transition: transform var(--dur-2) var(--ease-spring); }
.pack-option:has(input:checked) { border-color: var(--accent); background: var(--grad-brand-soft); }
.pack-option:has(input:checked) .radio { border-color: var(--accent); }
.pack-option:has(input:checked) .radio::after { transform: scale(1); }
.pack-option:has(input:focus-visible) { box-shadow: var(--ring); }
.pack-option .po-main { flex: 1; min-width: 0; }
.pack-option .po-price { text-align: right; font-family: var(--font-mono); font-weight: 600; }
.pack-option .po-price small { display: block; color: var(--text-subtle); font-weight: 500; font-size: var(--fs-xs); }

/* ---------- Stepper ---------- */
.stepper { display: flex; gap: .4rem; align-items: center; }
.stepper li { flex: 1; }
.stepper button { width: 100%; display: flex; flex-direction: column; gap: .45rem; text-align: left; font-size: var(--fs-xs); color: var(--text-subtle); font-weight: 600; }
.stepper .bar-seg { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; position: relative; }
.stepper .bar-seg::after { content: ""; position: absolute; inset: 0; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-4) var(--ease-out); }
.stepper [aria-current="step"] .bar-seg::after, .stepper .is-done .bar-seg::after { transform: scaleX(1); }
.stepper [aria-current="step"] { color: var(--text); }
.stepper .is-done { color: var(--text-muted); }
.stepper .step-label { display: none; }
@media (min-width: 640px) { .stepper .step-label { display: block; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-in > * { animation: rise var(--dur-4) var(--ease-out) both; }
.hero-in > *:nth-child(2) { animation-delay: 80ms; } .hero-in > *:nth-child(3) { animation-delay: 160ms; }
.hero-in > *:nth-child(4) { animation-delay: 240ms; } .hero-in > *:nth-child(5) { animation-delay: 320ms; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

.table tbody th { font: 600 var(--fs-sm)/1.3 var(--font-sans); text-transform: none; letter-spacing: 0; color: var(--text); background: none; text-align: left; }

/* ---------- Auth (login / registro) ---------- */
.auth { min-height: 100dvh; display: grid; }
.auth-main { display: flex; flex-direction: column; padding: 1.1rem var(--gutter) 2rem; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.auth-body { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 2rem; }
.auth-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 1.4rem; }
.auth-card .h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem); }
.auth-foot { text-align: center; font-size: var(--fs-sm); color: var(--text-muted); }
.auth-foot a, .link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--dur-2); }
.auth-foot a:hover, .link:hover { text-decoration-color: currentColor; }
.auth-aside { display: none; position: relative; overflow: hidden; margin: .75rem; border-radius: var(--r-2xl); background: radial-gradient(70% 60% at 20% 10%, rgba(198,244,50,.45), transparent 60%), radial-gradient(70% 70% at 90% 90%, rgba(34,195,238,.55), transparent 60%), radial-gradient(60% 60% at 60% 40%, rgba(46,230,166,.35), transparent 70%), #07101e; color: #f2f5f9; padding: 3rem; }
.auth-aside::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000, transparent 75%); pointer-events: none; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .lead { color: #d0d9e6; }
.auth-aside .quote { margin-top: auto; }
.aside-stack { position: relative; height: 340px; margin-block: 2rem; }
.aside-card { position: absolute; border-radius: 22px; padding: 1.1rem 1.2rem; background: rgba(8, 14, 26, .72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); color: #f2f5f9; }
.aside-card .muted { color: #b7c2d2; }
@media (min-width: 1024px) {
  .auth { grid-template-columns: minmax(480px, 1fr) 1.05fr; }
  .auth-aside { display: flex; flex-direction: column; }
}
.view[hidden] { display: none !important; }
.view { animation: rise var(--dur-3) var(--ease-out); }
.alert { display: flex; gap: .7rem; padding: .9rem 1rem; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); font-size: var(--fs-sm); }
.alert svg { width: 20px; height: 20px; flex: none; color: var(--success); }

/* ---------- Registro ---------- */
.field-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .2rem; }
.strength i { height: 4px; border-radius: 4px; background: var(--surface-3); transition: background var(--dur-3); }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--coral-400); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--amber-400); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--mint-400); }
.strength[data-level="4"] i { background: var(--grad-brand); }
.locked-field { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 50px; padding: .6rem 1rem; border-radius: var(--r-md); border: 1px dashed var(--border-strong); background: var(--surface-2); }
.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.success-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; position: relative; }
.credit-orb { position: relative; width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: var(--text-on-brand); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 15%, transparent), 0 0 0 22px color-mix(in srgb, var(--accent) 7%, transparent), var(--shadow-brand); animation: orb-in 900ms var(--ease-spring) both; }
.credit-orb b { font: 800 4.2rem/1 var(--font-display); letter-spacing: -.05em; display: block; }
.credit-orb span { font: 700 .8rem/1 var(--font-mono); letter-spacing: .14em; }
@keyframes orb-in { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.confetti i { position: absolute; left: 50%; top: 84px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; }
.next-steps { width: 100%; text-align: left; display: grid; gap: .5rem; }
.next-steps li { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-sm); }
.next-steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); font: 700 .75rem/1 var(--font-mono); flex: none; }
.next-steps li:first-child .n { background: var(--grad-brand); color: var(--text-on-brand); }

/* =====================================================================
   PANEL DEL ORGANIZADOR (app shell)
   ===================================================================== */
.app { min-height: 100dvh; display: grid; }
.sidebar { display: none; }
.app-top { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; justify-content: space-between; gap: .75rem; height: 62px; padding: 0 var(--gutter); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.app-main { padding: 1.25rem var(--gutter) calc(96px + env(safe-area-inset-bottom)); min-width: 0; }
.app-section { padding-block: 1.75rem; scroll-margin-top: 72px; }
.app-section + .app-section { border-top: 1px solid var(--border); }
.app-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.org-switch { display: flex; align-items: center; gap: .6rem; padding: .35rem .6rem .35rem .35rem; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); min-width: 0; text-align: left; }
.org-switch .avatar-ph { width: 32px; height: 32px; border-radius: 10px; font-size: .9rem; }
.org-switch b { display: block; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-switch small { display: block; color: var(--text-subtle); font-size: var(--fs-xs); }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-nav); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: .4rem .5rem calc(.4rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg-elev) 92%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--border); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .35rem 0; font-size: .7rem; font-weight: 600; color: var(--text-subtle); border-radius: var(--r-sm); }
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a[aria-current="page"] { color: var(--accent-text); }
.bottom-nav .fab { margin-top: -26px; }
.bottom-nav .fab span.fab-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-brand); color: var(--text-on-brand); box-shadow: var(--shadow-brand); border: 4px solid var(--bg); }
.bottom-nav .fab { color: var(--text); }

@media (min-width: 1024px) {
  .app { grid-template-columns: 264px minmax(0, 1fr); }
  .app-top, .bottom-nav { display: none; }
  .app-main { padding: 1.5rem 2.5rem 4rem; }
  .sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 0; height: 100dvh; padding: 1.25rem 1rem; border-right: 1px solid var(--border); background: var(--bg-elev); overflow-y: auto; }
}
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav p { font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-subtle); padding: 1rem .75rem .5rem; }
.side-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: var(--r-sm); color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: background var(--dur-2), color var(--dur-2); position: relative; }
.side-nav a svg { width: 19px; height: 19px; flex: none; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--grad-brand-soft); color: var(--text); }
.side-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -1rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-brand); }
.side-nav .count { margin-left: auto; font: 600 var(--fs-xs)/1 var(--font-mono); padding: .2rem .45rem; border-radius: 99px; background: var(--surface-3); color: var(--text-muted); }
.side-credit { margin-top: auto; padding: 1rem; border-radius: var(--r-lg); background: var(--grad-brand-soft); border: 1px solid var(--border); }
.side-user { display: flex; align-items: center; gap: .65rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: var(--fs-sm); }

/* Dashboard */
.dash-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .dash-grid { grid-template-columns: 1.25fr 1fr 1fr 1fr; } }
.kpi { display: flex; flex-direction: column; gap: .5rem; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 500; }
.kpi-value { font: 800 clamp(1.9rem, 1.6rem + 1vw, 2.4rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: var(--fs-xs); font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: .25rem; }
.kpi-delta svg { width: 14px; height: 14px; }
.spark { width: 100%; height: 44px; margin-top: auto; }
.credit-card { background: radial-gradient(120% 120% at 100% 0%, rgba(34,195,238,.30), transparent 55%), radial-gradient(100% 100% at 0% 100%, rgba(198,244,50,.22), transparent 60%), var(--surface); }
.credit-card .kpi-value { font-size: clamp(2.4rem, 2rem + 1.4vw, 3rem); }

/* Event cards */
.events-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .events-grid { grid-template-columns: repeat(3, 1fr); } }
.event-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.event-flyer { position: relative; aspect-ratio: 16/8; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; color: #fff; overflow: hidden; }
.event-flyer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); }
.event-flyer > * { position: relative; z-index: 1; }
.event-flyer .ev-title { font: 800 1.7rem/0.95 var(--font-display); letter-spacing: -.04em; text-transform: uppercase; max-width: 80%; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.date-chip { align-self: flex-start; display: flex; flex-direction: column; align-items: center; padding: .35rem .6rem; border-radius: 12px; background: rgba(255,255,255,.92); color: #0a111f; line-height: 1; }
.date-chip b { font: 800 1.3rem/1 var(--font-display); }
.date-chip small { font: 700 .6rem/1.2 var(--font-mono); letter-spacing: .1em; }
.flyer-1 { background: radial-gradient(80% 90% at 85% 15%, #22c3ee, transparent 60%), radial-gradient(70% 90% at 10% 100%, #c6f432, transparent 60%), #0f2a3a; }
.flyer-2 { background: radial-gradient(80% 90% at 80% 20%, #ff7a59, transparent 60%), radial-gradient(70% 90% at 0% 100%, #ffc94d, transparent 60%), #3a1622; }
.flyer-3 { background: radial-gradient(80% 90% at 90% 10%, #2ee6a6, transparent 60%), radial-gradient(80% 100% at 0% 100%, #22c3ee, transparent 60%), #12203a; }
.event-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .8rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: var(--fs-sm); color: var(--text-muted); }
.event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event-meta svg { width: 15px; height: 15px; }
.progress-label { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-muted); margin-bottom: .4rem; }
.progress-label b { color: var(--text); font-family: var(--font-mono); }
.event-actions { display: flex; gap: .5rem; }
.event-actions .btn { flex: 1; }

/* Wizard */
.wizard { display: grid; gap: 1.25rem; }
@media (min-width: 1100px) { .wizard { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.day-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.day-chip { display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: .5rem .7rem; border-radius: var(--r-md); border: 1.5px solid var(--border-strong); font: 600 var(--fs-xs)/1.2 var(--font-mono); color: var(--text-muted); cursor: pointer; transition: all var(--dur-2); }
.day-chip b { font: 800 1.2rem/1.1 var(--font-display); color: var(--text); }
.day-chip[aria-pressed="true"] { border-color: transparent; background: var(--grad-brand); color: var(--text-on-brand); }
.day-chip[aria-pressed="true"] b { color: var(--text-on-brand); }
.day-chip.add { border-style: dashed; justify-content: center; }
.info-note { display: flex; gap: .7rem; padding: .9rem 1rem; border-radius: var(--r-md); background: var(--grad-brand-soft); border: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-muted); }
.info-note svg { width: 18px; height: 18px; color: var(--accent-text); flex: none; margin-top: 2px; }
.info-note b { color: var(--text); }
.wizard-foot { display: flex; justify-content: space-between; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Scanner */
.scanner-row { display: grid; gap: 1.5rem; justify-items: center; }
@media (min-width: 760px) { .scanner-row { grid-template-columns: repeat(3, 1fr); } }
.phone--flat { transform: none; animation: none; width: 100%; max-width: 280px; }
.scan-screen { position: relative; height: 100%; display: flex; flex-direction: column; color: #fff; }
.scan-top { padding: 46px 16px 10px; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: 12px; }
.scan-top b { display: block; font-size: 13px; }
.scan-top small { color: rgba(255,255,255,.75); font-size: 11px; }
.scan-count { padding: 4px 8px; border-radius: 99px; background: rgba(255,255,255,.14); font: 600 11px/1 var(--font-mono); white-space: nowrap; }
.scan-camera { flex: 1; position: relative; margin: 0 12px; border-radius: 22px; overflow: hidden; background: radial-gradient(60% 50% at 40% 40%, #3a4660, #121a2a 70%), #0d1422; display: grid; place-items: center; }
.scan-camera::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 2px, transparent 2px 4px); }
.scan-frame { position: relative; width: 62%; aspect-ratio: 1; }
.scan-frame i { position: absolute; width: 30px; height: 30px; border: 4px solid #2ee6a6; }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 14px 0 0 0; }
.scan-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 14px 0 0; }
.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 14px; }
.scan-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 14px 0; }
.scan-frame .qr-ghost { position: absolute; inset: 18%; color: rgba(255,255,255,.75); opacity: .55; filter: blur(.4px); transform: rotate(-6deg); }
.scan-frame .line { position: absolute; left: 6%; right: 6%; height: 2px; background: #2ee6a6; box-shadow: 0 0 14px 3px rgba(46,230,166,.7); animation: scan 2.4s ease-in-out infinite; }
.scan-tools { display: flex; justify-content: center; gap: 12px; padding: 14px 12px 8px; }
.scan-tools button { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; }
.scan-tools button svg { width: 20px; height: 20px; }
.scan-status { margin: 0 12px 14px; padding: 8px 10px; border-radius: 12px; background: rgba(255,193,77,.16); color: #ffd98a; font-size: 11px; display: flex; gap: 6px; align-items: center; }
.scan-status svg { width: 14px; height: 14px; flex: none; }
.scan-result { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 18px 18px; gap: 10px; }
.scan-result.ok { background: radial-gradient(90% 60% at 50% 25%, rgba(255,255,255,.18), transparent 60%), linear-gradient(175deg, #12a150 0%, #0b6b36 75%); }
.scan-result.bad { background: radial-gradient(90% 60% at 50% 25%, rgba(255,255,255,.16), transparent 60%), linear-gradient(175deg, #e11d48 0%, #9f1239 75%); }
.result-icon { width: 96px; height: 96px; margin-top: 18px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 10px rgba(255,255,255,.18), 0 0 0 22px rgba(255,255,255,.08); animation: orb-in 700ms var(--ease-spring) both; }
.result-icon svg { width: 52px; height: 52px; stroke-width: 3; }
.ok .result-icon { color: #0b6b36; } .bad .result-icon { color: #be123c; }
.result-title { margin-top: 14px; font: 800 1.75rem/1 var(--font-display); letter-spacing: -.02em; }
.result-name { font-size: 15px; font-weight: 700; }
.result-sub { font-size: 12.5px; color: rgba(255,255,255,.92); line-height: 1.4; }
.result-card { width: 100%; margin-top: auto; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.22); font-size: 12px; text-align: left; display: grid; gap: 4px; }
.result-card .days { display: flex; gap: 5px; margin-top: 4px; }
.result-card .days span { flex: 1; text-align: center; padding: 4px 0; border-radius: 8px; font: 600 10px/1.2 var(--font-mono); background: rgba(255,255,255,.12); }
.result-card .days span.on { background: #fff; color: #0b6b36; }
.result-card .days span.today-bad { background: #fff; color: #be123c; }
.result-btn { width: 100%; height: 46px; border-radius: 14px; background: #fff; color: #0a111f; font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.result-btn.ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); height: 40px; font-size: 13px; }
.auto-next { width: 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.auto-next i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: shrink 3s linear infinite; }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.phone-caption { text-align: center; margin-top: .9rem; font-size: var(--fs-sm); color: var(--text-muted); }

/* Design system showcase */
.ds-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .ds-grid { grid-template-columns: repeat(2, 1fr); } }
.ds-block h3 { font: 600 var(--fs-xs)/1 var(--font-mono); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--text-subtle); margin-bottom: 1rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .6rem; }
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); font-size: var(--fs-xs); }
.swatch i { display: block; height: 56px; }
.swatch span { display: block; padding: .45rem .55rem; }
.swatch code { font-family: var(--font-mono); color: var(--text-subtle); font-size: .68rem; }
.grad-swatch { height: 64px; border-radius: var(--r-md); display: flex; align-items: flex-end; padding: .5rem .65rem; font: 600 var(--fs-xs)/1 var(--font-mono); }
.type-sample { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--border); }
.type-sample:last-child { border-bottom: 0; }
.type-sample code { font: 500 var(--fs-xs)/1 var(--font-mono); color: var(--text-subtle); white-space: nowrap; }
.wizard { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .wizard { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.wizard-foot .btn--primary { flex: 1; max-width: 280px; }
.hide-sm { display: none; }
@media (min-width: 480px) { .hide-sm { display: inline; } }
.table--fit { min-width: 0; }
@media (max-width: 639px) {
  .price-card { gap: .6rem; padding: 1.2rem 1.2rem 1.1rem; }
  .price-card .price-feats { display: none; }
  .price-card .btn { margin-top: .4rem; }
}
.scanner-row figure { margin: 0; width: 100%; max-width: 280px; }
.dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.dash-grid > .credit-card, .dash-grid > :last-child { grid-column: 1 / -1; }
@media (max-width: 639px) { .dash-grid .kpi-value { font-size: 1.7rem; } .dash-grid .card { padding: 1rem; } .dash-grid .kpi-top .icon-tile { display: none; } }
@media (min-width: 640px) { .dash-grid { gap: 1rem; } .dash-grid > :last-child { grid-column: auto; } }
@media (min-width: 640px) and (max-width: 1279px) { .dash-grid > .credit-card { grid-column: auto; } }
@media (min-width: 1024px) { .app { background: linear-gradient(90deg, var(--bg-elev) 264px, var(--border) 264px, var(--border) 265px, transparent 265px); } .sidebar { border-right: 0; } }
[tabindex="-1"]:focus { box-shadow: none; outline: none; }
body.no-scroll .wa-float { opacity: 0; pointer-events: none; }
