/* ==============================================================================
   BATTLEWORLD NETWORK - ESTILO MINECRAFT OFICIAL
   Tipografias Minecraftia y MinecraftTen
   Reglas de usuario aplicadas: Paleta oficial, Rarezas, Regla 7 y Facepoints
   ============================================================================== */

@font-face {
  font-family: 'MinecraftTen';
  src: url('../assets/fonts/MinecraftTen.woff') format('woff'),
       url('/assets/fonts/MinecraftTen.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Minecraftia';
  src: url('../assets/fonts/Minecraftia.woff') format('woff'),
       url('/assets/fonts/Minecraftia.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Fondo abisal y superficies de obsidiana */
  --p-bg: #090611;
  --p-surface: #120b22;
  --p-surface-elevated: #1a1030;
  --p-ink: #f1f5f9;
  --p-muted: #a5acb8;
  --p-accent: #6e2dff;
  --p-accent-ink: #ffffff;
  --p-action: #6e2dff;
  --p-action-hover: #8b5cf6;
  --p-action-ink: #ffffff;

  /* Fuentes Minecraft y de texto */
  --font-mc-title: 'MinecraftTen', 'Minecraftia', sans-serif;
  --font-mc-pixel: 'Minecraftia', monospace, sans-serif;
  --font-display: var(--font-mc-title);
  --font-text: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Martian Mono', monospace;

  /* Paleta oficial de reglas de usuario */
  --color-error: #D92625;
  --color-action-sec: #0097D8;
  --color-action-pri: #83CA16;
  --color-success: #83CA16;
  --color-warning: #F59E0B;
  --color-info: #38BDF8;
  --color-featured: #FFD43B;
  --color-special: #A855F7;
  --color-progress: #8B5CF6;
  --color-reward: #FACC15;
  --color-active: #22C55E;
  --color-inactive: #6B7280;
  --color-locked: #991B1B;
  --color-lore-sec: #A5ACB8;
  --color-text-muted: #6B7280;
  --color-text-main: #F1F5F9;
  --color-economy: #EAB308;
  --color-discount: #84CC16;
  --color-title-cyan: #06B6D4;
  --color-facepoints: #e370df;

  /* Variables globales de compatibilidad */
  --theme-primary: var(--p-action);
  --theme-primary-hover: var(--p-action-hover);
  --theme-secondary: #8b5cf6;
  --theme-glow: rgba(110, 45, 255, 0.35);
  --bg-deep: var(--p-bg);
  --bg-card: var(--p-surface);
  --bg-card-hover: var(--p-surface-elevated);
  --bg-card-border: rgba(110, 45, 255, 0.3);
  --bg-input: #0a0614;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 96px;
}

body {
  background: var(--p-bg);
  color: var(--p-ink);
  font-family: var(--font-text);
  overflow-x: clip;
}

button, input, select, textarea {
  font-family: inherit;
}

button, a, input {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--p-action-hover);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: normal;
  letter-spacing: 0.03em;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.85);
}

p {
  text-wrap: pretty;
}

.wrap {
  width: calc(100% - 2 * var(--gut, 24px));
  max-width: 1280px;
  margin-inline: auto;
}

/* ==============================================================================
   HEADER Y LOGO OFICIAL BATTLEWORLD
   ============================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(9, 6, 17, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(110, 45, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  z-index: 100;
}

.main-header .nav__bar {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.nav-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-logo-wrap:hover .nav-logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 14px rgba(110, 45, 255, 0.6));
}

.nav-store-badge {
  font-family: var(--font-mc-title);
  font-size: 11px;
  letter-spacing: 0.08em;
  background: rgba(110, 45, 255, 0.25);
  color: #ffd43b;
  border: 1px solid #6e2dff;
  padding: 3px 8px;
  border-radius: 4px;
  text-shadow: 1px 1px 0 #000;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  color: #d3c9e0;
  background: none;
  border: 0;
  font-family: var(--font-mc-title);
  font-size: 13px;
  letter-spacing: 0.04em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-shadow: 1px 1px 0 #000;
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: #ffd43b;
}

.nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Pastilla IP en Nav */
.nav-ip-pill {
  background: #140b24;
  border: 2px solid;
  border-top-color: rgba(255, 255, 255, 0.15);
  border-left-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: rgba(0, 0, 0, 0.6);
  border-right-color: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  padding: 6px 14px;
  color: #f1f5f9;
  font-family: var(--font-mc-pixel);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 #000;
  cursor: pointer;
  transition: all 0.12s ease;
}

