/* ==========================================================================
   MYLIFECRAFT - ULTRA-PREMIUM ECOMMERCE DESIGN SYSTEM (UI/UX PRO MAX - /diseño)
   Paleta Basada en Logo Oficial: Voxel Amber Gold, Emerald Forest & Obsidian Nether
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&family=Unbounded:wght@700;800;900&display=swap');

:root {
  /* Tokens Semánticos Oficiales (/diseño SKILL COMPLIANT) */
  --color-primary: #f59e0b;        /* Voxel Amber Gold del gato y corona */
  --color-primary-dark: #d97706;
  --color-primary-glow: 0 0 36px rgba(245, 158, 11, 0.45);

  --color-secondary: #22c55e;      /* Emerald Green de ojos, bosques y cristales */
  --color-secondary-dark: #16a34a;
  --color-secondary-glow: 0 0 36px rgba(34, 197, 94, 0.45);

  --color-accent-purple: #a855f7;  /* Portal Nether Purple */
  --color-accent-cyan: #06b6d4;    /* Nether Star Diamond Blue */

  --color-surface-bg: #09090b;     /* Obsidian Deep Charcoal */
  --color-surface-card: rgba(18, 19, 24, 0.82);
  --color-surface-card-hover: rgba(26, 27, 36, 0.94);
  --color-surface-glass: rgba(9, 9, 11, 0.85);

  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(245, 158, 11, 0.55);
  --color-border-green: rgba(34, 197, 94, 0.45);

  --color-text: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;

  /* Sistema de Rarezas RPG Pro */
  --rarity-common: #94a3b8;
  --rarity-rare: #38bdf8;
  --rarity-rare-glow: 0 0 24px rgba(56, 189, 248, 0.45);
  --rarity-epic: #c084fc;
  --rarity-epic-glow: 0 0 30px rgba(192, 132, 252, 0.55);
  --rarity-legendary: #fbbf24;
  --rarity-legendary-glow: 0 0 40px rgba(251, 191, 36, 0.7);

  /* Tipografía Editorial Display Pro (/diseño: Plus Jakarta Sans + Inter + Unbounded + Syne) */
  --font-body: 'Plus Jakarta Sans', 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-title: 'Unbounded', 'Outfit', 'Syne', sans-serif;

  /* Elevaciones & Transiciones (Microinteracciones 150-300ms) */
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.9);
  --transition-fast: 180ms ease-out;
  --transition-smooth: 300ms ease-out;
}

/* ==========================================================================
   RESET & BASES ACCESIBLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-surface-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  letter-spacing: -0.01em;
}

/* Textura ambiental luminosa con tono Ámbar y Esmeralda */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(34, 197, 94, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   HEADER & NAVBAR (GLASSMORPHISM AAA)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: var(--color-surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(9, 9, 11, 0.94);
  border-bottom-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(245, 158, 11, 0.15);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-right: 2.75rem;
  white-space: nowrap;
}

.brand-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform var(--transition-smooth);
}

.navbar-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.75));
}

.brand-logo:hover .brand-icon-box {
  transform: rotate(6deg) scale(1.12);
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.95));
}

.brand-highlight {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  margin-left: auto;
  margin-right: 2rem;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: all var(--transition-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.6);
}

/* Estilo Exclusivo Botón STAFF en Navbar */
.nav-staff-link {
  color: #fbbf24 !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  padding: 0.35rem 0.95rem !important;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 99px;
  transition: all var(--transition-fast) !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.nav-staff-link:hover {
  background: rgba(245, 158, 11, 0.28) !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.5) !important;
  transform: translateY(-2px);
  color: #fff !important;
}

.nav-staff-link::after {
  display: none !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

/* IP Pill en Navbar (Touch Target >= 44px) */
.nav-ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 19, 24, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.45);
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.nav-ip-pill:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--color-secondary-glow);
  transform: translateY(-2px) scale(1.02);
  background: rgba(26, 27, 36, 0.98);
}

