/* ============================================================================
   NOLO landing — shared design system (site.css)
   ----------------------------------------------------------------------------
   Core tokens + chrome shared by the secondary pages (transparency, compare,
   about). The home and the older standalone pages (faq/precios/alternativa)
   still embed their own copy of this; new pages link this file instead of
   duplicating ~350 lines each. Page-specific components stay inline per page.
   Matches the home exactly (same tokens, nav, footer, fonts).
   ========================================================================== */
:root {
  --bg-0: #050308;
  --bg-1: #0a0612;
  --bg-2: #120a1f;
  --ink: #f5efff;
  --muted: #a89fbf;
  --quiet: #6b6285;
  --line: rgba(167,139,250,.14);
  --line-2: rgba(167,139,250,.28);
  --acc: #8b5cf6;
  --acc-2: #a78bfa;
  --acc-3: #c4b5fd;
  --acc-deep: #4c1d95;
  --acc-glow: rgba(139,92,246,.55);
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --ease: cubic-bezier(.2,.85,.2,1);
  --ease-soft: cubic-bezier(.32,.72,0,1);
}
*, *::before, *::after { box-sizing: border-box; }
svg { stroke-linecap: round; stroke-linejoin: round; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
@media (pointer: coarse) { body { cursor: auto; } }
::selection { background: var(--acc); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; border: 0; background: none; color: inherit; }
@media (pointer: coarse) { button { cursor: pointer; } }

/* ---- preloader ---- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(620px 460px at 50% 44%, rgba(139,92,246,.16), transparent 70%), var(--bg-0);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.pre-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.preloader-mark {
  font-size: clamp(2.8rem, 9vw, 5.6rem); font-weight: 700; letter-spacing: -.05em;
  background: linear-gradient(115deg, #fff 0%, var(--acc-3) 45%, var(--acc) 100%); background-size: 220% 220%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 38px var(--acc-glow));
  animation: pre-rise .7s var(--ease) both, pre-shine 2.6s ease-in-out infinite .7s;
}
.pre-bar { width: 156px; height: 3px; border-radius: 99px; background: rgba(167,139,250,.16); overflow: hidden; }
.pre-bar span { display: block; height: 100%; width: 42%; border-radius: 99px; background: linear-gradient(90deg, transparent, var(--acc-2), var(--acc), transparent); animation: pre-load 1.15s var(--ease-soft) infinite; }
@keyframes pre-load { from { transform: translateX(-130%); } to { transform: translateX(320%); } }
@keyframes pre-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pre-shine { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---- cursor ---- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9000; transform: translate(-50%, -50%); mix-blend-mode: difference; }
.cursor-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; transition: width .25s var(--ease), height .25s var(--ease); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid #fff; border-radius: 50%; transition: transform .12s var(--ease), width .3s var(--ease), height .3s var(--ease); }
.cursor-ring.grow { width: 70px; height: 70px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- scroll progress ---- */
.scroll-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--acc), var(--acc-2), var(--acc-3)); z-index: 100; box-shadow: 0 0 18px var(--acc-glow); transition: width .08s linear; }

/* ---- atmosphere ---- */
.atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 600px at var(--mx, 50%) var(--my, 30%), rgba(139,92,246,.18), transparent 60%), radial-gradient(700px 500px at 80% 10%, rgba(124,58,237,.14), transparent 60%), radial-gradient(600px 500px at 10% 80%, rgba(76,29,149,.16), transparent 60%); transition: background .4s var(--ease); }
.atmosphere::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(167,139,250,.04) 1px, transparent 1px), linear-gradient(rgba(167,139,250,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); }
.orb { position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1; opacity: .55; }
.orb.a { width: 520px; height: 520px; background: var(--acc); top: -160px; right: -120px; animation: float-a 20s ease-in-out infinite; }
.orb.b { width: 420px; height: 420px; background: var(--acc-deep); bottom: -160px; left: -120px; animation: float-b 24s ease-in-out infinite; }
@keyframes float-a { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-60px, 80px); } }
@keyframes float-b { 0%,100% { transform: translate(0,0); } 50% { transform: translate(80px, -60px); } }

