/* ═══════════════════════════════════════════════════════════
   SoulsGuides — Black Myth Wukong — Estilos Base
   Sistema autocontenido: sin dependencias de CSS de otros juegos.
   Paleta: tinta oscura, oro imperial, sello bermellón.
   ═══════════════════════════════════════════════════════════ */

.page-bmw {
  /* Backgrounds — tinta oscura con tinte verde-azulado */
  --bg:     #0a0c0d;
  --bg2:    #12181a;
  --bg3:    #1c2528;

  /* Primary accent — oro imperial (armadura) */
  --gold:   #c9a24a;
  --gold-l: #e8c470;
  --gold-d: #8c6f2e;

  /* Secondary accent — bermellón (sello del monje) */
  --crimson:    #a02c2c;
  --crimson-l:  #c94a4a;
  --crimson-d:  #6b1c1c;

  /* Acento terciario — jade apagado (pelaje / túnica) */
  --jade:   #4a6b63;
  --jade-l: #6f9088;

  /* Text — grises verdosos */
  --text:   #98a3a0;
  --text-l: #e8ece9;
  --white:  #f2efe4;

  /* Profundidad */
  --purple: #070908;

  overflow-x: hidden;
}

.page-bmw .hd.scrolled {
  background: rgba(10, 12, 13, 0.88);
}

.page-bmw .sg-editorial-note {
  background:
    radial-gradient(110% 110% at 0% 0%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 55%),
    linear-gradient(180deg, rgba(10, 12, 13, .44), rgba(10, 12, 13, .64));
}
.page-bmw .sg-editorial-note h2 {
  color: var(--white);
  font-family: 'Cinzel', var(--ff-d), serif;
}

/* ═══════════════════════════════════════════════════════════
   PARTÍCULAS FLOTANTES (incienso / cenizas)
   ═══════════════════════════════════════════════════════════ */
#bmw-embers {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   LAYOUT BASE
   ═══════════════════════════════════════════════════════════ */
.page-bmw .wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .page-bmw .wrap { padding: 0 20px; }
}

.page-bmw .pill-tag {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid rgba(var(--bmw-gold-rgb), .35);
  border-radius: 100px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-l);
  background: rgba(var(--bmw-gold-rgb), .08);
}

.page-bmw {
  --bmw-gold-rgb: 201, 162, 74;
  --bmw-crimson-rgb: 160, 44, 44;
}

/* ═══════════════════════════════════════════════════════════
   HERO — Banner cinemático a pantalla completa
   ═══════════════════════════════════════════════════════════ */
.bmw-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 10vh, 120px);
  overflow: hidden;
}
.bmw-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.bmw-hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.bmw-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,13,.35) 0%, rgba(10,12,13,.55) 50%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,12,13,.75) 0%, rgba(10,12,13,.2) 55%, transparent 100%);
}
.bmw-hero-vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 180px 60px rgba(0,0,0,.65);
  pointer-events: none;
}
.bmw-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
@media (max-width: 768px) { .bmw-hero-content { padding: 0 20px; } }

.bmw-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--text);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bmw-breadcrumb a { color: var(--text); text-decoration: none; transition: color .2s ease; }
.bmw-breadcrumb a:hover { color: var(--gold-l); }
.bmw-bread-sep { opacity: .4; }
.bmw-bread-current { color: var(--gold-l); }

