/* Kits (el marco PokePad está en pokepad.css). */
.kit-hero { position: relative; width: min(100%, 380px); height: 210px; flex: none; display: flex; align-items: flex-end; justify-content: center; }
.kit-hero::before { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; height: 60px; background: radial-gradient(ellipse at center, #4bb6ff44, transparent 70%); }
.kit-hero img { position: relative; width: 74px; height: auto; margin: 0 -6px; border-radius: 10px; box-shadow: 0 10px 18px #0009; animation: site-float 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
.kit-hero img:nth-child(3) { width: 96px; z-index: 2; }
.kit-hero img:nth-child(2), .kit-hero img:nth-child(4) { width: 84px; z-index: 1; }

.kit-tabs { display: flex; gap: 6px; }
.kit-tabs button { min-height: 34px; padding: 0 16px; color: #d8e3f6; background: #0d2f52; border: 2px solid #0b2f4f; border-radius: 999px; font: 700 13px "Inter", system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
.kit-tabs button[aria-selected="true"] { color: #08101f; background: #ffd442; border-color: #ffd442; }

.kit-list-art { background: #2a7fc7; }
.kit-list-art img { top: 0; width: 52px; height: auto; transform: translateX(-50%); }
.kit-coins { display: inline-flex; align-items: center; gap: 3px; color: #ffd442; }
.kit-coins img { width: 18px; height: 18px; }

.kit-detail { display: grid; gap: 16px; align-content: start; }
.kit-skin { width: 128px; height: auto; border: 2px solid var(--section-color); border-radius: 12px; box-shadow: 0 10px 20px #0008; }
.kit-kind { margin: 0; color: #a9bad6; font: 600 12px "Inter", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.kit-price { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 14px 4px 6px; color: #fff; background: #3a3215; border: 1px solid #ffd44266; border-radius: 999px; font-size: 15px; }
.kit-price strong { color: #ffd442; font: 700 18px "Inter", system-ui, sans-serif; }
.kit-price.is-small { font-size: 14px; }
.kit-price.is-small strong { font-size: 15px; }
.kit-specialty { display: grid; grid-template-columns: auto minmax(80px, 180px) auto; gap: 8px; align-items: center; margin-bottom: 10px; color: #d8e3f6; font-size: 14px; }
.kit-specialty i { position: relative; height: 10px; overflow: hidden; background: #22405f; border-radius: 999px; }
.kit-specialty i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--value) * 10%); background: var(--section-color); border-radius: 999px; }
.kit-specialty b { color: var(--section-color); font-family: "Inter", system-ui, sans-serif; }
.kit-off, .kit-edition { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font: 700 10px "Inter", system-ui, sans-serif; letter-spacing: .04em; vertical-align: 2px; text-transform: uppercase; }
/* En la lista, la etiqueta va en su propia línea: junto al nombre se cortaba en móvil. */
.kit-list-tag { display: block; line-height: 1; }
.kit-list-tag .kit-off, .kit-list-tag .kit-edition { margin-left: 0; vertical-align: 0; }
.kit-off { color: #ffd0d6; background: #4a1822; border: 1px solid #ff5a6e66; }
.kit-edition { color: #1a0f24; background: #ff8c1a; }

.kit-limits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.kit-limits li { display: grid; gap: 1px; padding: 6px 10px; background: #0d1729; border: 1px solid #22405f; border-radius: 8px; }
.kit-limits span { color: #9fb0cc; font: 600 10px "Inter", system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.kit-limits strong { color: #fff; font-size: 14px; }
.kit-commands { margin: 8px 0 0; color: #c2cee2; font-size: 14px; }
.kit-commands code, .kit-compare code { padding: 1px 6px; color: #ffe9a6; background: #2a2412; border-radius: 4px; font: 13px "Inter", system-ui, sans-serif; }
.kit-commands small { color: #8f9fba; }
.kit-store { display: inline-block; margin-top: 10px; color: #86cfff; font-size: 14px; font-weight: 600; text-decoration: none; }
.kit-store:hover { color: #fff; }
.kit-yes { color: #6cf0b2; font-weight: 700; }
.kit-no { color: #5a6a86; }
.kit-compare-group th { padding-top: 14px; color: #ffd442 !important; background: #0d1729; font: 700 12px "Inter", system-ui, sans-serif; letter-spacing: .08em; text-align: left; text-transform: uppercase; }

/* Slot como el del menú de kits del juego */
.kit-slot { position: relative; width: 56px; height: 56px; display: grid; place-items: center; flex: none; background: #2f77a8; border: 3px solid #74b4e1; border-radius: 4px; box-shadow: inset 0 0 0 2px #2b6d9c; }
.kit-slot img { width: 40px; height: 40px; image-rendering: pixelated; }
.kit-slot.is-capture { padding: 0; background: none; border: 0; box-shadow: none; }
.kit-slot.is-capture img { width: 56px; height: 56px; image-rendering: auto; border-radius: 4px; }
.kit-slot b { position: absolute; right: 2px; bottom: 0; color: #fff; font: 700 14px "Inter", system-ui, sans-serif; text-shadow: 2px 2px 0 #3f3f3f; }
.kit-slot.is-big { width: 72px; height: 72px; }
.kit-slot.is-big img { width: 52px; height: 52px; }
.kit-slot.is-big.is-capture img { width: 72px; height: 72px; }

.kit-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; background: #1a0e24; border: 2px solid #3b1f5a; border-radius: 10px; box-shadow: inset 0 0 0 1px #5a2f8a55; }
.kit-info strong { display: block; color: #fff; font-size: 17px; }
.kit-info small { color: #9a8fb3; font-size: 12px; }
.kit-info code { color: #8d84a6; font-family: "Inter", system-ui, sans-serif; }
.kit-info ul { display: grid; gap: 2px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 14px; }
.kit-info .is-enchant { color: #b8b8c8; }
.kit-info .is-attr { color: #6fdc6f; }
.kit-info .is-lore { color: #e6b1ff; }
.kit-info p { margin: 6px 0 0; color: #9a8fb3; font-size: 14px; }

.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.kit-item { display: grid; justify-items: center; gap: 5px; padding: 8px 4px; color: #e2e9f6; background: #102035; border: 1px solid #1f3a5c; border-radius: 9px; font: 600 12px "Inter", system-ui, sans-serif; text-align: center; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.kit-item:hover { border-color: var(--section-color); transform: translateY(-2px); }
.kit-item.is-active { background: #16304f; border-color: var(--section-color); }
.kit-item-name { line-height: 1.25; }

.kit-intro { margin: 0 0 12px; color: #b6c3d9; }
.kit-compare-wrap { overflow-x: auto; background: var(--dex-panel); border: 1px solid var(--dex-line); border-radius: 12px; }
.kit-compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.kit-compare th, .kit-compare td { padding: 10px 12px; border-bottom: 1px solid #1f2f4a; text-align: center; }
.kit-compare tbody th { color: #a9bad6; font: 600 12px "Inter", system-ui, sans-serif; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.kit-compare td { color: #e2e9f6; }
.kit-compare thead th button { display: grid; justify-items: center; gap: 4px; width: 100%; padding: 0; color: var(--kit-color); background: none; border: 0; font: 700 14px "Inter", system-ui, sans-serif; text-transform: uppercase; cursor: pointer; }
.kit-compare thead th img { width: 48px; height: auto; border-radius: 6px; }

.kit-history { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.kit-season { padding: 14px; background: var(--dex-panel); border: 1px solid var(--dex-line); border-radius: 12px; }
.kit-season.is-live { border-color: #ff8c1a88; box-shadow: inset 4px 0 0 #ff8c1a; }
.kit-season-head { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.kit-season-head div { display: grid; flex: 1; }
.kit-season-head strong { color: #fff; font-size: 17px; }
.kit-season-head small { color: #a9bad6; font: 500 12.5px "Inter", system-ui, sans-serif; }
.kit-season-num { display: grid; place-items: center; width: 30px; height: 30px; color: #1a1405; background: #ffd442; border-radius: 50%; font: 700 14px "Inter", system-ui, sans-serif; }
.kit-season-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.kit-season-kit { display: grid; justify-items: center; gap: 4px; padding: 8px 6px; color: #e2e9f6; background: #0d1729; border: 1px solid #1f2f4a; border-radius: 10px; font: 600 13px "Inter", system-ui, sans-serif; text-align: center; }
button.kit-season-kit { cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
button.kit-season-kit:hover { border-color: #ffd442; transform: translateY(-1px); }
.kit-season-kit > img { width: 96px; height: 96px; object-fit: contain; }
.kit-season-kit em { color: #8fb4ff; font: 600 11px "Inter", system-ui, sans-serif; font-style: normal; letter-spacing: .04em; text-transform: uppercase; }
.kit-season-kit .kit-coins { font-size: 12.5px; }

@media (max-width: 520px) {
  .kit-season-kits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kit-season-kit { font-size: 12px; }
  .kit-season-kit > img { width: 76px; height: 76px; }
}
@media (max-width: 860px) {
  .kit-hero { width: 100%; height: 160px; }
  .kit-hero img { width: 54px; }
  .kit-hero img:nth-child(3) { width: 72px; }
  .kit-hero img:nth-child(2), .kit-hero img:nth-child(4) { width: 62px; }
  .kit-tabs button { padding: 0 10px; font-size: 11px; }
  .kit-skin { width: 84px; }
  .kit-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
  .kit-limits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Armadura renderizada y visor 3D (modelos del servidor) */
.kit-skin.is-render { padding: 8px; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--section-color) 22%, #16233c), #0b1222 75%); }
.kit-3d-btn { min-height: 32px; padding: 0 12px; color: #08101f; background: var(--section-color, #ffd442); border: 0; border-radius: 999px; font: 700 13px "Inter", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.kit-viewer { width: min(92vw, 640px); padding: 0; color: #f2f4fb; background: #101a2e; border: 2px solid color-mix(in srgb, var(--section-color, #ffd442) 55%, transparent); border-radius: 16px; box-shadow: 0 30px 80px #000c; }
.kit-viewer::backdrop { background: #04070dcc; backdrop-filter: blur(3px); }
.kit-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #2b3d5c; }
.kit-viewer-head h3 { margin: 0; font-size: 20px; }
.kit-viewer-close { width: 36px; height: 36px; color: #fff; background: #1a2942; border: 1px solid #3a5378; border-radius: 50%; font-size: 16px; cursor: pointer; }
.kit-viewer-stage { position: relative; height: min(64vh, 520px); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--section-color, #ffd442) 18%, #1a2942), #0b1222 75%); cursor: grab; }
.kit-viewer-stage:active { cursor: grabbing; }
.kit-viewer-stage canvas { display: block; width: 100%; height: 100%; }
.kit-viewer-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #9aa9c4; }
.kit-viewer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; color: #9aa9c4; font-size: 13px; }
.kit-viewer-btn { min-height: 34px; padding: 0 14px; color: #f2f4fb; background: #1a2942; border: 1px solid #3a5378; border-radius: 999px; font: 600 14px "Inter", system-ui, sans-serif; cursor: pointer; }

/* Packs de decoración: la miniatura de una de sus piezas en vez de una skin */
.kit-skin.is-pack { padding: 10px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--section-color) 25%, #16233c), #0b1222 75%); }
.kit-list-art img[src*="halloween3d"] { top: 50%; width: 44px; transform: translate(-50%, -50%); }
.kit-link { padding: 0; color: #6cf0b2; background: none; border: 0; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* Rediseño (16-11-2026): tandas, plegables, ficha compacta y objetos con filtro */
/* A la venta ahora */
.kx-now { margin: 0 0 16px; padding: 12px 14px; background: linear-gradient(135deg, #3a2a10aa, #101a2e 60%); border: 1px solid #ff8c1a66; border-radius: 14px; }
.kx-now-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.kx-now-head strong { color: #fff; font-size: 16px; }
.kx-now-head small { color: #ffcf9c; font-size: 13px; }
.kx-live-dot { width: 10px; height: 10px; align-self: center; background: #ff8c1a; border-radius: 50%; box-shadow: 0 0 0 4px #ff8c1a33; }
.kx-now-kits { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.kx-now-kits button { display: grid; justify-items: center; gap: 2px; padding: 8px 6px; color: #fff; background: #0d1729; border: 1px solid #253753; border-bottom: 3px solid var(--kit-color); border-radius: 12px; font: 700 13.5px "Inter", system-ui, sans-serif; cursor: pointer; transition: transform .15s, border-color .15s; }
.kx-now-kits button:hover { transform: translateY(-2px); border-color: var(--kit-color); }
.kx-now-kits button > img { width: 72px; height: 72px; object-fit: contain; }
.kx-now-kits .kit-coins { font-size: 12.5px; font-weight: 600; }

/* Pestañas de tipo de kit: interruptor redondeado */
.kit-tabs { flex-wrap: wrap; padding: 3px; background: #0a1f38; border: 1px solid #1d4470; border-radius: 999px; }
.kit-tabs button { min-height: 30px; padding: 0 14px; background: none; border: 0; letter-spacing: .02em; text-transform: none; font-size: 13px; }
.kit-tabs button:hover { color: #fff; }

/* Fuera de rotación: tandas */
.kx-seasons { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kx-seasons[hidden] { display: none; }
.kx-seasons-label { margin-right: 4px; color: #a9bad6; font: 700 11.5px "Inter", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.kx-seasons button { display: inline-grid; justify-items: start; padding: 5px 10px; color: #c2cee2; background: #0d1729; border: 1px solid #2b5f8c; border-radius: 10px; font: 700 12.5px "Inter", system-ui, sans-serif; cursor: pointer; text-align: left; }
.kx-seasons button small { color: #8f9fba; font-size: 10.5px; font-weight: 600; text-transform: uppercase; }
.kx-seasons button:hover { border-color: #4bb6ff; color: #fff; }
.kx-seasons button[aria-pressed="true"] { color: #08101f; background: #ffd442; border-color: #ffd442; }
.kx-seasons button[aria-pressed="true"] small { color: #5a4a10; }
.kit-list-item.is-model .dr-item-text small { color: #8fb4ff; }

/* Ficha del kit */
.kx-head { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 4px 0 16px; border-bottom: 1px solid #22405f; }
.kx-art { display: grid; gap: 10px; justify-items: center; align-content: start; }
.kx-art .kit-skin { width: 170px; }
.kx-text { min-width: 0; }
.kx-text h3 { margin: 2px 0 10px; color: var(--section-color); font: 800 30px "Inter", system-ui, sans-serif; text-transform: uppercase; line-height: 1.05; }
.kx-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.kx-badges .kit-price { margin: 0; }
.kx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; color: #dce6f6; background: #0d1729; border: 1px solid #2b5f8c; border-radius: 999px; font-size: 13.5px; }
.kx-chip.is-gold { color: #ffe9a6; border-color: #ffd44266; background: #2a2412; }
.kx-note { margin: 6px 0; padding: 7px 12px; border-radius: 10px; font-size: 13.5px; }
.kx-note.is-off { color: #ffd0d6; background: #3a162066; border: 1px solid #ff5a6e44; }
.kx-note.is-sale { color: #ffcf9c; background: #3a2a1066; border: 1px solid #ff8c1a55; }
.kx-note.is-sale strong { color: #ff8c1a; }
.kx-note.is-secret { color: #e6ecff; background: #1f2440; border: 1px dashed #c9d8ff88; }
.kx-note.is-upgrade { color: #d6f7e6; background: #13362666; border: 1px solid #43db9555; }
.kx-label { margin: 12px 0 6px; color: #a9bad6; font: 700 11.5px "Inter", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.kx-perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.kx-perks li { position: relative; padding: 7px 10px 7px 30px; color: #e8eef9; background: #102a47; border: 1px solid #22405f; border-radius: 10px; font-size: 13.5px; line-height: 1.35; }
.kx-perks li::before { content: "✦"; position: absolute; left: 11px; top: 7px; color: var(--section-color); }

/* Objetos: filtro por categoría + una sola cuadrícula */
.kx-items { display: grid; gap: 12px; }
.kx-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.kx-cats button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; color: #c2cee2; background: #0d1729; border: 1px solid #2b5f8c; border-radius: 999px; font: 600 13px "Inter", system-ui, sans-serif; cursor: pointer; }
.kx-cats button b { padding: 0 6px; color: #08101f; background: #4a6d93; border-radius: 999px; font-size: 11px; }
.kx-cats button:hover { color: #fff; border-color: #4bb6ff; }
.kx-cats button[aria-pressed="true"] { color: #fff; background: color-mix(in srgb, var(--section-color) 28%, #0d1729); border-color: var(--section-color); }
.kx-cats button[aria-pressed="true"] b { background: var(--section-color); }
.kx-items .kit-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }

/* Plegables: Comparar rangos e Historial */
.kx-fold { margin-top: 14px; background: var(--dex-panel); border: 1px solid var(--dex-line); border-radius: 14px; }
.kx-fold > summary { display: flex; align-items: center; gap: 14px; padding: 14px 18px; list-style: none; cursor: pointer; }
.kx-fold > summary::-webkit-details-marker { display: none; }
.kx-fold > summary:hover { background: #ffffff06; }
.kx-fold-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: #0d1729; border: 1px solid #2b5f8c; border-radius: 12px; font-size: 22px; }
.kx-fold > summary > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.kx-fold > summary strong { color: #fff; font-size: 19px; scroll-margin-top: 140px; }
.kx-fold > summary small { color: #a9bad6; font-size: 13px; }
.kx-fold > summary > i { margin-left: auto; width: 32px; height: 32px; flex: none; display: grid; place-items: center; color: #cfe3ff; background: #0d1729; border: 1px solid #2b5f8c; border-radius: 50%; font-style: normal; transition: transform .2s; }
.kx-fold > summary > i::before { content: "▾"; }
.kx-fold[open] > summary > i { transform: rotate(180deg); }
.kx-fold-body { padding: 0 18px 18px; }

@media (max-width: 860px) {
  .kx-head { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .kx-art .kit-skin { width: 96px; }
  .kx-text h3 { font-size: 22px; }
  .kx-perks { grid-template-columns: minmax(0, 1fr); }
  .kx-items .kit-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
  .kx-fold > summary { padding: 12px; gap: 10px; }
  .kx-fold-body { padding: 0 10px 12px; }
}
@media (max-width: 520px) {
  .kx-head { grid-template-columns: minmax(0, 1fr); }
  .kx-art { grid-template-columns: auto auto; align-items: center; justify-content: start; }
  .kx-now-kits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kx-now-kits button > img { width: 56px; height: 56px; }
}
@media (max-width: 760px) {
  .kit-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 14px; }
  .kit-tabs button { border-radius: 10px; padding: 0 6px; font-size: 12px; }
  .kx-seasons-label { flex-basis: 100%; }
}
