/* ITERA — Landing pages de presentación (ejecutiva / técnica / general).
   Página standalone, HTML+CSS+JS vanilla (sin Tailwind). Se carga DESPUÉS de
   theme.css para heredar tokens (paleta, tipografías, @font-face) sin redefinirlos;
   aquí solo se agregan las piezas propias de una landing (hero, secciones, cards). */

:root {
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 6px 22px rgba(0, 0, 0, .55);
  --shadow-3: 0 18px 50px rgba(0, 0, 0, .65);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ── */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(10, 6, 16, .92), rgba(10, 6, 16, .78));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lp-nav .lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-nav .lp-brand-glyph {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--primary-soft); border: 1px solid rgba(185, 78, 160, .42);
  box-shadow: 0 0 14px -4px rgba(185, 78, 160, .5);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--neon-2);
}
.lp-nav .lp-brand-word { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .1em; color: #fff; }
.lp-nav .lp-links { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.lp-nav .lp-links a { text-decoration: none; color: var(--text-dim); padding: 7px 4px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.lp-nav .lp-links a:hover, .lp-nav .lp-links a.active { color: var(--text); border-color: var(--neon); }
.lp-nav .lp-links a.lp-cta { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; border-radius: 8px; padding: 8px 14px; box-shadow: var(--shadow-1); }
.lp-nav .lp-links a.lp-cta:hover { box-shadow: var(--shadow-2), var(--glow-neon); }
@media (max-width: 640px) { .lp-nav .lp-links { gap: 10px; } .lp-nav .lp-links span { display: none; } }

/* ── Hero ── */
.lp-hero {
  position: relative; padding: 84px 0 60px;
  background:
    radial-gradient(1100px 520px at 82% -12%, rgba(124, 54, 108, .34), transparent 60%),
    radial-gradient(900px 480px at 6% -6%, rgba(185, 78, 160, .16), transparent 55%),
    var(--bg);
}
.lp-eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--neon-2); margin-bottom: 18px; }
.lp-eyebrow::before { content: '// '; color: var(--text-dim); }
.lp-hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; margin: 0 0 22px; max-width: 820px;
}
.lp-hero .lp-lede { font-size: 17px; color: var(--text-dim); max-width: 640px; margin: 0 0 32px; }
.lp-hero .lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 12px 20px; border-radius: 11px; font-size: 14px; font-weight: 600;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: var(--shadow-1); }
.lp-btn-primary:hover { box-shadow: var(--shadow-2), var(--glow-neon); }
.lp-btn-ghost { border: 1px solid var(--border-glow); color: var(--text); background: rgba(255,255,255,.02); }
.lp-btn-ghost:hover { border-color: var(--neon); color: #fff; }

/* ── Secciones ── */
.lp-section { padding: 64px 0; border-top: 1px solid var(--border); }
.lp-section.lp-tight { padding: 44px 0; }
.lp-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.lp-kicker::before { content: '// '; color: var(--neon-2); }
.lp-section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 18px; max-width: 760px; }
.lp-section p.lp-body { color: var(--text-dim); max-width: 700px; font-size: 15.5px; margin: 0 0 14px; }
.lp-section p.lp-body:last-child { margin-bottom: 0; }

.lp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.lp-reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .lp-reveal { opacity: 1; transform: none; transition: none; } }

/* ── Quote / cita destacada ── */
.lp-quote {
  border-left: 3px solid var(--neon); padding: 4px 0 4px 22px; margin: 28px 0;
  font-family: var(--font-display); font-size: clamp(19px, 2.4vw, 26px); line-height: 1.35; color: #fff;
}
.lp-quote cite { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; font-style: normal; color: var(--text-dim); }

/* ── Cards genéricas ── */
.lp-grid { display: grid; gap: 16px; margin-top: 8px; }
.lp-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.lp-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lp-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.lp-card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.lp-card:hover { border-color: var(--border-glow); transform: translateY(-3px); box-shadow: 0 16px 44px -20px rgba(124,54,108,.75); }
.lp-card h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 8px; }
.lp-card p { color: var(--text-dim); font-size: 13.5px; margin: 0; }
.lp-card .lp-card-num { font-family: var(--font-mono); font-size: 11px; color: var(--neon-2); letter-spacing: .1em; margin-bottom: 8px; display: block; }

/* ── Stat callouts (cifras reales de arquitectura) ── */
.lp-stat { text-align: center; }
.lp-stat .lp-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--teal); line-height: 1; }
.lp-stat .lp-stat-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-top: 8px; letter-spacing: .04em; }

/* ── Viz "cerebro" (reutilizada del dashboard admin, ver landing.js) ── */
.lp-brain {
  position: relative; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 0%, rgba(124,54,108,.2), transparent 60%), var(--bg-2);
  box-shadow: var(--shadow-3);
}
.lp-brain canvas { display: block; width: 100%; height: 380px; }
.lp-brain.lp-brain-inline canvas { height: 280px; }
.lp-brain .lp-brain-legend {
  position: absolute; bottom: 16px; left: 20px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
}
.lp-brain .lp-brain-legend .live { color: var(--teal); }

/* ── Diagrama de capas (landing técnica) ── */
.lp-layers { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lp-layer {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px;
  background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lp-layer .lp-layer-name { font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.lp-layer .lp-layer-detail { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-dim); text-align: right; }
.lp-layer-arrow { text-align: center; color: var(--neon-2); font-family: var(--font-mono); font-size: 13px; }

/* ── Pasos numerados (pipeline) ── */
.lp-steps { counter-reset: lp-step; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.lp-step { counter-increment: lp-step; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.lp-step:last-child { border-bottom: none; }
.lp-step::before {
  content: counter(lp-step, decimal-leading-zero); flex-shrink: 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--neon-2);
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--primary-soft); border: 1px solid rgba(185, 78, 160, .35);
}
.lp-step-body h4 { font-family: var(--font-display); font-size: 14.5px; margin: 0 0 4px; }
.lp-step-body p { color: var(--text-dim); font-size: 13.5px; margin: 0; }

/* ── Badges ── */
.lp-badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; padding: 3px 9px; border-radius: 6px; background: var(--neon-soft); color: var(--neon-2); border: 1px solid rgba(185, 78, 160, .3); }

/* ── Listas simples con marcador teal ── */
.lp-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-list li { position: relative; padding-left: 22px; color: var(--text-dim); font-size: 14.5px; }
.lp-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 8px 0 rgba(54,208,196,.6); }
.lp-list li strong { color: var(--text); }

/* ── Tabla (landing técnica) ── */
.lp-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13.5px; }
.lp-table th, .lp-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.lp-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.lp-table td { color: var(--text); }

/* ── Footer ── */
.lp-footer {
  border-top: 1px solid var(--border); padding: 36px 0 44px;
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
}
.lp-footer .lp-foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; }
.lp-footer .lp-foot-links a { color: var(--text-dim); text-decoration: none; }
.lp-footer .lp-foot-links a:hover { color: var(--neon-2); }
.lp-footer .lp-foot-note { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); opacity: .7; }
