/* =========================
   VARIABLES GLOBALES
========================= */
:root {
  --bg-main: #1e1f26;
  --bg-nav: #18191f;
  --card: #2b2d31;
  --accent: #5865f2;
  --accent-hover: #4752c4;
  --text-main: #ffffff;
  --text-muted: #b9bbbe;
}

/* =========================
   RESET BÁSICO
========================= */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(circle at top, #2a2d36 0%, var(--bg-main) 60%);
  color: var(--text-main);
  min-height: 100vh;
}

a {
  color: #9fa8ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  height: 64px;
  background: var(--bg-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-left img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.nav-left span {
  font-weight: 700;
  font-size: 18px;
}

.nav-links a {
  margin: 0 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-right {
  display: flex;
  gap: 12px;
}

/* =========================
   BOTONES
========================= */
.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.secondary {
  background: var(--card);
  color: white;
}

.btn.secondary:hover {
  background: #33353b;
}

/* =========================
   HERO (INDEX)
========================= */
.hero {
  min-height: auto;              /* antes: calc(100vh - 64px) */
  padding: 80px 20px 40px;       /* más aire arriba, menos abajo */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;   /* antes: center */
  text-align: center;
}


.hero img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.05);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 64px;
  margin: 0;
}

.hero p {
  color: var(--text-muted);
  font-size: 20px;
  max-width: 600px;
  margin: 18px 0 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 14px;
}

/* =========================
   CONTENEDOR GENERAL
========================= */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
}

/* =========================
   TARJETAS / CARDS
========================= */
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.card h2 {
  margin-top: 0;
}

/* =========================
   PÁGINAS LEGALES (TÉRMINOS / PRIVACIDAD)
========================= */
.legal-wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}

.legal-box {
  max-width: 900px;
  width: 100%;
  background: var(--card);
  border-radius: 16px;
  padding: 36px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.legal-box h1 {
  margin-top: 0;
  font-size: 36px;
  text-align: center;
}

.legal-box h2 {
  margin-top: 32px;
}

.legal-box p,
.legal-box li {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 16px;
}

.legal-footer {
  text-align: center;
  margin-top: 32px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 18px;
  }

  .nav-links {
    display: none;
  }
}
/* Header / título de página */
.page-header {
  max-width: 1200px;
  margin: 40px auto 10px auto;
  padding: 0 20px;
}
.page-header h1 {
  color: #fff;
  margin: 0 0 8px 0;
  font-size: 34px;
}
.page-header p {
  color: #b9bbc6;
  margin: 0;
}

/* Layout principal */
.commands-layout {
  display: flex;
  gap: 28px;
  max-width: 1200px;
  margin: 25px auto 60px auto;
  padding: 0 20px;
}

/* Sidebar */
.commands-sidebar {
  width: 280px;
  background: rgba(25, 27, 33, 0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
  height: fit-content;
}

.sidebar-block + .sidebar-block {
  margin-top: 16px;
}

.commands-sidebar h3 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 16px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: #d6d7df;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pill.active {
  background: rgba(88,101,242,0.18);
  border-color: rgba(88,101,242,0.35);
  color: #fff;
}
.pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.category-list li {
  padding: 12px 12px;
  border-radius: 12px;
  color: #cfd1db;
  cursor: pointer;
}
.category-list li:hover {
  background: rgba(255,255,255,0.05);
}
.category-list li.active {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* Main */
.commands-main {
  flex: 1;
  min-width: 0;
}

/* Search */
.search-row {
  margin-bottom: 18px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(25, 27, 33, 0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}
.search-icon {
  color: #b9bbc6;
  font-size: 18px;
}
.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

/* Secciones */
.cmd-section {
  margin-bottom: 22px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 12px 0;
}
.section-title h2 {
  color: #fff;
  margin: 0;
  font-size: 20px;
}
.section-sub {
  color: #b9bbc6;
  font-size: 13px;
}

/* Cards */
.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.command-card {
  background: rgba(25, 27, 33, 0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.30);
}

.command-card.highlight {
  border-color: rgba(88,101,242,0.45);
}

.command-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.command-name {
  font-weight: 800;
  color: #fff;
  font-size: 16px;
}

.command-desc {
  margin-top: 6px;
  color: #cfd1db;
  font-size: 14px;
  line-height: 1.35;
}

.command-usage {
  margin-top: 10px;
  color: #aeb1bf;
  font-size: 13px;
}

.command-usage code {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 8px;
  color: #fff;
}

/* Empty state */
.empty-state {
  margin-top: 30px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(25, 27, 33, 0.55);
  border: 1px solid rgba(255,255,255,0.06);
}
.empty-state h3 {
  margin: 0 0 8px 0;
  color: #fff;
}
.empty-state p {
  margin: 0;
  color: #b9bbc6;
}

/* Responsive */
@media (max-width: 980px) {
  .commands-layout {
    flex-direction: column;
  }
  .commands-sidebar {
    width: 100%;
  }
}

.page-container {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
}

.page-card {
  max-width: 800px;
  width: 100%;
  background: rgba(20, 22, 30, 0.9);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.page-card h1 {
  margin-bottom: 20px;
}

.page-card h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.page-card p,
.page-card li {
  color: #cfd3ff;
  line-height: 1.6;
}

.page-card ul {
  padding-left: 20px;
}

.support-section {
  max-width: 900px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
}

.support-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.support-section p {
  color: #aaa;
  margin-bottom: 30px;
}

.support-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 25px;
  background: #1e1f22;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-card img {
  max-width: 220px;
  border-radius: 12px;
}

.support-card span {
  font-size: 1.1rem;
  font-weight: 600;
}

.support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {

  /* HERO: eliminar el hueco gigante */
  .hero {
    min-height: auto;
    padding: 60px 20px 40px;
    justify-content: flex-start;
  }

  .hero img {
    width: 110px;
    height: 110px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* NAVBAR */
  .navbar {
    padding: 0 16px;
  }

  .nav-left span {
    font-size: 16px;
  }

  .nav-right .btn {
    padding: 8px 14px;
    font-size: 14px;
  }

  /* COMMANDS PAGE */
  .commands-layout {
    margin: 20px auto 40px;
    gap: 20px;
  }

  .commands-sidebar {
    padding: 14px;
  }

  .section-title h2 {
    font-size: 18px;
  }

  .command-name {
    font-size: 15px;
  }

  .command-desc {
    font-size: 13px;
  }

  .command-usage {
    font-size: 12px;
  }

  /* SUPPORT SECTION */
  .support-section {
    margin: 60px auto;
  }

  .support-card img {
    max-width: 180px;
  }
}