.cart-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 19, 24, 0.9);
  border: 1px solid var(--color-border);
  padding: 0.6rem 1.25rem;
  min-height: 44px;
  border-radius: 12px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.cart-toggle-btn:hover {
  border-color: var(--color-primary);
  background: rgba(26, 27, 36, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.25);
}

.nav-user-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(18, 19, 24, 0.9);
  border: 1px solid var(--color-border);
  padding: 0.55rem 1.15rem;
  min-height: 44px;
  border-radius: 12px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.nav-user-btn:hover {
  border-color: var(--color-primary);
  background: rgba(26, 27, 36, 0.98);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(245, 158, 11, 0.25);
  color: var(--color-primary);
}

/* Cabeza de personaje Minecraft en el navbar */
.mc-head-nav {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  flex-shrink: 0;
}

.nav-user-btn.logged-in {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.08);
}

.nav-user-btn.logged-in:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 24px rgba(34, 197, 94, 0.25);
  color: #fff;
}

.auth-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.auth-tab-btn {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  background: transparent;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.auth-tab-content {
  display: none;
}

.auth-tab-content.active {
  display: block;
}

.cart-count-badge {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

/* ==========================================================================
   BUTTONS & CTAS PROFESIONALES (SIN EMOJIS - SVG INLINE / ICONOS AI)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  box-shadow: var(--color-primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 45px rgba(251, 191, 36, 0.75);
}

.btn-green {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #000;
  box-shadow: var(--color-secondary-glow);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-green:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 45px rgba(34, 197, 94, 0.75);
}

.btn-secondary {
  background: rgba(18, 19, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-text);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  background: rgba(26, 27, 36, 0.98);
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   HERO SECTION (HOME) CON LOGO 3D VOXEL EN CENTRO
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8.5rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
  background: #000 url('../img/bg-hero-hub.png?v=20260731_7') center/cover no-repeat;
}

.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  filter: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, transparent 75%, var(--color-surface-bg) 100%);
  z-index: 2;
  pointer-events: none;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-content {
  max-width: 980px;
  position: relative;
  z-index: 4;
}

/* EMBLEMA HERO LOGO OFICIAL 3D */
.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
  animation: float-logo 5s ease-in-out infinite;
}

.hero-main-logo {
  max-width: 520px;
  width: 94%;
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: normal;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 65px rgba(245, 158, 11, 0.45));
  transition: transform var(--transition-smooth);
}

.hero-main-logo:hover {
  transform: scale(1.05) rotate(-1.5deg);
  filter: drop-shadow(0 25px 55px rgba(0, 0, 0, 1)) drop-shadow(0 0 85px rgba(245, 158, 11, 0.85));
}

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

.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 19, 24, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: var(--color-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.25);
  animation: float-badge 4s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-secondary);
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.5;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6.2vw, 5.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 8px 32px rgba(0,0,0,0.95);
}

.hero-title span {
  background: linear-gradient(135deg, #fbbf24 0%, #22c55e 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 32px rgba(245, 158, 11, 0.5));
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 740px;
  margin: 0 auto 2.75rem;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  margin-bottom: 4rem;
}

/* Stats Bento Grid en Hero */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 840px;
  margin: 0 auto;
}

.hero-stat-card {
  background: rgba(18, 19, 24, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.hero-stat-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.7);
}

.stat-value {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Botones de Redes Sociales (Discord, YouTube, TikTok) */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.social-discord {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
}
.social-discord:hover {
  background: #5865F2;
  color: #fff;
  box-shadow: 0 0 24px rgba(88, 101, 242, 0.6);
  transform: translateY(-3px);
}

.social-youtube {
  background: rgba(255, 0, 0, 0.25);
  border-color: rgba(255, 0, 0, 0.5);
}
.social-youtube:hover {
  background: #FF0000;
  color: #fff;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.6);
  transform: translateY(-3px);
}

.social-tiktok {
  background: rgba(0, 242, 254, 0.18);
  border-color: rgba(0, 242, 254, 0.4);
}
.social-tiktok:hover {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #000;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.6);
  transform: translateY(-3px);
}

/* ==========================================================================
   SECCIONES & CONTENEDORES CON FONDOS CINEMÁTICOS DE MINECRAFT
   ========================================================================== */
.section-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 7.5rem clamp(1rem, 5vw, 6rem);
  position: relative;
  overflow: hidden;
}

