/* theme.css — the one design system, on every page (2026-11-23).

   Loaded by the app, the landing, sign-in, the plans pages, terms, privacy and
   admin, AFTER each page's own stylesheet, so the whole product shares one
   background, one glass, one set of buttons and one motion.

   The look (from the references the user sent): deep warm black, a big
   orange light that moves slowly behind everything, a glowing horizon at the
   bottom, frosted glass that takes the colour of the light behind it, white
   for the main action in the product, orange for what converts (start, buy,
   upgrade), short and smooth motion.

   Performance is the first rule, because the user said it plainly: "que sea
   fluido". So:
     · the light moves with transform (composited on the GPU, nothing is
       repainted) — never with background-position, which repainted the whole
       screen every frame and was the main reason the app felt heavy;
     · a real backdrop blur only on small floating things (pills, menus,
       dialogs, toasts). Big panels and long lists get "painted glass": a
       translucent gradient with a lit edge — the same look, no per-frame cost. */

:root {
  --bg: #050302;
  --ink: #fff;
  --t2: #a3a09d;
  --t3: #7f7b78;
  --ac: #ff7a2e;              /* the orange */
  --ac-2: #ffb27a;            /* the light orange, for text */
  --ac-deep: #e85d14;

  /* painted glass: big surfaces */
  --glass-fill: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.022) 42%, rgba(255,255,255,.035));
  --glass-line: rgba(255,255,255,.1);
  --glass-hi: rgba(255,255,255,.14);
  --glass-shadow: 0 24px 60px -28px rgba(0,0,0,.75);
  --glass: inset 0 1px 0 var(--glass-hi), inset 0 0 0 1px var(--glass-line), var(--glass-shadow);

  /* real frosted glass: small floating things */
  --frost-fill: rgba(34,26,21,.46);
  --frost-blur: blur(24px) saturate(165%);

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --spring: cubic-bezier(.34,1.3,.64,1);

  /* how strong the bottom horizon is (the landing turns it up) */
  --hz: rgba(255,96,24,.20);
  --hz-2: rgba(235,78,18,.08);
}

html { background: var(--bg); }

/* ── the field ──────────────────────────────────────────────────────────────
   Four layers, all fixed behind the page:
     html::before  a big orange light, wandering    (transform only)
     body::before  a softer amber light, wandering  (transform only)
     body::after   still: the dark centre that keeps text readable, and the
                   glowing horizon along the bottom
     html::after   still: a film of grain, so the long gradients never band */
html::before, body::before, body::after, html::after {
  content: ""; position: fixed; pointer-events: none; z-index: -1;
  mix-blend-mode: normal; background-size: auto; background-position: 0 0;
  background-repeat: no-repeat; animation: none; opacity: 1;
}
html::before {
  width: 85vmax; height: 85vmax; left: -28vmax; top: -38vmax; inset: auto;
  left: -28vmax; top: -38vmax;
  border-radius: 50%;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,118,36,.20) 0%, rgba(255,108,30,.10) 30%, rgba(255,100,28,.035) 52%, rgba(255,100,28,0) 68%);
  will-change: transform;
  animation: fieldA 34s var(--ease) infinite alternate;
}
body::before {
  width: 75vmax; height: 75vmax; right: -30vmax; top: 18vh; inset: auto;
  right: -30vmax; top: 18vh;
  border-radius: 50%;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,170,90,.13) 0%, rgba(255,150,70,.06) 32%, rgba(255,140,60,.02) 52%, rgba(255,140,60,0) 68%);
  will-change: transform;
  animation: fieldB 46s var(--ease) infinite alternate;
}
@keyframes fieldA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(32vw, 18vh, 0) scale(1.12); }
  100% { transform: translate3d(58vw, 4vh, 0) scale(.94); }
}
@keyframes fieldB {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-36vw, -16vh, 0) scale(1.1); }
  100% { transform: translate3d(-12vw, 22vh, 0) scale(.96); }
}
body::after {
  inset: 0; width: auto; height: auto;
  background-image:
    radial-gradient(130% 46% at 50% 128%, var(--hz) 0%, var(--hz-2) 40%, rgba(0,0,0,0) 68%),
    radial-gradient(ellipse 58% 70% at 50% 46%, rgba(5,3,2,.78) 0%, rgba(5,3,2,.62) 40%, rgba(5,3,2,.25) 72%, rgba(5,3,2,0) 100%);
}
html::after {
  inset: 0; width: auto; height: auto; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='200'%20height='200'%3E%3Cfilter%20id='n'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='3'%20stitchTiles='stitch'/%3E%3C/filter%3E%3Crect%20width='200'%20height='200'%20filter='url%28%23n%29'/%3E%3C/svg%3E");
  background-size: 200px 200px; background-repeat: repeat;
  opacity: .05;
}

