:root {
  --bg: #07050d;
  --bg-soft: #0d0815;
  --surface: #120b1c;
  --surface-2: #191025;
  --surface-3: #231433;
  --text: #f7f2ff;
  --muted: #b8abc8;
  --purple: #8b5cf6;
  --purple-2: #a855f7;
  --purple-3: #c084fc;
  --line: rgba(192, 132, 252, .20);
  --line-strong: rgba(192, 132, 252, .38);
  --green: #39e58c;
  --orange: #f59e0b;
  --red: #ef4444;
  --shadow: 0 25px 80px rgba(0, 0, 0, .46);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(139, 92, 246, .16), transparent 34rem),
    var(--bg);
  font-family: "Inter", system-ui, sans-serif;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
a {
  font: inherit;
}

button {
  border: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

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

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}


/* IMPORTANTE: respeta siempre el atributo HTML hidden.
   Evita que modales/backdrops aparezcan al cargar la página. */
[hidden] {
  display: none !important;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 70px;
  padding: 10px clamp(18px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(7, 5, 13, .90);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: .07em;
}

.brand-logo {
  width: 37px;
  height: 37px;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(168, 85, 247, .72))
    drop-shadow(0 0 14px rgba(109, 40, 217, .35));
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 25px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.footer-links a {
  transition: color .18s ease;
}

.nav a:hover,
.footer-links a:hover {
  color: white;
}

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


/* BUTTONS */

.button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button-small {
  min-height: 40px;
  padding: 0 17px;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #6d28d9, var(--purple-2));
  box-shadow: 0 10px 25px rgba(139, 92, 246, .28);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 14px 32px rgba(168, 85, 247, .38);
}

.button-secondary,
.button-ghost {
  color: white;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.11);
}

.button-ghost {
  background: rgba(139,92,246,.12);
  border-color: rgba(192,132,252,.24);
}

.button-full {
  width: 100%;
}

.cart-button {
  min-height: 40px;
  padding: 0 12px 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, rgba(109,40,217,.78), rgba(168,85,247,.76));
  border: 1px solid rgba(192,132,252,.27);
  cursor: pointer;
  font-weight: 800;
}

.cart-count {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: white;
  color: #14091f;
  font-size: 12px;
  font-weight: 900;
}


/* HERO */

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    url("assets/voidtime-network-banner.png")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(7,5,13,.05), rgba(7,5,13,.72) 72%),
    linear-gradient(to bottom, rgba(7,5,13,.22), rgba(7,5,13,.78) 78%, var(--bg));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 36px));
  padding: 100px 0 90px;
  text-align: center;
}

.eyebrow {
  color: var(--purple-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .20em;
}

.hero h1,
.section h2,
.cart-header h2,
.modal-body h2 {
  font-family: "Syne", sans-serif;
}

.hero h1 {
  margin: 15px 0 20px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: .94;
  letter-spacing: -.045em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(90deg, #e0c2ff, #a855f7, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 22px rgba(168,85,247,.22));
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #d8cfe2;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badge {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(8,4,13,.72);
  color: #cfc3d9;
  font-size: 12px;
}


/* SECTIONS */

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading h2,
.promo-strip h2,
.support-card h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}


/* PROMO */

.promo-strip {
  margin-top: -18px;
  padding: 30px clamp(22px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 50%, rgba(168,85,247,.20), transparent 35%),
    var(--surface);
  box-shadow: var(--shadow);
}

.promo-copy h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.promo-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}


/* STORE */

.catalog-section {
  min-height: 500px;
}

.store-notice,
.store-error {
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(192,132,252,.25);
  background: rgba(139,92,246,.08);
}

.store-notice {
  display: flex;
  align-items: center;
  gap: 18px;
}

.store-notice p,
.store-error {
  color: var(--muted);
  line-height: 1.6;
}

.store-notice p {
  margin: 5px 0 0;
}

.store-notice code {
  color: #ead7ff;
}

.store-error {
  border-color: rgba(239,68,68,.30);
  background: rgba(239,68,68,.07);
  color: #fecaca;
}

.catalog-loading {
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(192,132,252,.15);
  border-top-color: var(--purple-2);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.category-tabs {
  margin-bottom: 25px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-tab {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  font-weight: 700;
}

.category-tab:hover,
.category-tab.active {
  color: white;
  border-color: rgba(192,132,252,.38);
  background: rgba(139,92,246,.15);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0, rgba(139,92,246,.11), transparent 38%),
    var(--surface);
  box-shadow: 0 15px 40px rgba(0,0,0,.20);
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 55px rgba(0,0,0,.30);
}

.product-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(168,85,247,.18), transparent 62%),
    #0b0612;
}

.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.product-media.placeholder img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  opacity: .70;
}