.bmw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid rgba(var(--bmw-gold-rgb), .3);
  border-radius: 100px;
  background: rgba(var(--bmw-gold-rgb), .06);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--gold-l);
  margin-bottom: 24px;
}
.bmw-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-l);
  box-shadow: 0 0 8px var(--gold-l);
  animation: bmw-pulse 2s ease-in-out infinite;
}
@keyframes bmw-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.bmw-hero-title {
  font-family: 'Cinzel', var(--ff-d), serif;
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.bmw-title-main {
  display: block;
  font-size: clamp(48px, 9vw, 130px);
  font-weight: 900;
  color: var(--white);
  text-transform: uppercase;
  font-family: 'Cinzel', var(--ff-d), serif;
}
.bmw-title-sub-name {
  display: block;
  font-size: clamp(20px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-family: 'Cinzel', var(--ff-d), serif;
  background: linear-gradient(135deg, var(--gold-l) 0%, var(--gold) 50%, var(--crimson-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bmw-hero-title--compact {
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 12px;
}
.bmw-hero-title--compact .bmw-title-main {
  font-size: inherit;
  font-weight: 900;
}
.bmw-hero-title--compact .bmw-title-sub-name {
  font-size: inherit;
  font-weight: 700;
}

.bmw-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(var(--guide-accent-rgb), .12);
  border: 1px solid rgba(var(--guide-accent-rgb), .25);
  border-radius: 20px;
  font-size: .8rem;
  color: var(--gold-l);
  margin-bottom: 16px;
}
.bmw-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-l);
  box-shadow: 0 0 8px var(--gold-l);
  animation: bmw-pulse 2s ease-in-out infinite;
}

.bmw-hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.bmw-hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.bmw-hstat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-l);
  line-height: 1;
}
.bmw-hstat-label {
  font-size: .75rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.bmw-hstat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.1);
}
@media (max-width: 768px) {
  .bmw-hero-stats { gap: 16px; }
  .bmw-hstat-num { font-size: 1.5rem; }
}

.bmw-hero-sub {
  max-width: 640px;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.bmw-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.bmw-meta-item { display: flex; align-items: center; gap: 10px; }
.bmw-meta-icon { color: var(--gold-l); opacity: .85; }
.bmw-meta-text { display: flex; flex-direction: column; }
.bmw-meta-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); opacity: .7; }
.bmw-meta-val { font-size: .88rem; color: var(--text-l); font-weight: 500; }
.bmw-meta-sep { width: 1px; height: 28px; background: rgba(255,255,255,.1); }

.bmw-hero-stats { display: flex; align-items: center; gap: 24px; margin-top: 8px; }
.bmw-hstat { display: flex; flex-direction: column; align-items: flex-start; }
.bmw-hstat-num { font-size: 2.2rem; font-weight: 700; color: var(--gold-l); line-height: 1; }
.bmw-hstat-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-top: 4px; }
.bmw-hstat-sep { width: 1px; height: 36px; background: rgba(255,255,255,.1); }

.bmw-hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--gold-l);
  opacity: .6;
  animation: bmw-bounce 2s ease-in-out infinite;
}
@keyframes bmw-bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* Decorative abstract lines (used on section sub-heroes) */
.bmw-subhero-abstract { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bmw-subhero-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 75% 40%, rgba(var(--bmw-gold-rgb),.10) 0%, transparent 65%);
}
.bmw-subhero-lines { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .1; }
.bmw-subhero-lines line, .bmw-subhero-lines circle { stroke: var(--gold-l); stroke-width: .5; fill: none; }

/* ═══════════════════════════════════════════════════════════
   HUB — Grid principal de secciones (index del juego)
   ═══════════════════════════════════════════════════════════ */
.bmw-hub { position: relative; z-index: 2; padding: var(--sec) 0; padding-bottom: 60px; background: var(--bg); overflow: visible; }
.bmw-hub > .sec-sep { position: absolute; top: 0; left: 0; right: 0; z-index: 15; height: 0; }
.bmw-hub > .sec-sep svg { margin-top: -60px; margin-bottom: 0; }
.page-bmw .sec-sep svg { margin-top: -60px; margin-bottom: 0; }
.bmw-hub-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bmw-hub-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.bmw-hub-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); margin: 16px 0; font-family: 'Cinzel', var(--ff-d), serif; letter-spacing: .04em; }
.bmw-hub-title em { color: var(--gold-l); font-style: normal; }
.bmw-hub-sub { color: var(--text); font-size: 1rem; line-height: 1.6; }

.bmw-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bmw-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(var(--bmw-gold-rgb), 0.08);
  background:
    linear-gradient(180deg, rgba(var(--bmw-gold-rgb), 0.03), rgba(var(--bmw-gold-rgb), 0) 24%),
    radial-gradient(circle at top right, rgba(var(--bmw-crimson-rgb), 0.05), transparent 34%),
    linear-gradient(180deg, var(--bg2), var(--bg2));
  box-shadow: inset 0 1px 0 rgba(var(--bmw-gold-rgb), 0.04);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  cursor: pointer;
  text-decoration: none;
  height: 100%;
  padding: 28px 32px 32px;
}
.bmw-card:hover {
  border-color: rgba(var(--bmw-gold-rgb), 0.22);
  box-shadow:
    0 20px 60px -10px rgba(7, 9, 8, 0.55),
    0 0 40px -10px rgba(var(--bmw-crimson-rgb), 0.1);
}
.bmw-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--bmw-gold-rgb), 0.04), transparent);
  transition: left 0.8s;
  z-index: 1;
  pointer-events: none;
}
.bmw-card:hover::before { left: 100%; }
.bmw-card--featured { border-color: rgba(var(--bmw-gold-rgb), 0.18); }

