/* =====================================================================
   Lumo · Home "Liquid Glass" — reproducción fiel de la maqueta aprobada.
   Todo va scopeado bajo .lhome para no chocar con el editor real.
   ===================================================================== */
.lhome {
  --lg-amber: #f5b32f;
  --lg-violet: #8b7cff;
  --lg-glow-amber: rgba(245,179,47,.25);
  --lg-ink: #111114;
  --lg-ink-3: #5d626c;
  --lg-ink-4: #8a909b;
  --lg-glass: rgba(255,255,255,0.55);
  --lg-glass-strong: rgba(255,255,255,0.74);
  --lg-glass-quiet: rgba(255,255,255,0.40);
  --lg-brd: rgba(255,255,255,0.7);
  --lg-brd-soft: rgba(20,24,40,0.07);
  --lg-inset: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 1px rgba(255,255,255,0.25);
  --lg-sat: 165%;
  --lg-blur: 26px;
  --lg-shadow-sm: 0 4px 14px rgba(38,44,66,0.07);
  --lg-shadow: 0 12px 36px -10px rgba(38,44,66,0.14), 0 3px 10px rgba(38,44,66,0.05);
  --lg-shadow-lg: 0 40px 90px -30px rgba(38,44,66,0.28), 0 12px 30px -16px rgba(38,44,66,0.16);
  --lg-mono: "JetBrains Mono", "SF Mono", ui-monospace, "Courier New", monospace;

  display: flex; flex-direction: column; align-items: center;
  padding: 0 0 0; text-align: center;
}

/* nav home icon → mascota más grande, sin recuadro */
.landing .land-home img { height: 48px; width: auto; filter: drop-shadow(0 5px 10px rgba(40,30,80,.22)); }

/* botón Iniciar sesión → píldora de cristal con texto legible */
.landing .land-nav .land-login {
  color: #111114;
  background: rgba(255,255,255,.66);
  -webkit-backdrop-filter: blur(14px) saturate(165%);
  backdrop-filter: blur(14px) saturate(165%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 4px 14px -8px rgba(38,44,66,.2), inset 0 1px 0 rgba(255,255,255,.8);
}
.landing .land-nav .land-login:hover {
  color: #111114;
  background: #fff;
  border-color: rgba(255,255,255,.95);
}
html[data-mode="dark"] .landing .land-nav .land-login {
  color: #f4f5f7; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14);
}

/* ===================== Hero ===================== */
.lhome .lh-hero {
  position: relative; z-index: 5;
  max-width: 980px; margin: 0 auto;
  padding: 120px 24px 0;
  display: flex; flex-direction: column; align-items: center;
}
.lhome .lh-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--lg-mono); font-size: 13px; font-weight: 500; letter-spacing: .08em;
  color: var(--lg-ink-3); text-transform: uppercase;
  padding: 9px 18px; border-radius: 999px;
  background: var(--lg-glass-strong);
  -webkit-backdrop-filter: blur(14px) saturate(var(--lg-sat));
  backdrop-filter: blur(14px) saturate(var(--lg-sat));
  border: 1px solid var(--lg-brd);
  box-shadow: var(--lg-shadow-sm), var(--lg-inset);
}
.lhome .lh-badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--lg-amber); box-shadow: 0 0 0 4px var(--lg-glow-amber);
  animation: lh-pulse 2.6s ease-in-out infinite;
}
@keyframes lh-pulse { 0%,100%{ box-shadow: 0 0 0 3px var(--lg-glow-amber);} 50%{ box-shadow: 0 0 0 6px rgba(245,179,47,.10);} }