/* ── type ──────────────────────────────────────────────────────────────── */
::selection { background: rgba(255,122,46,.32); color: #fff; }
input, textarea { caret-color: var(--ac); }
.ao-grad-text {
  background: linear-gradient(100deg, #fff 42%, rgba(255,255,255,.7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── scrollbars: thin glass ─────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.13); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.24); background-clip: padding-box; border: 3px solid transparent; }

/* ── the light version ──────────────────────────────────────────────────────
   The dark product turned over: every surface, line and text follows at once,
   on every page. Photos, video and frames are turned back to their real
   colours. The light keeps glowing (warm peach on white) but stands still:
   moving under a whole-page filter would cost a repaint per frame. */
html[data-theme="light"] { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] img, html[data-theme="light"] video, html[data-theme="light"] iframe,
html[data-theme="light"] canvas, html[data-theme="light"] picture,
html[data-theme="light"] [style*="background-image"], html[data-theme="light"] .no-invert {
  filter: invert(1) hue-rotate(180deg);
}
html[data-theme="light"]::before, html[data-theme="light"] body::before { animation-play-state: paused; }
/* The light background is a soft cream, not a glaring white (user,
   2026-11-26: "en vez de blanco chillón, algo más crema y suave"). It is the
   dark base warmed up before the inversion: #160e05 comes out as #f7efe6.
   Only the background and its centre veil change; nothing else does. */
html[data-theme="light"] { --bg: #160e05; }
html[data-theme="light"] body::after {
  background-image:
    radial-gradient(130% 46% at 50% 128%, var(--hz) 0%, var(--hz-2) 40%, rgba(0,0,0,0) 68%),
    radial-gradient(ellipse 58% 70% at 50% 46%, rgba(22,14,5,.78) 0%, rgba(22,14,5,.62) 40%, rgba(22,14,5,.25) 72%, rgba(22,14,5,0) 100%);
}
/* the fade under the round buttons on phones is part of the background too */
html[data-theme="light"] .ao-topfade { background: linear-gradient(180deg, rgba(22,14,5,.78), rgba(22,14,5,0)); }

/* The switch between the two: a circle that opens from the button
   (platform.js / landing.js startViewTransition). The old view settles back
   and dims while the new one grows over it. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.ao-theme-fade { animation: aoThemeFade .45s var(--ease); }
@keyframes aoThemeFade { from { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  html::before, body::before { animation: none; }
}

/* ═══ the landing ═══════════════════════════════════════════════════════
   The page that sells: the horizon turned up, a planet rising behind the
   product (from the Vetra reference), orange for "start", glass cards. */
html[data-page="landing"] { --hz: rgba(255,96,24,.30); --hz-2: rgba(235,78,18,.12); }
[data-page="landing"] .nav.stuck {
  background: rgba(12,8,6,.55);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: rgba(255,255,255,.06);
}
/* main buttons: white (the user turned the filled orange down: "no me termina") */
[data-page="landing"] .btn.primary {
  background: #fff; color: #0a0a0a;
  box-shadow: 0 10px 30px -12px rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.08);
}
[data-page="landing"] .btn.primary:hover {
  background: #fff; transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px rgba(255,255,255,.5), 0 0 0 4px rgba(255,140,60,.12);
}
[data-page="landing"] .btn.primary::after { display: none; }
[data-page="landing"] .btn.ghost {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
/* the eyebrow over the headline: a glass pill with an orange dot */
[data-page="landing"] .hero .eyebrow {
  padding: 7px 15px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.1);
  color: #efe6df; letter-spacing: .06em;
}
/* headings: white that fades, word by word where the headline is split */
[data-page="landing"] .hero h1 .word > span,
[data-page="landing"] .hero h1:not(:has(.word)),
[data-page="landing"] .sec-head h2,
[data-page="landing"] .cta h2 {
  background: linear-gradient(100deg, #fff 42%, rgba(255,255,255,.7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* each word of the split headline is its own box: a top-down light there */
[data-page="landing"] .hero h1 .word > span { background-image: linear-gradient(180deg, #fff 45%, rgba(255,255,255,.66)); }
/* the planet: a dark sphere rising behind the product, lit along its rim */
[data-page="landing"] .hero { position: relative; isolation: isolate; }
[data-page="landing"] .hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 660px; width: 190vw; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, #060302 95.5%, rgba(160,60,15,.55) 99.2%, rgba(255,140,70,.0) 100%);
  box-shadow:
    0 -1px 0 0 rgba(255,160,100,.6),
    0 -24px 70px -8px rgba(255,104,30,.55),
    0 -80px 200px -20px rgba(255,90,20,.32);
}
/* glass cards */
[data-page="landing"] .card, [data-page="landing"] .plan, [data-page="landing"] .q,
[data-page="landing"] .band, [data-page="landing"] .cta {
  background: var(--glass-fill);
  border-color: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--glass-shadow);
}
[data-page="landing"] .card, [data-page="landing"] .plan { border-radius: 24px; }
[data-page="landing"] .plan.featured {
  background: linear-gradient(165deg, rgba(255,130,55,.17), rgba(255,255,255,.035) 46%, rgba(255,255,255,.02));
  border-color: rgba(255,150,80,.42);
  box-shadow: inset 0 1px 0 rgba(255,200,160,.25), 0 30px 80px -30px rgba(255,100,30,.4);
}
[data-page="landing"] .window {
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(24,18,14,.92), rgba(8,6,5,.96));
  box-shadow: 0 60px 140px -20px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.1);
}
[data-page="landing"] .float {
  background: rgba(30,22,17,.62);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-color: rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 50px -14px rgba(0,0,0,.7);
}
[data-page="landing"] .progress { background: linear-gradient(90deg, var(--ac), #fff); }
@media (max-width: 720px) {
  [data-page="landing"] .hero::before { top: 640px; width: 260vw; }
}

/* ═══ sign-in, plans, terms, privacy ════════════════════════════════════ */
html[data-page="pages"] { --hz: rgba(255,96,24,.24); }
[data-page="pages"] h1 {
  background: linear-gradient(100deg, #fff 42%, rgba(255,255,255,.7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* sign-in: the frosted card from the references */
[data-page="pages"] .page > .card:not(.wide):not(.xwide) {
  padding: 38px 34px 30px; border-radius: 30px;
  background: linear-gradient(160deg, rgba(48,34,26,.55), rgba(18,13,10,.6));
  -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 0 0 1px rgba(255,255,255,.1), 0 50px 120px -30px rgba(0,0,0,.85);
}
[data-page="pages"] .field input, [data-page="pages"] .code-form input {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); border-radius: 14px;
}
[data-page="pages"] .field input:focus, [data-page="pages"] .code-form input:focus {
  border-color: rgba(255,170,110,.5); box-shadow: 0 0 0 4px rgba(255,122,46,.1);
}
[data-page="pages"] .btn { border-radius: 999px; }
[data-page="pages"] .btn.ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
/* plans: glass cards, the chosen one warm, its button orange */
[data-page="pages"] .plan, [data-page="pages"] .reassure, [data-page="pages"] .value-strip, [data-page="pages"] .panel {
  background: var(--glass-fill); border-color: rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), var(--glass-shadow);
}
[data-page="pages"] .plan { border-radius: 24px; }
[data-page="pages"] .plan.featured {
  background: linear-gradient(165deg, rgba(255,130,55,.17), rgba(255,255,255,.035) 46%, rgba(255,255,255,.02));
  border-color: rgba(255,150,80,.42);
  box-shadow: inset 0 1px 0 rgba(255,200,160,.25), 0 30px 80px -30px rgba(255,100,30,.4);
}
[data-page="pages"] .plan .btn.primary {
  background: #fff; color: #0a0a0a;
  box-shadow: 0 10px 30px -12px rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.08); border-color: transparent;
}
[data-page="pages"] .worth {
  background: linear-gradient(165deg, rgba(255,130,55,.12), rgba(255,255,255,.025) 55%);
  border-color: rgba(255,150,80,.3);
  box-shadow: inset 0 1px 0 rgba(255,200,160,.18);
}
[data-page="pages"] .toggle { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
[data-page="pages"] .trust-row { animation: none; }
[data-page="landing"] .theme-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.06); color: var(--t2); cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  transition: background .2s, color .2s, transform .28s var(--ease-out);
}
[data-page="landing"] .theme-btn:hover { background: rgba(255,255,255,.11); color: #fff; }
[data-page="landing"] .theme-btn:active { transform: scale(.94); }
[data-page="landing"] .theme-btn svg { width: 16px; height: 16px; }
[data-page="landing"] .theme-btn .sun { display: none; }
html[data-theme="light"] .theme-btn .sun { display: block; }
html[data-theme="light"] .theme-btn .moon { display: none; }

/* The logos are white marks, not photographs: they turn over with the page. */
html[data-theme="light"] .brand img, html[data-theme="light"] img.logo,
html[data-theme="light"] .logo img, html[data-theme="light"] img[src*="logo"] { filter: none; }

@media (max-width: 720px) {
  [data-page="landing"] .hero::before { top: 720px; }
  /* the long eyebrow wraps on a phone: a rounded box instead of a broken pill */
  [data-page="landing"] .hero .eyebrow { border-radius: 16px; text-align: center; line-height: 1.5; font-size: 10px; letter-spacing: .05em; padding: 7px 14px; }
}