.bmw-card-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-l);
  margin-bottom: 10px;
  position: relative; z-index: 2;
}
.bmw-card h3 {
  font-family: 'Cinzel', var(--ff-d), serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.25;
  transition: color 0.3s;
  position: relative; z-index: 2;
  letter-spacing: .03em;
}
.bmw-card:hover h3 { color: var(--gold-l); }
.bmw-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative; z-index: 2;
}
.bmw-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: auto;
  position: relative; z-index: 2;
}
.bmw-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', var(--ff-d), serif;
  font-weight: 700;
  color: var(--gold-l);
  letter-spacing: 0.05em;
  transition: all 0.3s;
}
.bmw-card:hover .bmw-card-arrow {
  letter-spacing: 0.12em;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   TOOLBAR — Búsqueda y filtros
   ═══════════════════════════════════════════════════════════ */
.bmw-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; margin-bottom: 20px;
}
.bmw-search {
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.04); border: 1px solid rgba(var(--bmw-gold-rgb), .15);
  border-radius: 8px; padding: 8px 14px;
  transition: border-color .25s; flex: 1; max-width: 360px;
}
.bmw-search:focus-within { border-color: var(--gold); }
.bmw-search-icon {
  color: var(--text); opacity: .5; flex-shrink: 0; pointer-events: none;
}
.bmw-search input {
  background: none; border: none; outline: none;
  color: var(--text-l); font-size: 16px; font-family: inherit; width: 100%;
}
.bmw-search input::placeholder {
  color: var(--text); opacity: .5;
  font-family: 'Cinzel', var(--ff-d), serif; font-size: 15px;
}

.bmw-filter-group { display: flex; align-items: center; gap: 8px; }
.bmw-filter-label { font-size: 11px; color: var(--text); text-transform: uppercase; letter-spacing: .15em; flex-shrink: 0; }
.bmw-filter-select {
  padding: 8px 36px 8px 14px;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(var(--bmw-gold-rgb), .15);
  border-radius: 8px;
  color: var(--text-l);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23c9a24a' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .25s;
}
.bmw-filter-select:hover, .bmw-filter-select:focus { border-color: var(--gold); outline: none; }
.bmw-filter-select option { background: var(--bg2); color: var(--text-l); padding: 8px; }

.bmw-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bmw-filter-btn {
  padding: 6px 14px; border-radius: 20px;
  font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(var(--bmw-gold-rgb), .12);
  color: var(--text);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.bmw-filter-btn:hover {
  background: rgba(var(--bmw-gold-rgb), .12);
  border-color: rgba(var(--bmw-gold-rgb), .25);
  color: var(--text-l);
}
.bmw-filter-btn.active {
  background: rgba(var(--bmw-gold-rgb), .15);
  border-color: rgba(var(--bmw-gold-rgb), .3);
  color: var(--gold-l);
}

/* ═══════════════════════════════════════════════════════════
   GRID DE DATOS + TARJETAS DE ITEM
   ═══════════════════════════════════════════════════════════ */
.bmw-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative; z-index: 1;
}
/* ──── CATALOG CARD (Wukong version, copied exactly from Valor Mortis / Enotria) ──── */
.bmw-item-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(18, 24, 26, .98), rgba(8, 10, 11, 1));
  border: 1px solid rgba(var(--bmw-gold-rgb), .12);
  border-radius: 12px;
  overflow: visible;
  cursor: pointer;
  transition: border-color .35s cubic-bezier(.4, 0, .2, 1),
              transform .35s cubic-bezier(.4, 0, .2, 1),
              box-shadow .35s cubic-bezier(.4, 0, .2, 1);
}
.bmw-item-card:hover {
  border-color: rgba(var(--bmw-gold-rgb), .45);
  transform: translateY(-4px);
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, .6), 
    0 0 20px rgba(var(--bmw-gold-rgb), .15);
}
.bmw-item-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Card visual – image fills area (like Valor Mortis / Lies of P boss cards) */
.bmw-card-visual {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, rgba(var(--bmw-gold-rgb), .04), rgba(0, 0, 0, .45) 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--bmw-gold-rgb), .15);
  transition: border-color .3s ease;
}
.bmw-item-card:hover .bmw-card-visual {
  border-color: rgba(var(--bmw-gold-rgb), .35);
}
.bmw-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(.85) contrast(1.05);
  transition: transform .4s ease, filter .4s ease;
}
.bmw-item-card:hover .bmw-card-visual img {
  transform: scale(1.05);
  filter: brightness(.95) contrast(1.05);
}

