/* Portada pública (/). Todo con prefijo lp- para no chocar con el dashboard. */

.lp-wrap { max-width: 1180px; margin: 0 auto; position: relative; z-index: 1; }

.lp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: var(--accent);
  border: 1px solid rgba(167, 139, 250, .25);
}
.lp-status-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--text-faint); }
.lp-status-dot.is-online { background: var(--success); box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: lp-pulse 2.4s infinite; }

.lp-hero h1, .lp-section-head h2, .lp-spotlight h3, .lp-cta h2 { text-wrap: balance; }
.lp-hero h1 .lp-grad { white-space: nowrap; }

.lp-grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero ---------- */

.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 36px 0 72px;
}

.lp-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.lp-hero h1 {
  margin: 0;
  font: 700 clamp(36px, 5.2vw, 60px)/1.04 var(--font-heading);
  letter-spacing: -.035em;
  color: var(--text-strong);
}
.lp-hero-lead { margin: 0; max-width: 520px; font-size: 17.5px; line-height: 1.65; color: var(--text-muted); }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.lp-trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 4px 0 0; padding: 0; list-style: none; }
.lp-trust li { display: flex; align-items: center; gap: 7px; font: 500 13px/1 var(--font-body); color: var(--text-muted); }
.lp-trust li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid var(--success-border);
}

/* ---------- Maqueta tipo Discord ---------- */

.lp-hero-visual { position: relative; }
.lp-hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4% 10%;
  background: radial-gradient(closest-side, rgba(124, 92, 245, .45), rgba(56, 189, 248, .12) 60%, transparent);
  filter: blur(40px);
  z-index: 0;
}

.lp-window {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #1b1630, #120f20);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  overflow: hidden;
}
.lp-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, .02);
}
.lp-window-bar .dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
.lp-window-channel { margin-left: 10px; font: 600 13px/1 var(--font-body); color: var(--text); }
.lp-window-channel::before { content: "# "; color: var(--text-faint); }
.lp-window-body { display: flex; flex-direction: column; gap: 18px; padding: 20px 18px 22px; }