.section-header,
.steps-grid,
.products-grid,
.store-controls,
.ranks-table-wrapper {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

#video-showcase {
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.10) 0%, rgba(9, 9, 11, 0.0) 50%, rgba(9, 9, 11, 0.15) 100%), url('../img/bg-hero-hub.png?v=20260731_7') center/cover no-repeat;
  border-top: 1px solid rgba(245, 158, 11, 0.35);
  background-attachment: fixed;
}

#info-rangos {
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.82) 0%, rgba(9, 9, 11, 0.55) 50%, rgba(9, 9, 11, 0.82) 100%), url('../img/bg-ranks.png') center/cover no-repeat;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  background-attachment: fixed;
}

#tienda {
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.82) 0%, rgba(9, 9, 11, 0.60) 50%, rgba(9, 9, 11, 0.85) 100%), url('../img/bg-store.png') center/cover no-repeat;
  border-top: 1px solid rgba(34, 197, 94, 0.25);
  background-attachment: fixed;
}

#como-funciona {
  position: relative;
  overflow: hidden;
  background: #09090b;
  border-top: 1px solid rgba(245, 158, 11, 0.35);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
}

#featured {
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.78) 0%, rgba(9, 9, 11, 0.50) 50%, rgba(9, 9, 11, 0.80) 100%), url('../img/bg-featured.png') center/cover no-repeat;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  background-attachment: fixed;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  background: rgba(245, 158, 11, 0.12);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-size: 1.12rem;
  line-height: 1.7;
}

/* ==========================================================================
   SISTEMA DE RAREZA & TARJETAS DE PRODUCTO AAA
   ========================================================================== */
.rarity-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.95rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rarity-badge.common {
  background: rgba(148, 163, 184, 0.18);
  color: var(--rarity-common);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.rarity-badge.rare {
  background: rgba(56, 189, 248, 0.18);
  color: var(--rarity-rare);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.rarity-badge.epic {
  background: rgba(192, 132, 252, 0.18);
  color: var(--rarity-epic);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.4);
}

.rarity-badge.legendary {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.35) 0%, rgba(217, 119, 6, 0.5) 100%);
  color: var(--rarity-legendary);
  border: 1px solid rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.6);
}

.product-card {
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.015);
  background: var(--color-surface-card-hover);
}

.product-card.rarity-common:hover {
  border-color: var(--rarity-common);
}

.product-card.rarity-rare {
  border-color: rgba(56, 189, 248, 0.35);
}
.product-card.rarity-rare:hover {
  border-color: var(--rarity-rare);
  box-shadow: var(--rarity-rare-glow);
}

.product-card.rarity-epic {
  border-color: rgba(192, 132, 252, 0.4);
}
.product-card.rarity-epic:hover {
  border-color: var(--rarity-epic);
  box-shadow: var(--rarity-epic-glow);
}

.product-card.rarity-legendary {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  background-color: var(--color-surface-card);
  box-shadow: var(--rarity-legendary-glow);
}

.product-card.rarity-legendary::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 22px;
  background: linear-gradient(120deg, #fbbf24, #a855f7, #06b6d4, #22c55e, #fbbf24);
  background-size: 300% 300%;
  animation: legendary-border-shine 4s ease infinite;
  z-index: -1;
}

@keyframes legendary-border-shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.item-icon-wrap {
  width: 96px;
  height: 96px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.item-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .item-icon-wrap {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.25);
}