.nav-ip-pill:hover {
  filter: brightness(1.15);
  border-color: #8b5cf6;
}

.nav-ip-pill:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 transparent;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-active);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-active);
  display: inline-block;
  animation: mcPulse 1.8s infinite;
}

@keyframes mcPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.nav-ip-text {
  color: #ffffff;
}

.nav-online-pill {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
}

/* Boton de Carrito Minecraft */
.cart-trigger-btn {
  background: #19102e;
  color: var(--p-ink);
  border: 2px solid;
  border-top-color: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.15);
  border-bottom-color: rgba(0, 0, 0, 0.7);
  border-right-color: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  min-height: 44px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.12s ease;
}

.cart-trigger-btn:hover {
  filter: brightness(1.15);
  border-color: #8b5cf6;
}

.cart-trigger-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 transparent;
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #d92625;
  color: #ffffff;
  font-family: var(--font-mc-title);
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cart-btn-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.cart-text-label {
  font-family: var(--font-mc-pixel);
  color: #a5acb8;
  font-size: 10px;
}

.cart-price-preview {
  font-family: 'Montserrat', 'Onest', sans-serif !important;
  font-size: 13px;
  font-weight: 800;
  color: #ffd43b;
  text-shadow: none;
}

/* ==============================================================================
   HERO MINECRAFT SHOWCASE CON LOGO BATTLEWORLD
   ============================================================================== */
.hero--minecraft {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #090611;
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(1px) contrast(1.1);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(110, 45, 255, 0.18) 0%, rgba(9, 6, 17, 0.95) 75%);
  pointer-events: none;
}

.hero-stage {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 16px 40px;
}

