:root {
  --bg: #121113;
  --panel: #1e1c20;
  --border: #393037;
  --gold: #e8a23f;
  --light: #ffd18b;
  --muted: #aaa9ad;
  --text: #f2f2f3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 14px/1.65 Inter, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.container { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.muted, .field-hint { color: var(--muted); font-size: 12px; }
.text-link { color: var(--gold); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-nav {
  background: #19171a;
  border-bottom: 1px solid #57402b;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.wordmark img { width: 59px; height: 59px; object-fit: contain; }
.nav-brand { font: 800 18px Montserrat, sans-serif; letter-spacing: -.5px; }
.nav-brand span { color: var(--gold); }
.site-nav nav { display: flex; align-self: stretch; gap: 25px; margin-right: auto; }
.nav-link {
  display: flex;
  align-items: center;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-weight: 600;
}
.nav-link.active, .nav-link:hover { color: var(--gold); border-color: var(--gold); }
.profile-link { display: flex; align-items: center; gap: 10px; text-align: right; }
.profile-link strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-link small { display: block; color: var(--muted); font-size: 11px; }
.profile-link:hover small { color: var(--gold); }
.pixel-head {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: url("/assets/steve.svg") center/contain no-repeat;
  image-rendering: pixelated;
}
.pixel-head img { display: none; width: 100%; height: 100%; object-fit: contain; }
.pixel-head.has-skin { background: none; }
.pixel-head.has-skin img { display: block; }
.cart-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid #494039;
  border-radius: 5px;
  color: var(--text);
  background: #242224;
}
.cart-trigger b { color: var(--gold); }
.cart-trigger:hover { border-color: var(--gold); }

/* Banner */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #141215;
  border-bottom: 1px solid #332b24;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -2;
  background: radial-gradient(ellipse at 50% 35%, #53322066, transparent 58%);
  animation: banner-glow 14s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #121113, transparent 55%),
              url("/assets/embers.svg") center/700px 350px repeat;
  animation: banner-embers 32s linear infinite;
}
@keyframes banner-glow {
  from { transform: translateX(-5%); opacity: .65; }
  to { transform: translateX(5%); opacity: 1; }
}
@keyframes banner-embers {
  to { background-position: center, 0 -350px; }
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px;
  min-height: 328px;
  padding: 12px 0 26px;
}
.hero-logo {
  width: min(365px, 100%);
  justify-self: center;
  align-self: center;
  animation: logo-float 6s ease-in-out infinite;
}
.hero-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px #080606a8);
}
.hero-side {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 7px 0;
  margin-bottom: 22px;
  color: var(--gold);
  text-align: left;
}
.hero-ip { justify-self: start; }
.hero-discord { justify-self: end; text-align: right; }
.hero-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #191315;
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.hero-circle img { filter: brightness(0); }
.hero-side:hover .hero-circle { transform: translateY(-3px); background: var(--light); }
.hero-label { display: grid; gap: 2px; line-height: 1.25; }
.hero-label strong { font: 800 13px/1.25 Montserrat, sans-serif; }
.hero-label small { color: #ded6d1; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.hero-ip.ip-copied small { color: #91d5a5; }
@keyframes logo-float { 50% { transform: translateY(-5px); } }

/* Tienda */
.layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 15px;
  padding-top: 14px;
  padding-bottom: 50px;
  align-items: start;
  min-height: 350px;
}
.sidebar, .main-content { display: grid; gap: 13px; min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; box-shadow: 0 6px 20px #0002; }
.panel-heading {
  margin: 0;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  background: #272126;
  color: var(--light);
  font-size: 15px;
  font-weight: 700;
}
.category-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 12px 16px;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  transition: color .2s, background .2s;
}
.category-link:last-child { border-bottom: 0; }
.category-link:hover, .category-link.selected { background: #29241f; border-left-color: var(--gold); color: var(--light); }
.category-art { width: 43px; height: 43px; display: grid; place-items: center; flex-shrink: 0; }
.category-art img { width: 43px; height: 43px; object-fit: contain; }
.category-chevron { margin-left: auto; color: var(--muted); font-size: 20px; }
.aside-info, .information-panel { padding: 19px; }
.aside-info h2, .information-panel h2 { font-size: 15px; margin: 0 0 8px; }
.aside-info p, .information-panel p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.information-panel p:last-child { margin-bottom: 0; }
.information-panel a { color: var(--gold); }
.home-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  min-height: 248px;
  padding: 32px;
  background: linear-gradient(115deg, #2b2220, #1e1c20 70%);
  border-color: #59412d;
}
.welcome-copy h1 { margin: 0 0 12px; font: 800 clamp(23px, 3vw, 33px)/1.2 Montserrat, sans-serif; }
.welcome-copy p { color: #c5bdba; max-width: 470px; margin: 0 0 16px; }
.welcome-emblem {
  width: 180px;
  height: 180px;
  display: grid;
  place-items: center;
  justify-self: center;
  background: #382a20;
  border: 1px solid #8c5d335e;
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}
.welcome-emblem img { width: 118px; height: 118px; filter: drop-shadow(0 8px 8px #0006); }
.editions-panel { display: grid; grid-template-columns: 1fr 1fr; }
.edition-item { display: flex; align-items: center; gap: 13px; padding: 20px; }
.edition-item + .edition-item { border-left: 1px solid var(--border); }
.edition-item img, .bedrock-icon { flex-shrink: 0; }
.bedrock-icon { display: grid; place-items: center; width: 36px; height: 36px; background: #393c36; color: #b8d09d; border: 1px solid #647056; font-weight: 800; font-size: 12px; }
.edition-item p { color: var(--muted); font-size: 12px; margin: 2px 0 0; }
.primary-button, .add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: linear-gradient(180deg, #f7ba5e, #df9530);
  color: #23190d;
  box-shadow: inset 0 1px #ffe1aa88, 0 3px 0 #9a611f;
  font-weight: 750;
  font-size: 13px;
  transition: background .2s;
}
.primary-button:hover, .add-button:hover { background: var(--light); }
.home-welcome .primary-button { margin-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 19px 22px; border-bottom: 1px solid var(--border); background: #242024; }
.section-head h2 { font-size: 20px; margin: 0; }
.section-count { color: var(--muted); font-size: 12px; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 17px; }
.product-card { display: flex; flex-direction: column; background: #211f23; border: 1px solid #3b3333; border-radius: 8px; overflow: hidden; transition: border-color .2s, transform .2s; }
.product-card:hover { border-color: #a7763c; transform: translateY(-3px); }
.product-art { height: 182px; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 70%, #79502740, #1b191d 75%); border-bottom: 1px solid #3d3229; padding: 16px; }
.product-art img { max-width: 100%; max-height: 143px; object-fit: contain; transition: transform .2s; filter: drop-shadow(0 7px 9px #0005); }
.product-card:hover .product-art img { transform: translateY(-3px); }
.product-art .fallback-crown { width: 100px; }
.product-details { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-details h3 { font: 750 17px/1.35 Montserrat, sans-serif; margin: 0 0 5px; color: #f5efea; overflow-wrap: anywhere; }
.product-details .description { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.product-price { font-size: 22px; font-weight: 800; color: var(--light); margin: auto 0 14px; font-variant-numeric: tabular-nums; }
.monthly-unit { font-size: 12px; font-weight: 500; color: var(--muted); }
.benefits-button { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 9px; border: 1px solid #494039; border-radius: 5px; background: #1b191c; color: #ded5cf; font-size: 12px; font-weight: 600; }
.benefits-button:hover { background: #332920; }
.loading-card, .empty-state { grid-column: 1/-1; min-height: 170px; padding: 25px; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; color: var(--muted); }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state h3 { color: var(--text); font-size: 16px; }
.empty-state button { background: #2b2520; color: var(--gold); border: 1px solid #56402d; border-radius: 5px; padding: 8px 14px; }
.loader { width: 24px; height: 24px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 22px 0; background: #171719; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer strong { color: var(--gold); }
.footer p, .footer a { color: var(--muted); font-size: 11px; margin: 0; }

/* Carrito */
.checkout-review { display: grid; gap: 14px; min-width: 0; }
.checkout-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 3px 0 8px; }
.checkout-kicker { color: var(--gold); font-size: 11px; font-weight: 700; }
.checkout-title h1 { font: 800 27px Montserrat, sans-serif; margin: 4px 0; }
.checkout-title p { color: var(--muted); margin: 0; font-size: 12px; }
.checkout-title > a { font-size: 12px; white-space: nowrap; }
.checkout-heading { display: flex; align-items: center; gap: 12px; padding: 16px 21px; background: #252125; border-bottom: 1px solid var(--border); }
.checkout-heading h2 { margin: 0; font-size: 15px; font-weight: 750; }
.checkout-symbol { display: grid; place-items: center; width: 29px; height: 29px; color: var(--gold); border-radius: 6px; background: #392b21; font-size: 17px; font-weight: 700; flex-shrink: 0; }
.checkout-symbol img { width: 19px; height: 19px; }
.checkout-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.checkout-body { padding: 21px; }
.cart-items { display: grid; gap: 9px; }
.cart-line { display: flex; align-items: center; gap: 13px; padding: 13px; background: #242126; border: 1px solid #393237; border-radius: 7px; }
.cart-line > img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.cart-detail { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cart-detail strong, .cart-detail small { display: block; }
.cart-detail small { color: var(--muted); font-size: 12px; }
.cart-qty { display: flex; align-items: center; border: 1px solid #4b4037; border-radius: 5px; overflow: hidden; background: #18171a; }
.cart-qty button { color: var(--light); border: 0; background: transparent; font-size: 17px; width: 29px; height: 32px; }
.cart-qty span { min-width: 27px; text-align: center; font-size: 12px; }
.cart-remove { border: 0; background: transparent; color: #efaaa4; font-size: 11px; padding: 7px 2px; }
.cart-remove:hover { text-decoration: underline; }
.cart-empty { text-align: center; padding: 20px; color: var(--muted); }
.cart-empty p { margin: 0 0 8px; }
.review-total { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border); font-size: 13px; }
.review-total strong { font-size: 21px; color: var(--light); }
.coupon-form label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.coupon-field { display: flex; gap: 9px; }
.coupon-field input { width: 100%; min-width: 0; background: #151416; border: 1px solid #494039; border-radius: 6px; padding: 12px 13px; color: var(--text); }
.coupon-field button { padding: 11px 21px; border: 1px solid #a56b35; border-radius: 6px; background: #e8a23f; color: #23190d; font-weight: 750; }
#coupon-message { margin: 0; color: var(--muted); font-size: 12px; }
#coupon-message:not(:empty) { margin-top: 10px; }
#coupon-message.coupon-ok { color: #8bd3a2; }
#coupon-message.coupon-error { color: #ff9b94; }
#coupon-remove { margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--muted); text-decoration: underline; font-size: 12px; }
.checkout-discord { display: flex; align-items: center; justify-content: space-between; gap: 17px; }
.checkout-discord p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.discord-button { flex-shrink: 0; border: 1px solid #696da4; background: #33344c; color: #d4d8ff; border-radius: 5px; padding: 10px 14px; font-size: 12px; font-weight: 700; }
.checkout-account { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #42372f; border-radius: 7px; background: #252126; margin-bottom: 19px; }
.checkout-account div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.checkout-account strong, .checkout-account small { display: block; }
.checkout-account small { color: var(--muted); font-size: 11px; }
.checkout-checks { display: grid; gap: 12px; }
.checkout-checks label { display: flex; align-items: start; gap: 10px; color: #d4cfd0; font-size: 13px; cursor: pointer; }
.checkout-checks input { accent-color: var(--gold); width: 17px; height: 17px; flex-shrink: 0; margin: 2px 0 0; }
.checkout-checks a { color: var(--light); text-decoration: underline; }
.agreement-message { color: #ebbe8a; font-size: 12px; margin: 16px 0 0; border-top: 1px solid var(--border); padding-top: 12px; }
.agreement-message.agreement-ready { color: #8bd3a2; }
.checkout-finish .field-hint { margin: 0 0 13px; }
.checkout-finish .checkout-button { width: 100%; min-height: 46px; }
.review-payment { text-align: center; color: var(--muted); font-size: 11px; margin: 12px 0 0; }
@media(max-width: 600px) {
  .checkout-title, .checkout-discord { align-items: start; flex-direction: column; gap: 10px; }
  .checkout-heading, .checkout-body { padding: 14px; }
  .cart-line { flex-wrap: wrap; gap: 9px; }
  .cart-detail { min-width: 60%; }
  .cart-remove { margin-left: auto; }
}
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 25px); opacity: 0; background: #30271e; border: 1px solid #70502f; padding: 10px 17px; border-radius: 5px; color: var(--light); z-index: 70; pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Login */
body.modal-open { overflow: hidden; }
.player-overlay { position: fixed; inset: 0; background: #000b; backdrop-filter: blur(2px); z-index: 60; display: grid; place-items: center; padding: 20px; overflow: auto; }
.player-modal { width: min(460px, 100%); padding: 30px 34px; border: 1px solid #594333; border-radius: 12px; background: #211e22; box-shadow: 0 22px 65px #0009; text-align: center; }
.modal-brand img { width: 112px; height: 100px; object-fit: contain; }
.player-modal h2 { font: 800 22px/1.3 Montserrat, sans-serif; margin: 10px 0 7px; }
.player-modal p { color: var(--muted); margin: 0 0 18px; }
.player-modal form { display: grid; gap: 12px; }
.nickname-field { display: flex; align-items: center; gap: 12px; padding: 12px; background: #151416; border: 1px solid #494039; border-radius: 7px; }
.nickname-field:focus-within { border-color: var(--gold); }
.nickname-field input { min-width: 0; width: 100%; border: 0; background: transparent; color: var(--text); outline: none; }
.nickname-field input:focus-visible { outline: none; }
.bedrock-prefix { color: var(--gold); font-weight: 700; }
.player-modal #login-error { color: #ff9b94; margin: 0; font-size: 12px; text-align: left; }
.player-modal .recipient-preview { margin: 0; font-size: 12px; color: var(--gold); text-align: left; }
.edition-switch { display: grid; gap: 8px; text-align: left; font-size: 12px; padding-top: 5px; color: var(--muted); }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; border: 1px solid #443b36; background: #171619; border-radius: 7px; padding: 4px; color: var(--muted); }
.switch span { padding: 9px 13px; border-radius: 4px; font-weight: 650; }
.switch[aria-checked=false] span:first-child { background: #382a20; color: var(--light); box-shadow: inset 0 0 0 1px #8a6037; }
.switch[aria-checked=true] span:last-child { background: #382a20; color: var(--light); box-shadow: inset 0 0 0 1px #8a6037; }
.modal-back { display: inline-block; margin-top: 16px; font-size: 12px; color: var(--muted); }
.modal-back:hover { color: var(--gold); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* Beneficios */
.benefits-dialog { position: fixed; inset: 0; margin: auto; width: min(760px, calc(100% - 30px)); max-height: 88vh; max-height: 88dvh; padding: 0; overflow: hidden; background: var(--panel); color: var(--text); border: 1px solid #594333; border-radius: 11px; box-shadow: 0 24px 70px #0008; }
.benefits-dialog[open] { display: flex; flex-direction: column; }
.benefits-dialog::backdrop { background: #000b; backdrop-filter: blur(2px); }
.benefits-header { display: flex; align-items: center; gap: 20px; padding: 22px 54px 22px 24px; position: relative; background: linear-gradient(105deg, #372a21, #242126 72%); border-bottom: 1px solid #5e412b; flex-shrink: 0; }
.benefits-art { width: 90px; height: 90px; flex-shrink: 0; display: grid; place-items: center; }
.benefits-art img { max-height: 90px; object-fit: contain; }
.benefits-heading { min-width: 0; overflow-wrap: anywhere; }
.benefits-heading h2 { font-size: 25px; margin: 0; color: var(--light); }
.rank-duration { color: var(--muted); font-size: 12px; }
.benefits-close { position: absolute; right: 15px; top: 15px; }
.benefits-content { padding: 23px 25px; overflow: auto; min-height: 0; overscroll-behavior: contain; }
.benefits-section-title { color: var(--gold); font-weight: 700; padding-bottom: 11px; border-bottom: 1px solid var(--border); }
.benefits-description { color: #d1d0d3; overflow-wrap: anywhere; }
.benefits-description h1, .benefits-description h2, .benefits-description h3, .benefits-description h4 { color: var(--light); font-size: 17px; margin: 18px 0 7px; }
.benefits-description li { margin: 4px 0; }
.benefits-description li::marker { color: var(--gold); }
.benefits-description img { display: block; max-width: 100%; height: auto; margin: 15px auto; border-radius: 5px; }
.benefits-description code { padding: 2px 5px; background: #322820; color: var(--light); border-radius: 3px; }
.benefits-description pre { white-space: pre-wrap; padding: 12px; background: #151517; border-radius: 5px; }
.benefits-description a { color: var(--gold); text-decoration: underline; }
.benefits-description table { width: 100%; border-collapse: collapse; }
.benefits-description td, .benefits-description th { border: 1px solid var(--border); padding: 8px; }
.benefits-description blockquote { margin-left: 0; border-left: 2px solid var(--gold); padding-left: 13px; }
.benefits-description hr { border: 0; border-top: 1px solid var(--border); }
.benefits-footer { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 15px; padding: 18px 24px; border-top: 1px solid var(--border); background: #242125; }
.benefits-price { display: grid; }
.benefits-price > small { font-size: 11px; color: var(--muted); }
.benefits-price strong { font-size: 22px; color: var(--light); }
.noscript { padding: 15px; text-align: center; }

/* Mobile */
@media(max-width: 1000px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width: 740px) {
  .container { width: calc(100% - 28px); }
  .nav-inner { gap: 12px; min-height: 66px; }
  .wordmark img { width: 46px; height: 46px; }
  .nav-brand { font-size: 14px; }
  .site-nav nav { display: none; }
  .profile-link { margin-left: auto; }
  .profile-link strong { max-width: 105px; font-size: 12px; }
  .profile-link small { font-size: 10px; }
  .cart-trigger span { display: none; }
  .cart-trigger { padding: 8px; }
  .hero-content { grid-template-columns: 1fr 1fr; min-height: 0; gap: 10px; padding: 14px 0 22px; }
  .hero-logo { grid-column: 1/-1; grid-row: 1; width: 245px; }
  .hero-side { margin-bottom: 0; gap: 7px; padding: 5px 0; }
  .hero-circle { width: 30px; height: 30px; }
  .hero-circle img { width: 17px; height: 17px; }
  .hero-label strong { font-size: 10px; }
  .hero-label small { font-size: 8px; }
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .sidebar { gap: 10px; }
  .home-welcome { padding: 23px; grid-template-columns: minmax(0, 1fr) 135px; min-height: 210px; }
  .welcome-emblem { width: 125px; height: 125px; }
  .welcome-emblem img { width: 85px; height: 85px; }
  .footer-content { flex-wrap: wrap; }
  .footer p { order: 3; width: 100%; }
}
@media(max-width: 460px) {
  .nav-brand { display: none; }
  .home-welcome { grid-template-columns: minmax(0, 1fr); }
  .welcome-emblem { display: none; }
  .editions-panel { grid-template-columns: 1fr; }
  .edition-item + .edition-item { border-left: 0; border-top: 1px solid var(--border); }
  .pixel-head { width: 30px; height: 30px; }
  .products-grid { grid-template-columns: 1fr; }
  .player-modal { padding: 24px 19px; }
  .benefits-header { padding: 15px 43px 15px 15px; gap: 12px; }
  .benefits-art { width: 64px; height: 64px; }
  .benefits-art img { max-height: 64px; }
  .benefits-heading h2 { font-size: 19px; }
  .benefits-content, .benefits-footer { padding: 15px; }
  .benefits-footer { flex-wrap: wrap; }
  .benefits-buy { flex: 1; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Informacion del servidor */
.server-info { padding: 27px 30px; }
.server-info-heading { border-bottom: 1px solid var(--border); padding-bottom: 15px; margin-bottom: 18px; }
.server-info-heading span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.server-info-heading h2 { font: 800 25px Montserrat, sans-serif; color: var(--light); margin: 4px 0 0; }
.server-info h3 { font: 800 17px Montserrat, sans-serif; color: var(--gold); margin: 23px 0 7px; }
.server-info p { color: #c5bdba; margin: 0 0 10px; font-size: 13px; line-height: 1.75; }
.server-info-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.server-info-links a { display: flex; align-items: center; gap: 12px; padding: 15px; background: #292329; border: 1px solid #493a30; border-radius: 6px; transition: border-color .2s, background .2s; }
.server-info-links a:hover { border-color: var(--gold); background: #332820; }
.server-info-links img { width: 35px; height: 35px; object-fit: contain; }
.server-info-links strong, .server-info-links small { display: block; }
.server-info-links small { color: var(--muted); font-size: 11px; }
.server-info-links b { margin-left: auto; color: var(--gold); }
@media(max-width: 600px) {
  .server-info { padding: 20px; }
  .server-info-links { grid-template-columns: 1fr; }
}

/* Transicion al resumen del pedido */
.preparing-dialog {
  width: min(355px, calc(100% - 40px));
  padding: 27px 24px 30px;
  border: 1px solid #745334;
  border-radius: 10px;
  background: #211c20;
  color: var(--text);
  box-shadow: 0 24px 70px #0009;
  text-align: center;
}
.preparing-dialog::backdrop { background: #0d0b0dcc; }
.preparing-logo { display: block; width: 94px; height: 82px; object-fit: contain; margin: 0 auto 12px; }
.preparing-spinner {
  display: block;
  width: 29px;
  height: 29px;
  margin: 0 auto 18px;
  border: 2px solid #4b3a2c;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: order-spin .8s linear infinite;
}
.preparing-dialog h2 { margin: 0 0 6px; font: 700 17px Montserrat, sans-serif; }
.preparing-dialog p { margin: 0; color: var(--muted); font-size: 12px; }
@keyframes order-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .preparing-spinner { animation: none !important; } }

/* Movimiento y detalles visuales */
body { isolation: isolate; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 10% 40%, #56341f26, transparent 50%),
              radial-gradient(ellipse at 90% 78%, #794a2222, transparent 48%);
  animation: store-ambience 12s ease-in-out infinite alternate;
}
@keyframes store-ambience {
  from { opacity: .5; }
  to { opacity: 1; }
}
.motion-enter { animation: content-enter .5s cubic-bezier(.2,.65,.3,1); }
.product-card.motion-enter:nth-child(3n+2) { animation-duration: .62s; }
.product-card.motion-enter:nth-child(3n+3) { animation-duration: .74s; }
@keyframes content-enter {
  from { opacity: .25; translate: 0 15px; }
  to { opacity: 1; translate: 0 0; }
}

.home-welcome { position: relative; isolation: isolate; }
.home-welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/assets/embers.svg") center/700px 350px repeat;
  opacity: .35;
  animation: welcome-embers 32s linear infinite;
}
@keyframes welcome-embers {
  to { background-position: 70px -350px; }
}
.welcome-emblem img { animation: emblem-float 5s ease-in-out infinite; }
@keyframes emblem-float {
  50% { transform: translateY(-6px); }
}
.panel, .cart-line { transition: border-color .22s, box-shadow .22s; }
.category-art img, .category-chevron, .server-info-links img, .server-info-links b,
.product-art img, .benefits-button span, .footer a {
  transition: transform .24s ease, color .2s, filter .24s;
}
.category-link:hover .category-art img { transform: translateY(-2px) rotate(-6deg); }
.category-link:hover .category-chevron, .server-info-links a:hover b,
.benefits-button:hover span { transform: translateX(3px); }
.server-info-links a:hover img { transform: translateY(-3px); }
.product-card { transition: transform .24s, border-color .24s, box-shadow .24s; }
.product-card:hover { box-shadow: 0 9px 24px #0004; }
.product-card:hover .product-art img { transform: translateY(-5px) scale(1.035); }
.product-art { position: relative; isolation: isolate; overflow: hidden; }
.product-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, #c3813630, transparent 72%);
  opacity: 0;
  transition: opacity .35s;
}
.product-card:hover .product-art::before { opacity: 1; }
.primary-button, .add-button, .cart-trigger, .coupon-field button, .discord-button,
.benefits-button, .cart-qty button, .cart-remove {
  transition: background-color .2s, border-color .2s, color .2s, transform .18s, box-shadow .18s;
}
.primary-button:not(:disabled):active, .add-button:not(:disabled):active,
.coupon-field button:not(:disabled):active, .cart-trigger:active { transform: translateY(2px); }
.cart-qty button:not(:disabled):hover { background: #34291f; }
.checkout-checks label { transition: color .2s; }
.checkout-checks label:hover { color: var(--light); }
.coupon-field input, .nickname-field { transition: border-color .2s, box-shadow .2s; }
.coupon-field input:focus, .nickname-field:focus-within { border-color: var(--gold); }
.footer a:hover { color: var(--light); }
.player-modal, .benefits-dialog[open], .preparing-dialog[open] {
  animation: window-enter .28s cubic-bezier(.2,.7,.3,1);
}
.player-overlay:not([hidden]), .benefits-dialog::backdrop, .preparing-dialog::backdrop {
  animation: backdrop-enter .22s ease-out;
}
@keyframes window-enter {
  from { opacity: 0; transform: translateY(9px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
.benefits-close {
  background: #1b181c;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 5px;
  width: 32px;
  height: 32px;
  line-height: 1;
  font-size: 21px;
}
.benefits-close:hover { border-color: var(--gold); }
@media (hover: none) {
  .product-card:hover, .product-card:hover .product-art img { transform: none; }
}

/* Cambio de pagina */
body.page-changing { overflow: hidden; }
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at center, #30231b, #141215 65%);
  animation: backdrop-enter .16s ease-out;
}
.transition-inner { width: min(220px, 72vw); text-align: center; }
.transition-inner img {
  display: block;
  width: 126px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 8px 18px #0008);
  animation: emblem-float 2s ease-in-out infinite;
}
.transition-inner span { color: var(--light); font-size: 13px; font-weight: 600; }
.transition-track {
  height: 3px;
  margin-top: 13px;
  background: #483629;
  border-radius: 4px;
  overflow: hidden;
}
.transition-track i {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  animation: navigation-load .7s ease-in-out infinite;
}
@keyframes navigation-load {
  from { transform: translateX(-110%); }
  to { transform: translateX(270%); }
}


@media(max-width: 370px) {
  .hero-circle { width: 26px; height: 26px; }
  .hero-label strong { font-size: 9px; }
  .hero-side { gap: 5px; }
}

/* Navegacion del catalogo */
.layout, .hero-content { max-width: 1120px; }
.categories-panel { border-color: #3e332c; }
.categories-panel .panel-heading { font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; padding: 17px 15px; background: #292126; }
.category-links > * + * { border-top: 1px solid #393137; }
.category-link { width: 100%; min-height: 65px; padding: 10px 12px; border-bottom: 0; gap: 10px; color: #d4c7be; font: 800 11px/1.4 Montserrat, sans-serif; text-transform: uppercase; }
.category-art, .category-art img { width: 39px; height: 39px; }
.category-chevron { font-size: 15px; }
.category-toggle { cursor: pointer; list-style: none; }
.category-toggle::-webkit-details-marker { display: none; }
.category-group[open] > .category-toggle .category-chevron { transform: rotate(180deg); }
.category-group[open] > .category-toggle, .category-group.active-group > .category-toggle { color: var(--light); background: #2e2524; }
.subcategory-list { background: #252025; padding: 2px 0 9px; }
.subcategory-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 24px; color: #c7b8ae; font-size: 11px; font-weight: 600; transition: color .2s, background .2s; }
.subcategory-link::before { content: ""; width: 5px; height: 5px; background: #bf8a48; transform: rotate(45deg); flex-shrink: 0; }
.subcategory-link:hover, .subcategory-link.selected { color: var(--light); background: #382b24; }
.subcategory-list .subcategory-list { margin-left: 12px; }
.category-group[open] > .subcategory-list { animation: content-enter .22s ease-out; }
.catalog-preview { padding: 17px; }
.catalog-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.catalog-preview-heading h1 { margin: 0; color: var(--light); font: 800 16px Montserrat, sans-serif; }
.catalog-preview-heading a { font-size: 11px; }
.catalog-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.catalog-preview-link { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 11px 9px; border: 1px solid #57412e; border-radius: 5px; background: linear-gradient(120deg, #352921, #252126 75%); transition: border-color .2s, transform .2s; }
.catalog-preview-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.catalog-preview-link .category-art, .catalog-preview-link .category-art img { width: 36px; height: 36px; }
.catalog-preview-copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.catalog-preview-copy strong, .catalog-preview-copy small { display: block; }
.catalog-preview-copy strong { font: 700 11px/1.4 Montserrat, sans-serif; color: var(--light); }
.catalog-preview-copy small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.catalog-preview-arrow { color: var(--gold); font-size: 17px; }
.server-info { padding: 21px 22px; }
.server-info-heading h2 { font-size: 22px; }
.server-info h3 { margin-top: 20px; }
@media(max-width: 900px) { .catalog-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 460px) { .catalog-preview-grid { grid-template-columns: 1fr; } .catalog-preview { padding: 14px; } }

.catalog-status { color: var(--muted); font-size: 11px; padding: 10px 13px; border-top: 1px solid var(--border); margin: 0; }
.catalog-retry { background: none; border: 0; padding: 0; color: var(--light); font-size: inherit; text-decoration: underline; }

.category-child-section { grid-column: 1/-1; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.category-child-section h3 { color: var(--light); margin: 0 0 12px; font: 700 14px Montserrat, sans-serif; }
.category-child-section:last-child { border: 0; padding-bottom: 0; }
.category-group summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

/* Categorias superiores */
.site-nav { position: relative; z-index: 5; }
.site-nav .nav-inner { max-width: 1120px; gap: 18px; flex-wrap: wrap; }
.site-nav .top-categories { display: flex; flex: 1; align-items: stretch; align-self: stretch; flex-wrap: wrap; gap: 4px 18px; margin: 0; min-width: 0; }
.top-categories .nav-link { font-size: 12px; min-height: 42px; padding: 0; white-space: nowrap; }
.top-category { position: relative; display: flex; }
.top-category summary { cursor: pointer; list-style: none; gap: 5px; }
.top-category summary::-webkit-details-marker { display: none; }
.top-category[open] summary { color: var(--gold); }
.top-chevron { font-size: 13px; transition: transform .2s; }
.top-category[open] .top-chevron { transform: rotate(180deg); }
.top-category-menu { position: absolute; top: 100%; left: -10px; width: max-content; min-width: 205px; max-width: min(300px, 85vw); max-height: 65vh; overflow: auto; padding: 6px; border: 1px solid #4c3c32; border-radius: 8px; background: #232025; box-shadow: 0 14px 28px #0006; animation: content-enter .18s ease-out; }
.top-subcategory { display: block; padding: 10px 12px; color: #e3d9d2; font-size: 12px; border-radius: 5px; overflow-wrap: anywhere; }
.top-subcategory:hover, .top-subcategory.selected { color: var(--light); background: #382b24; }
.top-group-name { display: block; padding: 9px 12px 3px; color: var(--gold); font-size: 10px; font-weight: 700; }

/* Productos opcionales del pedido */
.checkout-layout { max-width: 1320px; grid-template-columns: 220px minmax(0, 1fr) 235px; margin-inline: auto; }
.checkout-extras { min-width: 0; }
.extras-panel { background: #1b191d; border-color: #393033; }
.extras-panel .panel-heading {
  margin: 0;
  padding: 17px 15px 2px;
  background: transparent;
  border: 0;
  font: 750 13px/1.4 Montserrat, sans-serif;
  color: #f3eae0;
}
.extras-note { color: var(--muted); font-size: 11px; margin: 3px 15px 12px; }
.checkout-suggestions { padding: 0 14px 8px; }
.checkout-suggestions > .muted { margin: 10px 0; }
.extra-product {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 29px;
  align-items: center;
  gap: 9px;
  padding: 13px 0;
  border-top: 1px solid #352e32;
  animation: content-enter .25s ease-out;
}
.extra-product > img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px #0005);
}
.extra-details { min-width: 0; }
.extra-info {
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  border: 0;
  background: none;
  color: #eee8e2;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.extra-info:hover:not(:disabled) { color: var(--light); text-decoration: underline; text-underline-offset: 3px; }
.extra-details small { display: block; color: #d9af79; font-size: 11px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.extra-add {
  width: 29px;
  height: 29px;
  border: 1px solid #725334;
  border-radius: 5px;
  background: transparent;
  color: var(--light);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  padding: 0;
  display: grid;
  place-items: center;
  transition: background .18s, border-color .18s;
}
.extra-add:hover:not(:disabled) { border-color: var(--gold); background: #392b20; }
@media(max-width: 1100px) {
  .checkout-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .checkout-extras { grid-column: 2; }
  .checkout-suggestions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 18px; }
}
@media(max-width: 740px) {
  .site-nav .nav-inner { gap: 6px 12px; }
  .site-nav .top-categories { order: 5; flex-basis: 100%; gap: 2px 14px; border-top: 1px solid var(--border); }
  .top-categories .nav-link { font-size: 11px; min-height: 34px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-extras { grid-column: 1; }
}

/* Acabados de interfaz */
.player-modal .primary-button { min-height: 45px; }
.player-modal #player-form { gap: 14px; }
.player-modal .edition-switch { order: -1; }
.player-modal .modal-back { margin-top: 21px; }
.benefits-art { background: #1b171b77; border-radius: 8px; padding: 8px; }
.benefits-heading h2 { color: #f5efea; font: 800 23px/1.3 Montserrat, sans-serif; }
.benefits-section-title { font-size: 13px; }
.benefits-description { font-size: 14px; line-height: 1.75; }
.checkout-checks label { padding: 8px 0; }
.checkout-checks label + label { border-top: 1px solid #342e32; }
.checkout-checks input { accent-color: var(--gold); }
.checkout-extras .extras-note { line-height: 1.55; }
.top-category summary:focus-visible { outline-offset: 2px; }
@media(max-width: 600px) {
  .checkout-body, .checkout-heading { padding: 15px; }
  .benefits-header { gap: 12px; }
  .benefits-heading h2 { font-size: 19px; }
  .benefits-content, .benefits-footer { padding: 16px; }
}
