:root {
  --bg: #06070b;
  --bg-soft: #0c1018;
  --card: rgba(15, 19, 30, 0.9);
  --card-2: rgba(18, 23, 36, 0.9);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7ff;
  --muted: #a7b0c5;
  --primary: #5b8cff;
  --primary-2: #8a5bff;
  --success: #59d98e;
  --danger: #ff6b81;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(91, 140, 255, 0.18), transparent 25%),
    radial-gradient(circle at top left, rgba(138, 91, 255, 0.18), transparent 25%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(6, 7, 11, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.3);
  color: white;
}

.brand-text {
  font-size: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

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

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  margin: 6px 0;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(91, 140, 255, 0.14), transparent 30%),
    linear-gradient(225deg, rgba(138, 91, 255, 0.14), transparent 30%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.12);
  color: #cfe0ff;
  border: 1px solid rgba(91, 140, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  box-shadow: 0 14px 30px rgba(91, 140, 255, 0.25);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: white;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.point-card {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}

.point-card strong {
  display: block;
  margin-bottom: 8px;
}

.point-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-panel .panel-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 21, 33, 0.96), rgba(11, 14, 24, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.panel-badge,
.panel-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.panel-badge {
  background: rgba(91, 140, 255, 0.12);
  color: #dbe7ff;
}

.panel-status {
  background: rgba(89, 217, 142, 0.12);
  color: #beffd4;
}

.hero-panel h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.panel-balance,
.panel-note {
  color: var(--muted);
}

.wallet-box,
.cashback-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wallet-box small,
.cashback-box small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.wallet-box strong,
.cashback-box strong {
  font-size: 0.98rem;
}

.trust-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.trust-grid {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: center;
  text-align: center;
  color: #d7def1;
  font-weight: 700;
}

.categories-section {
  padding: 48px 20px 60px;
}

.categories-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0 0 12px;
  text-align: left;
}

.categories-subtitle {
  color: rgba(255,255,255,0.72);
  margin: 0 0 34px;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.65;
  text-align: left;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  display: block;
  border-radius: 24px;
  padding: 18px;
  text-decoration: none;
  color: white;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 14px 35px rgba(0,0,0,0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 260px;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 30%);
  pointer-events: none;
}

.category-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.category-content img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.25));
}

.category-content h3 {
  font-size: 1.55rem;
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 800;
}

.category-content p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  margin: 0 0 20px;
  max-width: 32ch;
}

.category-content span {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #dce6ff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

/* COLORES POR CATEGORÍA */
.ps {
  background: linear-gradient(135deg, #081a3f, #0c2f6f);
}

.xbox {
  background: linear-gradient(135deg, #0a2417, #157145);
}

.netflix {
  background: linear-gradient(135deg, #2a0909, #8f1010);
}

.gift {
  background: linear-gradient(135deg, #2d0d38, #6f23a9);
}

.subs {
  background: linear-gradient(135deg, #071f35, #1554d1);
}

/* BLOQUE DESTACADOS */
.section-dark .info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  padding: 22px;
  border-radius: 22px;
  background: rgba(11, 16, 28, 0.95);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.info-card p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* TABLET */
@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-dark .info-grid {
    grid-template-columns: 1fr;
  }

  .category-card:hover img {
  transform: scale(1.08);
  transition: 0.2s;
}

  .category-content img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;

  /* 🔥 IMPORTANTE */
  background: transparent;
  border-radius: 0;
  padding: 0;

  /* ✨ efecto pro */
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35));
}

  .category-content h3 {
    font-size: 1.4rem;
  }
}

/* MÓVIL */
@media (max-width: 640px) {
  .categories-section {
    padding: 34px 16px 44px;
  }

  .categories-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .categories-subtitle {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .category-card {
    min-height: auto;
    padding: 16px;
    border-radius: 20px;
  }

  .category-content img {
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
  }

  .category-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .category-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 14px;
    max-width: none;
  }

  .category-content span {
    font-size: 0.9rem;
    padding: 9px 13px;
  }

  .info-card {
    padding: 18px;
    border-radius: 18px;
  }

  .info-card h3 {
    font-size: 1.2rem;
  }

  .info-card p {
    font-size: 0.95rem;
    line-height: 1.65;
  }
}

.cta-section {
  padding-top: 10px;
}

.cta-box {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.14), rgba(138, 91, 255, 0.14));
}