/* Card visual – icon layout for objects and transformations */
.bmw-card-visual--icon {
  height: 140px;
  background: rgba(255, 255, 255, .01);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.bmw-card-visual--icon img {
  width: auto;
  height: auto;
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
  filter: none;
  transition: transform .3s ease;
}
.bmw-item-card:hover .bmw-card-visual--icon img {
  transform: scale(1.1);
}

.bw-card-video,
.bmw-card-video {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Card info */
.bmw-card-info {
  padding: 14px 16px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bmw-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.35;
  font-family: 'Cinzel', var(--ff-d), serif;
  letter-spacing: .03em;
  transition: color .2s ease;
  padding-right: 24px;
}
.bmw-item-card:hover .bmw-card-name {
  color: var(--gold-l);
}

/* Description preview in card */
.bmw-card-desc {
  font-size: 12px;
  color: var(--text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 10px;
  opacity: 0.9;
}

/* Inspect hint */
.bmw-card-inspect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid rgba(var(--bmw-gold-rgb), .06);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition: all .3s ease;
}
.bmw-card-inspect svg {
  stroke: var(--gold);
}
.bmw-item-card:hover .bmw-card-inspect {
  opacity: 1;
  transform: translateY(0);
}


/* Rareza / calidad colores */
.bmw-q-comun     { color: var(--text-l); }
.bmw-q-raro      { color: #6fa8dc; }
.bmw-q-epico     { color: #b57edc; }
.bmw-q-legendario{ color: var(--gold-l); }
.bmw-q-mitico    { color: var(--crimson-l); }

/* Slider de nivel en armaduras */
.bmw-level-slider {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--bmw-gold-rgb), .08);
  position: relative; z-index: 2;
}
.bmw-slider-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: rgba(var(--bmw-gold-rgb), .15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.bmw-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg2);
  cursor: pointer;
  transition: transform .15s ease;
}
.bmw-slider-input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.bmw-slider-input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg2);
  cursor: pointer;
}
.bmw-slider-label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  opacity: .7;
}
.bmw-level-attrs {
  padding-top: 6px;
}
.bmw-modal-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(var(--bmw-gold-rgb), .08), rgba(0, 0, 0, .25) 70%);
}
.bmw-modal-img-wrap img {
  max-width: 80px;
  max-height: 80px;
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

/* ═══════════════════════════════════════════════════════════
   MODAL / INSPECTOR
   ═══════════════════════════════════════════════════════════ */
.bmw-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(4,4,4,.82);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  padding: 24px;
}
.bmw-modal-overlay.active { opacity: 1; pointer-events: auto; }
.bmw-modal {
  position: relative;
  background: var(--bg2);
  border: 1px solid rgba(var(--bmw-gold-rgb), .25);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  padding: 32px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--bmw-gold-rgb), .4) transparent;
}
.bmw-modal::-webkit-scrollbar { width: 6px; }
.bmw-modal::-webkit-scrollbar-track { background: transparent; }
.bmw-modal::-webkit-scrollbar-thumb {
  background: rgba(var(--bmw-gold-rgb), .35);
  border-radius: 3px;
}
.bmw-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--bmw-gold-rgb), .55);
}
.bmw-modal {
  transform: translateY(16px);
  transition: transform .25s ease;
}
.bmw-modal-overlay.active .bmw-modal { transform: translateY(0); }
.bmw-modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--text-l);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.bmw-modal-close:hover { background: rgba(var(--bmw-crimson-rgb), .3); color: #fff; }
.bmw-modal-header { margin-bottom: 20px; padding-right: 40px; }
.bmw-modal-header h2 { font-size: 1.5rem; color: var(--white); margin-bottom: 6px; font-family: 'Cinzel', var(--ff-d), serif; letter-spacing: .03em; }
.bmw-modal-body { color: var(--text-l); font-size: .92rem; line-height: 1.65; }
.bmw-modal-body h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold-l); margin: 20px 0 8px;
}
.bmw-modal-body h4:first-child { margin-top: 0; }
.bmw-modal-stat-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .86rem;
}
.bmw-modal-stat-row:last-child { border-bottom: none; }
.bmw-modal-stat-label { color: var(--text); position: relative; cursor: help; text-decoration: underline dotted rgba(var(--bmw-gold-rgb),.4); text-underline-offset: 3px; }
.bmw-modal-stat-label[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 0;
  background: rgba(15,12,8,.96); border: 1px solid rgba(var(--bmw-gold-rgb),.25);
  border-radius: 6px; padding: 8px 12px;
  font-size: .76rem; font-weight: 400; line-height: 1.45;
  color: var(--text); white-space: normal; width: max-content; max-width: 280px;
  opacity: 0; pointer-events: none; transition: opacity .18s ease; z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.bmw-modal-stat-label[data-tip]:hover::after { opacity: 1; }
.bmw-modal-stat-val { color: var(--white); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   PANEL DE PROGRESO (mini widget flotante)
   ═══════════════════════════════════════════════════════════ */
.page-bmw .lop-progress-panel {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 100;
  width: 90px;
  padding: 20px 0;
  background: rgba(10, 12, 13, 0.94);
  border: 1px solid rgba(var(--bmw-gold-rgb), 0.15);
  border-right: none;
  border-radius: 14px 0 0 14px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.35);
}
.page-bmw .lop-progress-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.page-bmw .lop-progress-mini-ring {
  width: 54px;
  height: 54px;
  position: relative;
}
.page-bmw .lop-progress-mini-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.page-bmw .lop-progress-mini-ring .ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 3.5;
}
.page-bmw .lop-progress-mini-ring .ring-fill {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 4px rgba(var(--bmw-gold-rgb), 0.35));
}
.page-bmw .lop-progress-mini-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}
@media (hover: none) and (pointer: coarse) {
  .page-bmw .lop-progress-mini {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
}
.page-bmw .lop-progress-expanded {
  width: 100%;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0 14px;
  transition: opacity 0.25s, max-height 0.35s;
}
.page-bmw .lop-progress-panel:hover,
.page-bmw .lop-progress-panel.lop-progress-panel--drawer-open {
  width: 260px;
  padding: 22px 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
}
.page-bmw .lop-progress-panel:hover .lop-progress-expanded,
.page-bmw .lop-progress-panel.lop-progress-panel--drawer-open .lop-progress-expanded {
  opacity: 1;
  max-height: 500px;
}
.page-bmw .lop-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  width: 100%;
}
.page-bmw .lop-progress-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  white-space: nowrap;
}
.page-bmw .lop-progress-title svg {
  flex-shrink: 0;
  stroke: var(--gold);
  width: 14px;
  height: 14px;
}
.page-bmw .lop-progress-count {
  font-size: 12px;
  color: var(--text-l);
  white-space: nowrap;
}
.page-bmw .lop-progress-count em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}
.page-bmw .lop-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}
.page-bmw .lop-progress-bar-wrap--sm {
  height: 6px;
  border-radius: 3px;
}
.page-bmw .lop-progress-bar {
  height: 100%;
  min-width: 0;
  background: linear-gradient(90deg, var(--gold-d), var(--gold), var(--gold-l));
  border-radius: inherit;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-bmw .lop-progress-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--bmw-gold-rgb), 0.12);
  width: 100%;
}
.page-bmw .lop-progress-cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}
.page-bmw .lop-progress-cat-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-l);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-bmw .lop-progress-cat-count {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
}