.lp-msg { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }
.lp-avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--bg-input);
  display: grid; place-items: center;
  font: 700 14px/1 var(--font-heading);
  color: #120c22;
}
.lp-avatar.is-bot { padding: 4px; background: rgba(167, 139, 250, .12); }
.lp-avatar.a1 { background: linear-gradient(135deg, #f472b6, #fb923c); }
.lp-avatar.a2 { background: linear-gradient(135deg, #34d399, #38bdf8); }

.lp-msg-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 4px; }
.lp-author { font: 600 14px/1.2 var(--font-body); color: var(--text-strong); }
.lp-author.is-bot { color: #c4b5fd; }
.lp-bot-tag { font: 700 9px/1 var(--font-mono); color: #fff; background: #5865f2; padding: 3px 5px; border-radius: 4px; }
.lp-time { font: 400 11px/1 var(--font-body); color: var(--text-faint); }
.lp-msg-text { font-size: 14px; line-height: 1.5; color: var(--text); }
.lp-mention { color: #c9cdfb; background: rgba(88, 101, 242, .28); padding: 0 3px; border-radius: 4px; font-weight: 500; }

.lp-embed {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 6px;
  border-left: 4px solid var(--accent);
  background: rgba(0, 0, 0, .25);
  max-width: 400px;
}
.lp-embed.is-gold { border-left-color: #fbbf24; }
.lp-embed-title { font: 700 14px/1.3 var(--font-body); color: var(--text-strong); margin-bottom: 4px; }
.lp-embed-desc { font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.lp-embed-desc b { color: var(--text); }

.lp-welcome-card {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 400px;
  padding: 16px 18px;
  border-radius: 10px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(56, 189, 248, .35), transparent 55%),
    linear-gradient(120deg, #3b2a7a, #1b1538);
  border: 1px solid rgba(255, 255, 255, .06);
}
.lp-welcome-card .lp-avatar { width: 46px; height: 46px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.lp-welcome-name { font: 700 17px/1.2 var(--font-heading); color: #fff; }
.lp-welcome-sub { font: 500 12px/1.3 var(--font-body); color: rgba(255, 255, 255, .72); }

.lp-reactions { display: flex; gap: 6px; margin-top: 8px; }
.lp-reaction {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 8px;
  font: 600 12.5px/1.4 var(--font-body);
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border: 1px solid transparent;
}
.lp-reaction.is-active { background: rgba(88, 101, 242, .2); border-color: rgba(88, 101, 242, .6); color: #dfe2ff; }

.lp-dbuttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lp-dbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  font: 600 13px/1.2 var(--font-body);
  color: #fff;
  background: #4e5058;
}
.lp-dbtn.is-primary { background: #5865f2; }
.lp-dbtn.is-danger { background: #da373c; }

.lp-float {
  position: absolute;
  z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font: 500 12.5px/1.3 var(--font-body);
  color: var(--text);
  background: rgba(24, 19, 40, .92);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
.lp-float b { color: var(--text-strong); }
.lp-float-1 { top: -18px; right: -14px; animation: lp-float 6s ease-in-out infinite; }
.lp-float-2 { bottom: -20px; left: -28px; animation: lp-float 7s ease-in-out infinite reverse; }

/* ---------- Secciones ---------- */

.lp-section { padding: 72px 0; }
.lp-section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lp-section-head h2 { margin: 0; font: 700 clamp(26px, 3.4vw, 36px)/1.15 var(--font-heading); letter-spacing: -.025em; color: var(--text-strong); }
.lp-section-head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); }

/* Pasos */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.lp-step {
  position: relative;
  padding: 28px 26px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(32, 26, 52, .6), rgba(16, 13, 27, .6));
}
.lp-step-num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 18px;
  border-radius: 12px;
  font: 700 16px/1 var(--font-heading);
  color: #120c22;
  background: var(--accent-grad);
  box-shadow: 0 10px 24px -10px rgba(124, 92, 245, .9);
}
.lp-step h3 { margin: 0 0 8px; font: 600 18px/1.3 var(--font-heading); color: var(--text-strong); }
.lp-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* Bloques destacados */
.lp-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 44px 0;
}
.lp-spotlight.is-reversed .lp-spotlight-text { order: 2; }
.lp-spotlight-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lp-kicker { font: 700 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-3); }
.lp-spotlight h3 { margin: 0; font: 700 clamp(24px, 2.8vw, 32px)/1.15 var(--font-heading); letter-spacing: -.02em; color: var(--text-strong); }
.lp-spotlight p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--text-muted); }
.lp-bullets { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-bullets li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.lp-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 12px; height: 12px;
  border-radius: 4px;
  background: var(--accent-grad);
}
.lp-spotlight-visual { position: relative; }
.lp-spotlight-visual > .lp-window { max-width: 480px; margin: 0 auto; }
.lp-spotlight-visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(closest-side, rgba(124, 92, 245, .3), transparent);
  filter: blur(36px);
}

/* Flujo de automatización */
.lp-flow { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; max-width: 420px; margin: 0 auto; }
.lp-flow-node {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, #1d1734, #141026);
  font: 500 14.5px/1.45 var(--font-body);
  color: var(--text-strong);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8);
}
.lp-flow-kicker { display: block; margin-bottom: 4px; font: 700 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
.lp-flow-node.is-trigger { border-color: rgba(56, 189, 248, .45); }
.lp-flow-node.is-trigger .lp-flow-kicker { color: var(--accent-3); }
.lp-flow-node.is-condition .lp-flow-kicker { color: var(--warning); }
.lp-flow-node.is-action { border-color: rgba(167, 139, 250, .5); }
.lp-flow-node.is-action .lp-flow-kicker { color: var(--accent); }
.lp-flow-actions { display: flex; flex-direction: column; gap: 6px; }
.lp-flow-actions span::before { content: "→ "; color: var(--accent); }
.lp-flow-line { position: relative; height: 30px; margin-left: 34px; width: 2px; background: linear-gradient(180deg, rgba(56, 189, 248, .6), rgba(167, 139, 250, .6)); }
.lp-flow-line::after { content: ""; position: absolute; bottom: -2px; left: -3px; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

/* Mini panel de módulos */
.lp-panel-mock { position: relative; z-index: 1; padding: 8px; }
.lp-panel-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
}
.lp-panel-row:last-child { border-bottom: none; }
.lp-panel-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft-bg); font-size: 17px; }
.lp-panel-name { flex: 1; font: 600 14px/1.3 var(--font-body); color: var(--text-strong); }
.lp-panel-name small { display: block; font: 400 12px/1.3 var(--font-body); color: var(--text-faint); }
.lp-switch { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); flex: none; }
.lp-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: #d4cfe6; transition: transform .2s; }
.lp-switch.is-on { background: var(--accent-grad); }
.lp-switch.is-on::after { transform: translateX(16px); background: #fff; }

/* Cuadrícula de módulos */
.lp-cat { margin-top: 44px; }
.lp-cat:first-of-type { margin-top: 0; }
.lp-cat-head { display: flex; align-items: center; gap: 12px; margin: 0 2px 16px; }
.lp-cat-head h3 { margin: 0; font: 700 13px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--cat); }
.lp-cat-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--cat) 40%, transparent), transparent); }
.lp-cat-count { font: 600 11px/1 var(--font-mono); color: var(--text-faint); }