.product-body {
  flex: 1;
  padding: 21px;
  display: flex;
  flex-direction: column;
}

.product-category {
  color: var(--purple-3);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 8px 0 10px;
  font-family: "Syne", sans-serif;
  font-size: 22px;
  line-height: 1.1;
}

.product-description {
  margin: 0;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.product-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-actions {
  display: flex;
  gap: 7px;
}

.product-info-button {
  width: 41px;
  min-width: 41px;
  padding: 0;
}

.empty-state {
  max-width: 620px;
  margin: 25px auto 0;
  padding: 42px 25px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.empty-state img {
  width: min(250px, 70%);
  margin: 0 auto 16px;
}

.empty-state h3 {
  margin: 0 0 9px;
  font-family: "Syne", sans-serif;
  font-size: 27px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}


/* SUPPORT */

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

.support-card {
  padding: clamp(28px, 4vw, 45px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 0, rgba(139,92,246,.14), transparent 40%),
    var(--surface);
}

.support-card p {
  color: var(--muted);
  line-height: 1.75;
}

.support-card .button {
  margin-top: 10px;
}


/* CART */

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  width: min(440px, 100%);
  height: 100dvh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .25s ease;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0, rgba(139,92,246,.15), transparent 35%),
    #0b0711;
  box-shadow: -25px 0 70px rgba(0,0,0,.45);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.cart-header h2 {
  margin: 5px 0 0;
  font-size: 30px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  cursor: pointer;
  font-size: 25px;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 18px 2px;
}

.cart-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cart-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--surface);
}

.cart-item-name {
  font-weight: 800;
}

.cart-item-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-price {
  white-space: nowrap;
  font-weight: 800;
}

.coupon-box {
  padding: 17px 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.coupon-box label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.coupon-row input {
  min-width: 0;
  height: 44px;
  padding: 0 13px;
  border-radius: 10px;
  outline: 0;
  color: white;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
}

.coupon-row input:focus {
  border-color: rgba(192,132,252,.42);
}

#coupon-result {
  min-height: 17px;
  margin-top: 8px;
  display: block;
  color: var(--muted);
}

#coupon-result.success {
  color: #86efac;
}

#coupon-result.error {
  color: #fca5a5;
}

.cart-footer {
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.cart-total {
  margin-bottom: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-total span {
  color: var(--muted);
}

.cart-total strong {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.cart-footer > small {
  display: block;
  margin-top: 10px;
  color: #8f829d;
  text-align: center;
  line-height: 1.5;
}


/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(6px);
}

.modal-card {  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(300px, .9fr) 1.1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #0e0817;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.modal-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 0;
  display: grid;
  place-items: center;
  align-self: center;
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(168,85,247,.20), transparent 60%),
    #08050d;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

.modal-image-wrap.placeholder img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.modal-body {
  padding: 42px 34px 34px;
}

.modal-body h2 {
  margin: 9px 0 15px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}

.modal-body p {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
}

.modal-buy-row {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.modal-price {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* FOOTER */

.footer {
  padding: 36px clamp(20px, 5vw, 70px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #050309;
  color: var(--muted);
  font-size: 13px;
}

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

.footer-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-brand div {
  display: grid;
  gap: 3px;
}

.footer-brand strong {
  color: white;
}

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

.footer small {
  justify-self: end;
  max-width: 370px;
  text-align: right;
  line-height: 1.5;
}


/* TOAST */

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 180;
  min-width: 230px;
  padding: 13px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(192,132,252,.35);
  border-radius: 12px;
  color: white;
  background: rgba(12,7,19,.97);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-check {
  color: #6ee7b7;
  font-weight: 900;
}


/* TABLET */

@media (max-width: 920px) {
  .nav {
    display: none;
  }

  .site-header {
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .support-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer small {
    justify-self: start;
    text-align: left;
  }
}


/* MOBILE */

@media (max-width: 620px) {
  .site-header {
    min-height: 62px;
    padding: 9px 14px;
  }

  .brand {
    font-size: 13px;
  }

  .brand-logo {
    width: 31px;
    height: 31px;
  }

  .header-actions .button-ghost {
    display: none;
  }

  .cart-button {
    min-height: 37px;
  }

  .hero {
    min-height: 570px;
  }

  .hero-content {
    padding: 78px 0 70px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 65px 0;
  }

  .promo-strip {
    margin-top: -8px;
    flex-direction: column;
    align-items: stretch;
  }

  .promo-strip .button {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-description {
    min-height: 0;
  }

  .modal-card {
    display: block;
  }

  .modal-image-wrap {
    width: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1;
  }

  .modal-body {
    padding: 28px 22px 24px;
  }

  .modal-buy-row {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-buy-row .button {
    width: 100%;
  }

  .cart-drawer {
    padding: 18px;
  }
}
