/* Offside · Cuenta, favoritos, niveles de creador y filtros de la tienda (Agente 2). Reusa los tokens de main.css. */

/* ---------- Acceso ---------- */
.acc-login-page .page-head h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.acc-login-wrap { display: grid; gap: 24px; padding-bottom: 72px; align-items: start; }
.acc-form { display: grid; gap: 18px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-l); background: var(--bg-3); }
@media (min-width: 860px) { .acc-login-wrap { grid-template-columns: 1.1fr .9fr; } }

/* Control segmentado: dos radios, una pastilla que se desliza (:has, sin JS). */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--pill); background: rgba(0, 0, 0, .06); isolation: isolate; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { position: relative; z-index: 1; display: grid; place-items: center; min-height: 44px; border-radius: var(--pill); font-weight: 600; color: var(--ink-2); cursor: pointer; transition: color .25s; -webkit-tap-highlight-color: transparent; }
.seg input:checked + label { color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.seg-thumb { position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: var(--pill); background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); transition: transform .45s var(--ease); }
.seg:has(#acc-registro:checked) .seg-thumb { transform: translateX(100%); }
.track-field label small { font-weight: 500; margin-left: 6px; }
.acc-pass { position: relative; }
.acc-pass input { width: 100%; padding-right: 56px; }
.acc-pass .icon-btn { position: absolute; right: 6px; top: 4px; color: var(--ink-3); }
.acc-pass .icon-btn[aria-pressed="true"] { color: var(--brand-600); }
.acc-submit { width: 100%; }
.acc-submit.is-busy { opacity: .7; pointer-events: none; }
.acc-form .fine a { color: var(--brand-600); font-weight: 600; }
.acc-demo-fill { display: grid; gap: 4px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; }
.acc-demo-fill strong { color: var(--ink); }
.pc-demo li:has(.acc-demo-fill) { transition: background-color .25s, transform .3s var(--ease); }
.pc-demo li:has(.acc-demo-fill:hover) { background: var(--bg-3); }
.pc-demo li:has(.acc-demo-fill:active) { transform: scale(.98); }

/* ---------- Cuenta de cliente (WooCommerce nativo, vestido) ---------- */
.acc-body { display: grid; gap: 24px; padding-bottom: 72px; }
.acc-wc { display: grid; gap: 24px; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill); background: var(--bg-2); font-size: .9rem; font-weight: 550; transition: background-color .2s, color .2s; }
.woocommerce-MyAccount-navigation a:hover { background: var(--bg-3); }
.woocommerce-MyAccount-navigation .is-active a { background: var(--brand-600); color: #fff; }
.woocommerce-MyAccount-content { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l); background: var(--bg-2); display: grid; gap: 16px; }
.woocommerce-MyAccount-content a { color: var(--brand-600); font-weight: 600; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { font-size: 1.2rem; }
.woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.woocommerce-MyAccount-content th, .woocommerce-MyAccount-content td { padding: 10px 8px 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.woocommerce-MyAccount-content .button, .woocommerce-MyAccount-content button { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border: 0; border-radius: var(--pill); background: var(--brand-600); color: #fff; font-weight: 600; cursor: pointer; }
.woocommerce-MyAccount-content input:not([type=checkbox]):not([type=radio]), .woocommerce-MyAccount-content select { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--pill); background: #fff; }
.woocommerce-MyAccount-content label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.woocommerce-MyAccount-content .form-row { margin: 0 0 14px; }
.woocommerce-MyAccount-content .woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-MyAccount-content .woocommerce-message, .woocommerce-MyAccount-content .woocommerce-info { padding: 12px 16px; border-radius: var(--r-m); background: var(--bg-3); color: var(--brand-700); font-weight: 600; }
.woocommerce-MyAccount-content .woocommerce-error { padding: 12px 16px; border-radius: var(--r-m); background: #fdecec; color: #b42318; font-weight: 600; }
@media (min-width: 900px) { .acc-wc { grid-template-columns: 240px 1fr; align-items: start; } .woocommerce-MyAccount-navigation ul { flex-direction: column; } .woocommerce-MyAccount-navigation a { width: 100%; } }

/* ---------- Corazón de favoritos ---------- */
.card { position: relative; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: transform .35s var(--ease), background-color .25s, color .25s; -webkit-tap-highlight-color: transparent; }
.fav:hover { transform: scale(1.08); }
.fav svg path { transition: fill .25s, stroke .25s; }
.fav[aria-pressed="true"] { color: #e0245e; }
.fav[aria-pressed="true"] svg path { fill: currentColor; stroke: currentColor; }
.fav.is-pop svg { animation: favpop .5s var(--ease); }
@keyframes favpop { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 70% { transform: scale(.9); } 100% { transform: scale(1); } }
.fav-lg { position: static; width: auto; height: 44px; padding: 0 18px 0 14px; gap: 8px; grid-auto-flow: column; background: var(--bg-2); box-shadow: none; font-weight: 600; font-size: .95rem; justify-self: start; }
.fav-lg[aria-pressed="true"] { background: #fdecf2; }

/* ---------- /favoritos/ ---------- */
.favs-body { padding-bottom: 72px; }
.favs .grid[hidden], .favs-empty[hidden], .favs-loading[hidden] { display: none; }
.favs-empty { justify-items: center; text-align: center; padding: clamp(40px, 8vw, 96px) 20px; border-radius: var(--r-l); background: var(--bg-2); }
.favs-empty .cta-row { justify-content: center; }
.favs-empty-art { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: #fff; color: var(--brand-600); }
@media (prefers-reduced-motion: no-preference) { .favs-empty-art svg { animation: favbeat 2.4s ease-in-out infinite; } }
@keyframes favbeat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.12); } 28% { transform: scale(1); } 42% { transform: scale(1.08); } }

/* ---------- Niveles del creador ---------- */
.lvl-track { position: relative; display: grid; gap: 14px; padding-top: 10px; }
.lvl-fill { position: relative; height: 10px; border-radius: 10px; background: #e3e3e8; overflow: hidden; }
.lvl-fill::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc((var(--i) + var(--p) / 100) / 2 * 100%); border-radius: 10px; background: linear-gradient(90deg, var(--brand-600), var(--brand)); }
.js .lvl-fill::after { animation: lvlfill 1.3s var(--ease) both .2s; }
@keyframes lvlfill { from { width: 0; } }
.lvl-stops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lvl-stops li { display: grid; gap: 2px; font-size: .78rem; color: var(--ink-3); text-align: center; position: relative; }
.lvl-stops li:first-child { text-align: left; } .lvl-stops li:last-child { text-align: right; }
.lvl-stops i { position: absolute; top: -29px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #d9d9de; }
.lvl-stops li:first-child i { left: 0; margin-left: -4px; } .lvl-stops li:last-child i { left: auto; right: 0; margin-left: 0; margin-right: -4px; }
.lvl-stops .is-done i, .lvl-stops .is-now i { box-shadow: inset 0 0 0 9px var(--brand-600); }
.lvl-stops .is-now i { box-shadow: inset 0 0 0 9px var(--brand-600), 0 0 0 4px rgba(10, 132, 255, .22); }
.lvl-stops strong { font: 750 1rem/1.1 var(--font-d); color: var(--ink); }
.lvl-stops .is-now strong { color: var(--brand-700); }
/* Escalera de muchos niveles (por € vendidos): barra solo hacia el siguiente y lista que se desliza en horizontal. */
.lvl-track.is-ladder .lvl-fill::after { width: calc(var(--p) * 1%); }
.lvl-ladder { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.lvl-ladder li, .lvl-ladder li:first-child, .lvl-ladder li:last-child { flex: 0 0 132px; text-align: left; padding: 12px; border-radius: var(--r-m); background: var(--bg-2); scroll-snap-align: start; }
.lvl-ladder li span { display: block; margin-top: 4px; color: var(--ink-2); }
.lvl-ladder .is-now { background: rgba(10, 132, 255, .1); box-shadow: inset 0 0 0 1.5px var(--brand-600); }
.lvl-ladder .is-done { opacity: .6; }
.lvl-stops span { display: none; }
@media (min-width: 700px) { .lvl-stops span { display: block; margin-top: 4px; color: var(--ink-2); } }
.lvl .demo-flag { margin: 0; justify-self: start; }

/* ---------- Filtros de la tienda: chips activos, contador y compartir ---------- */
/* Idea de los filtros con parámetros en la URL de vercel/commerce (MIT): cada chip activo se quita desde su propia × y la URL siempre se puede compartir. */
.shop-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-bottom: 16px; }
.shop-active .chip { gap: 8px; padding-right: 10px; background: var(--brand-600); color: #fff; }
.shop-active .chip small { opacity: .8; font-weight: 500; }
.shop-active .chip b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .22); font-weight: 700; line-height: 1; }
.shop-active .chip:hover { background: var(--brand-700); }
.shop-active .btn-quiet { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.shop-share { margin-left: auto; }
.filters .chips .chip small { margin-left: 6px; opacity: .7; font-weight: 500; }
.filters fieldset.is-on legend { color: var(--brand-700); }
.filters .chip-toggle { gap: 8px; }
.filters .chip-toggle::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.filters .chip-toggle.is-on::before { background: #fff; }
.filters .filters-count { font-size: .85rem; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
	.seg-thumb, .fav, .fav.is-pop svg, .js .lvl-fill::after { transition: none; animation: none; }
}

/* ---------- OFF Points (F): tarjeta de socio, barra de niveles, ventajas y canje ---------- */
.pts { display: grid; gap: 22px; padding: clamp(22px, 4vw, 36px); border-radius: var(--r-l); background: var(--bg-2); scroll-margin-top: calc(var(--header-h) + 16px); }
.pts-top { display: grid; gap: 20px; align-items: center; }
.pts h2 { display: flex; align-items: baseline; gap: 8px; font-size: 1rem; }
.pts-big { font: 800 clamp(3rem, 8vw, 4.6rem)/1 var(--font-d); letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--ink); }
.pts h2 small { font-size: 1rem; color: var(--ink-3); font-weight: 500; }
.pts-card { position: relative; display: grid; align-content: space-between; aspect-ratio: 1.6; max-width: 320px; padding: 18px 20px; border-radius: 18px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #1d1d1f, #3a3a3f); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); transform: perspective(900px) rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.pts-card:hover { transform: perspective(900px) rotateY(0) rotateX(0); }
.pts-card::after { content: ""; position: absolute; inset: -40% auto auto -20%; width: 70%; height: 180%; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .22) 50%, transparent 60%); transform: rotate(12deg); }
.pts-card.lvl-titular { background: linear-gradient(135deg, var(--brand-700), var(--brand)); }
.pts-card.lvl-estrella { background: linear-gradient(135deg, #0b3d91, #5e5ce6); }
.pts-card.lvl-capitan { background: linear-gradient(135deg, #8a6a1e, #e2c15d 60%, #b48e2a); }
.pts-card-brand { font: 800 .8rem/1 var(--font-d); letter-spacing: .22em; opacity: .85; }
.pts-card-lvl { font: 800 clamp(1.6rem, 4vw, 2.1rem)/1 var(--font-d); letter-spacing: -.02em; text-transform: uppercase; }
.pts-card-num { font-size: .8rem; opacity: .8; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
/* 4 niveles: paradas en 0, 1/3, 2/3 y 1 del carril */
.pts-track .lvl-fill::after { width: calc((var(--i) + var(--pts-p) / 100) / var(--n) * 100%); } /* --pts-p y no --p: creators-track.css registra --p con inherits:false y el ::after lo leía a 0 */
.pts-track .lvl-stops { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr); gap: 0; margin: 0; padding: 0; }
.pts-track .lvl-stops li { white-space: nowrap; }
@media (max-width: 480px) { .pts-track .lvl-stops strong { font-size: .82rem; } }
.pts-pend { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); }
.pts-pend b { color: var(--brand-700); font-variant-numeric: tabular-nums; }
.pts-cap { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-m); background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(214, 177, 74, .55); transition: box-shadow .2s; }
.pts-cap p { margin: 0; }
.pts-cap .eyebrow { margin: 0; color: #8a6a1e; }
a.pts-cap:hover { box-shadow: inset 0 0 0 2px #d6b14a; }
.pts-cap-go { font-weight: 650; color: var(--brand-700); }
.pts-cap.is-on { background: linear-gradient(135deg, #fffaf0, #fff); }
.pts-next { color: var(--ink-2); }
.pts-ledger summary { cursor: pointer; font-weight: 600; color: var(--brand-600); }
.pts-ledger ul { display: grid; gap: 0; margin-top: 10px; font-size: .92rem; }
.pts-ledger li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pts-ledger time { color: var(--ink-3); font-size: .85rem; }
.pts-ledger b { font-variant-numeric: tabular-nums; color: var(--brand-700); }
.pts-ledger b.is-neg { color: var(--ink-2); }
@media (min-width: 760px) { .pts-top { grid-template-columns: 1fr auto; } }
.pts-ledger li.is-anul span, .pts-ledger li.is-anul b { color: var(--ink-3); text-decoration: line-through; }
.pts-ledger em { font-style: normal; color: var(--ink-3); }
/* OFF Points: cómo se ganan y cómo se usan */
.pts-rules { display: grid; gap: 10px; }
.pts-rules > div { padding: 14px 16px; border-radius: var(--r-m); background: #fff; }
.pts-rules h3 { margin: 0 0 6px; font: 750 1rem/1.1 var(--font-d); }
.pts-rules ul { display: grid; gap: 4px; font-size: .9rem; color: var(--ink-2); }
.pts-rules b { color: var(--brand-700); font-variant-numeric: tabular-nums; }
@media (min-width: 760px) { .pts-rules { grid-template-columns: 1fr 1fr; } }
.pts-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 15%, var(--brand) 20% 100%); box-shadow: 0 0 0 2px rgba(10, 132, 255, .18); }
.pts-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: var(--pill); background: var(--bg-2); font-size: .85rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pts-chip b { font-variant-numeric: tabular-nums; }
.pts-chip.lvl-capitan .pts-dot { background: radial-gradient(circle at 35% 35%, #fff 0 15%, #d6b14a 20% 100%); box-shadow: 0 0 0 2px rgba(214, 177, 74, .25); }
.pts-canje { display: grid; gap: 10px; margin-bottom: 18px; padding: 16px; border-radius: var(--r-m); background: var(--bg-3); }
.pts-canje-head { display: flex; align-items: center; gap: 8px; }
.pts-canje-head .pts-saldo { margin-left: auto; font-weight: 600; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.pts-canje-form { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.pts-canje-form label { font-weight: 600; font-size: .9rem; }
.pts-canje-form select { height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--pill); background: #fff; font: inherit; }
.pts-canje-form .btn { min-height: 44px; }
.pts-canje .fine { margin: 0; }

/* ---------- Mi vestuario (B): álbum de cromos ---------- */
.vest { display: grid; gap: 22px; scroll-margin-top: calc(var(--header-h) + 16px); }
.vest-head { display: grid; gap: 16px; align-items: end; }
.vest-head h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); letter-spacing: -.02em; }
.vest-head [data-vest-n], .vest-head [data-vest-l] { color: var(--brand-600); font-variant-numeric: tabular-nums; }
.vest-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vest-actions .btn-quiet[aria-pressed="true"] { color: var(--brand-700); box-shadow: inset 0 0 0 1.5px var(--brand); }
.vest-share-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-m); background: var(--bg-3); font-size: .9rem; }
.vest-share-row a { color: var(--brand-700); font-weight: 600; word-break: break-all; }
.vest-share-row .chip { min-height: 34px; padding: 0 12px; border: 0; background: #fff; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; }
.vest-share-row[hidden] { display: none; }
.vest-progress { display: grid; gap: 14px; }
.vest-bars { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.vest-bars li { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 12px 14px 16px; border-radius: var(--r-m); background: var(--bg-2); font-size: .9rem; font-weight: 600; }
.vest-bars b { font-variant-numeric: tabular-nums; color: var(--brand-700); }
.vest-bars i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #e3e3e8; overflow: hidden; }
.vest-bars i::after { content: ""; display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: 6px; background: linear-gradient(90deg, var(--brand-600), var(--brand)); }
.js .vest-bars i::after { animation: vestbar 1.1s var(--ease) both .15s; }
@keyframes vestbar { from { width: 0; } }
.vest-filters .chip { border: 0; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 550; }
.vest-filters .chip.is-on { background: var(--brand-600); color: #fff; }
.vest-album { display: grid; gap: 28px; }
.vest-page { display: grid; gap: 14px; padding: clamp(16px, 3vw, 28px); border-radius: var(--r-l); background: var(--bg-2); background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px); background-size: 14px 14px; }
.vest-page[hidden] { display: none; }
.vest-page h3 { display: flex; align-items: baseline; gap: 10px; font-size: 1.15rem; }
.vest-page h3 small { font-size: .85rem; font-weight: 500; color: var(--ink-3); }
.vest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.cromo { min-width: 0; }
.cromo[hidden] { display: none; }
.cromo-in { display: grid; gap: 6px; width: 100%; padding: 8px 8px 10px; border: 0; border-radius: 14px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .06); transition: transform .5s var(--ease), box-shadow .5s var(--ease); -webkit-tap-highlight-color: transparent; }
.is-ro .cromo-in { cursor: default; }
.cromo-in:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 14px 30px rgba(0, 0, 0, .12); }
.cromo-in:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.cromo-media { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.cromo-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cromo-back { position: absolute; inset: auto 0 0; display: grid; justify-items: center; padding: 6px 4px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.cromo-back em { font: 700 .62rem/1 var(--font-d); letter-spacing: .12em; font-style: normal; }
.cromo-back b { font: 800 1.5rem/1 var(--font-d); letter-spacing: -.04em; }
.cromo-year { position: absolute; left: 6px; top: 6px; padding: 3px 7px; border-radius: var(--pill); background: rgba(255, 255, 255, .9); font-size: .66rem; font-weight: 700; color: var(--ink); }
.cromo-own { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-600); color: #fff; font-size: .7rem; font-weight: 800; }
.cromo-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; font-weight: 600; line-height: 1.25; min-height: 2.5em; }
.cromo-meta { font-size: .7rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cromo-meta:empty { display: none; }
.cromo.is-empty .cromo-in { background: transparent; box-shadow: none; }
.cromo.is-empty .cromo-media { border: 2px dashed rgba(0, 0, 0, .18); background: transparent; display: grid; place-items: center; }
.cromo.is-empty .cromo-in:hover .cromo-media { border-color: var(--brand); }
.cromo-slot { font: 800 1.6rem/1 var(--font-d); color: rgba(0, 0, 0, .22); }
.cromo.is-empty .cromo-name { color: var(--ink-3); font-weight: 500; }
.js .vest-grid .cromo { animation: rise .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 40ms); }
.vest-empty { justify-items: center; text-align: center; padding: clamp(32px, 6vw, 64px) 20px; border-radius: var(--r-l); background: var(--bg-2); }
.vest-empty[hidden] { display: none; }
.vest-grid-empty { width: min(100%, 440px); grid-template-columns: repeat(3, 1fr); }
.vest-dlg { width: min(100% - 32px, 560px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-l); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); overscroll-behavior: contain; }
.vest-dlg::backdrop { background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vest-dlg[open] { animation: dlgin .5s var(--ease); }
@keyframes dlgin { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.vest-form { display: grid; gap: 18px; padding: clamp(18px, 3vw, 28px); }
.vest-form header { display: flex; align-items: center; justify-content: space-between; }
.vest-form h3 { font-size: 1.3rem; }
.vest-pick { display: grid; gap: 8px; }
.vest-pick[hidden], .vest-chosen[hidden], .vest-fields[hidden], [data-vest-err][hidden], [data-vest-del][hidden] { display: none; }
.vest-pick label, .vest-fields label { font-weight: 600; font-size: .9rem; }
.vest-pick input { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--pill); background: #fff; font: inherit; }
.vest-results { display: grid; gap: 6px; max-height: 280px; overflow: auto; }
.vest-results:empty { display: none; }
.vest-results li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; cursor: pointer; transition: background-color .2s; }
.vest-results li:hover, .vest-results li:focus-visible { background: var(--bg-3); outline: 0; }
.vest-results img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.vest-results strong { display: block; font-size: .9rem; }
.vest-results small { color: var(--ink-3); font-size: .78rem; }
.vest-chosen { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--bg-2); }
.vest-chosen img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.vest-chosen .link-arrow { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.vest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vest-fields .vest-wide { grid-column: 1 / -1; }
.vest-fields input, .vest-fields select { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--pill); background: #fff; font: inherit; }
.vest-form footer { display: flex; justify-content: space-between; gap: 10px; }
.vest-del { color: #b42318; }
.vest-form .is-busy, .vest-actions .is-busy { opacity: .7; pointer-events: none; }
@media (min-width: 760px) { .vest-head { grid-template-columns: 1fr auto; } }
@media (prefers-reduced-motion: reduce) {
	.pts-card, .cromo-in, .vest-dlg[open] { transition: none; animation: none; }
	.js .vest-bars i::after, .js .vest-grid .cromo { animation: none; }
}

/* ---------- Mi cuenta: acordeón por secciones ---------- */
.pc-head-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; }
.acc-ord { display: grid; gap: 10px; }
.acc-sec { border-radius: var(--r-l); background: var(--bg-2); overflow: clip; transition: background-color .3s; }
.acc-sec.is-open { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.acc-sec-h { margin: 0; font-size: inherit; }
.acc-sec-h button { display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px clamp(16px, 3vw, 28px); border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.acc-sec-h button:hover .acc-sec-ico { background: var(--bg-3); color: var(--brand-700); }
.acc-sec-h button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; border-radius: var(--r-l); }
.acc-sec-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; color: var(--ink); transition: background-color .25s, color .25s; }
.acc-sec.is-open .acc-sec-ico { background: var(--brand-600); color: #fff; }
.acc-sec-t { display: grid; gap: 2px; font: 700 1.1rem/1.2 var(--font-d); letter-spacing: -.01em; min-width: 0; }
.acc-sec-t small { font: 500 .88rem/1.3 var(--font-b, inherit); color: var(--ink-3); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-sec-chev { color: var(--ink-3); transition: transform .45s var(--ease); }
.acc-sec-h button[aria-expanded="true"] .acc-sec-chev { transform: rotate(180deg); }
.acc-sec-p { padding: 4px clamp(16px, 3vw, 28px) clamp(20px, 3vw, 28px); }
.acc-sec-p[hidden] { display: none; }
.js .acc-sec-p:not([hidden]) > * { animation: rise .5s var(--ease) both; }
.acc-sec-p .vest, .acc-sec-p .pts { scroll-margin-top: calc(var(--header-h) + 90px); }
.acc-sec-p .pts { padding: 0; background: none; border-radius: 0; }
.acc-sec-p .vest-page { background-color: var(--bg-2); }
.acc-empty { justify-items: start; text-align: left; padding: 8px 0 4px; }
.acc-empty h3 { font-size: 1.15rem; }
.acc-empty p { color: var(--ink-2); max-width: 56ch; }
.acc-empty .cta-row { justify-content: flex-start; }
.acc-favs { margin-bottom: 14px; }
.acc-wc-inline .woocommerce-MyAccount-navigation { display: none; }
.acc-wc-inline a { color: var(--brand-600); font-weight: 600; }
.acc-wc-inline table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.acc-wc-inline th, .acc-wc-inline td { padding: 10px 8px 10px 0; text-align: left; border-bottom: 1px solid var(--line); }
.acc-wc-inline .button, .acc-wc-inline button { display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; border: 0; border-radius: var(--pill); background: var(--brand-600); color: #fff; font-weight: 600; cursor: pointer; }
.acc-wc-inline input:not([type=checkbox]):not([type=radio]), .acc-wc-inline select { width: 100%; height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--pill); background: #fff; }
.acc-wc-inline label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.acc-wc-inline .form-row { margin: 0 0 14px; }
.acc-wc-inline fieldset { border: 0; padding: 0; margin: 18px 0 0; }
.acc-wc-inline legend { font: 700 1.05rem var(--font-d); margin-bottom: 10px; }
.acc-wc-inline .woocommerce-Addresses { display: grid; gap: 16px; }
.acc-wc-inline .woocommerce-Address { padding: 16px 18px; border-radius: var(--r-m); background: var(--bg-2); }
.acc-wc-inline .woocommerce-Address-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.acc-wc-inline .woocommerce-Address-title h2, .acc-wc-inline .woocommerce-Address-title h3 { font-size: 1.05rem; }
.acc-wc-inline address { font-style: normal; color: var(--ink-2); line-height: 1.5; margin-top: 8px; }
.acc-wc-inline .woocommerce-notices-wrapper:empty { display: none; }
@media (min-width: 760px) { .acc-wc-inline .woocommerce-Addresses { grid-template-columns: 1fr 1fr; } }
.acc-out { display: inline-flex; align-items: center; gap: 10px; justify-self: start; margin-top: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--pill); color: var(--ink-2); font-weight: 600; transition: background-color .2s, color .2s; }
.acc-out:hover { background: var(--bg-2); color: var(--ink); }
.acc-out:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.acc-wc .woocommerce-MyAccount-navigation { display: none; }
@media (min-width: 900px) { .acc-wc { grid-template-columns: 1fr; } }

/* ---------- Mi colección: progreso ---------- */
.vest-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.vest-stats li { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-m); background: var(--bg-2); }
.vest-stats strong { font: 800 2rem/1 var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.vest-stats strong small { font-size: 1rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.vest-stats span { font-size: .85rem; color: var(--ink-2); font-weight: 500; }
.vest-total { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--r-m); background: linear-gradient(135deg, var(--bg-3), #fff); }
.vest-total-h { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: space-between; }
.vest-total-h strong { font: 750 1.1rem/1.2 var(--font-d); }
.vest-total-h span { font-size: .88rem; color: var(--ink-2); }
.vest-total-bar { height: 12px; border-radius: 12px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.vest-total-bar i { display: block; height: 100%; width: max(calc(var(--p) * 1%), 6px); border-radius: 12px; background: linear-gradient(90deg, var(--brand-600), var(--brand)); }
.js .vest-total-bar i { animation: vestbar 1.3s var(--ease) both .1s; }
.vest-break { display: grid; gap: 18px; }
.vest-by { display: grid; gap: 10px; }
.vest-by h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vest-by-side { display: grid; gap: 18px; align-content: start; }
.vest-bars { grid-template-columns: 1fr; gap: 6px; }
.vest-bars li { padding: 10px 14px 12px; background: var(--bg-2); }
.vest-bars li span small, .vest-bars li b small { display: block; font-size: .72rem; font-weight: 500; color: var(--ink-3); }
.vest-bars li.is-none { opacity: .6; }
.vest-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vest-tags li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: var(--pill); background: var(--bg-2); font-size: .88rem; font-weight: 550; }
.vest-tags b { font-variant-numeric: tabular-nums; color: var(--brand-700); }
.vest-miss { display: grid; gap: 10px; }
.vest-miss h3 { font-size: 1.05rem; }
.vest-miss-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.vest-miss-list li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-m); background: var(--bg-2); font-size: .9rem; }
.vest-miss-list li.is-none { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.vest-miss-list span { display: grid; gap: 2px; min-width: 0; }
.vest-miss-list strong { font-weight: 650; }
.vest-miss-list small { color: var(--ink-3); font-size: .78rem; }
.vest-miss-ico, .vest-miss-list .crest-fallback { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; background: #fff; }
.vest-miss-list .link-arrow { font-size: .85rem; white-space: nowrap; }
@media (min-width: 760px) { .vest-stats { grid-template-columns: repeat(4, 1fr); } .vest-break { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Botón «Añadir a mi colección» (tarjeta y ficha) ---------- */
.vest-tg { position: absolute; top: 56px; right: 10px; z-index: 2; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: var(--pill); background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); transition: transform .35s var(--ease), background-color .25s, color .25s; -webkit-tap-highlight-color: transparent; }
.vest-tg:hover { transform: scale(1.08); }
.vest-tg:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.vest-tg .vest-tg-check { display: none; }
.vest-tg[aria-pressed="true"] { color: var(--brand-700); background: var(--bg-3); }
.vest-tg[aria-pressed="true"] .vest-tg-plus { display: none; }
.vest-tg[aria-pressed="true"] .vest-tg-check { display: block; }
.vest-tg.is-pop svg { animation: favpop .5s var(--ease); }
.vest-tg-lg { position: static; width: auto; height: 44px; padding: 0 18px 0 14px; gap: 8px; grid-auto-flow: column; background: var(--bg-2); box-shadow: none; font-weight: 600; font-size: .95rem; justify-self: start; margin-left: 10px; }
.vest-tg-lg[aria-pressed="true"] { background: var(--bg-3); }
@media (prefers-reduced-motion: reduce) {
	.acc-sec-chev, .vest-tg, .acc-sec { transition: none; }
	.js .acc-sec-p:not([hidden]) > *, .js .vest-total-bar i, .vest-tg.is-pop svg { animation: none; }
}

.track-field[hidden] { display: none; }

/* Aviso al añadir a la colección (account.js): píldora abajo, en móvil por encima de la barra inferior y de la buybar de la ficha. */
.off-toast { position: fixed; z-index: 75; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); translate: -50% 12px; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 11px 12px 11px 18px; border-radius: var(--pill); background: rgba(29, 29, 31, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.2; white-space: nowrap; box-shadow: 0 12px 36px rgba(0, 0, 0, .22); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), translate .45s var(--ease); }
.off-toast.is-on { opacity: 1; translate: -50% 0; pointer-events: auto; }
.off-toast a { padding: 8px 14px; border-radius: var(--pill); background: var(--brand-600); color: #fff; font-size: .82rem; text-decoration: none; transition: background-color .2s; }
.off-toast a:hover { background: var(--brand-700); }
.off-toast a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 899px) {
	.off-toast { bottom: calc(14px + var(--appbar-h) + env(safe-area-inset-bottom)); }
	body:has(.buybar:not([hidden])) .off-toast { bottom: calc(82px + var(--appbar-h) + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .off-toast { translate: -50% 0; transition: opacity .2s; } }