.lhome .lh-claim {
  margin: 30px 0 0; padding: 0;
  font-size: clamp(52px, 8.2vw, 104px);
  line-height: 0.98; letter-spacing: -.045em; font-weight: 800;
  color: var(--lg-ink); text-wrap: balance;
}
.lhome .lh-grad {
  font-style: normal;
  /* aire lateral para que background-clip:text no recorte la "s" final */
  display: inline-block;
  padding: 0 .07em; margin: 0 -.07em;
  background: linear-gradient(100deg, #5b8cff 0%, #8b7cff 32%, #c98fe0 56%, #f1a06a 78%, #f5b32f 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lhome .lh-sub {
  margin: 26px 0 0; max-width: 600px;
  font-size: clamp(17px, 2.1vw, 20px); line-height: 1.5; font-weight: 400;
  color: var(--lg-ink-3); letter-spacing: -.01em; text-wrap: balance;
}
.lhome .lh-sub strong { color: var(--lg-ink); font-weight: 600; }

.lhome .lh-cta { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* pills */
.lhome .pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 16.5px; font-weight: 600; letter-spacing: -.01em;
  padding: 16px 30px; border-radius: 999px; cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid var(--lg-brd);
}
.lhome .pill.glass-btn {
  background: var(--lg-glass-strong);
  -webkit-backdrop-filter: blur(16px) saturate(var(--lg-sat));
  backdrop-filter: blur(16px) saturate(var(--lg-sat));
  box-shadow: var(--lg-shadow-sm), var(--lg-inset); color: var(--lg-ink);
}
.lhome .pill.glass-btn:hover { transform: translateY(-1px); box-shadow: var(--lg-shadow), var(--lg-inset); }
.lhome .pill.dark {
  background: linear-gradient(180deg, #2a2a2f 0%, #131316 100%);
  color: #fff; border-color: rgba(0,0,0,.5);
  box-shadow: 0 10px 26px -8px rgba(15,15,20,.5), inset 0 1px 0 rgba(255,255,255,.18), inset 0 -1px 2px rgba(0,0,0,.4);
}
.lhome .pill.dark:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -8px rgba(15,15,20,.55), inset 0 1px 0 rgba(255,255,255,.2); }
.lhome .pill .arrow { transition: transform .2s ease; }
.lhome .pill:hover .arrow { transform: translateX(3px); }
.lhome .pill .play { width: 20px; height: 20px; border-radius: 50%; background: var(--lg-ink); color: #fff; display: grid; place-items: center; font-size: 9px; }

/* feature card */
.lhome .lh-feats {
  margin-top: 56px; width: 100%; max-width: 880px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 24px; overflow: hidden;
  background: var(--lg-glass-quiet);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat));
  border: 1px solid var(--lg-brd);
  box-shadow: var(--lg-shadow), var(--lg-inset);
}
.lhome .lh-feat {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 26px; text-align: left;
  border-right: 1px solid var(--lg-brd-soft);
}
.lhome .lh-feat:last-child { border-right: none; }
.lhome .lh-feat .ic {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: grid; place-items: center;
  background: rgba(255,255,255,.6); border: 1px solid var(--lg-brd);
  box-shadow: var(--lg-inset);
}
.lhome .lh-feat .ic svg { width: 19px; height: 19px; }
.lhome .lh-feat h3 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--lg-ink); margin: 0; }
.lhome .lh-feat p { font-size: 13.5px; color: var(--lg-ink-4); margin: 2px 0 0; }