/* Item card checkbox / edit controls injected by edit-mode-unified.js reuse generic classes already styled globally */

/* ═══════════════════════════════════════════════════════════
   CARD ENHANCEMENTS — Stat tags, key tags, passive/set boxes
   Estilo equivalente a Valor Mortis / Mortal Shell 2 / Elden Ring
   ═══════════════════════════════════════════════════════════ */

/* ── Stat tags (armaduras, objetos) ── */
.bmw-card-stat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.bmw-card-stat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(var(--bmw-gold-rgb), .08);
  border: 1px solid rgba(var(--bmw-gold-rgb), .15);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  line-height: 1.4;
}
.bmw-card-stat-tag--def {
  background: rgba(var(--bmw-crimson-rgb), .08);
  border-color: rgba(var(--bmw-crimson-rgb), .2);
}
.bmw-card-stat-tag-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  opacity: .8;
}
.bmw-card-stat-tag-val {
  font-weight: 700;
  color: var(--gold-l);
  font-variant-numeric: tabular-nums;
}
.bmw-card-stat-tag--def .bmw-card-stat-tag-val {
  color: var(--crimson-l);
}

/* ── Key object tags (armas) ── */
.bmw-card-key-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.bmw-card-key-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(var(--bmw-crimson-rgb), .12), rgba(var(--bmw-crimson-rgb), .06));
  border: 1px solid rgba(var(--bmw-crimson-rgb), .3);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--crimson-l);
  transition: border-color .2s ease, background .2s ease;
  box-shadow: 0 2px 8px rgba(var(--bmw-crimson-rgb), .08);
}
.bmw-card-key-tag svg {
  stroke: var(--crimson-l);
  flex-shrink: 0;
}
.bmw-card-key-tag img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  object-fit: cover;
}

