/* ══════════════════════════════════════════════════
   LANDING INSTITUCIONAL — IMPULSO ÁGIL
   Reutiliza variables, reset y .btn de style.css
   ══════════════════════════════════════════════════ */

body.landing {
  height: auto;
  overflow: visible;
  background: var(--card-bg);
}

.landing a { text-decoration: none; color: inherit; }
.landing ul { list-style: none; }
.landing section { padding: 88px 24px; }
.landing section[id] { scroll-margin-top: 84px; }
.landing .container { max-width: 1160px; margin: 0 auto; }
.landing h1, .landing h2, .landing h3 { line-height: 1.15; letter-spacing: -.02em; }
.landing .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--primary);
  background: #e8f0fe;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.landing .section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.landing .section-head h2 { font-size: 32px; margin-bottom: 12px; }
.landing .section-head p { color: var(--text-muted); font-size: 16px; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 10px; }

/* ── NAV ──────────────────────────────────────────── */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s, background .2s;
}
.lp-nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 2px 16px rgba(15,23,42,.06); }
[data-theme="dark"] .lp-nav { background: rgba(11,17,32,.86); }
[data-theme="dark"] .lp-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.45); }
.lp-nav-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.lp-logo { flex-shrink: 0; }
.lp-logo .brand-wordmark { margin-bottom: 0; justify-content: flex-start; }
.lp-logo .brand-impulso, .lp-logo .brand-agil { font-size: 20px; }

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.lp-nav-item { position: relative; }
.lp-nav-links > a, .lp-nav-links > .lp-nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.lp-nav-links > a:hover,
.lp-nav-links > .lp-nav-item > button:hover,
.lp-nav-item.open > button,
.lp-nav-links > a.active { background: var(--bg); color: var(--primary); }
.lp-caret { font-size: 10px; transition: transform .15s; }
.lp-nav-item.open .lp-caret { transform: rotate(180deg); }

.lp-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lp-burger {
  display: none;
  background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text);
}

/* Mega menu */
.lp-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(15,23,42,.14);
  padding: 22px;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px 22px;
}
.lp-nav-item.open .lp-mega { display: grid; }
.lp-mega-link {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  align-items: flex-start;
  transition: background .15s;
}
.lp-mega-link:hover { background: var(--bg); }
.lp-mega-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: #e8f0fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.lp-mega-text strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.lp-mega-text span { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.4; }

/* ── HERO ─────────────────────────────────────────── */
.lp-hero {
  padding: 72px 24px 40px;
  background:
    radial-gradient(680px 380px at 85% -10%, rgba(0,168,196,.14), transparent 60%),
    radial-gradient(600px 340px at 5% 0%, rgba(21,101,192,.10), transparent 60%);
}
.lp-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.lp-hero h1 { font-size: 44px; font-weight: 800; color: var(--text); margin-bottom: 18px; }
.lp-hero h1 span { color: var(--primary); }
.lp-hero-copy p.lead { font-size: 17px; color: var(--text-muted); margin-bottom: 30px; max-width: 480px; }
.lp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.lp-hero-trust { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); }
.lp-hero-trust b { color: var(--success); }

/* Hero visual — floating mockup cards */
.lp-hero-visual { position: relative; min-height: 420px; }
.lp-mock-board {
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(15,23,42,.18);
  border: 1px solid var(--border);
  padding: 18px;
  position: relative;
  z-index: 1;
}
.lp-mock-board-header { display: flex; gap: 6px; margin-bottom: 16px; }
.lp-mock-board-header span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.lp-mock-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--text-muted); margin-bottom: 32px;
}
.lp-mock-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.lp-mock-row:last-child { border-bottom: none; }
.lp-mock-name { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.lp-mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); flex-shrink: 0; }
.lp-mock-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }

.lp-float-card {
  position: absolute;
  background: white;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15,23,42,.16);
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 12px;
  z-index: 2;
}
.lp-float-card strong { display: block; font-size: 19px; color: var(--text); margin: 2px 0 1px; }
.lp-float-card span.lbl { color: var(--text-muted); font-weight: 600; }
.lp-float-card span.sub { color: var(--text-muted); }
.lp-float-1 { top: -18px; left: -10px; }
.lp-float-2 { bottom: 18px; right: -22px; }
.lp-float-icon { font-size: 15px; margin-right: 4px; }
.lp-badge-ok {
  display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700;
  color: var(--success); background: #dcfce7; padding: 2px 8px; border-radius: 8px;
}

/* ── LOGOS / STAT STRIP ───────────────────────────── */
.lp-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.lp-stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.lp-stats strong { display: block; font-size: 26px; color: var(--primary); margin-bottom: 4px; }
.lp-stats span { font-size: 13px; color: var(--text-muted); }

/* ── PILLS ────────────────────────────────────────── */
.lp-pills { text-align: center; }
.lp-pills-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.lp-pill {
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: white;
}
.lp-pill.soon { color: var(--text-muted); border-style: dashed; }

