* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background-color: #080d19;
  color: #f1f5f9;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar {
  background: #0b1120;
  border-bottom: 1px solid #1e293b;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 24px;
}
.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-logo { text-decoration: none; }
.logo-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #38bdf8;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s;
}
.nav-links a:hover { color: #38bdf8; }

.nav-search {
  position: relative;
  width: 320px;
}
.nav-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.85rem;
}
.nav-search input {
  width: 100%;
  background: #030712;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 12px 8px 36px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}
.nav-search input:focus { border-color: #38bdf8; }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  background: #1e1b4b;
  border: 1px solid #4338ca;
  color: #818cf8;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: 0.2s;
}
.cart-btn:hover { background: #312e81; color: #fff; }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}
.account-btn:hover { background: #1e293b; border-color: #475569; }

/* HERO BANNER */
.hero-banner {
  background: linear-gradient(135deg, #090e1f 0%, #030712 100%);
  border-bottom: 1px solid #1e293b;
  padding: 35px 20px;
  text-align: center;
  position: relative;
}
.hero-title {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.hero-sub { color: #94a3b8; font-size: 0.95rem; }

/* TRUST BAR */
.trust-bar {
  max-width: 1300px;
  margin: 20px auto 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.trust-item {
  background: #0b1329;
  border: 1px solid #1e293b;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.trust-item i { font-size: 1.2rem; color: #38bdf8; }
.trust-item h4 { font-size: 0.85rem; font-weight: 700; color: #f1f5f9; }
.trust-item p { font-size: 0.72rem; color: #64748b; }

/* CONTENEDOR PRINCIPAL */
.main-content {
  max-width: 1300px;
  margin: 30px auto;
  padding: 0 20px;
  flex-grow: 1;
  width: 100%;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-pills { display: flex; gap: 8px; }
.filter-pills a {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #94a3b8;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: 0.2s;
}
.filter-pills a.active, .filter-pills a:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* GRILLA DE TARJETAS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* TARJETA GAMING */
.gaming-card {
  background: #0c1427;
  border: 1px solid #1e293b;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.gaming-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.card-top {
  height: 120px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid #1e293b;
}
.brand-icon {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.brand-icon.psplus { color: #eab308; }
.brand-icon.gamepass { color: #22c55e; }
.brand-icon.max { color: #3b82f6; font-size: 2.2rem; }
.brand-icon.disney { color: #38bdf8; font-size: 2.2rem; }

.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid #334155;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.fav-btn:hover { color: #ef4444; border-color: #ef4444; }

.card-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}
.badge-tipo {
  align-self: flex-start;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.badge-tipo.perfil { background: #7c3aed; }

.item-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #f1f5f9;
}
.item-stock {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.stock-green { color: #10b981; }
.stock-red { color: #ef4444; }

.item-duration {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.btn-add-cart {
  margin-top: auto;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.btn-add-cart:hover { background: #1d4ed8; }
.btn-add-cart.disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
}

/* FOOTER */
.footer {
  background: #020617;
  border-top: 1px solid #1e293b;
  padding: 25px 20px;
  margin-top: auto;
}
.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}
.footer-left p { font-size: 0.8rem; color: #64748b; }
.footer-links { display: flex; gap: 15px; }
.footer-links a { color: #94a3b8; text-decoration: none; font-size: 0.8rem; }
.footer-links a:hover { color: #38bdf8; }