/* ---- nav ---- */
.nav { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); width: min(1200px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(10,6,18,.55); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); z-index: 50; transition: transform .5s var(--ease); }
.nav.hidden { transform: translateX(-50%) translateY(-120%); }
.nav-mark { font-weight: 700; letter-spacing: -.05em; font-size: 1.3rem; display: inline-flex; align-items: center; gap: 10px; }
.nav-mark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 16px var(--acc); animation: dot-pulse 2s ease-in-out infinite; }
@keyframes dot-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } }
.nav-menu { display: flex; gap: 28px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav-menu a { position: relative; transition: color .25s var(--ease); }
.nav-menu a::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 1px; background: var(--acc-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-menu a:hover, .nav-menu a.active { color: var(--ink); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: linear-gradient(135deg, var(--acc-2), var(--acc), var(--acc-deep)); background-size: 200% 200%; font-weight: 600; font-size: .9rem; color: #fff; box-shadow: 0 12px 32px rgba(139,92,246,.35); animation: shimmer-bg 4s ease infinite; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(139,92,246,.55); }
.nav-cta svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-cta:hover svg { transform: translateX(4px); }
@keyframes shimmer-bg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-select { appearance: none; -webkit-appearance: none; background: rgba(139,92,246,.08); border: 1px solid var(--line-2); color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600; letter-spacing: .04em; padding: 10px 12px; border-radius: 12px; cursor: pointer; transition: color .25s var(--ease), border-color .25s var(--ease); }
.lang-select:hover { color: var(--ink); border-color: var(--acc-2); }
.lang-select:focus-visible { outline: 2px solid var(--acc-2); outline-offset: 2px; }
.lang-select option { background: #120a1f; color: var(--ink); }
@media (pointer: coarse) { .lang-select { cursor: pointer; } }
@media (max-width: 820px) { .nav-menu { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 14px; font-weight: 600; font-size: .98rem; position: relative; overflow: hidden; transition: transform .3s var(--ease); }
.btn.primary { background: linear-gradient(135deg, var(--acc-2), var(--acc) 55%, var(--acc-deep)); color: #fff; box-shadow: 0 18px 48px rgba(139,92,246,.4), inset 0 1px 0 rgba(255,255,255,.18); }
.btn.primary::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); transition: transform .8s var(--ease); }
.btn.primary:hover::before { transform: translateX(100%); }
.btn.ghost { background: rgba(139,92,246,.08); color: var(--ink); border: 1px solid var(--line-2); backdrop-filter: blur(10px); }
.btn.ghost:hover { background: rgba(139,92,246,.16); border-color: var(--acc-2); }
.btn:hover { transform: translateY(-3px); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ---- page hero (secondary pages) ---- */
.page-hero { padding: 160px 24px 40px; text-align: center; }
.page-hero-inner { width: min(900px, 100%); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(139,92,246,.07); font-size: .82rem; font-weight: 500; color: var(--acc-3); letter-spacing: .04em; margin-bottom: 26px; }
.eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--acc-2); box-shadow: 0 0 10px var(--acc-2); animation: dot-pulse 1.6s ease-in-out infinite; }
.page-title { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.02; margin: 0 0 22px; text-wrap: balance; }
.page-title em { font-style: italic; font-weight: 400; background: linear-gradient(135deg, var(--acc-3), var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .12em; }
.page-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--muted); line-height: 1.6; max-width: 640px; margin: 0 auto; }

/* ---- sections ---- */
.section { padding: 70px 24px; position: relative; }
.section-inner { width: min(1080px, 100%); margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-family: 'JetBrains Mono', monospace; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--acc-2); background: rgba(139,92,246,.08); margin-bottom: 20px; }
.section-title { font-size: clamp(1.7rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; margin: 0 0 18px; max-width: 760px; margin-inline: auto; text-wrap: balance; overflow-wrap: break-word; }
.section-title em { font-style: italic; background: linear-gradient(135deg, var(--acc-3), var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .14em; margin-right: -.06em; }
.section-lead { font-size: 1.06rem; color: var(--muted); max-width: 620px; margin: 0 auto; line-height: 1.6; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
@media (max-width: 760px) { .reveal { transform: translateY(22px); transition-duration: .6s; } .reveal.d1,.reveal.d2,.reveal.d3,.reveal.d4 { transition-delay: 0s; } }

/* ---- prose card (generic content block) ---- */
.card { border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, rgba(139,92,246,.06), rgba(0,0,0,0)), rgba(10,6,18,.7); padding: 30px; backdrop-filter: blur(8px); }
.card h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 12px; }
.card p { color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 40px 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .88rem; width: min(1200px, 100%); margin: 0 auto; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { transition: color .25s var(--ease), opacity .25s var(--ease); position: relative; }
.footer-links a:hover { color: var(--ink); }
.footer-nav { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footer-legal { gap: 28px; }
.footer-legal a { color: var(--ink); font-weight: 600; }
.footer-more { font-size: .8rem; opacity: .55; gap: 18px; }
.footer-more a:hover { opacity: 1; }
.footer .heart { display: inline-block; color: var(--acc-2); animation: heart 1.4s ease-in-out infinite; }
@keyframes heart { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { transform: none !important; transition: opacity .6s var(--ease) !important; }
  .reveal.in { opacity: 1; }
}

/* ---- touch ---- */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
  .btn:hover, .nav-cta:hover { transform: none; }
}
@media (max-width: 760px) {
  .page-hero { padding: 130px 20px 30px; }
  .section { padding: 56px 20px; }
  .section-head { margin-bottom: 36px; }
  .nav { top: 12px; padding: 10px 12px 10px 18px; border-radius: 16px; }
  .footer { padding: 28px 20px; font-size: .82rem; text-align: center; justify-content: center; }
  .footer-links { justify-content: center; gap: 16px; }
  .footer-nav { align-items: center; width: 100%; }
  .orb { filter: blur(46px); opacity: .4; }
  .orb.a { width: 320px; height: 320px; } .orb.b { width: 280px; height: 280px; }
}