.product-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: var(--color-text);
  line-height: 1.25;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.6;
  flex-grow: 1;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.current-price {
  font-family: var(--font-title);
  font-size: 1.95rem;
  font-weight: 900;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.35));
}

.original-price {
  font-size: 1rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  gap: 0.85rem;
}

.btn-card-detail {
  padding: 0.75rem 1.15rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  min-height: 44px;
}

.btn-card-detail:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-primary);
}

.btn-add-cart {
  flex-grow: 1;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  min-height: 44px;
}

.btn-add-cart:hover {
  transform: scale(1.03);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.75);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.85rem;
}

/* ==========================================================================
   TABS DE CATEGORÍA CON IMÁGENES AI & BARRA DE BÚSQUEDA
   ========================================================================== */
.store-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.75rem;
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  max-width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  -webkit-overflow-scrolling: touch;
}

.category-tab {
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  cursor: pointer;
  min-height: 40px;
}

.category-tab.active {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  border-color: #fbbf24;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.category-tab:hover:not(.active) {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.search-box {
  position: relative;
  min-width: 320px;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  color: var(--color-text);
  font-size: 0.95rem;
  min-height: 44px;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* BARRA DE FILTRADO Y ORDENAMIENTO (MENOR A MAYOR EN PRECIO) */
.store-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  width: auto;
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.35rem 1rem;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.sort-box:hover, .sort-box:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.sort-select {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 800;
  padding: 0.4rem 1.85rem 0.4rem 0.3rem;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  background-size: 14px;
}

.sort-select option {
  background: #0f1015;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem;
}

/* ==========================================================================
   SECCIÓN INFORMACIÓN DE RANGOS (TABLA COMPARATIVA EN SURVIVAL AAA)
   ========================================================================== */
.ranks-table-wrapper {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-card);
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.85);
  margin-top: 2.5rem;
  backdrop-filter: blur(14px);
}

.ranks-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.95rem;
  min-width: 900px;
}

.ranks-comparison-table thead th {
  font-family: var(--font-title);
  font-weight: 900;
  text-transform: uppercase;
  padding: 1.4rem 1rem;
  border-bottom: 2px solid var(--color-border);
  background: rgba(9, 9, 11, 0.95);
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.col-feature {
  text-align: left !important;
  padding-left: 1.75rem !important;
  color: var(--color-text-secondary);
}

.col-vip { color: #facc15; }
.col-elite { color: #c084fc; }
.col-ultra { color: #4ade80; }
.col-omega { color: #fb923c; }
.col-supremo { color: #f87171; }
.col-leyenda { color: #38bdf8; text-shadow: 0 0 16px rgba(56, 189, 248, 0.6); }

.ranks-comparison-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background var(--transition-fast);
}

.ranks-comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.ranks-comparison-table tbody td {
  padding: 1.05rem 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.cell-feature {
  text-align: left;
  font-weight: 800 !important;
  color: var(--color-text) !important;
  padding-left: 1.75rem !important;
  background: rgba(9, 9, 11, 0.5);
  white-space: nowrap;
}

.cell-highlight {
  background: rgba(56, 189, 248, 0.08);
  font-weight: 800 !important;
  color: #38bdf8 !important;
  border-left: 1px solid rgba(56, 189, 248, 0.2);
  border-right: 1px solid rgba(56, 189, 248, 0.2);
}

.icon-yes {
  color: #22c55e;
  font-weight: 900;
  font-size: 1.25rem;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
}

.icon-no {
  color: #ef4444;
  font-weight: 900;
  font-size: 1.15rem;
  opacity: 0.65;
}

.ranks-comparison-table code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #fff;
  font-family: monospace;
}

.badge-godmode {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid #fbbf24;
  color: #fbbf24;
  font-weight: 900;
  font-size: 0.85rem;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.5);
}

.ranks-comparison-table tfoot td {
  padding: 1.5rem 0.85rem;
  background: rgba(9, 9, 11, 0.85);
}

.btn-table-buy {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.88rem;
  border: 1px solid currentColor;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.05);
}

.btn-table-buy:hover {
  background: currentColor;
  color: #000 !important;
  box-shadow: 0 0 18px currentColor;
  transform: scale(1.05);
}

/* ==========================================================================
   SECCIÓN ¿CÓMO FUNCIONA? (BENTO GRID AAA SIN EMOJIS)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--color-surface-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem 2.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.7);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.step-icon-wrap {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: rgba(245, 158, 11, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.25);
}

.step-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.step-desc {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

/* inline svg badges para reemplazar emojis */
.svg-badge-icon {
  width: 36px;
  height: 36px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
}

/* ==========================================================================
   MODALES (DETALLE PRODUCTO & CHECKOUT)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #111218;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.96);
  transition: all var(--transition-smooth);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
  transform: rotate(90deg);
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.detail-icon-box {
  width: 96px;
  height: 96px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.detail-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.55));
}

.detail-benefits-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
}

.benefit-check {
  color: var(--color-secondary);
  flex-shrink: 0;
  font-weight: 800;
}

/* ==========================================================================
   CARRITO DE COMPRAS (SIDEBAR DRAWER)
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
  display: flex;
  justify-content: flex-end;
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #111218;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

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

.cart-header {
  padding: 1.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
}

.cart-items-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cart-empty-state {
  text-align: center;
  padding: 5rem 1.5rem;
  color: var(--color-text-muted);
}

.cart-item {
  background: var(--color-surface-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

/* Ícono/emoji del producto en el carrito — tamaño controlado */
.cart-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
}

.cart-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-primary);
}

.cart-item-remove {
  color: var(--color-text-muted);
  font-size: 1.35rem;
  padding: 0 0.5rem;
}

.cart-item-remove:hover {
  color: #ef4444;
}

.cart-footer {
  padding: 1.75rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-card);
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  font-size: 1.25rem;
  font-weight: 800;
}