/* ── Tag image tooltip ── */
.bmw-tag-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(.9);
  background: linear-gradient(145deg, rgba(18, 24, 26, .98), rgba(8, 10, 11, 1));
  border: 1px solid rgba(var(--bmw-gold-rgb), .3);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .6);
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
  width: 160px;
  height: 160px;
  box-sizing: border-box;
}
.bmw-card-key-tag[data-tooltip] .bmw-tag-tooltip img,
.bmw-card-cost-tag[data-tooltip] .bmw-tag-tooltip img,
.bmw-tag-tooltip img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  display: block;
  object-fit: contain;
  image-rendering: auto;
}
.bmw-card-key-tag[data-tooltip],
.bmw-card-cost-tag[data-tooltip] {
  position: relative;
}
.bmw-card-key-tag[data-tooltip]:hover .bmw-tag-tooltip,
.bmw-card-cost-tag[data-tooltip]:hover .bmw-tag-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}
.bmw-item-card:hover .bmw-card-key-tag {
  border-color: rgba(var(--bmw-crimson-rgb), .5);
  background: linear-gradient(135deg, rgba(var(--bmw-crimson-rgb), .18), rgba(var(--bmw-crimson-rgb), .1));
  box-shadow: 0 4px 12px rgba(var(--bmw-crimson-rgb), .15);
}

/* ── Cost tags (armas) ── */
.bmw-card-cost-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.bmw-card-cost-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(var(--bmw-gold-rgb), .05);
  border: 1px solid rgba(var(--bmw-gold-rgb), .1);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  color: var(--text-l);
  opacity: .85;
  transition: opacity .2s ease;
}
.bmw-item-card:hover .bmw-card-cost-tag {
  opacity: 1;
}

/* ── Passive / effect box (armaduras, objetos) ── */
.bmw-card-passive {
  margin-top: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(var(--bmw-gold-rgb), .06), rgba(var(--bmw-gold-rgb), .02));
  border: 1px solid rgba(var(--bmw-gold-rgb), .12);
  border-radius: 8px;
  position: relative;
}
.bmw-card-passive-label {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.bmw-card-passive-text {
  font-size: 12px;
  color: var(--text-l);
  line-height: 1.5;
  margin: 0;
}

/* ── Set box (armaduras) — más visible ── */
.bmw-card-set-box {
  margin-top: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(var(--bmw-crimson-rgb), .08), rgba(var(--bmw-gold-rgb), .04));
  border: 1px solid rgba(var(--bmw-gold-rgb), .2);
  border-radius: 10px;
  position: relative;
}
.bmw-card-set-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 10px 10px 0 0;
  opacity: .5;
}
.bmw-card-set-name {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold-l);
  margin-bottom: 6px;
}
.bmw-card-set-bono {
  font-size: 11.5px;
  color: var(--text-l);
  line-height: 1.5;
  margin: 4px 0 0;
  padding-left: 12px;
  position: relative;
}
.bmw-card-set-bono::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 8px;
  color: var(--gold);
  opacity: .7;
}