.hero-brand-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-wrapper {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.hero-battleworld-logo {
  width: min(560px, 90vw);
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(110, 45, 255, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
  animation: mcLogoFloat 4s ease-in-out infinite;
}

@keyframes mcLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-splash-chip {
  display: inline-block;
  background: #facc15;
  color: #110d1c;
  font-family: var(--font-mc-title);
  font-size: 13px;
  padding: 4px 16px;
  border-radius: 4px;
  border: 2px solid #845305;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.6);
  transform: rotate(-3deg);
  margin-top: -10px;
  z-index: 3;
  animation: mcSplash 2s ease-in-out infinite;
}

@keyframes mcSplash {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(-3deg) scale(1.04); }
}

.hero-mc-title {
  font-family: var(--font-mc-title);
  font-size: clamp(28px, 4.2vw, 44px);
  color: #ffffff;
  margin-bottom: 14px;
  text-shadow: 2px 2px 0px #000, 0 0 20px rgba(110, 45, 255, 0.6);
  letter-spacing: 0.04em;
}

.hero__lead {
  font-family: var(--font-text);
  font-size: clamp(15px, 1.8vw, 18px);
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.hero-gold-price {
  color: #ffd43b;
  font-family: 'Montserrat', 'Onest', sans-serif !important;
  font-size: 1.15em;
  font-weight: 800;
  text-shadow: none;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-server-status {
  margin-top: 24px;
  font-family: var(--font-mc-pixel);
  font-size: 13px;
  color: #a5acb8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-active);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-active);
}

/* ==============================================================================
   BOTONES TACTILES MINECRAFT (MC-BTN Y BTN-OR)
   ============================================================================== */
.mc-btn, .btn-or {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mc-title);
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  min-height: 46px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid;
  border-top-color: rgba(255, 255, 255, 0.35);
  border-left-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(0, 0, 0, 0.75);
  border-right-color: rgba(0, 0, 0, 0.55);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.9);
  transition: transform 0.08s ease, filter 0.15s ease, box-shadow 0.08s ease;
  user-select: none;
}

.mc-btn:hover, .btn-or:hover {
  filter: brightness(1.15);
}

.mc-btn:active, .btn-or:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.mc-btn-purple, .btn-or-purple {
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff !important;
}

.mc-btn-stone, .btn-or-white {
  background: linear-gradient(180deg, #2d2342 0%, #1a1429 100%);
  color: #f1f5f9 !important;
}

.mc-btn-emerald, .btn-or-green {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  color: #ffffff !important;
}

.mc-btn-gold, .btn-or-gold {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  color: #ffffff !important;
}

.btn-primary-action {
  background: linear-gradient(180deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff !important;
  font-family: var(--font-mc-title);
  border-radius: 4px;
  border: 2px solid;
  border-top-color: rgba(255, 255, 255, 0.35);
  border-left-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(0, 0, 0, 0.75);
  border-right-color: rgba(0, 0, 0, 0.55);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45);
  text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.9);
}

/* ==============================================================================
   SECCION DE CATALOGO MINECRAFT
   ============================================================================== */
/* Desactivar bloqueo de altura fija por pantalla para permitir flujo natural de la tienda */
main > section:not(.hero),
main > .section:not(.hero),
.catalog-section,
.team-section,
.community-section,
footer.closing {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative !important;
  box-sizing: border-box !important;
  padding-block: 80px 60px;
}

main > section:not(.hero) > :is(.wrap, .container),
main > .section:not(.hero) > :is(.wrap, .container),
footer.closing > .wrap {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  border-bottom: 2px solid rgba(110, 45, 255, 0.25);
  padding-bottom: 20px;
}

.section-heading .t-label {
  font-family: var(--font-mc-pixel);
  color: var(--color-title-cyan);
  font-size: 12px;
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 #000;
}

.section-heading h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  color: #f1f5f9;
}

.section-heading > p {
  color: #a5acb8;
  font-size: 14px;
  max-width: 320px;
  text-align: right;
}

/* Barra de cuenta y preferencias */
.store-account-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
  background: #120b22;
  border: 2px solid rgba(110, 45, 255, 0.25);
  border-radius: 6px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.player-auth-card {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-preview-wrapper {
  position: relative;
}

.player-head-img {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  border: 2px solid #6e2dff;
  box-shadow: 0 0 10px rgba(110, 45, 255, 0.5);
  image-rendering: pixelated;
}

.verified-dot {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: var(--color-active);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  border: 1px solid #000;
}

.player-label {
  font-family: var(--font-mc-pixel);
  font-size: 11px;
  color: var(--color-title-cyan);
  text-shadow: 1px 1px 0 #000;
  display: block;
  margin-bottom: 4px;
}

.input-with-button {
  display: flex;
  align-items: center;
}

#player-input {
  background: #0a0614;
  color: #ffd43b;
  font-family: var(--font-mc-title);
  font-size: 14px;
  border: 2px solid rgba(110, 45, 255, 0.4);
  border-right: none;
  padding: 8px 12px;
  border-radius: 4px 0 0 4px;
  min-height: 40px;
  outline: none;
}

#player-input:focus {
  border-color: #8b5cf6;
}

