/* ============================================
   MU Online — Chaos Machine & Wings
   Combinaciones Lv.1 → Lv.5 + Wing Core
   ============================================ */

:root {
  --mu-comb-glass: rgba(10,14,24,.62);
  --mu-comb-glass-bd: rgba(255,255,255,.10);
  --mu-comb-glass-bd2: rgba(255,255,255,.12);
  --mu-comb-shadow: 0 12px 28px rgba(0,0,0,.34);
  --mu-comb-shadow2: 0 20px 40px rgba(0,0,0,.45);
  --mu-comb-radius: 20px;
  --mu-comb-radius2: 16px;
  --mu-comb-radius3: 12px;
  --mu-comb-accent: rgba(178,26,255,.45);
  --mu-comb-accent-soft: rgba(178,26,255,.18);
  --mu-comb-gold: #ffcc66;
  --mu-comb-tier1: #6aa6ff;
  --mu-comb-tier2: #8b5cf6;
  --mu-comb-tier3: #ec4899;
  --mu-comb-tier4: #f59e0b;
  --mu-comb-tier5: #10b981;
}

body.page-mu-wings-full .wrap {
  max-width: 1260px;
  margin: 0 auto;
  padding: 26px 16px 70px;
}

body.page-mu-wings-full .hero {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

body.page-mu-wings-full .hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  background: linear-gradient(90deg, #fff, var(--mu-comb-accent), var(--mu-comb-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.page-mu-wings-full .hero p {
  margin: 0;
  opacity: .92;
  max-width: 92ch;
  line-height: 1.45;
}

body.page-mu-wings-full .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 12px;
  border-radius: var(--mu-comb-radius2);
  border: 1px solid var(--mu-comb-glass-bd);
  background: rgba(10,14,24,.55);
  box-shadow: 0 10px 25px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}

body.page-mu-wings-full .legend .pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  white-space: nowrap;
}

body.page-mu-wings-full .legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mu-comb-accent);
  box-shadow: 0 0 0 4px var(--mu-comb-accent-soft);
  display: inline-block;
}

/* ===== QUICK REF (uso frecuente) ===== */
body.page-mu-wings-full .quick-ref {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

body.page-mu-wings-full .quick-ref-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--mu-comb-radius2);
  border: 1px solid var(--mu-comb-glass-bd);
  background: var(--mu-comb-glass);
  box-shadow: var(--mu-comb-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body.page-mu-wings-full .quick-ref-card:hover {
  transform: translateY(-3px);
  border-color: var(--mu-comb-accent);
  box-shadow: 0 0 20px var(--mu-comb-accent-soft);
}

body.page-mu-wings-full .quick-ref-card .icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--mu-comb-accent-soft), rgba(255,204,102,.12));
  border: 1px solid rgba(255,255,255,.1);
}

body.page-mu-wings-full .quick-ref-card .text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

body.page-mu-wings-full .quick-ref-card .text span {
  font-size: 12px;
  opacity: .85;
}

body.page-mu-wings-full .topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  margin: 14px 0 18px;
}

body.page-mu-wings-full .controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--mu-comb-glass-bd);
  background: rgba(10,14,24,.58);
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
}

body.page-mu-wings-full .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  flex: 1;
}

body.page-mu-wings-full label { font-size: 12px; opacity: .86; }
body.page-mu-wings-full .hint { opacity: .76; font-size: 12px; line-height: 1.35; }

body.page-mu-wings-full .input {
  border-radius: var(--mu-comb-radius3);
  border: 1px solid var(--mu-comb-glass-bd2);
  background: rgba(255,255,255,.06);
  color: inherit;
  padding: 10px 12px;
  outline: none;
}

body.page-mu-wings-full .input:focus {
  border-color: rgba(140,180,255,.45);
  box-shadow: 0 0 0 4px rgba(90,140,255,.12);
}

body.page-mu-wings-full select.input {
  color: #fff;
  background-color: rgba(255,255,255,.06);
}

