@import url('./shared/suite-tokens.css');

/* Variables específicas del landing (no las cubre suite-tokens.css) */
:root {
  --green:  #1f7a5c;
  --blue:   var(--brand-blue);  /* usa el naranja de marca Partner Consultores (alias histórico "blue") */
  --gold:   #a46413;
  --red:    #a32d2d;
}

/* ── Variables del landing que ahora vienen de suite-tokens.css ──
   --ink       →  var(--brand-dark)  #333333
   --muted     →  #6B7280  (--ts)
   --line      →  #E5E7EB  (--br)
   --surface   →  #FFFFFF  (--wh)
   --soft      →  var(--brand-bg)  #F2F2F2
   --radius    →  8px
   font-family →  Poppins (via body en suite-tokens.css)
──────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  padding: 0 clamp(18px, 4vw, 48px);
  background: var(--bd);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-mark img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; font-weight: 700; }
.brand small { color: rgba(255,255,255,.7); margin-top: 1px; font-size: 11px; }

.topnav {
  display: flex;
  gap: 4px;
}

.topnav a {
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: rgba(255,255,255,.8);
  font-size: 12px;
  transition: background .2s;
}

.topnav a:hover { background: rgba(255,255,255,.12); color: #fff; }

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  padding: 28px 0 34px;
}

.hero h1 {
  max-width: 780px;
  margin: 6px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.health-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.health-panel strong, .health-panel small { display: block; }
.health-panel small { color: var(--muted); margin-top: 3px; }

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #9aa4b2;
  flex: 0 0 auto;
}

.status-dot.ok { background: var(--green); }
.status-dot.warn { background: var(--gold); }
.status-dot.bad { background: var(--red); }

.workspace {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.section-head h2, .practice-band h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.section-head > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.module-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  background: var(--surface);
}

.module-card h3 {
  margin: 8px 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.module-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.accent-green { border-top-color: var(--green); }
.accent-blue { border-top-color: var(--blue); }
.accent-gold { border-top-color: var(--gold); }
.accent-teal { border-top-color: #0f6e56; }
.accent-red { border-top-color: var(--red); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.chips span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover { filter: brightness(1.08); }

.button.dark {
  min-width: 170px;
  background: #fff;
  color: var(--ink);
}

.practice-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 16px 0 34px;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: #243746;
}

.practice-band p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #dbe5ed;
  line-height: 1.5;
}

.practice-band .eyebrow { color: #9dd6bf; }

.development-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 0 0 34px;
  padding: 24px;
  border: 1px solid rgba(46, 117, 182, 0.24);
  border-radius: var(--radius);
  background: #ebf3fc;
}

.development-band h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.development-band p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.dash-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 34px;
}

.dash-hero h1 {
  max-width: 760px;
  margin: 6px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.dash-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.dash-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.dash-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.next-card {
  display: flex;
  flex-direction: column;
}

.next-card h2 {
  margin: 8px 0;
  font-size: 22px;
}

.next-card p {
  margin: 0 0 18px;
  font-size: 14px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 26px;
}

.metric p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.competency-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.competency-code {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.competency-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.competency-card p {
  min-height: 68px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.competency-card a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.history-item h3 {
  margin: 5px 0 4px;
}

.history-item p {
  margin: 0;
  color: var(--muted);
}

.history-item strong {
  color: var(--blue);
  font-size: 22px;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.empty-state p {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.empty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-button {
  background: transparent;
  color: var(--ink);
}

@media (max-width: 900px) {
  .topbar, .section-head, .practice-band, .development-band {
    align-items: stretch;
    flex-direction: column;
  }

  .hero, .dash-hero, .dash-grid, .module-grid {
    grid-template-columns: 1fr;
  }

  .topnav { flex-wrap: wrap; }
}