/* ===================== Editor preview ===================== */
.lhome .lh-stage {
  position: relative; z-index: 5;
  margin: 80px auto 0; padding: 0 24px;
  max-width: 1240px; width: 100%;
  perspective: 2000px;
}
.lhome .window {
  display: block; text-decoration: none; color: inherit; cursor: pointer;
  border-radius: 20px; overflow: hidden; text-align: left;
  background: var(--lg-glass-strong);
  -webkit-backdrop-filter: blur(30px) saturate(var(--lg-sat));
  backdrop-filter: blur(30px) saturate(var(--lg-sat));
  border: 1px solid var(--lg-brd);
  box-shadow: var(--lg-shadow-lg), var(--lg-inset);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lhome .window:hover { transform: translateY(-4px); box-shadow: 0 54px 110px -36px rgba(38,44,66,.34), var(--lg-inset); }
.lhome .winbar {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 18px; border-bottom: 1px solid var(--lg-brd-soft);
}
.lhome .lights { display: flex; gap: 8px; }
.lhome .lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.lhome .lights .r { background: #ff5f57; } .lhome .lights .y { background: #febc2e; } .lhome .lights .g { background: #28c840; }
.lhome .urlbar {
  flex: 1; max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--lg-ink-4);
  padding: 8px 16px; border-radius: 10px;
  background: rgba(255,255,255,.45); border: 1px solid var(--lg-brd-soft);
}
.lhome .urlbar svg { width: 12px; height: 12px; }
.lhome .wintools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lhome .wbtn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--lg-ink-3); padding: 7px 12px; border-radius: 9px; }
.lhome .wbtn svg { width: 14px; height: 14px; }
.lhome .wbtn.dark { background: linear-gradient(180deg,#2a2a2f,#161619); color: #fff; box-shadow: 0 4px 12px -4px rgba(0,0,0,.4); }

.lhome .editor { display: grid; grid-template-columns: 248px 1fr 270px; min-height: 420px; }

/* sidebar */
.lhome .side { padding: 20px 16px; border-right: 1px solid var(--lg-brd-soft); }
.lhome .proj { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; }
.lhome .proj .av { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.6); border: 1px solid var(--lg-brd); display: grid; place-items: center; box-shadow: var(--lg-inset); }
.lhome .proj .av img { width: 20px; height: 20px; }
.lhome .proj b { font-size: 14.5px; font-weight: 600; display: block; letter-spacing: -.01em; }
.lhome .proj span { font-size: 12px; color: var(--lg-ink-4); }
.lhome .lh-hd { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--lg-ink-3); padding: 4px 8px; margin-bottom: 6px; }
.lhome .lh-hd .add { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--lg-ink-4); }
.lhome .scenes { display: flex; flex-direction: column; gap: 2px; }
.lhome .scene-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; font-size: 13.5px; color: #2b2b2f; }
.lhome .scene-row .n { color: var(--lg-ink-4); font-size: 12.5px; width: 12px; flex: none; }
.lhome .scene-row.on { background: rgba(255,255,255,.62); border: 1px solid var(--lg-brd); box-shadow: var(--lg-shadow-sm), var(--lg-inset); font-weight: 600; }
.lhome .scene-row .hl { color: var(--lg-violet); }
.lhome .scene-row .blue { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: #4f7dff; }

/* doc */
.lhome .lh-doc { display: flex; flex-direction: column; min-width: 0; }
.lhome .fmt { display: flex; align-items: center; gap: 4px; padding: 12px 22px; border-bottom: 1px solid var(--lg-brd-soft); }
.lhome .fmt .fbtn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--lg-ink-3); font-size: 14px; }
.lhome .fmt b { font-weight: 700; } .lhome .fmt i { font-style: italic; font-family: Georgia, serif; } .lhome .fmt u { text-decoration: underline; }
.lhome .fmt .sep { width: 1px; height: 18px; background: var(--lg-brd-soft); margin: 0 6px; }
.lhome .fmt svg { width: 16px; height: 16px; }

.lhome .script { padding: 34px clamp(24px, 5vw, 56px); font-family: var(--lg-mono); font-size: 14px; line-height: 1.75; color: #26221c; }
.lhome .script .sl { display: flex; gap: 22px; font-weight: 700; color: #3f6dd8; margin-bottom: 14px; }
.lhome .script .sl .num { color: var(--lg-ink-4); }
.lhome .script p { margin: 0 0 14px; max-width: 52ch; }
.lhome .script .lh-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--lg-amber); vertical-align: text-bottom; margin-left: 1px; animation: lh-blink 1.1s steps(1) infinite; }
@keyframes lh-blink { 50% { opacity: 0; } }

