/* ===== RESET SIMPLE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
}

/* ===== HEADER ===== */
.store-header {
  position: sticky;
  top: 0;
  z-index: 20;
   min-height: 120px;
  backdrop-filter: blur(12px);
  background: linear-gradient(to right, rgba(15,23,42,0.96), rgba(15,23,42,0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 10px;
  background: #0b1120;
}

.brand h1 {
  font-size: 4rem;
  font-weight: 600;
}

.brand-tagline {
  font-size: 1rem;
  color: #9ca3af;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== BUSCADOR ===== */
.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #020617;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(75, 85, 99, 0.8);
  min-width: 220px;
}

.search-box .icon {
  font-size: 0.85rem;
  opacity: 0.8;
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 0.85rem;
  width: 100%;
}

/* ===== CATEGORÍAS ===== */
.categories-bar {
  padding: 8px 18px 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top left, rgba(56,189,248,0.16), transparent 58%), #020617;
}

.categories-bar {
  position: sticky;
  top: 120px; /* debajo del header */
  z-index: 15;
}

.chip {
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.9rem;
  border: 1px solid rgba(75,85,99,0.9);
  background: rgba(15,23,42,0.9);
  color: #cbd5f5;
  cursor: pointer;
  transition: 0.15s ease;
}

.chip:hover {
  border-color: rgba(59,130,246,0.9);
}

.chip.active {
  background: linear-gradient(to right, #2563eb, #4f46e5);
  border-color: transparent;
  color: white;
}

/* ===== MAIN ===== */
.store-main {
  padding: 16px 18px 40px;
}

.apps-section {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 16px;
}

/* ===== GRID DE APPS ===== */
.apps-grid {
  display: grid;
  /* 6 columnas fijas */
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.apps-grid > * {
  cursor: pointer;
}
.apps-grid > *:hover {
  background: rgba(59,130,246,0.08);
  transform: translateY(-2px);
  transition: 0.15s ease;
}


/* ===== ESTADO VACÍO ===== */
.empty-state {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* ===== FOOTER ===== */
.store-footer {
  border-top: 1px solid rgba(31,41,55,0.9);
  padding: 10px 18px;
  font-size: 0.8rem;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .store-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    
  }

   .header-right {
    width: 100%;
  }
  .search-box {
    flex: 1;
  }
  .store-main {
    padding: 14px 12px 30px;
  
  }
}


/* Tamaño correcto de iconos de apps */
.apps-grid img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  background: #020617;
}

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

@media (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }
}

@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    max-height: none;
  }

  .store-header {
    min-height: 160px;
  }
  .categories-bar {
    top: 160px;
  }
}