.lp-cat-1 { --cat: #f87171; }
.lp-cat-2 { --cat: #38bdf8; }
.lp-cat-3 { --cat: #4ade80; }
.lp-cat-4 { --cat: #fbbf24; }
.lp-cat-5 { --cat: #a78bfa; }

.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.lp-card {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(32, 26, 52, .6), rgba(16, 13, 27, .6));
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.lp-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--cat) 45%, transparent);
  box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--cat) 60%, transparent);
}
.lp-card-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  font-size: 22px;
  background: color-mix(in srgb, var(--cat) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat) 28%, transparent);
}
.lp-card-name { margin-bottom: 6px; font: 600 15.5px/1.3 var(--font-heading); color: var(--text-strong); }
.lp-card-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }

/* CTA final */
.lp-cta {
  position: relative;
  overflow: hidden;
  margin: 40px 0 24px;
  padding: 64px 40px;
  border-radius: 28px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(124, 92, 245, .35), transparent 70%),
    linear-gradient(180deg, rgba(32, 26, 52, .8), rgba(17, 14, 28, .8));
}
.lp-cta img { width: 64px; height: 64px; filter: drop-shadow(0 0 22px rgba(167, 139, 250, .7)); }
.lp-cta h2 { margin: 0; font: 700 clamp(26px, 3.6vw, 38px)/1.15 var(--font-heading); letter-spacing: -.025em; color: var(--text-strong); }
.lp-cta p { margin: 0; max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--text-muted); }
.lp-cta .lp-hero-actions { justify-content: center; }

.lp-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px 0 8px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-faint);
}
.lp-footer-brand { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--font-heading); color: var(--text-muted); }
.lp-footer-brand img { width: 22px; height: 22px; }
.lp-footer nav { gap: 20px; }
.lp-footer a:hover { color: var(--accent); }

/* ---------- Animaciones ---------- */

@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes lp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Solo se ocultan para animar si hay JS (la clase lp-js se pone en el <head>). */
.lp-js .lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.lp-js .lp-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lp-float-1, .lp-float-2, .lp-status-dot.is-online { animation: none; }
  .lp-js .lp-reveal { transform: none; transition: opacity .3s ease; }
  .lp-card, .lp-card:hover { transition: none; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .lp-hero, .lp-spotlight { grid-template-columns: 1fr; gap: 44px; }
  .lp-spotlight.is-reversed .lp-spotlight-text { order: 0; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-float-2 { left: -8px; }
  .lp-float-1 { right: -6px; }
}

@media (max-width: 640px) {
  .lp-hero { padding: 12px 0 48px; }
  .lp-section { padding: 52px 0; }
  .lp-float { display: none; }
  .lp-window-body { padding: 16px 14px 18px; }
  .lp-cta { padding: 44px 22px; }
}