.cta-box h2 {
  margin: 12px 0;
}

.cta-box p {
  margin: 0;
  color: #d8e0f5;
  max-width: 720px;
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: rgba(255,255,255,0.02);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 10px;
}

.footer-text {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #d4ddf7;
}

@media (max-width: 980px) {
  .hero-grid,
  .product-grid,
  .info-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-points,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-box,
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 79px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 10, 15, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .hero-grid,
  .product-grid,
  .info-grid,
  .category-grid,
  .hero-points,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding-top: 52px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.page-hero-category {
  padding: 76px 0 30px;
}

.theme-playstation {
  background:
    radial-gradient(circle at top right, rgba(0, 153, 255, 0.22), transparent 26%),
    radial-gradient(circle at top left, rgba(64, 92, 255, 0.16), transparent 24%),
    #050912;
}

.xelyora-card {
  position: relative;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(91, 140, 255, 0.08), rgba(138, 91, 255, 0.08)),
    rgba(8, 12, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.xelyora-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(138, 91, 255, 0.12), transparent 26%),
    radial-gradient(circle at bottom left, rgba(91, 140, 255, 0.10), transparent 24%);
}

.card-media {
  position: relative;
  z-index: 1;
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #0f1830, #0a1020);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CONTENIDO */
.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.product-region {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(89, 217, 142, 0.12);
  border: 1px solid rgba(89, 217, 142, 0.18);
  color: #97efba;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.product-title {
  margin: 0 0 14px;
  font-size: 1.6rem;
  line-height: 1.18;
  color: #ffffff;
  max-width: 100%;
  word-break: break-word;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.old-price {
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
  font-size: 1.05rem;
  font-weight: 700;
}

.discount-tag {
  color: #8ef0b4;
  font-size: 0.98rem;
  font-weight: 800;
}

.current-price {
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 12px;
}

.cashback-tag {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.18);
  color: #d9e6ff;
  font-size: 0.95rem;
  font-weight: 800;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.cart-btn,
.details-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.cart-btn:hover,
.details-btn:hover,
.fav-btn:hover {
  transform: translateY(-1px);
}

.cart-btn {
  background: linear-gradient(135deg, #5b8cff, #7b66ff);
  color: #fff;
  box-shadow: 0 12px 30px rgba(91, 140, 255, 0.22);
}

.details-btn {
  background: rgba(255,255,255,0.05);
  color: white;
  border: 1px solid rgba(255,255,255,0.08);
}

.fav-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
}

/* GRID DE PRODUCTOS */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* TABLET */
@media (max-width: 980px) {
  .xelyora-card {
    grid-template-columns: 180px 1fr;
    gap: 16px;
  }

  .card-media {
    min-height: 180px;
  }

  .product-title {
    font-size: 1.35rem;
  }

  .current-price {
    font-size: 2.2rem;
  }
}

/* MÓVIL */
@media (max-width: 700px) {
  .xelyora-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .card-media {
    min-height: 180px;
    max-height: 220px;
  }

  .product-region {
    margin-bottom: 8px;
    font-size: 0.76rem;
    padding: 7px 12px;
  }

  .product-title {
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .old-price {
    font-size: 0.95rem;
  }

  .current-price {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .cashback-tag {
    font-size: 0.88rem;
    padding: 8px 12px;
    margin-bottom: 14px;
  }

  .card-actions {
    flex-direction: column;
  }

  .cart-btn,
  .details-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .fav-btn {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
}