/* notes */
.lhome .notes { padding: 18px 16px; border-left: 1px solid var(--lg-brd-soft); display: flex; flex-direction: column; gap: 16px; }
.lhome .ntabs { display: flex; align-items: center; gap: 4px; }
.lhome .ntabs .t { font-size: 13px; font-weight: 500; color: var(--lg-ink-4); padding: 6px 11px; border-radius: 8px; }
.lhome .ntabs .t.on { color: var(--lg-ink); background: rgba(255,255,255,.62); border: 1px solid var(--lg-brd); font-weight: 600; box-shadow: var(--lg-inset); }
.lhome .ntabs .chev { margin-left: auto; color: var(--lg-ink-4); }
.lhome .note-input { font-size: 13px; color: var(--lg-ink-4); padding: 11px 14px; border-radius: 11px; background: rgba(255,255,255,.42); border: 1px solid var(--lg-brd-soft); text-align: left; }
.lhome .resumen { border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.5); border: 1px solid var(--lg-brd); box-shadow: var(--lg-inset); }
.lhome .resumen .rh { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.lhome .resumen .rh .x { color: var(--lg-ink-4); }
.lhome .stat { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 5px 0; }
.lhome .stat span { color: var(--lg-ink-4); } .lhome .stat b { font-weight: 600; font-variant-numeric: tabular-nums; }
.lhome .bar { height: 6px; border-radius: 999px; background: rgba(20,24,40,.08); margin-top: 12px; overflow: hidden; }
.lhome .bar i { display: block; height: 100%; width: 62%; border-radius: 999px; background: linear-gradient(90deg, #4f7dff, #8b7cff); }

/* ===================== Invite ===================== */
.lhome .invite {
  position: relative; z-index: 6;
  display: flex; flex-direction: column; align-items: center;
  padding: 96px 24px 40px;
}
.lhome .bubble {
  position: relative;
  font-size: clamp(20px, 2.6vw, 27px); font-weight: 600; letter-spacing: -.02em; color: var(--lg-ink);
  padding: 20px 30px; border-radius: 26px; line-height: 1.18;
  background: var(--lg-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(var(--lg-sat));
  backdrop-filter: blur(20px) saturate(var(--lg-sat));
  border: 1px solid var(--lg-brd);
  box-shadow: var(--lg-shadow), var(--lg-inset);
  animation: lh-bob 5.5s ease-in-out infinite;
}
.lhome .bubble::after {
  content: ""; position: absolute; left: 42px; bottom: -10px;
  width: 22px; height: 22px; border-radius: 0 0 8px 0;
  background: var(--lg-glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(var(--lg-sat));
  backdrop-filter: blur(20px) saturate(var(--lg-sat));
  border-right: 1px solid var(--lg-brd); border-bottom: 1px solid var(--lg-brd);
  transform: rotate(45deg);
}
.lhome .invite-mascot {
  width: 168px; margin-top: 26px; pointer-events: none; height: auto;
  animation: lh-bob 6s ease-in-out infinite .4s;
}
@keyframes lh-bob { 0%,100%{ transform: translateY(0) rotate(-3deg);} 50%{ transform: translateY(-14px) rotate(2deg);} }

@media (prefers-reduced-motion: reduce) {
  .lhome .bubble, .lhome .invite-mascot, .lhome .lh-badge .dot { animation: none; }
}

/* ===================== Dark mode ===================== */
html[data-mode="dark"] .lhome {
  --lg-ink: #f4f5f7;
  --lg-ink-3: #aeb3bd;
  --lg-ink-4: #7e838d;
  --lg-glass: rgba(40,43,50,0.5);
  --lg-glass-strong: rgba(44,47,55,0.62);
  --lg-glass-quiet: rgba(40,43,50,0.38);
  --lg-brd: rgba(255,255,255,0.10);
  --lg-brd-soft: rgba(255,255,255,0.07);
  --lg-inset: inset 0 1px 0 rgba(255,255,255,0.06);
  --lg-shadow: 0 12px 36px -10px rgba(0,0,0,0.5);
  --lg-shadow-lg: 0 40px 90px -30px rgba(0,0,0,0.6);
  --lg-shadow-sm: 0 4px 14px rgba(0,0,0,0.3);
}
html[data-mode="dark"] .lhome .lh-feat .ic,
html[data-mode="dark"] .lhome .proj .av,
html[data-mode="dark"] .lhome .urlbar,
html[data-mode="dark"] .lhome .scene-row.on,
html[data-mode="dark"] .lhome .resumen,
html[data-mode="dark"] .lhome .note-input { background: rgba(255,255,255,.05); }
html[data-mode="dark"] .lhome .script { color: #d8d3ca; }

/* ===================== Responsive ===================== */
@media (max-width: 1080px) {
  .lhome .editor { grid-template-columns: 220px 1fr; }
  .lhome .notes { display: none; }
}
@media (max-width: 860px) {
  .lhome .lh-hero { padding-top: 96px; }
  .lhome .editor { grid-template-columns: 1fr; }
  .lhome .side { display: none; }
  .lhome .lh-feats { grid-template-columns: 1fr; }
  .lhome .lh-feat { border-right: none; border-bottom: 1px solid var(--lg-brd-soft); }
  .lhome .lh-feat:last-child { border-bottom: none; }
  .lhome .invite-mascot { width: 124px; }
}
