/* IdeaForge - estilos (cliente y panel) */
@font-face { font-family: 'Sora'; src: url('/fonts/sora-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fonts/sora-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/fonts/sora-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #05051A;
  --bg2: #0A0A24;
  --surface: rgba(20, 18, 48, .66);
  --surface-solid: #121230;
  --surface2: #1B1A40;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --text: #F3F3FB;
  --muted: #A0A2C0;
  --dim: #6E7090;
  --amber: #FFB547;
  --ember: #FF5E3A;
  --pink: #FF2E88;
  --violet: #9B3DFF;
  --blue: #2F7BFF;
  --green: #2BD67B;
  --red: #FF4D6A;
  --grad: linear-gradient(115deg, #FF9A1F 0%, #FF4D7E 34%, #9B3DFF 68%, #2F7BFF 100%);
  --grad-v: linear-gradient(120deg, #9B3DFF, #2F7BFF);
  --grad-warm: linear-gradient(120deg, #FFB547 0%, #FF7A1F 50%, #FF4D7E 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --glow: 0 12px 42px -10px rgba(155, 61, 255, .65);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --head: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --tabbar: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.55; }
html, body { overflow-x: clip; }
body { min-height: 100vh; }
.hero-visual { overflow: clip; overflow-clip-margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.hidden { display: none !important; }
::selection { background: rgba(255, 94, 58, .4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #262640; border-radius: 10px; border: 2px solid var(--bg); }

/* ---------- fondo animado (aurora + chispas) */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; animation: float 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 540px; height: 540px; background: #9B3DFF; top: -180px; right: -120px; opacity: .32; }
.aurora i:nth-child(2) { width: 620px; height: 620px; background: #2F7BFF; bottom: -260px; left: -200px; animation-duration: 28s; opacity: .26; }
.aurora i:nth-child(3) { width: 380px; height: 380px; background: #FF8A1F; top: 40%; left: 55%; animation-duration: 32s; opacity: .13; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.12); } 100% { transform: translate(40px, -30px) scale(.95); } }
#embers { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.noise { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- pantalla de entrada */
#splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #1A0E4A 0%, #05051A 62%); transition: opacity .6s var(--ease), visibility .6s; }
#splash.out { opacity: 0; visibility: hidden; }
.splash-inner { display: grid; place-items: center; gap: 22px; }
.splash-logo { width: 150px; height: 150px; position: relative; }
.splash-logo .anvil { position: absolute; inset: 0; animation: anvilIn .9s var(--spring) both; }
.splash-logo .spark { position: absolute; inset: 0; transform-origin: 50% 38%; animation: sparkIn 1s .45s var(--spring) both, sparkPulse 1.6s 1.4s ease-in-out infinite; }
.splash-logo::after { content: ''; position: absolute; left: 50%; top: 40%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 0 rgba(255, 94, 58, .7); animation: ring 1.1s .5s ease-out both; }
@keyframes anvilIn { from { transform: translateY(40px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sparkIn { from { transform: scale(0) rotate(-120deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sparkPulse { 50% { transform: scale(1.08) rotate(8deg); filter: drop-shadow(0 0 18px rgba(255, 94, 58, .9)); } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgba(255, 94, 58, .8); } to { box-shadow: 0 0 0 120px rgba(255, 94, 58, 0); } }
.splash-word { font-family: var(--head); font-weight: 800; font-size: 2.3rem; letter-spacing: -.03em; display: flex; }
.splash-word span { display: inline-block; opacity: 0; transform: translateY(18px); animation: letter .5s var(--ease) forwards; }
.splash-word .f { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes letter { to { opacity: 1; transform: none; } }
.splash-tag { color: var(--muted); font-size: .95rem; opacity: 0; animation: letter .6s 1.3s var(--ease) forwards; }
.splash-bar { width: 140px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 40%; background: var(--grad); animation: load 1.1s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- estructura */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 12px clamp(16px, 4vw, 40px); background: rgba(7, 7, 15, .6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.topbar.scrolled { border-bottom-color: var(--line); background: rgba(7, 7, 15, .82); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(155, 61, 255, .35), 0 6px 18px -6px rgba(155, 61, 255, .8); transition: transform .5s var(--spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand b { background: var(--grad-v); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 9px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .93rem; display: flex; align-items: center; gap: 7px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav .badge-dot { position: absolute; top: 6px; right: 6px; }
main#view { min-height: calc(100vh - 64px); padding: 0 clamp(16px, 4vw, 40px) calc(var(--tabbar) + 40px + var(--safe-b)); max-width: 1180px; margin: 0 auto; }
.tabbar { display: none; }
@media (max-width: 820px) {
  .nav { display: none; }
  .tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(10, 10, 20, .86); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: grid; place-items: center; gap: 2px; color: var(--dim); font-size: .7rem; font-weight: 600; padding: 8px 0; transition: color .25s; }
  .tabbar a .ico { width: 23px; height: 23px; transition: transform .35s var(--spring); }
  .tabbar a.active { color: var(--text); }
  .tabbar a.active .ico { transform: translateY(-2px) scale(1.1); color: var(--ember); }
  .tabbar a.fab { margin-top: -26px; }
  .tabbar a.fab span.fab-btn { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); transition: transform .3s var(--spring); }
  .tabbar a.fab:active span.fab-btn { transform: scale(.9) rotate(-8deg); }
  .tabbar a.fab .ico { color: #fff !important; width: 26px; height: 26px; }
  .tabbar .badge-dot { position: absolute; top: 6px; left: calc(50% + 8px); }
}
.badge-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); animation: pop .4s var(--spring); }
@keyframes pop { from { transform: scale(0); } }

/* ---------- transiciones de pantalla */
.view-enter { animation: viewIn .55s var(--ease) both; }
.view-leave { animation: viewOut .18s ease-in both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes viewOut { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
.reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- botones */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 22px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); color: var(--text); font-weight: 700; font-size: .95rem; cursor: pointer; transition: transform .25s var(--spring), box-shadow .3s, background .2s, border-color .2s, opacity .2s; user-select: none; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .09); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { border: 0; background: var(--grad); background-size: 180% 180%; color: #fff; box-shadow: var(--glow); animation: gradShift 6s ease infinite; }
.btn.primary:hover { box-shadow: 0 14px 44px -8px rgba(255, 46, 136, .65); }
.btn.primary::after { content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -80%; } 100% { left: 140%; } }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn.violet { border: 0; background: var(--grad-v); color: #fff; box-shadow: 0 10px 30px -10px rgba(123, 92, 255, .7); }
.btn.green { border: 0; background: linear-gradient(120deg, #2BD67B, #13A85C); color: #fff; box-shadow: 0 10px 30px -10px rgba(43, 214, 123, .6); }
.btn.danger { color: #FF8A9C; border-color: rgba(255, 77, 106, .35); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 8px 14px; border-radius: 12px; font-size: .86rem; }
.btn.big { padding: 17px 30px; font-size: 1.05rem; border-radius: 18px; }
.btn.block { width: 100%; }
.btn.icon { padding: 10px; border-radius: 14px; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.btn .spin, .spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- tarjetas */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.card.glow::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none; }
.tilt { transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; transform-style: preserve-3d; will-change: transform; }
.tilt:hover { border-color: var(--line2); }
.section { padding: 46px 0 10px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 30px; background: rgba(255, 94, 58, .1); border: 1px solid rgba(255, 94, 58, .25); color: #FFB08F; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow .ico { width: 15px; height: 15px; }

/* ---------- inicio */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 50px 0 30px; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 8px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; animation: lineUp .9s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
.hero-visual { position: relative; height: 430px; }
.hero-visual .orb { position: absolute; inset: 40px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 94, 58, .45), rgba(123, 92, 255, .25) 45%, transparent 70%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); } }
.hero-visual .logo-big { position: absolute; left: 50%; top: 50%; width: 210px; transform: translate(-50%, -55%); filter: drop-shadow(0 20px 50px rgba(255, 94, 58, .45)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -62%) rotate(-3deg); } }
.float-card { position: absolute; display: flex; align-items: center; gap: 11px; padding: 12px 15px; border-radius: 16px; background: rgba(20, 20, 36, .85); border: 1px solid var(--line2); backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: .86rem; font-weight: 600; animation: bob2 6s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.float-card .fi { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.float-card.fc1 { top: 24px; left: 0; }
.float-card.fc2 { top: 150px; right: 0; animation-delay: -2s; }
.float-card.fc3 { bottom: 24px; left: 20px; animation-delay: -4s; }
@keyframes bob2 { 50% { transform: translateY(-12px); } }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 26px; text-align: left; } .hero-visual { height: 330px; order: -1; margin: -10px 0 -10px; } .hero-visual .logo-big { width: 150px; } .float-card { font-size: .78rem; padding: 9px 12px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { text-align: center; padding: 20px 12px; }
.stat b { display: block; font-family: var(--head); font-size: 2rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .86rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.cat { cursor: pointer; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cat .ci { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: transform .45s var(--spring); }
.cat .ci .ico { width: 24px; height: 24px; }
.cat:hover .ci { transform: rotate(-10deg) scale(1.12); }
.cat:hover .ci .ico { animation: wiggle .6s ease; }
@keyframes wiggle { 25% { transform: rotate(-12deg); } 75% { transform: rotate(10deg); } }
.cat b { font-size: .98rem; }
.cat small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.cat::after { content: ''; position: absolute; width: 120px; height: 120px; right: -50px; top: -50px; border-radius: 50%; background: var(--c); opacity: 0; filter: blur(40px); transition: opacity .4s; }
.cat:hover::after { opacity: .35; }
.cat.sel { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 25%, transparent), var(--shadow); }
.cat.sel::after { opacity: .3; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.step { padding: 22px; }
.step .num { font-family: var(--head); font-size: .8rem; font-weight: 800; color: var(--ember); letter-spacing: .1em; }
.step .si { width: 52px; height: 52px; margin: 10px 0 14px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.step .si .ico { width: 25px; height: 25px; animation: iconFloat 3s ease-in-out infinite; }
.step:nth-child(2) .si .ico { animation-delay: -.7s; }
.step:nth-child(3) .si .ico { animation-delay: -1.4s; }
.step:nth-child(4) .si .ico { animation-delay: -2.1s; }
@keyframes iconFloat { 50% { transform: translateY(-4px) rotate(-6deg); } }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.why .card { display: flex; gap: 16px; align-items: flex-start; }
.why .wi { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(123, 92, 255, .14); color: #B7A6FF; border: 1px solid rgba(123, 92, 255, .3); }
.why p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 700px) { .why { grid-template-columns: 1fr; } }

/* ---------- ejemplos */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.ex { padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.ex .ex-img { position: relative; aspect-ratio: 800 / 560; overflow: hidden; background: #111; }
.ex .ex-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ex:hover .ex-img img { transform: scale(1.07); }
.ex .ex-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 15, .85)); }
.ex .price { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 12px; background: rgba(7, 7, 15, .75); border: 1px solid var(--line2); backdrop-filter: blur(8px); font-weight: 800; font-size: .9rem; }
.ex .price small { color: var(--muted); font-weight: 600; margin-right: 4px; }
.ex .ex-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ex .ex-body p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.ex .ex-cat { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.ex .ex-cat .ico { width: 14px; height: 14px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 330px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; margin: 0 -2px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 30px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--muted); font-weight: 600; font-size: .87rem; cursor: pointer; transition: all .25s var(--ease); user-select: none; }
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .25); }
.chip.on { color: #fff; border-color: transparent; background: var(--grad); box-shadow: 0 6px 20px -8px rgba(255, 94, 58, .8); }
.chip.on .ico { animation: pop .35s var(--spring); }
.chip .ico { width: 16px; height: 16px; }
.filter-bar { position: sticky; top: 62px; z-index: 20; padding: 12px 0; margin-bottom: 8px; background: linear-gradient(var(--bg) 70%, transparent); overflow-x: auto; }
.filter-bar .chips { flex-wrap: nowrap; }
.filter-bar .chip { flex: none; white-space: nowrap; }

/* ---------- formularios */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; }
.field .hint { color: var(--dim); font-size: .82rem; }
.input, textarea.input, select.input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(5, 5, 12, .55); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.input:focus { border-color: rgba(255, 94, 58, .6); box-shadow: 0 0 0 4px rgba(255, 94, 58, .14); background: rgba(5, 5, 12, .8); }
textarea.input { min-height: 150px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0A2C0' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.input option { background: #141424; }
.counter { text-align: right; color: var(--dim); font-size: .78rem; margin-top: -4px; }

/* ---------- asistente de pedido */
.wizard { max-width: 860px; margin: 0 auto; padding-top: 26px; }
.progress { display: flex; gap: 8px; margin: 8px 0 26px; }
.progress .seg { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress .seg i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .6s var(--ease); }
.progress .seg.done i { width: 100%; }
.wiz-labels { display: flex; justify-content: space-between; color: var(--dim); font-size: .78rem; font-weight: 600; margin-top: -18px; margin-bottom: 22px; }
.wiz-labels span.on { color: var(--text); }
.wiz-step { animation: viewIn .5s var(--ease) both; }
.wiz-step.back { animation-name: viewInBack; }
@keyframes viewInBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.wiz-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 24px; position: sticky; bottom: calc(var(--tabbar) + 10px + var(--safe-b)); z-index: 10; padding: 12px; border-radius: 20px; background: rgba(12, 12, 24, .8); backdrop-filter: blur(14px); border: 1px solid var(--line); }
@media (min-width: 821px) { .wiz-nav { bottom: 16px; } }
.prefill { display: flex; gap: 14px; align-items: center; padding: 12px; margin-bottom: 18px; }
.prefill img { width: 90px; border-radius: 12px; }
.dropzone { display: grid; place-items: center; gap: 8px; text-align: center; padding: 28px 18px; border-radius: var(--radius); border: 2px dashed var(--line2); background: rgba(255, 255, 255, .02); cursor: pointer; transition: all .25s; }
.dropzone:hover, .dropzone.drag { border-color: var(--ember); background: rgba(255, 94, 58, .06); }
.dropzone .ico { width: 34px; height: 34px; color: var(--ember); animation: iconFloat 3s ease-in-out infinite; }
.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.file-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface2); border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; text-align: center; padding: 8px; animation: pop .35s var(--spring); }
.file-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file-item .fname { font-size: .75rem; color: var(--muted); word-break: break-all; }
.file-item .ico { width: 30px; height: 30px; color: var(--muted); }
.file-item .rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 10px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.review dl { display: grid; grid-template-columns: 150px 1fr; gap: 10px 16px; margin: 0; }
.review dt { color: var(--muted); font-weight: 600; font-size: .88rem; }
.review dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
@media (max-width: 600px) { .review dl { grid-template-columns: 1fr; gap: 2px; } .review dd { margin-bottom: 10px; } }

/* ---------- pedidos */
.page-head { padding: 30px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.orders { display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; transition: transform .3s var(--ease), border-color .3s; }
.order-card:hover { transform: translateX(4px); border-color: var(--line2); }
.order-card .oi { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.order-card .meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .82rem; }
.mini-progress { height: 4px; border-radius: 4px; background: var(--line); margin-top: 9px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; background: var(--grad); border-radius: 4px; transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; font-size: .78rem; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); white-space: nowrap; }
.status-chip .ico { width: 14px; height: 14px; }
.status-chip.pulse::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.empty { text-align: center; padding: 60px 20px; }
.empty .big-ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); animation: bob3 4s ease-in-out infinite; }
.empty .big-ico .ico { width: 38px; height: 38px; }
@keyframes bob3 { 50% { transform: translateY(-8px) rotate(-4deg); } }

/* línea de estados */
.timeline { display: grid; grid-template-columns: repeat(7, 1fr); position: relative; margin: 10px 0 6px; }
.timeline::before { content: ''; position: absolute; left: 7%; right: 7%; top: 20px; height: 3px; background: var(--line); border-radius: 3px; }
.timeline .fill { position: absolute; left: 7%; top: 20px; height: 3px; background: var(--grad); border-radius: 3px; width: 0; transition: width 1.2s var(--ease); box-shadow: 0 0 12px rgba(255, 94, 58, .7); }
.timeline .tl { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; font-size: .72rem; font-weight: 600; color: var(--dim); }
.timeline .tl .dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); border: 2px solid var(--line2); transition: all .5s var(--ease); z-index: 1; }
.timeline .tl .dot .ico { width: 18px; height: 18px; }
.timeline .tl.done { color: var(--muted); }
.timeline .tl.done .dot { background: var(--grad); border-color: transparent; color: #fff; }
.timeline .tl.current { color: var(--text); }
.timeline .tl.current .dot { box-shadow: 0 0 0 6px rgba(255, 94, 58, .2); animation: pulseRing 2s infinite; }
@keyframes pulseRing { 50% { box-shadow: 0 0 0 11px rgba(255, 94, 58, .05); } }
@media (max-width: 640px) { .timeline .tl span { display: none; } .timeline .tl.current span { display: block; position: absolute; top: 50px; white-space: nowrap; } .timeline { margin-bottom: 34px; } .timeline .tl .dot { width: 34px; height: 34px; } .timeline::before, .timeline .fill { top: 16px; } }

.order-layout > * { min-width: 0; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .order-layout { grid-template-columns: minmax(0, 1fr); } }
.quote { text-align: center; overflow: hidden; }
.quote .amount { font-family: var(--head); font-size: 3.2rem; font-weight: 800; margin: 6px 0; }
.quote .note { text-align: left; white-space: pre-wrap; background: rgba(0, 0, 0, .25); border-radius: 14px; padding: 14px; color: var(--muted); font-size: .92rem; margin: 14px 0; }
.quote .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .8rem; margin-top: 12px; }
.secure .ico { color: var(--green); }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { flex: 1; min-width: 0; white-space: nowrap; border: 0; background: transparent; padding: 10px; border-radius: 12px; color: var(--muted); font-weight: 700; cursor: pointer; display: flex; gap: 7px; justify-content: center; align-items: center; transition: all .25s; }
.tabs button.on { background: var(--surface2); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.kv { display: grid; gap: 12px; }
.kv div b { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.desc-box { white-space: pre-wrap; word-break: break-word; }
.att-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.att { display: grid; place-items: center; gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; position: relative; text-align: center; font-size: .74rem; color: var(--muted); transition: transform .3s var(--spring); }
.att:hover { transform: scale(1.04); }
.att img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.att .ico { width: 28px; height: 28px; }
.deliver-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); margin-top: 8px; }
.deliver-file .ico { color: var(--green); }
.deliver-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- chat */
.chat { display: flex; flex-direction: column; height: min(640px, calc(100vh - 220px)); min-height: 420px; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head .av { width: 40px; height: 40px; border-radius: 12px; }
.chat-head small { display: block; color: var(--green); font-size: .75rem; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; line-height: 1.45; animation: msgIn .35s var(--spring) both; word-wrap: break-word; white-space: pre-wrap; position: relative; }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: var(--surface2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.sys { align-self: center; max-width: 92%; background: rgba(123, 92, 255, .12); border: 1px solid rgba(123, 92, 255, .25); color: #CFC4FF; font-size: .82rem; text-align: center; border-radius: 14px; }
.msg time { display: block; font-size: .68rem; opacity: .7; margin-top: 4px; text-align: right; }
.msg.sys time { text-align: center; }
.msg img.chat-img { border-radius: 12px; max-height: 260px; cursor: zoom-in; margin: -2px -6px 2px; max-width: calc(100% + 12px); }
.msg audio { width: 240px; max-width: 100%; height: 40px; }
.msg .file-link { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.msg .file-link small { display: block; opacity: .75; font-weight: 500; }
.day-sep { align-self: center; font-size: .72rem; color: var(--dim); padding: 4px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); margin: 6px 0; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); }
.composer textarea { flex: 1; min-height: 46px; max-height: 140px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line2); background: rgba(5, 5, 12, .6); resize: none; outline: none; line-height: 1.4; }
.composer textarea:focus { border-color: rgba(255, 94, 58, .5); }
.composer .btn.icon { width: 46px; height: 46px; }
.rec-bar { display: flex; align-items: center; gap: 12px; flex: 1; padding: 0 14px; height: 46px; border-radius: 16px; background: rgba(255, 77, 106, .12); border: 1px solid rgba(255, 77, 106, .35); color: #FF9AAA; font-weight: 700; }
.rec-bar .rdot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: blink 1s infinite; }
.rec-bar .wave { flex: 1; display: flex; gap: 3px; align-items: center; height: 24px; }
.rec-bar .wave i { flex: 1; background: var(--red); border-radius: 3px; animation: wave 1s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.upload-chip { align-self: flex-end; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--surface2); font-size: .82rem; color: var(--muted); }
.upload-chip .bar { width: 90px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.upload-chip .bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .2s; }

/* ---------- modal, toast, lightbox */
.modal-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(3, 3, 8, .7); backdrop-filter: blur(8px); animation: fadeIn .25s ease both; }
.modal-wrap.closing { animation: fadeOut .2s ease both; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface-solid); border: 1px solid var(--line2); border-radius: 26px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); animation: modalIn .45s var(--spring) both; }
.modal-wrap.closing .modal { animation: modalOut .2s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(16px) scale(.97); } }
.modal .m-body { padding: 24px; }
.modal .m-img { aspect-ratio: 800/560; width: 100%; object-fit: cover; }
.modal .m-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-rel { position: relative; }
#toasts { position: fixed; z-index: 300; left: 50%; transform: translateX(-50%); top: 16px; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; background: rgba(24, 24, 40, .95); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(12px); font-weight: 600; font-size: .9rem; animation: toastIn .45s var(--spring) both; }
.toast.out { animation: toastOut .3s ease both; }
.toast .ico { color: var(--green); }
.toast.err .ico { color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); } }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .92); display: grid; place-items: center; animation: fadeIn .2s; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; animation: modalIn .35s var(--spring); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 500; }

/* ---------- varios */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 2px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .35s var(--spring); color: var(--ember); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 2px 10px; animation: viewIn .4s var(--ease); }
.cta-final { text-align: center; padding: 44px 24px; margin: 50px 0 10px; overflow: hidden; }
.cta-final::after { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 300px; background: radial-gradient(closest-side, rgba(255, 94, 58, .35), transparent); pointer-events: none; }
.footer { text-align: center; color: var(--dim); font-size: .82rem; padding: 30px 0 10px; }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 200px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: var(--surface2); border: 1px solid var(--line2); cursor: pointer; transition: .3s; }
.switch span::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .35s var(--spring); }
.switch input:checked + span { background: var(--grad); border-color: transparent; }
.switch input:checked + span::before { transform: translateX(20px); }
.list-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .li { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface2); color: var(--muted); flex: none; }
.code { font-family: Consolas, monospace; font-size: .85rem; background: rgba(0, 0, 0, .35); padding: 10px 12px; border-radius: 10px; word-break: break-all; border: 1px solid var(--line); }
.skeleton { background: linear-gradient(90deg, var(--surface2) 25%, #24243a 50%, var(--surface2) 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 181, 71, .08); border: 1px solid rgba(255, 181, 71, .25); color: #FFD9A0; font-size: .88rem; }
.notice .ico { color: var(--amber); margin-top: 2px; }

@media (max-width: 520px) { .tabs button { font-size: .82rem; padding: 9px 4px; gap: 4px; } .tabs button .ico { width: 15px; height: 15px; } .card { padding: 18px; } }


/* ================== v1.1: logo real, modo app y más animaciones ================== */
/* entrada con el logo */
.splash-stage { position: relative; width: 230px; height: 230px; display: grid; place-items: center; }
.splash-stage .ring { position: absolute; inset: -26px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, #9B3DFF 70%, #2F7BFF 82%, #FF8A1F 92%, transparent 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); animation: rot 1.6s linear infinite, fadeIn .6s .2s both; filter: drop-shadow(0 0 10px #9B3DFF); }
.splash-stage .halo { position: absolute; inset: -40px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 31, .55), rgba(155, 61, 255, .3) 45%, transparent 70%); filter: blur(20px); animation: haloIn 1.2s .3s var(--ease) both, breathe 2.4s 1.5s ease-in-out infinite; }
@keyframes haloIn { from { opacity: 0; transform: scale(.4); } }
.splash-logo-img { position: relative; width: 210px; height: 210px; border-radius: 46px; overflow: hidden; animation: logoIn 1.1s var(--spring) both; box-shadow: 0 30px 80px -20px rgba(155, 61, 255, .8); }
.splash-logo-img img { width: 100%; height: 100%; }
.splash-logo-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 1.1s .9s ease-in-out both; }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.55) rotate(-8deg); filter: blur(12px) brightness(2); } 60% { filter: blur(0) brightness(1.3); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes sweep { to { transform: translateX(120%); } }
.spark-burst i { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #FFB547; box-shadow: 0 0 10px #FF8A1F; opacity: 0; animation: burst 1.3s calc(.75s + var(--i) * 30ms) cubic-bezier(.1, .8, .3, 1) both; }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--a)) translateX(10px); } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--d)); } }
.splash-tag { animation-delay: 1s; }
.splash-inner { gap: 34px; }

/* palabra que se escribe sola */
.typer { font-family: var(--head); font-weight: 700; font-size: 1.05rem; color: var(--muted); margin-bottom: 10px; min-height: 1.6em; }
.typer b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.typer .caret { display: inline-block; width: 2px; height: 1.05em; background: #FF8A1F; margin-left: 3px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* logo de la portada */
.hero-logo { position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; transform: translate(-50%, -52%); animation: bob 6s ease-in-out infinite; }
.hero-logo img { width: 100%; height: 100%; border-radius: 56px; box-shadow: 0 40px 90px -25px rgba(155, 61, 255, .9), 0 0 0 1px rgba(155, 61, 255, .35); }
.hero-logo .orbit { position: absolute; inset: -36px; border-radius: 50%; border: 1px dashed rgba(155, 61, 255, .35); animation: rot 26s linear infinite; }
.hero-logo .orbit::before, .hero-logo .orbit::after { content: ''; position: absolute; width: 12px; height: 12px; border-radius: 50%; top: -6px; left: calc(50% - 6px); background: #FF8A1F; box-shadow: 0 0 16px #FF8A1F; }
.hero-logo .orbit::after { top: auto; bottom: -6px; background: #2F7BFF; box-shadow: 0 0 16px #2F7BFF; }
.hero-logo .orbit.o2 { inset: -70px; border-color: rgba(47, 123, 255, .22); animation-duration: 40s; animation-direction: reverse; }
.hero-logo .shine { position: absolute; inset: 0; border-radius: 56px; overflow: hidden; pointer-events: none; }
.hero-logo .shine::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .35) 50%, transparent 60%); transform: translateX(-130%); animation: sweep2 5s 1s ease-in-out infinite; }
@keyframes sweep2 { 0%, 70% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes bob { 50% { transform: translate(-50%, -58%) rotate(-2deg); } }
@media (max-width: 900px) { .float-card.fc2 { top: 120px; } .float-card.fc3 { bottom: 10px; } .hero-logo { width: 170px; height: 170px; } .hero-logo img, .hero-logo .shine { border-radius: 40px; } }

/* cinta de categorías */
.marquee { position: relative; overflow: hidden; margin: 26px 0 0; padding: 4px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 40px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.marquee .pill .ico { color: var(--c); }
@keyframes marq { to { transform: translateX(-50%); } }

/* foco de luz que sigue al ratón */
.card.spot { overflow: hidden; }
.card.spot > * { position: relative; z-index: 1; }
.card.spot::after { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(155, 61, 255, .18), transparent 45%); }
.card.spot:hover::after { opacity: 1; }
.cat.spot::after { width: auto; height: auto; right: 0; top: 0; filter: none; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 30%, transparent), transparent 50%); }
.cat.spot:hover::after { opacity: 1; }

/* transiciones laterales entre pestañas, como una app */
.view-enter.from-right { animation: slideL .5s var(--ease) both; }
.view-enter.from-left { animation: slideR .5s var(--ease) both; }
@keyframes slideL { from { opacity: 0; transform: translateX(46px); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(-46px); } to { opacity: 1; transform: none; } }

/* barra de pestañas con píldora animada */
@media (max-width: 820px) {
  .tabbar .pillbg { position: absolute; top: 9px; height: 46px; width: calc(20% - 16px); left: 8px; border-radius: 16px; background: rgba(155, 61, 255, .14); border: 1px solid rgba(155, 61, 255, .28); transition: left .5s var(--spring), opacity .3s; pointer-events: none; }
  .tabbar a.active .ico { color: #B88CFF; }
  .tabbar a.fab span.fab-btn { background: var(--grad); background-size: 200% 200%; animation: gradShift 5s ease infinite; }
}

/* botón instalar */
.install-btn { display: none; }
.can-install .install-btn { display: inline-flex; }
.standalone .install-btn, .standalone .install-card { display: none !important; }
.install-card { display: none; align-items: center; gap: 16px; padding: 16px 18px; margin-top: 18px; }
.can-install .install-card, .ios .install-card { display: flex; }
.install-card img { width: 58px; height: 58px; border-radius: 15px; flex: none; animation: bob3 4s ease-in-out infinite; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 14px; background: #000; border: 1px solid rgba(255, 255, 255, .25); font-weight: 700; color: #fff; }
.store-badge small { display: block; font-size: .7rem; font-weight: 500; opacity: .8; }

/* presentación inicial (onboarding) */
.onb { position: fixed; inset: 0; z-index: 900; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1A0E4A, #05051A 70%); display: flex; flex-direction: column; animation: fadeIn .5s both; }
.onb.out { animation: onbOut .45s var(--ease) both; }
@keyframes onbOut { to { opacity: 0; transform: scale(1.06); } }
.onb-track { flex: 1; min-height: 0; width: 100%; display: flex; transition: transform .6s var(--ease); touch-action: pan-y; }
.onb-slide { min-width: 100%; display: grid; place-items: center; align-content: center; gap: 26px; padding: 30px 26px; text-align: center; }
.onb-slide h2 { font-size: clamp(1.7rem, 6vw, 2.4rem); margin: 0; }
.onb-slide p { color: var(--muted); max-width: 420px; margin: 0 auto; font-size: 1.02rem; }
.onb-art { position: relative; width: min(340px, 70vw, 38vh); aspect-ratio: 1; display: grid; place-items: center; }
.onb-art img.big { width: 70%; border-radius: 22%; box-shadow: 0 30px 80px -20px rgba(155, 61, 255, .9); }
.onb-art .glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(155, 61, 255, .55), transparent 65%); filter: blur(20px); animation: breathe 4s ease-in-out infinite; }
.onb-art .cardlet { position: absolute; padding: 10px 13px; border-radius: 14px; background: rgba(20, 18, 48, .9); border: 1px solid var(--line2); font-size: .8rem; font-weight: 700; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); animation: bob2 5s ease-in-out infinite; }
.onb-art .shot { width: 86%; border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .9); border: 1px solid var(--line2); }
.onb-slide.on .onb-art { animation: popIn .8s var(--spring) both; }
.onb-slide.on h2, .onb-slide.on p { animation: viewIn .7s .15s var(--ease) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.7) rotate(-6deg); } }
.onb-foot { padding: 18px 24px calc(24px + var(--safe-b)); display: flex; align-items: center; gap: 16px; max-width: 560px; width: 100%; margin: 0 auto; }
.onb-dots { display: flex; gap: 8px; flex: 1; }
.onb-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line2); transition: all .4s var(--spring); }
.onb-dots i.on { width: 28px; background: var(--grad); }
.onb-skip { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 2; }

/* deslizar para actualizar */
.ptr { position: fixed; left: 50%; top: 70px; z-index: 70; width: 42px; height: 42px; margin-left: -21px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-solid); border: 1px solid var(--line2); box-shadow: var(--shadow); transform: translateY(-80px); opacity: 0; transition: opacity .2s; }
.ptr .ico { color: #B88CFF; }
.ptr.spinning .ico { animation: rot .8s linear infinite; }

/* éxito al enviar */
.success-mark { width: 96px; height: 96px; margin: 0 auto 16px; }
.success-mark circle { stroke-dasharray: 290; stroke-dashoffset: 290; animation: draw .8s .1s var(--ease) forwards; }
.success-mark path { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* modo app instalada: sin márgenes de web */
.standalone .footer { display: none; }
.standalone body { overscroll-behavior-y: contain; }
.standalone .topbar { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