/* ── Extra info (objetos — calabaza, consumible) ── */
.bmw-card-extra-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
}
.bmw-card-extra-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text);
  opacity: .7;
  flex-shrink: 0;
}
.bmw-card-extra-val {
  color: var(--text-l);
  font-weight: 500;
}

/* ── No-modal card variant (objetos) ── */
.bmw-item-card--no-modal {
  cursor: default;
}
.bmw-item-card--no-modal:hover {
  transform: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.bmw-item-card--no-modal .bmw-card-desc {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
}

/* ═══════════════════════════════════════════════════════════
   TOGGLE DE PROGRESO EN TARJETAS
   ═══════════════════════════════════════════════════════════ */
.bmw-item-card { position: relative; }
.bmw-item-card.is-obtained {
  position: relative;
  border-color: rgba(80, 200, 120, 0.35) !important;
  box-shadow:
    0 0 16px -4px rgba(80, 200, 120, 0.15),
    inset 0 0 0 1px rgba(80, 200, 120, 0.1) !important;
}
.bmw-item-card.is-obtained .bmw-card-visual::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  border-radius: inherit;
}
.bmw-item-card.is-obtained::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(46, 204, 113, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════
   PÁGINA DE PROGRESO — RESUMEN GENERAL
   ═══════════════════════════════════════════════════════════ */
.bmw-progress-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.bmw-progress-cat-card {
  display: block;
  padding: 20px 24px;
  background: color-mix(in srgb, var(--bg2) 60%, transparent);
  border: 1px solid rgba(var(--guide-accent-rgb), .12);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease;
}
.bmw-progress-cat-card:hover {
  border-color: rgba(var(--guide-accent-rgb), .4);
  transform: translateY(-2px);
}
.bmw-progress-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.bmw-progress-cat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-l);
}
.bmw-progress-cat-count {
  font-size: .85rem;
  color: var(--gold-l);
  font-weight: 600;
}
.bmw-progress-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.bmw-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-d), var(--gold-l));
  border-radius: 3px;
  transition: width .4s ease;
}
.bmw-progress-cat-pct {
  display: block;
  margin-top: 8px;
  font-size: .8rem;
  color: var(--text);
  text-align: right;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bmw-data-grid { grid-template-columns: repeat(2, 1fr); }
  .bmw-hub-grid { grid-template-columns: repeat(2, 1fr); }
  .page-bmw .lop-progress-panel { width: 70px; }
  .page-bmw .lop-progress-panel:hover,
  .page-bmw .lop-progress-panel.lop-progress-panel--drawer-open { width: 220px; }
}
@media (max-width: 768px) {
  .bmw-hero { align-items: flex-end; padding-bottom: 48px; }
  .bmw-hero-meta { gap: 14px; }
  .bmw-hub-grid { grid-template-columns: 1fr; }
  .bmw-data-grid { grid-template-columns: 1fr; }
  .bmw-toolbar { flex-direction: column; align-items: stretch; }
  .bmw-search { max-width: 100%; }
  .bmw-progress-overview { grid-template-columns: 1fr; }
  .page-bmw .lop-progress-panel { width: 60px; padding: 14px 0; }
  .page-bmw .lop-progress-mini-ring { width: 40px; height: 40px; }
  .page-bmw .lop-progress-mini-pct { font-size: 11px; }
  .page-bmw .lop-progress-panel:hover,
  .page-bmw .lop-progress-panel.lop-progress-panel--drawer-open { width: 200px; }
}

@media (max-width: 480px) {
  .bmw-card-visual {
    height: 160px;
  }
  .bmw-card-visual--icon {
    height: 110px;
  }
  .bmw-card-visual--icon img {
    max-width: 70px;
    max-height: 70px;
  }
  .bmw-item-card-tag {
    margin: 0 14px 4px;
  }
  .bmw-item-card h4 {
    margin: 0 14px 6px;
    font-size: 14px;
  }
  .bmw-item-card p {
    margin: 0 14px 8px;
  }
  .bmw-card-stats {
    margin-left: 14px;
    margin-right: 14px;
    margin-bottom: 12px;
  }
}


