/* landing.css · TLSHive Landing Público · Estética aurora v7
 * Paleta: #020617 base, #c4b5fd lilac, #7dd3fc sky, #fed7aa/#fde68a amber
 * Tipografía: Plus Jakarta Sans (display) + JetBrains Mono (código/labels)
 * Cumple VME-8: ≤500 líneas CSS
 */

/* ===== Tokens ===== */
:root {
  --bg-base: #020617;
  --bg-surface: rgba(255, 255, 255, 0.04);
  --bg-surface-hover: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.1);
  --border-soft2: rgba(255, 255, 255, 0.2);
  --text-strong: #f8fafc;
  --text-soft: rgba(255, 255, 255, 0.7);
  --text-faint: rgba(255, 255, 255, 0.5);
  --lilac: #c4b5fd;
  --sky: #7dd3fc;
  --amber: #fde68a;
  --amber-soft: #fed7aa;
  --pink: #fbcfe8;
  --indigo: #a5b4fc;
  --nvidia: #76b900;
  --shadow-glow: 0 20px 80px rgba(0, 0, 0, 0.5);
  --shadow-amber: 0 6px 24px rgba(253, 230, 138, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
}

/* ===== Reset / Base ===== */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-base);
  color: var(--text-strong);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { overflow-x: hidden; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== Aurora background blobs ===== */
.aurora { filter: blur(40px); opacity: 0.6; will-change: transform; }

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.15); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -40px) scale(1.08); }
}

/* ===== Slide dots (header) ===== */
.slide-dot {
  height: 10px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer; padding: 0;
}
.slide-dot:hover { background: rgba(255, 255, 255, 0.6); }
.slide-dot.active { width: 32px; background: #fff; }

/* ===== Cards / Surfaces ===== */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.glass-card:hover { background: var(--bg-surface-hover); }

.evo-card { position: relative; overflow: hidden; padding: 28px; }
.evo-card .evo-num { position: absolute; top: 18px; right: 18px; font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: 0.4; }
.evo-card .evo-icon {
  width: 48px; height: 48px; border-radius: 16px;
  background: linear-gradient(135deg, var(--lilac), var(--sky));
  color: var(--bg-base);
  display: grid; place-items: center; margin-bottom: 24px;
  font-size: 22px;
}
.evo-card .evo-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.evo-card .evo-desc { font-size: 14px; line-height: 1.5; color: var(--text-soft); margin-bottom: 24px; }
.evo-card .evo-todo {
  background: rgba(2, 6, 23, 0.6); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 1.4;
  color: rgba(253, 224, 138, 0.8);
}
.evo-arrow {
  position: absolute; top: 50%; right: -12px; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 9999px;
  background: #fff; color: var(--bg-base);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; z-index: 10;
}

/* ===== Install links ===== */
.install-link {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border-radius: 24px; padding: 20px;
  transition: background 0.25s ease;
  text-decoration: none; color: inherit;
}
.install-link:hover { background: var(--bg-surface-hover); }
.install-link .il-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: #fff; color: var(--bg-base);
  display: grid; place-items: center;
}
.install-link .il-icon.nvidia { background: var(--nvidia); color: #fff; }

/* ===== Org grid ===== */
.org-card {
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border-radius: 24px; padding: 20px;
  text-align: center;
}
.org-card .org-avatar {
  width: 56px; height: 56px; border-radius: 9999px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--lilac), var(--sky));
  display: grid; place-items: center;
  color: var(--bg-base); font-size: 22px;
}
.org-card .org-name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.org-card .org-role { font-size: 11px; color: var(--text-soft); font-family: 'JetBrains Mono', monospace; }

.cap-card {
  border: 1px solid var(--border-soft);
  background: rgba(2, 6, 23, 0.4);
  border-radius: 20px; padding: 16px;
  display: flex; align-items: center; gap: 12px;
}
.cap-card .cap-avatar {
  width: 36px; height: 36px; border-radius: 9999px;
  background: var(--bg-surface-hover);
  display: grid; place-items: center;
  color: var(--sky); font-size: 14px;
  flex-shrink: 0;
}
.cap-card .cap-info { min-width: 0; flex: 1; }
.cap-card .cap-name { font-size: 13px; font-weight: 700; }
.cap-card .cap-client { font-size: 11px; color: var(--text-faint); font-family: 'JetBrains Mono', monospace; }

/* ===== Reels ===== */
.reel-card {
  flex: 0 0 400px;
  height: 680px;
  border: 1px solid var(--border-soft);
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.reel-card .reel-image {
  width: 100%; height: 480px;
  background-size: cover; background-position: center;
  background-color: rgba(2, 6, 23, 0.6);
  position: relative;
}
.reel-card .reel-state {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 10px; border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
  backdrop-filter: blur(8px);
}
.reel-state.pendiente { background: rgba(253, 224, 138, 0.2); border: 1px solid var(--amber-soft); color: var(--amber); }
.reel-state.validado { background: rgba(158, 206, 106, 0.2); border: 1px solid #9ece6a; color: #9ece6a; }
.reel-state.generando { background: rgba(125, 211, 252, 0.2); border: 1px solid var(--sky); color: var(--sky); }
.reel-card .reel-body {
  padding: 16px; flex: 1;
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.reel-card .reel-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-faint); }
.reel-card .reel-title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.reel-card .reel-fuente { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-soft); word-break: break-all; }
.reel-card .reel-actions { display: flex; gap: 8px; margin-top: auto; }
.reel-card .reel-btn {
  flex: 1; padding: 8px 12px; border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  border: 1px solid var(--border-soft); background: var(--bg-surface);
  color: var(--text-strong); cursor: pointer;
  transition: background 0.2s ease;
}
.reel-card .reel-btn:hover { background: var(--bg-surface-hover); }
.reel-card .reel-btn.primary { background: #fff; color: var(--bg-base); border-color: #fff; }
.reel-card .reel-btn.primary:hover { background: var(--text-strong); }
.reel-card .reel-empty {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  text-align: center; padding: 20px;
}

/* ===== LLM log ===== */
.llm-log-row {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-soft);
  border-radius: 12px; padding: 8px 12px;
  word-break: break-all;
}

/* ===== Login modal glass amber ===== */
#login-modal { display: none; }
#login-modal.open { display: flex; }
#login-modal .modal-card {
  background: linear-gradient(135deg, rgba(253, 230, 138, 0.1), rgba(254, 215, 170, 0.05));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(253, 230, 138, 0.3);
  border-radius: 32px;
  box-shadow: 0 20px 80px rgba(253, 230, 138, 0.2);
}
#login-modal a:hover { background: rgba(253, 230, 138, 0.08) !important; border-color: rgba(253, 230, 138, 0.4) !important; }

/* ===== Toast ===== */
#toast { transform: translate(-50%, 20px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
  .reel-card { flex: 0 0 320px; height: 560px; }
  .reel-card .reel-image { height: 400px; }
  .evo-arrow { display: none; }
}

/* ===== Selection / focus ===== */
::selection { background: rgba(196, 181, 253, 0.3); color: #fff; }
button:focus-visible, a:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
