:root {
  color-scheme: dark;
  --background: #07121c;
  --surface: #0e1d29;
  --surface-raised: #142836;
  --line: #26414d;
  --text: #effaf7;
  --muted: #abc1c9;
  --accent: #78f0d6;
  --accent-bright: #a6ffe9;
  --accent-ink: #082522;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, h4, p { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }

.shell {
  width: min(calc(100% - 4rem), 76rem);
  margin-inline: auto;
}

.screen-reader-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  background: var(--accent);
  color: var(--accent-ink);
}

.masthead {
  border-bottom: 1px solid #1c323e;
  background: #091620;
}

.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: .65rem;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
}

.brand img { width: 3rem; height: 3rem; object-fit: contain; }
.brand-accent { color: var(--accent); }

.main-nav, .footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.55rem;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 600;
}

.main-nav a, .footer a { text-decoration: none; }
.main-nav a:hover, .footer a:hover { color: var(--accent-bright); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .62rem 1.03rem;
  border: 1px solid var(--line);
  border-radius: .64rem;
  background: var(--surface);
  color: var(--text);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover { border-color: var(--accent); }
.account-button { justify-self: end; }
.button-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { border-color: var(--accent-bright); background: var(--accent-bright); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(14rem, .83fr);
  align-items: center;
  min-height: 26rem;
  gap: 2.75rem;
  margin-block: 2.25rem 0;
  padding: clamp(2rem, 4.5vw, 4.4rem);
  border: 1px solid #2a5158;
  border-radius: 1.35rem;
  background:
    radial-gradient(ellipse at 85% 18%, #195451 0%, transparent 55%),
    linear-gradient(122deg, #0a2029 12%, #102f3a 69%, #102638);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(#baffeb 0.8px, transparent 0.8px);
  background-size: 1.15rem 1.15rem;
  mask-image: linear-gradient(115deg, transparent 27%, #000 100%);
  opacity: .16;
  pointer-events: none;
  content: "";
}

.hero h1 {
  font-size: clamp(3.1rem, 6.15vw, 6rem);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.077em;
}

.hero h1 span { display: block; color: var(--accent); }

.hero-content > p {
  max-width: 28rem;
  margin-block: 1.28rem 1.75rem;
  color: #c6dbdc;
  font-size: clamp(1rem, 1.7vw, 1.19rem);
  line-height: 1.53;
}

.hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: .85rem; }
.hero-actions .button { padding-inline: 1.2rem; }

.server-address {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  padding: .38rem .45rem .38rem .75rem;
  border: 1px solid #36636a;
  border-radius: .64rem;
  background: #0b252f;
  line-height: 1.13;
}

.server-label { display: block; color: var(--muted); font-size: .79rem; }
.server-address strong { font-size: .92rem; }

.copy-ip {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: .36rem;
  background: transparent;
  color: var(--muted);
}

.copy-ip:hover { background: #173d45; color: var(--accent-bright); }
.copy-icon { position: relative; width: 1.1rem; height: 1.1rem; }
.copy-icon::before, .copy-icon::after {
  position: absolute;
  width: .68rem;
  height: .76rem;
  border: 1.5px solid currentColor;
  border-radius: .15rem;
  content: "";
}

.copy-icon::before { top: 0; left: 0; }
.copy-icon::after { right: 0; bottom: 0; background: #0b252f; }

.copy-feedback:not(:empty) {
  position: absolute;
  z-index: 1;
  top: calc(100% + .45rem);
  left: 0;
  width: max-content;
  max-width: 15rem;
  padding: .43rem .61rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--surface);
  color: var(--accent-bright);
  font-size: .875rem;
  line-height: 1.35;
}

.spotlight {
  display: grid;
  width: 100%;
  max-width: 21.5rem;
  justify-self: end;
  border: 1px solid #407071;
  border-radius: 1rem;
  background: #0c232c;
  box-shadow: 0 1.25rem 2.5rem #04131b80;
  text-decoration: none;
}

.spotlight:hover { border-color: var(--accent); }

.spotlight-art {
  display: grid;
  place-items: center;
  height: clamp(12rem, 24vw, 17rem);
  padding: .95rem;
  border-radius: .95rem .95rem 0 0;
  background:
    radial-gradient(circle at center, #56d7c257 0%, #1a53596b 43%, transparent 44%),
    radial-gradient(circle at center, transparent 49%, #69d7cc49 50%, transparent 50.7%),
    linear-gradient(155deg, #112e39, #0e2530);
}

.spotlight-art img {
  width: min(100%, 15.5rem);
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 .7rem .8rem #020a10a8);
}

.spotlight-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem 1.05rem;
  border-top: 1px solid #375c64;
}

.spotlight-label { display: block; margin-bottom: .2rem; color: #a5d4ce; font-size: .82rem; }
.spotlight-name { font-size: 1.06rem; }
.spotlight-name span { color: var(--muted); font-size: .87rem; font-weight: 600; white-space: nowrap; }
.spotlight-price { color: var(--accent-bright); font-size: 1.08rem; white-space: nowrap; }

.catalog { margin-block: 3.25rem 4.75rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading h2, .help h2 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); line-height: 1.13; letter-spacing: -.054em; }

.search-box input {
  width: min(100%, 20rem);
  min-height: 2.75rem;
  padding: .6rem .85rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--surface);
  color: var(--text);
}

.search-box input::placeholder { color: var(--muted); opacity: 1; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-block: 1.22rem 1.8rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.filters a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .55rem .98rem;
  border: 1px solid var(--line);
  border-radius: .63rem;
  background: var(--surface);
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 650;
  text-decoration: none;
}

.filters a:hover { border-color: #67b5ae; color: var(--text); }
.filters a[aria-current] { border-color: #51bca8; background: #163f42; color: var(--accent-bright); }

.catalog-collections { display: grid; gap: 2.6rem; }
.collection h3 { font-size: 1.55rem; font-weight: 750; letter-spacing: -.032em; }
.collection-header { margin-bottom: 1rem; }
.collection-header p { margin-top: .26rem; color: var(--muted); line-height: 1.45; }

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

.product {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .95rem;
  background: var(--surface);
}

.product:hover { border-color: #5ba69c; }

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: inherit;
  text-decoration: none;
}

.product-art {
  --art-glow: #245b59;
  display: grid;
  place-items: center;
  min-width: 0;
  height: clamp(8rem, 17vw, 11.5rem);
  padding: .8rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: .9rem .9rem 0 0;
  background: radial-gradient(ellipse at 48% 45%, var(--art-glow), transparent 75%), #102430;
}

#llaves .product-art { --art-glow: #403e67; }
#orbes .product-art { --art-glow: #1d5375; }
#pagos-extras .product-art { --art-glow: #4c4051; }
#extras .product-art { --art-glow: #645135; }

.product-art img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 .45rem .65rem #0309119c);
}

.product-info { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.13rem 1.12rem; }
.product-name { margin-bottom: .95rem; font-size: 1.11rem; line-height: 1.32; overflow-wrap: anywhere; }
.product-action { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .52rem .65rem; margin-top: auto; }
.product-price { color: var(--accent-bright); font-size: 1.09rem; }
.product-link { min-height: 2.4rem; padding-inline: .8rem; background: var(--surface-raised); font-size: .875rem; }
.product-card:hover .product-link { border-color: var(--accent); color: var(--accent-bright); }

.empty-state { padding: 1.25rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); }
.empty-state p { margin-bottom: .7rem; }

.help {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr);
  gap: 2.25rem;
  margin-bottom: 3.5rem;
  padding: clamp(1.35rem, 3.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--surface);
}

.help > div > p { max-width: 23rem; margin-block: .65rem 1.15rem; color: var(--muted); line-height: 1.55; }
.help-button { background: #173a40; }
.help-questions details + details { border-top: 1px solid var(--line); }
.help-questions summary { padding: .82rem 0; color: var(--text); font-weight: 650; line-height: 1.4; }
.help-questions summary::marker, .help-questions a { color: var(--accent); }
.help-questions details p { margin-bottom: .9rem; color: var(--muted); line-height: 1.55; }

.footer { padding-block: 1.55rem; border-top: 1px solid #223944; background: #091620; color: var(--muted); }
.footer-inner { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.4rem; }
.footer p, .footer nav { font-size: .875rem; line-height: 1.5; }

@media (max-width: 60rem) {
  .hero { gap: 1.6rem; }
  .masthead-inner { gap: 1rem; }
}

@media (max-width: 46rem) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { grid-template-columns: 1fr auto; min-height: 4.35rem; }
  .main-nav { display: none; }
  .brand img { width: 2.4rem; height: 2.4rem; }
  .hero { grid-template-columns: 1fr; gap: 1.55rem; min-height: initial; margin-top: 1.1rem; padding: 1.55rem; }
  .hero h1 { font-size: clamp(2.6rem, 10vw, 4.4rem); }
  .hero-content > p { margin-block: .85rem 1.2rem; }
  .spotlight { justify-self: start; max-width: 100%; }
  .spotlight-art { height: clamp(10rem, 40vw, 15rem); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .catalog { margin-block: 2rem 3rem; }
  .help { grid-template-columns: 1fr; gap: .9rem; margin-bottom: 2rem; }
}

@media (max-width: 26rem) {
  .masthead-inner { gap: .4rem; }
  .brand { gap: .24rem; font-size: 1rem; }
  .account-button { padding-inline: .6rem; font-size: .875rem; }
  .hero { padding: 1.15rem; }
  .search-box, .search-box input { width: 100%; }
  .product-info { padding: .76rem; }
  .product-name { font-size: 1rem; }
}