body.page-mu-wings-full select.input option,
body.page-mu-wings-full select.input optgroup {
  background-color: #0b1220;
  color: #fff;
}

body.page-mu-wings-full .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}

body.page-mu-wings-full .btn {
  border-radius: var(--mu-comb-radius3);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: inherit;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
}

body.page-mu-wings-full .btn:hover { background: rgba(255,255,255,.10); }
body.page-mu-wings-full .btn.primary {
  border-color: rgba(140,180,255,.30);
  background: rgba(140,180,255,.16);
}
body.page-mu-wings-full .btn.primary:hover { background: rgba(140,180,255,.22); }

body.page-mu-wings-full .grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 16px;
  align-items: start;
}

@media (max-width: 1020px) {
  body.page-mu-wings-full .grid { grid-template-columns: 1fr; }
}

body.page-mu-wings-full .side {
  border: 1px solid var(--mu-comb-glass-bd);
  background: var(--mu-comb-glass);
  border-radius: var(--mu-comb-radius);
  overflow: hidden;
  box-shadow: var(--mu-comb-shadow);
}

body.page-mu-wings-full .side .side-hd {
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

body.page-mu-wings-full .side .side-hd h2 { margin: 0 0 6px; font-size: 14px; }
body.page-mu-wings-full .side .side-hd p { margin: 0; font-size: 12px; opacity: .84; line-height: 1.35; }

body.page-mu-wings-full .toc {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-mu-wings-full .toc a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  opacity: .95;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

body.page-mu-wings-full .toc a:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--mu-comb-accent);
  transform: translateX(6px);
}

body.page-mu-wings-full .toc .tag {
  font-size: 11px;
  opacity: .78;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Tier badges en TOC */
body.page-mu-wings-full .toc .tag.tier1 { border-color: var(--mu-comb-tier1); background: rgba(106,166,255,.15); }
body.page-mu-wings-full .toc .tag.tier2 { border-color: var(--mu-comb-tier2); background: rgba(139,92,246,.15); }
body.page-mu-wings-full .toc .tag.tier3 { border-color: var(--mu-comb-tier3); background: rgba(236,72,153,.15); }
body.page-mu-wings-full .toc .tag.tier4 { border-color: var(--mu-comb-tier4); background: rgba(245,158,11,.15); }
body.page-mu-wings-full .toc .tag.tier5 { border-color: var(--mu-comb-tier5); background: rgba(16,185,129,.15); }

body.page-mu-wings-full .stack { display: flex; flex-direction: column; gap: 16px; }

body.page-mu-wings-full .card {
  border: 1px solid var(--mu-comb-glass-bd);
  background: var(--mu-comb-glass);
  border-radius: var(--mu-comb-radius);
  overflow: hidden;
  box-shadow: var(--mu-comb-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.page-mu-wings-full .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--mu-comb-shadow2);
  border-color: var(--mu-comb-accent);
}

body.page-mu-wings-full .hd {
  padding: 14px 14px 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

body.page-mu-wings-full .hgroup h2 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; }
body.page-mu-wings-full .hgroup .sub { margin: 0; font-size: 12px; opacity: .86; line-height: 1.35; max-width: 95ch; }

body.page-mu-wings-full .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

body.page-mu-wings-full .chip {
  font-size: 11px;
  opacity: .9;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  padding: 5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

body.page-mu-wings-full .chip.accent {
  border-color: var(--mu-comb-accent);
  background: var(--mu-comb-accent-soft);
}

body.page-mu-wings-full .chip.tier1 { border-color: var(--mu-comb-tier1); background: rgba(106,166,255,.12); }
body.page-mu-wings-full .chip.tier2 { border-color: var(--mu-comb-tier2); background: rgba(139,92,246,.12); }
body.page-mu-wings-full .chip.tier3 { border-color: var(--mu-comb-tier3); background: rgba(236,72,153,.12); }
body.page-mu-wings-full .chip.tier4 { border-color: var(--mu-comb-tier4); background: rgba(245,158,11,.12); }
body.page-mu-wings-full .chip.tier5 { border-color: var(--mu-comb-tier5); background: rgba(16,185,129,.12); }

body.page-mu-wings-full .body {
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.page-mu-wings-full .note {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--mu-comb-radius2);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

body.page-mu-wings-full details {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: var(--mu-comb-radius2);
  padding: 10px 12px;
}

body.page-mu-wings-full summary { cursor: pointer; font-weight: 650; opacity: .98; }
body.page-mu-wings-full details[open] summary { color: var(--mu-comb-accent); }
body.page-mu-wings-full .muted { opacity: .86; line-height: 1.45; }
body.page-mu-wings-full ul { margin: 8px 0 0 18px; }
body.page-mu-wings-full li { margin: 4px 0; }

body.page-mu-wings-full table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--mu-comb-radius2);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

body.page-mu-wings-full thead th {
  text-align: left;
  font-size: 12px;
  opacity: .86;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,24,.35);
}

body.page-mu-wings-full tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: 13px;
  opacity: .96;
  vertical-align: middle;
  line-height: 1.35;
}