/* ==========================================================================
   CHECKOUT FORM & VALIDACIÓN MOJANG API
   ========================================================================== */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.9rem 1.15rem;
  color: var(--color-text);
  font-size: 1rem;
  min-height: 48px;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.mojang-preview-box {
  display: none;
  align-items: center;
  gap: 0.85rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  margin-top: 0.85rem;
}

.mojang-preview-box.valid {
  display: flex;
}

.player-head-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  image-rendering: pixelated;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   TOAST ALERT FOR FEEDBACK
   ========================================================================== */
.toast-alert {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(18, 19, 24, 0.96);
  border: 1px solid var(--color-primary);
  padding: 1.1rem 1.6rem;
  border-radius: 14px;
  box-shadow: var(--color-primary-glow);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1000;
  transform: translateY(140%);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-alert.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* ==========================================================================
   FOOTER INSTITUCIONAL AAA PRO MAX (/dev FULL STACK)
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(245, 158, 11, 0.45);
  padding: 5.5rem 1.5rem 3.5rem;
  background: #09090b;
  margin-top: 5rem;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.85);
}

.footer-banner {
  max-width: 1320px;
  margin: 0 auto 4.5rem;
  position: relative;
  z-index: 2;
  background: rgba(14, 15, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 24px;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.12);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-banner:hover {
  border-color: #fbbf24;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 45px rgba(245, 158, 11, 0.2);
}

.footer-content {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1.2fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 4.5rem;
  position: relative;
  z-index: 2;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.footer-col a {
  color: #d4d4d8;
  font-size: 0.98rem;
  font-weight: 500;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-col a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.92rem;
  color: #a1a1aa;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (/diseño COMPLIANT)
   ========================================================================== */
@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps-grid, .ranks-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.75rem;
  }
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid, .ranks-info-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .footer-banner {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-banner > div {
    justify-content: center;
    width: 100%;
  }
  .footer-banner button {
    width: 100%;
    justify-content: center;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 1.25rem;
  }
  .hero-stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   RESPONSIVE MÓVIL COMPLETO (≤ 768px)
   ========================================================================== */

/* ── NAVBAR ── */
@media (max-width: 768px) {
  /* Ocultar la pill de IP del servidor en pantallas pequeñas para dar espacio */
  .nav-ip-pill {
    display: none;
  }

  /* Compactar acciones del navbar */
  .nav-actions {
    gap: 0.5rem;
  }

  /* Botón de ingreso: sólo mostrar ícono en mobile */
  .nav-user-btn {
    padding: 0.55rem 0.75rem;
    gap: 0;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  #nav-user-text {
    display: none;
  }

  /* Botón del carrito: compactar */
  .cart-toggle-btn {
    padding: 0.55rem 0.75rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    gap: 0;
  }
  .cart-toggle-btn .cart-label-text {
    display: none;
  }
}

/* ── HERO ── */
@media (max-width: 768px) {
  .hero-section {
    padding: 7rem 1.25rem 4rem;
    min-height: 90vh;
  }

  .hero-main-logo {
    max-width: 90%;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 360px;
  }

  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* ── MODALES: auth, producto, checkout ── */
@media (max-width: 768px) {
  /* El overlay pega al fondo en móvil */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    border-radius: 24px 24px 0 0;
    max-height: 92dvh;
    width: 100%;
    padding: 1.75rem 1.25rem 2rem;
    overflow-y: auto;
  }

  /* Auth modal: mostrar siempre el botón de submit sin necesidad de scroll */
  #auth-modal-overlay .modal-box,
  #auth-modal-overlay .modal-box form {
    display: flex;
    flex-direction: column;
  }

  #auth-modal-overlay .modal-box form .btn[type="submit"] {
    margin-top: auto;
  }

  .modal-close-btn {
    top: 1.1rem;
    right: 1.1rem;
  }

  .detail-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .detail-icon-box {
    margin: 0 auto;
  }
}

/* ── CARRITO DRAWER ── */
@media (max-width: 768px) {
  /* Drawer ocupa toda la pantalla en móvil */
  .cart-drawer {
    max-width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .cart-drawer-overlay {
    justify-content: center;
    align-items: flex-end;
  }

  /* Items del carrito en columna vertical para evitar overflow */
  .cart-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cart-item-info {
    flex: 1 1 60%;
    min-width: 0;
  }

  .cart-item-name {
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-item-controls {
    flex: 0 0 auto;
    gap: 0.4rem;
  }

  .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* ── SECCIÓN TIENDA / CATEGORÍAS ── */
@media (max-width: 768px) {
  .categories-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .categories-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* ── PRODUCT CARD ── */
@media (max-width: 480px) {
  .product-card {
    padding: 1.25rem 1rem;
  }

  .product-name {
    font-size: 1.05rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ── CHECKOUT FORM ── */
@media (max-width: 768px) {
  .checkout-steps-indicator {
    gap: 0.5rem;
  }

  .step-indicator {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

/* ── FOOTER ── */
@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.25rem 1.5rem;
  }

  .footer-brand-desc {
    font-size: 0.92rem;
  }
}

/* ── TABLA DE RANGOS: scroll horizontal suave ── */
@media (max-width: 900px) {
  .ranks-comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
}

/* ── EVITAR SCROLL HORIZONTAL GLOBAL ── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ==========================================================================
   SISTEMA DE DISEÑO BRUTALISTA UI/UX (INSPIRACIÓN DEVORA - BOLD & FUNCTIONAL)
   ========================================================================== */
.brutalist-card {
  background: #12131a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  transition: all 0.2s ease;
}

.brutalist-card:hover {
  border-color: #f59e0b;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.badge-brutalist {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-brutalist {
  background: #f59e0b;
  color: #000;
  font-weight: 900;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  border: 1px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 4px 4px 0px #fff;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-brutalist:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #fff;
  background: #fbbf24;
}