.btn-verify {
  min-height: 40px;
  background: #6e2dff;
  color: #ffffff;
  border: 2px solid #8b5cf6;
  border-radius: 0 4px 4px 0;
  padding: 0 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-verify:hover {
  background: #8b5cf6;
}

.store-preferences {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-toggle {
  display: flex;
  gap: 6px;
  background: #0a0614;
  padding: 4px;
  border-radius: 4px;
  border: 1px solid rgba(110, 45, 255, 0.3);
}

.currency-btn {
  background: transparent;
  color: #a5acb8;
  border: none;
  font-family: var(--font-mc-title);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.currency-btn.active {
  background: #6e2dff;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.sound-toggle-btn {
  background: #19102e;
  border: 2px solid rgba(110, 45, 255, 0.3);
  color: #d3c9e0;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
}

.sound-toggle-btn:hover {
  filter: brightness(1.15);
}

/* Pestañas de categorias estilo Creative Inventory */
.categories-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.categories-nav .cat-tab {
  font-family: 'Montserrat', 'Onest', -apple-system, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 8px 8px 0 0;
  background: #160e26;
  border: 2px solid;
  border-color: rgba(255, 255, 255, 0.15) rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.7) rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.categories-nav .cat-tab:hover {
  background: #251744;
  color: #ffffff;
}

.categories-nav .cat-tab.active {
  background: linear-gradient(180deg, #6e2dff 0%, #4c1d95 100%);
  border-color: #8b5cf6 #2e1065 #2e1065 #a78bfa;
  color: #ffffff;
  box-shadow: 0 -2px 10px rgba(110, 45, 255, 0.4);
}

/* Banner de jugador activo */
.active-player-banner {
  background: linear-gradient(90deg, #160e28 0%, #0d071a 100%);
  border: 2px solid rgba(110, 45, 255, 0.35);
  border-radius: 6px;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.player-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 2px solid var(--color-active);
  image-rendering: pixelated;
}

.banner-label {
  font-family: var(--font-mc-pixel);
  font-size: 11px;
  color: #a5acb8;
  display: block;
}

.banner-username {
  font-family: var(--font-mc-title);
  font-size: 16px;
  color: #ffd43b;
  text-shadow: 1px 1px 0 #000;
}

.banner-uuid {
  font-family: var(--font-mc-pixel);
  font-size: 11px;
  color: var(--color-active);
  margin-left: 8px;
}

.btn-change-nick {
  font-family: var(--font-mc-title);
  font-size: 12px;
  background: #1c1333;
  color: #f1f5f9;
  border: 2px solid rgba(110, 45, 255, 0.4);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-change-nick:hover {
  background: #2a1c4d;
}

/* Barra de busqueda */
.store-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.search-field {
  flex: 1;
  max-width: 500px;
}

.search-field label {
  font-family: var(--font-mc-pixel);
  font-size: 11px;
  color: #a5acb8;
  margin-bottom: 6px;
  display: block;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: #0a0614;
  border: 2px solid rgba(110, 45, 255, 0.35);
  border-radius: 4px;
  padding: 0 12px;
}

.search-input-wrapper:focus-within {
  border-color: #8b5cf6;
}

.search-icon {
  color: #a5acb8;
  margin-right: 8px;
}

#store-search-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 14px;
  min-height: 42px;
}

.catalog-counter-badge {
  font-family: var(--font-mc-title);
  font-size: 13px;
  color: var(--color-title-cyan);
  text-shadow: 1px 1px 0 #000;
}

/* Grid de paquetes */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* ==============================================================================
   TARJETAS DE PAQUETES (CRATES MINECRAFT)
   ============================================================================== */
.or-crate-card {
  background: linear-gradient(180deg, #150d26 0%, #0d071a 100%);
  border: 2px solid var(--rarity-border, rgba(110, 45, 255, 0.35));
  border-radius: 8px;
  padding: 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 12px rgba(110, 45, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.or-crate-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.or-crate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), 0 0 20px var(--rarity-border, rgba(110, 45, 255, 0.4));
  border-color: var(--rarity-border);
}

.or-crate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Rarezas oficiales segun Regla 5 */
.or-rarity-tag {
  font-family: var(--font-mc-title);
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 0 #000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.or-badge-pill {
  font-family: var(--font-mc-pixel);
  font-size: 11px;
  background: #372359;
  color: #ffd43b;
  border: 1px solid rgba(255, 212, 59, 0.4);
  padding: 3px 8px;
  border-radius: 4px;
  text-shadow: 1px 1px 0 #000;
}

/* Recuadro de Item Slot Minecraft */
.or-crate-preview-area {
  height: 140px;
  margin-bottom: 18px;
  background: #090514;
  border-radius: 6px;
  border: 2px solid;
  border-top-color: #030208;
  border-left-color: #030208;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  border-right-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 2px 2px 8px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.or-crate-halo {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(16px);
  pointer-events: none;
}

.mc-asset-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
}

.coin-asset-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  image-rendering: auto !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.75));
}

.or-crate-card:hover .mc-asset-img {
  transform: scale(1.12) rotate(3deg);
}

.or-crate-title {
  font-family: var(--font-mc-title);
  font-size: 20px;
  line-height: 1.3;
  min-height: 52px;
  max-height: 52px;
  color: #f1f5f9;
  text-shadow: 2px 2px 0px #000;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.or-crate-desc {
  font-size: 13px;
  line-height: 1.45;
  min-height: 38px;
  max-height: 38px;
  color: #cbd5e1;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Regla 7: Subtitulo › {Titulo} con 2 espacios de sangria */
.or-section-subtitle-rule7 {
  display: block;
  margin-block: 8px 6px;
  min-height: 44px;
}

.or-rule7-heading {
  font-family: var(--font-mc-pixel);
  font-size: 13px;
  color: var(--color-title-cyan);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 1px 1px 0 #000;
}

.or-rule7-body {
  font-size: 13px;
  color: #a5acb8;
  padding-left: 14px;
  margin-top: 2px;
}

/* Caja Lore de Minecraft Tooltip */
.or-perks-list-rule7 {
  list-style: none;
  background: rgba(10, 5, 20, 0.75);
  border: 1px solid rgba(110, 45, 255, 0.3);
  border-radius: 6px;
  padding: 12px;
  margin: 6px 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  min-height: 124px;
  flex: 1 1 auto;
}

.or-perks-list-rule7 li {
  font-family: var(--font-mc-pixel);
  font-size: 12px;
  line-height: 1.4;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-shadow: 1px 1px 0 #000;
  min-height: 26px;
}

/* Subfiltros elegantes para Spawners */
.catalog-subfilters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: #120b22;
  border: 1px solid rgba(110, 45, 255, 0.25);
  border-radius: 6px;
}

.subfilter-pill {
  font-family: var(--font-mc-pixel);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(110, 45, 255, 0.4);
  background: #1a1030;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.subfilter-pill:hover {
  border-color: #ffd43b;
  color: #ffd43b;
  background: #251642;
}

.subfilter-pill.active {
  background: #6e2dff;
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 0 10px rgba(110, 45, 255, 0.5);
}

.or-perks-list-rule7 .perk-bullet {
  color: var(--color-active);
  font-weight: bold;
}

.or-crate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.or-price-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.or-price-primary {
  font-family: 'Montserrat', 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 1.45rem !important;
  font-weight: 800 !important;
  color: #ffd43b !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
  line-height: 1.1;
  display: inline-flex;
  align-items: baseline;
}

.or-price-facepoints {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #e370df !important;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: none !important;
}

.fp-diamond {
  color: var(--color-facepoints) !important;
}

.btn-add-cart {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.88rem;
  font-family: 'Montserrat', 'Onest', -apple-system, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-shadow: none !important;
}

/* Paginacion */
.catalog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
}

.catalog-pagination > span {
  font-family: var(--font-mc-pixel);
  font-size: 12px;
  color: #a5acb8;
}

/* ==============================================================================
   EQUIPO Y COMUNIDAD
   ============================================================================== */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.crew-member {
  background: #140b24;
  border: 2px solid rgba(110, 45, 255, 0.25);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
}

.crew-member > img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  margin-bottom: 16px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.crew-member h3 {
  font-family: var(--font-mc-title);
  font-size: 22px;
  color: #ffd43b;
  margin-bottom: 6px;
}

.crew-member p {
  font-family: var(--font-mc-pixel);
  font-size: 12px;
  color: var(--color-title-cyan);
  margin-bottom: 8px;
}

.crew-member span {
  font-size: 13px;
  color: #a5acb8;
  line-height: 1.5;
}

/* Comunidad */
.community-section {
  background: linear-gradient(180deg, #090611 0%, #150d28 100%);
  border-top: 2px solid rgba(110, 45, 255, 0.3);
  border-bottom: 2px solid rgba(110, 45, 255, 0.3);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}

main > .community-section > :is(.wrap, .container),
.community-section .wrap {
  display: grid !important;
  grid-template-columns: 1fr 360px !important;
  flex-direction: row !important;
  align-items: center;
  gap: 48px;
}

.community-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.community-mascot-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.community-mascot-wrapper::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.35) 0%, rgba(139, 92, 246, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.community-mascot-img {
  position: relative;
  z-index: 1;
  max-width: 340px;
  max-height: 440px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(88, 101, 242, 0.45)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  transition: transform 0.35s ease, filter 0.35s ease;
  animation: floatMascot 4s ease-in-out infinite;
}

.community-mascot-img:hover {
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 20px 45px rgba(88, 101, 242, 0.65)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

@keyframes floatMascot {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  main > .community-section > :is(.wrap, .container),
  .community-section .wrap {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 28px;
  }
  .community-content {
    align-items: center;
  }
  .community-mascot-wrapper {
    order: -1;
    margin-bottom: 12px;
  }
  .community-mascot-img {
    max-width: 220px;
    max-height: 280px;
  }
}

.community-section .mo-wh__text {
  max-width: 960px;
  font-family: var(--font-mc-title);
  font-size: clamp(24px, 3.5vw, 40px);
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
}

.community-section .mo-wh__text strong {
  color: #ffd43b;
}

.community-notes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.community-notes p {
  padding-top: 16px;
  border-top: 2px solid rgba(110, 45, 255, 0.3);
  font-family: var(--font-mc-pixel);
  font-size: 13px;
  color: #cbd5e1;
}

.community-notes span {
  color: #ffd43b;
  margin-right: 8px;
}

/* ==============================================================================
   FOOTER (ESTILOS CONSOLIDADOS EN CSS/FOOTER.CSS)
   ============================================================================== */


/* Modales y Cajon de Carrito */
.modal-card, .cart-panel {
  background: #140b24;
  border: 2px solid rgba(110, 45, 255, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(110, 45, 255, 0.3);
}

.modal-header h3, .cart-header h3 {
  font-family: var(--font-mc-title);
  color: #ffffff;
}

.toast-container {
  max-width: calc(100vw - 32px);
}

/* ==============================================================================
   RESPONSIVE DESIGN (DESKTOP, TABLET, MOBILE)
   ============================================================================== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .main-header .nav__links {
    display: none;
  }
  .nav-ip-pill {
    display: none;
  }
  .products-grid, .crew-grid {
    grid-template-columns: 1fr;
  }
  .community-notes {
    grid-template-columns: 1fr;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-heading > p {
    text-align: left;
  }
  .store-account-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .store-preferences {
    width: 100%;
    justify-content: flex-start;
  }
  .active-player-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-close {
    flex-direction: column;
    align-items: flex-start;
  }
  .or-footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  .hero-battleworld-logo {
    width: min(340px, 92vw);
  }
  .hero-mc-title {
    font-size: 24px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .mc-btn {
    width: 100%;
  }
  .categories-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .categories-nav .cat-tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .or-crate-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-add-cart {
    width: 100%;
  }
  .or-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