body.page-mu-wings-full tbody tr:last-child td { border-bottom: 0; }

body.page-mu-wings-full td.prev { width: 140px; text-align: center; }
body.page-mu-wings-full tbody td:nth-child(1),
body.page-mu-wings-full tbody td:nth-child(2) { text-align: center; }
body.page-mu-wings-full tbody td:nth-child(3) { text-align: left; padding-left: 18px; font-weight: 500; }

body.page-mu-wings-full .mediaGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

body.page-mu-wings-full .media {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--mu-comb-radius2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 210px;
}

body.page-mu-wings-full .media .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(0,0,0,.2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  transition: transform .3s ease, box-shadow .3s ease;
}

body.page-mu-wings-full .media:hover .thumb {
  transform: scale(1.03);
  box-shadow: 0 0 24px var(--mu-comb-accent-soft);
}

body.page-mu-wings-full .media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  image-rendering: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
  display: block;
  opacity: .98;
  transition: filter .3s ease;
}

body.page-mu-wings-full .media:hover .thumb img {
  filter: drop-shadow(0 0 8px rgba(255,43,214,.35));
}

body.page-mu-wings-full .media .ph {
  padding: 10px;
  font-size: 12px;
  opacity: .85;
  text-align: center;
  line-height: 1.35;
}

body.page-mu-wings-full .media .cap {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-mu-wings-full .media .cap .t { font-weight: 650; font-size: 13px; }
body.page-mu-wings-full .media .cap .d { font-size: 12px; opacity: .82; line-height: 1.35; }
body.page-mu-wings-full .media .cap code {
  font-size: 11px;
  opacity: .82;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 4px 6px;
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Placeholder cuando falla imagen */
body.page-mu-wings-full .media .thumb img[src*="placeholder"] {
  opacity: .7;
  filter: grayscale(0.3);
}

body.page-mu-wings-full .filterRow {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: var(--mu-comb-radius2);
}

body.page-mu-wings-full .filterRow b { font-size: 12px; opacity: .9; }

body.page-mu-wings-full .pillBtn {
  font-size: 12px;
  opacity: .92;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}

body.page-mu-wings-full .pillBtn:hover { background: rgba(255,255,255,.08); transform: scale(1.03); }
body.page-mu-wings-full .pillBtn.active {
  border-color: var(--mu-comb-accent);
  background: var(--mu-comb-accent-soft);
}

body.page-mu-wings-full .miniCard {
  width: 120px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(0,0,0,.25));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
  padding: 10px;
  transition: transform .25s ease, box-shadow .25s ease;
}

body.page-mu-wings-full .miniCard:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 35px rgba(0,0,0,.65);
}