/* ── FEATURE TABS ─────────────────────────────────── */
.lp-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.lp-tab-btn {
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.lp-tab-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.lp-tab-panel { display: none; }
.lp-tab-panel.active { display: block; }

.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lp-feature-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: white;
  transition: box-shadow .2s, transform .2s;
}
.lp-feature-card:hover { box-shadow: 0 12px 28px rgba(15,23,42,.08); transform: translateY(-2px); }
.lp-feature-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: #e8f0fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  margin-bottom: 14px;
}
.lp-feature-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.lp-feature-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ── ROADMAP ──────────────────────────────────────── */
.lp-roadmap { background: var(--bg); }
.lp-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lp-roadmap-card {
  background: white;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 20px;
  position: relative;
}
.lp-roadmap-card .lp-feature-icon { background: #eef2f7; }
.lp-soon-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: .3px;
  color: var(--warning); background: #fef3c7;
  padding: 3px 9px; border-radius: 10px;
}
.lp-roadmap-card h3 { font-size: 14.5px; margin-bottom: 5px; }
.lp-roadmap-card p { font-size: 13px; color: var(--text-muted); }

/* ── WHY US ───────────────────────────────────────── */
.lp-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lp-why-card { text-align: center; padding: 8px; }
.lp-why-icon { font-size: 30px; margin-bottom: 12px; }
.lp-why-card h3 { font-size: 15px; margin-bottom: 6px; }
.lp-why-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ── CTA BANNER ───────────────────────────────────── */
.lp-cta {
  background: linear-gradient(120deg, var(--sidebar-bg), #0d2a52);
  border-radius: 24px;
  margin: 0 24px;
  padding: 64px 24px;
  text-align: center;
  color: white;
}
.lp-cta .container { max-width: 640px; }
.lp-cta h2 { font-size: 30px; margin-bottom: 14px; }
.lp-cta p { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: 15px; }
.lp-cta .btn-primary { background: var(--accent); }
.lp-cta .btn-primary:hover { background: #0891a8; }
.lp-cta-hint {
  margin-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.6);
}

/* ── FOOTER ───────────────────────────────────────── */
.lp-footer { background: var(--sidebar-bg); color: rgba(255,255,255,.7); padding: 56px 24px 24px; }
.lp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.lp-footer-brand p { font-size: 13px; margin-top: 12px; max-width: 260px; line-height: 1.6; color: rgba(255,255,255,.55); }
.lp-footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: rgba(255,255,255,.45); margin-bottom: 14px; }
.lp-footer-col a { display: block; font-size: 13.5px; margin-bottom: 10px; color: rgba(255,255,255,.8); }
.lp-footer-col a:hover { color: white; }
.lp-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.45); flex-wrap: wrap; gap: 10px;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-hero-visual { min-height: 320px; margin-top: 20px; }
  .lp-stats .container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .lp-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-why-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ── MODO OSCURO ──────────────────────────────────── */
[data-theme="dark"] .eyebrow { background: rgba(59,130,246,.15); }
[data-theme="dark"] .lp-mega { background: var(--card-bg); }
[data-theme="dark"] .lp-mega-icon { background: rgba(59,130,246,.15); }
[data-theme="dark"] .lp-mock-board,
[data-theme="dark"] .lp-float-card { background: var(--card-bg); }
[data-theme="dark"] .lp-badge-ok { background: rgba(34,197,94,.16); }
[data-theme="dark"] .lp-pill,
[data-theme="dark"] .lp-tab-btn,
[data-theme="dark"] .lp-feature-card,
[data-theme="dark"] .lp-roadmap-card { background: var(--card-bg); }
[data-theme="dark"] .lp-feature-icon { background: rgba(59,130,246,.15); }
[data-theme="dark"] .lp-roadmap-card .lp-feature-icon { background: rgba(255,255,255,.06); }
[data-theme="dark"] .lp-soon-tag { background: rgba(245,158,11,.18); }
[data-theme="dark"] .lp-nav-links.mobile-open { background: var(--card-bg); }

@media (max-width: 680px) {
  .landing section { padding: 56px 18px; }
  .lp-nav-inner { gap: 12px; padding: 14px 16px; }
  .lp-logo .brand-impulso, .lp-logo .brand-agil { font-size: 17px; }
  .lp-nav-links { display: none; }
  .lp-burger { display: block; }
  .lp-nav-actions .btn-secondary { display: none; }
  .lp-hero h1 { font-size: 30px; }
  .lp-hero-ctas .btn { flex: 1; justify-content: center; }
  .lp-feature-grid { grid-template-columns: 1fr; }
  .lp-roadmap-grid { grid-template-columns: 1fr; }
  .lp-why-grid { grid-template-columns: 1fr; }
  .lp-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .lp-mega { position: static; transform: none; width: 100%; grid-template-columns: 1fr; box-shadow: none; margin-top: 6px; }
  .lp-cta { margin: 0; border-radius: 0; }

  .lp-nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 10px 18px 18px;
    gap: 2px;
    box-shadow: 0 16px 28px rgba(15,23,42,.1);
  }
  .lp-nav-links.mobile-open .lp-nav-item { width: 100%; }
  .lp-nav-links.mobile-open .lp-nav-item > button { width: 100%; justify-content: space-between; }
  .lp-nav-links.mobile-open .lp-mega { display: none; }
  .lp-nav-links.mobile-open .lp-nav-item.open .lp-mega { display: grid; }
}
