.collOwner{ display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.collOwner .btn{ min-height: 44px; padding: 0 18px; font-size: 14px; }
.collSort{ min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.collHint{ margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.collCopy{ position: absolute; left: 8px; top: 8px; z-index: 1; padding: 3px 8px; border-radius: 999px; background: rgba(28,22,56,.72); color: #fff; font-size: 11px; font-weight: 700; backdrop-filter: blur(4px); transition: opacity .2s ease; }
.card-item:hover .collCopy{ opacity: 0; }
.state-box .btn{ display: inline-flex; margin-top: 4px; }
@media (max-width: 560px){
  .collOwner{ grid-template-columns: 1fr; }
}

/* =========================================================
   inventario renovado: consola blanca, filtros en barra y cartas grandes con 3D
   ========================================================= */
.collNew{ position: relative; margin-top: -74px; padding: 112px 0 0; background:
  radial-gradient(closest-side, rgba(212,190,255,.9), rgba(212,190,255,0)) 50% 0 / 1200px 560px no-repeat,
  radial-gradient(rgba(123,63,228,.14) 1.2px, transparent 1.3px) 0 0 / 22px 22px, var(--bg); }
.collNew .cards-root{ padding: 0 0 90px; }
.collNew .collWrap{ max-width: none; padding: 0 24px; }
@media (min-width: 1281px){ .collNew .collWrap{ padding-left: 104px; } }
.collApp{ display: grid; gap: 16px; padding: 22px; border-radius: 32px; background: #fff; border: 1px solid #ECE7FA; box-shadow: 0 30px 70px -40px rgba(100,53,190,.45); min-width: 0; }

/* cabecera */
.collHead{ display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(280px, 420px); align-items: center; gap: 18px; padding: 4px 6px 0; }
.collHeadText{ display: grid; gap: 6px; min-width: 0; }
.collKick{ justify-self: start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #EFECFF; color: #7B3FE4; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.collTitle{ margin: 0; font: 800 clamp(26px, 3.2vw, 38px)/1.05 var(--font-display); letter-spacing: -.035em; color: #2C1B54; overflow-wrap: anywhere; }
.collWho{ color: #7B3FE4; }
.collLead{ margin: 0; color: #736F87; font-weight: 600; }
.collNew .collCount{ margin: 0; }
.collNew .collCount span{ display: grid; justify-items: center; gap: 2px; min-width: 120px; padding: 12px 18px; border-radius: 20px; background: linear-gradient(135deg, #7B3FE4, #A35CF5); color: #fff; box-shadow: 0 12px 24px -12px rgba(123,63,228,.8); }
.collNew .collCount strong{ font: 800 28px/1 var(--font-display); color: #fff; }
.collNew .collCount small{ font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.collNew .collOwner{ display: flex; gap: 8px; margin: 0; padding: 0; border: 0; }

/* campos */
.collField{ position: relative; flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 46px; padding: 0 14px; border-radius: 14px; background: #F7F5FE; border: 1px solid #E2DCFF; cursor: text; transition: border-color .15s, box-shadow .15s, background .15s; }
.collField:focus-within{ background: #fff; border-color: #9978F5; box-shadow: 0 0 0 4px #EFECFF; }
.collField > i{ color: #9978F5; font-size: 14px; }
.collField input{ flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: none; color: #2C1B54; font: 600 14.5px/1 var(--font-body, inherit); box-shadow: none; }
.collField input::placeholder{ color: #9A94B0; }
.collBtn{ flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #7B3FE4, #A35CF5); color: #fff; font: 800 14px/1 var(--font-body, inherit); cursor: pointer; box-shadow: 0 5px 0 #4A268D; transition: transform .15s ease, box-shadow .15s ease; }
.collBtn:hover{ transform: translateY(-2px); }
.collBtn:active{ transform: translateY(3px); box-shadow: 0 2px 0 #4A268D; }
.collBtn.isSoft{ background: #EFECFF; color: #6435BE; box-shadow: 0 5px 0 #DCD2FA; }
.collBtn.isSoft:active{ box-shadow: 0 2px 0 #DCD2FA; }

/* filtros */
.collNew .collFilters{ margin: 0; padding: 14px; border-radius: 24px; background: #FBFAFF; border: 1px solid #ECE7FA; box-shadow: none; }
.collNew .collGrid{ grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.collNew .collBar{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.collSpacer{ flex: 1; }
.collRar{ display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #EFECFF; }
.collRar button{ min-height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #6435BE; font: 800 13.5px/1 var(--font-body, inherit); cursor: pointer; transition: background .15s, color .15s; }
.collRar button.active{ background: #fff; color: #2C1B54; box-shadow: 0 2px 8px rgba(44,27,84,.12); }
.collRar button[data-r="1"].active{ background: #DCEBFF; color: #2F5FB7; }
.collRar button[data-r="2"].active{ background: #E2DCFF; color: #4A268D; }
.collRar button[data-r="3"].active{ background: linear-gradient(135deg, #FFE7A0, #FFC94D); color: #7A4C00; }
.collNew .collSort{ min-height: 46px; border-radius: 14px; border-color: #E2DCFF; background: #F7F5FE; font-weight: 700; color: #2C1B54; }
.collNew .collHint{ margin: 10px 4px 0; font-size: 12.5px; color: #9A94B0; }

/* cartas */
.collNew .cards-grid{ grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px 16px; perspective: 1200px; }
.collNew .card-item{ --rx: 0deg; --ry: 0deg; --mx: 50%; overflow: visible; border: 0; border-radius: 16px; background: none; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .2s ease-out; animation: collIn .5s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes collIn{ from{ opacity: 0; transform: translateY(14px) scale(.97); } }
.collNew .card-item:hover{ transform: rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); box-shadow: none; z-index: 2; }
.collNew .card-item img{ border-radius: 16px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(80,40,150,.22)); transition: filter .25s; }
.collNew .card-item:hover img{ filter: drop-shadow(0 18px 26px rgba(80,40,150,.35)); }
.collNew .card-item::after{ content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--mx) 20%, rgba(255,255,255,.45), transparent 45%); transition: opacity .2s; }
.collNew .card-item:hover::after{ opacity: 1; }
.collNew .card-item.isShiny::before{ content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: 19px; background: conic-gradient(from 0deg, #FFE27A, #FF9ACB, #B98CFF, #7FD8FF, #FFE27A); filter: blur(10px); opacity: .55; animation: collShine 4s linear infinite; }
@keyframes collShine{ to{ filter: blur(10px) hue-rotate(360deg); } }
.collNew .card-overlay{ z-index: 2; border-radius: 16px; background: linear-gradient(to top, rgba(44,27,84,.9) 0%, transparent 50%); }
.collNew .card-rarity{ z-index: 3; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 10px; border: 2px solid #fff; font-size: 11.5px; }
.collNew .r3{ background: linear-gradient(135deg, #FFE7A0, #FFC94D); color: #7A4C00; }
.collNew .collCopy{ z-index: 3; left: 10px; top: 10px; background: rgba(44,27,84,.78); }
.collNew .state-box{ padding: 60px 20px; border-radius: 24px; background: #F7F5FE; color: #4E4961; font-weight: 600; }
.collNew .state-box i{ font-size: 34px; color: #B4A1FC; margin-bottom: 8px; }

/* páginas */
.collNew .pagination{ margin-top: 10px; }
.collNew .page-btn{ min-width: 42px; height: 42px; border-radius: 13px; border-color: #E2DCFF; background: #F7F5FE; color: #4E4961; }
.collNew .page-btn.active{ background: linear-gradient(135deg, #7B3FE4, #A35CF5); border-color: transparent; color: #fff; box-shadow: 0 6px 14px -6px rgba(123,63,228,.8); }

@media (max-width: 1100px){
  .collHead{ grid-template-columns: minmax(0, 1fr) auto; }
  .collNew .collOwner{ grid-column: 1 / -1; }
}
@media (max-width: 760px){
  .collNew .collGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collSpacer{ display: none; }
  .collNew .collBar > .collBtn{ flex: 1; }
}
@media (max-width: 560px){
  .collNew{ padding-top: 96px; }
  .collNew .collWrap{ padding: 0 10px; }
  .collApp{ padding: 12px; gap: 12px; border-radius: 26px; }
  .collHead{ gap: 12px; }
  .collNew .collCount span{ min-width: 0; padding: 10px 14px; }
  .collNew .collCount strong{ font-size: 22px; }
  .collNew .collOwner .collBtn{ padding: 0 12px; }
  .collNew .collGrid{ grid-template-columns: 1fr; gap: 8px; }
  .collRar{ width: 100%; }
  .collRar button{ flex: 1; padding: 0 8px; }
  .collNew .collSort{ flex: 1; }
  .collNew .cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
}
@media (prefers-reduced-motion: reduce){ .collNew .card-item, .collNew .card-item.isShiny::before{ animation: none; } }
@media (max-width: 560px){
  .collNew .collGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
  .collNew .collFilters{ padding: 10px; border-radius: 20px; }
  .collField{ min-height: 40px; padding: 0 10px; gap: 7px; border-radius: 12px; }
  .collField input{ height: 38px; font-size: 16px; }
  .collField > i{ display: none; }
  .collNew .collBar{ gap: 6px; }
  .collRar button{ min-height: 34px; }
  .collNew .collSort, .collNew .collBar > .collBtn{ min-height: 40px; flex: 1 1 0; padding: 0 8px; font-size: 13px; }
  .collNew .collHint, .collLead{ display: none; }
}
/* sin el numerito de rareza (1, 2, 3) en las cartas */
.collNew .card-rarity:not(.r-ev){ display: none; }