body.page-mu-wings-full img.mini {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

body.page-mu-wings-full td code { display: inline-block; }

/* Modal */
body.page-mu-wings-full .modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.62);
  z-index: 99999;
  padding: 18px;
}

body.page-mu-wings-full .modal.open { display: flex; }

body.page-mu-wings-full .modal .box {
  width: min(1000px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,24,.92);
  box-shadow: 0 25px 70px rgba(0,0,0,.60);
  overflow: hidden;
}

body.page-mu-wings-full .modal .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

body.page-mu-wings-full .modal .bar .title {
  font-size: 13px;
  opacity: .92;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-mu-wings-full .modal .bar button {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: inherit;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
}

body.page-mu-wings-full .modal .bar button:hover { background: rgba(255,255,255,.10); }
body.page-mu-wings-full .modal img { width: 100%; height: auto; display: block; background: rgba(255,255,255,.03); }

.wingModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  cursor: zoom-out;
}

.wingModal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 0 30px rgba(0,0,0,.7));
}

#site-header nav ul li.has-submenu { position: relative; }
#site-header nav ul li.has-submenu .submenu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: auto;
  display: none;
  min-width: 200px;
  padding: 8px;
  list-style: none;
  border-radius: 14px;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 15px 35px rgba(0,0,0,.45);
  z-index: 9999;
}

#site-header nav ul li.has-submenu:hover .submenu,
#site-header nav ul li.has-submenu:focus-within .submenu { display: block; }
#site-header nav ul li.has-submenu .submenu a {
  display: block;
  padding: 10px;
  border-radius: 10px;
  white-space: nowrap;
  text-decoration: none;
}
#site-header nav ul li.has-submenu .submenu a:hover { background: rgba(255,255,255,.08); }

/* Animaciones */
body.page-mu-combinaciones {
  background: radial-gradient(ellipse 100% 60% at 50% 0%, var(--mu-comb-accent-soft), transparent 50%),
    radial-gradient(ellipse 80% 50% at 90% 80%, rgba(255,204,102,.06), transparent 45%),
    linear-gradient(rgba(8,12,22,.92), rgba(8,12,22,.92));
  background-attachment: fixed;
}

body.page-mu-combinaciones .card {
  animation: cardReveal 0.5s ease backwards;
}

body.page-mu-combinaciones .card:nth-child(1) { animation-delay: 0.05s; }
body.page-mu-combinaciones .card:nth-child(2) { animation-delay: 0.1s; }
body.page-mu-combinaciones .card:nth-child(3) { animation-delay: 0.15s; }
body.page-mu-combinaciones .card:nth-child(4) { animation-delay: 0.2s; }
body.page-mu-combinaciones .card:nth-child(5) { animation-delay: 0.25s; }
body.page-mu-combinaciones .card:nth-child(6) { animation-delay: 0.3s; }
body.page-mu-combinaciones .card:nth-child(7) { animation-delay: 0.35s; }
body.page-mu-combinaciones .card:nth-child(8) { animation-delay: 0.4s; }
body.page-mu-combinaciones .card:nth-child(9) { animation-delay: 0.45s; }
body.page-mu-combinaciones .card:nth-child(10) { animation-delay: 0.5s; }
body.page-mu-combinaciones .card:nth-child(11) { animation-delay: 0.55s; }
body.page-mu-combinaciones .card:nth-child(12) { animation-delay: 0.6s; }
body.page-mu-combinaciones .card:nth-child(13) { animation-delay: 0.65s; }
body.page-mu-combinaciones .card:nth-child(14) { animation-delay: 0.7s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  body.page-mu-wings-full .wrap {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: max(70px, env(safe-area-inset-bottom, 0px));
  }

  body.page-mu-wings-full .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  body.page-mu-wings-full .filterRow {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.page-mu-wings-full .pillBtn {
    min-height: 44px;
    padding: 10px 14px;
  }

  body.page-mu-wings-full .card .body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  body.page-mu-wings-full .card .body table {
    min-width: 560px;
  }
}
