/* Agente 1: cantantes en la home, Mystery Box (home + landing) y estados de la tarjeta.
   Reusa los tokens de main.css (--brand, --dark, --r-m/--r-l, --pill, --ease, --font-d). Mobile-first. */

/* ---------- Tarjeta: enlace dentro de un contenedor (deja sitio al corazón del agente 2) ---------- */
.card { position: relative; }
.card-link { display: block; color: inherit; }
.card.is-out .card-media img { opacity: .55; filter: grayscale(.5); }
.card.is-out .card-stock { color: var(--ink-3); }
.card.is-out .card-stock::before { background: var(--ink-3); }
.badge-out { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- Cantantes: primera sección, rejilla bento ---------- */
.sing { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-3) 100%); padding-top: clamp(36px, 6vw, 80px); }
.sing .section-head .sub { max-width: 46ch; }
.sing-artists { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -8px 0 22px; padding-bottom: 4px; }
.sing-artists::-webkit-scrollbar { display: none; }
.sing-artists li { flex: 0 0 auto; }
.sing-artists .chip { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.sing-artists .chip:hover { background: var(--brand-600); color: #fff; }
.sing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
.sing-grid .card { width: 100%; }
.sing-grid .sing-big { grid-column: 1 / -1; }
.sing-grid .sing-big .card-media { aspect-ratio: 4 / 3; background: #fff; }
.sing-grid .sing-big .card-name { font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-family: var(--font-d); font-stretch: 112%; letter-spacing: -.02em; }
@media (min-width: 760px) {
	.sing-grid { grid-template-columns: repeat(3, 1fr); gap: 26px 18px; }
	.sing-grid .sing-big { grid-column: span 2; grid-row: span 2; }
	.sing-grid .sing-big .card-media { aspect-ratio: auto; height: 100%; min-height: 420px; }
	.sing-grid .sing-big .card-link { display: grid; grid-template-rows: 1fr auto auto auto; height: 100%; }
}
@media (min-width: 1100px) { .sing-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Mystery Box en la home: panel oscuro ---------- */
.mb-home { display: grid; gap: 24px; padding: clamp(24px, 5vw, 56px); border-radius: var(--r-l); background: radial-gradient(120% 100% at 100% 0%, #16305a 0%, var(--dark) 55%); color: #fff; overflow: hidden; }
.mb-home .eyebrow { color: #7cc0ff; }
.mb-home-copy { display: grid; gap: 16px; align-content: center; justify-items: start; }
.mb-home-copy > p:not(.price-big):not(.eyebrow):not(.mb-urgent) { color: rgba(255, 255, 255, .82); max-width: 38ch; }
.mb-home .price-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.mb-home .price-big .price-now, .mb-home .price-big .price-now .amount, .mb-home .price-big .price-now bdi { color: #fff; font: 800 clamp(2.4rem, 5vw, 3.4rem)/1 var(--font-d); letter-spacing: -.03em; }
.mb-home .price-big .price-was, .mb-home .price-big .price-was .amount, .mb-home .price-big .price-was bdi { color: rgba(255, 255, 255, .6); font: 600 1.15rem/1 var(--font-b); text-decoration: line-through; }
.mb-home .price-big small { flex-basis: 100%; font-size: .8rem; color: rgba(255, 255, 255, .7); }
.mb-save { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 4px 10px; border-radius: var(--pill); background: var(--brand); color: #fff; font: 700 .85rem/1.2 var(--font-b); }
.mb-urgent { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .1); color: #ffd98a; font-size: .88rem; font-weight: 600; }
.mb-urgent::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffb21a; }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 900px) { .mb-home { grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } }


/* ---------- La escena: FOTOS REALES de la caja (cerrada → abierta) y camisetas que salen ---------- */
.mbox { display: grid; gap: 16px; justify-items: center; }
.mbox-stage { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.mbox-glow { position: absolute; inset: 15% 5% -5%; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 132, 255, .5), transparent 70%); opacity: 0; transition: opacity 1.2s var(--ease); }
.mbox-box { position: absolute; inset: 0; border-radius: var(--r-l); overflow: hidden; background: #f3f3f4; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.mbox-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.mbox-opened { opacity: 0; transform: scale(1.04); }
.mbox.is-open .mbox-opened { opacity: 1; transform: none; }
.mbox.is-open .mbox-closed { opacity: 0; transform: scale(.97); }
.mbox-shirts { position: absolute; inset: 0; z-index: 2; pointer-events: none; margin: 0; padding: 0; list-style: none; }
.mbox-shirt { position: absolute; left: 50%; bottom: 18%; width: 42%; aspect-ratio: 4 / 5; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); opacity: 0; transform: translate(-50%, 30%) scale(.5) rotate(0deg); transition: transform 1s var(--ease), opacity .6s var(--ease); transition-delay: var(--d, 0s); }
.mbox-shirt img { width: 100%; height: 100%; object-fit: contain; }
.ms-1 { --d: .55s; }
.ms-2 { --d: .7s; }
.ms-3 { --d: .85s; }
.mbox.is-open .mbox-glow { opacity: 1; }
.mbox.is-open .mbox-shirt { opacity: 1; }
.mbox.is-open .ms-1 { transform: translate(-50%, -30%) scale(1) rotate(-2deg); z-index: 3; }
.mbox.is-open .ms-2 { transform: translate(-125%, -10%) scale(.8) rotate(-16deg); }
.mbox.is-open .ms-3 { transform: translate(25%, -10%) scale(.8) rotate(16deg); }
.mbox-note { text-align: center; max-width: 42ch; color: rgba(255, 255, 255, .6); }
.mbox-open { min-width: 200px; }

/* ---------- C: probador «A ver cuál te sale» ---------- */
.mbox-roll .mbox-shirt { width: 50%; bottom: 16%; }
.mbox-roll.is-open .ms-1 { transform: translate(-50%, -22%) scale(1) rotate(-2deg); }
.mbox-roll .mbox-shirt img[hidden] { display: none; }
.mbox-result { display: grid; gap: 4px; text-align: center; animation: rise .7s var(--ease) both; }
.mbox-result-name b { font: 800 clamp(1.15rem, 3vw, 1.5rem)/1.15 var(--font-d); font-stretch: 112%; letter-spacing: -.02em; color: #fff; }
.mbox-result-price { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.mbox-result-price b { color: #fff; font-weight: 700; }
.mbox-result-price .mbox-ours { display: inline-block; padding: 3px 12px; border-radius: var(--pill); background: #fff; color: #0A0A0A; font-weight: 800; font-size: 1.1rem; } /* SEO: antes blanco sobre azul claro (3,7:1); ahora texto oscuro sobre blanco (>15:1) */
.mbox-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mbox-history { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 0; padding: 0; list-style: none; }
.mbox-hist-item { display: grid; justify-items: center; gap: 4px; width: 64px; }
.mbox-hist-item img { width: 48px; height: 60px; object-fit: contain; background: #fff; border-radius: 10px; padding: 3px; animation: rise .5s var(--ease) both; }
.mbox-hist-item span { font-size: .62rem; line-height: 1.15; text-align: center; color: rgba(255, 255, 255, .6); max-width: 64px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mbox-hist-item:first-child img { box-shadow: 0 0 0 2px var(--brand); }
@keyframes mbox-shake { 0%, 100% { transform: rotate(0); } 15% { transform: translateX(-2%) rotate(-2deg); } 30% { transform: translateX(2%) rotate(2deg); } 45% { transform: translate(-2%, -2%) rotate(-3deg); } 60% { transform: translateX(2%) rotate(3deg); } 75% { transform: translateX(-1%) rotate(-1.5deg); } 90% { transform: translateX(1%) rotate(1deg); } }
.mbox.is-shake .mbox-box { animation: mbox-shake .75s ease-in-out both; }
@media (prefers-reduced-motion: reduce) {
	.mbox .mbox-box img, .mbox .mbox-shirt, .mbox .mbox-glow { transition: none; }
	.mbox.is-shake .mbox-box, .mbox-result, .mbox-hist-item img { animation: none; }
}

/* ---------- Ficha /mystery-box/: página de producto al grano ---------- */
.mbl-top { padding-top: clamp(16px, 3vw, 32px); }
.mbl-main .pdp-slide img { background: #f6f6f7; }
.mbl-main .pdp-slide[data-slide="2"] img { object-fit: cover; }
.mbl-open-btn { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 3; padding: 12px 20px; border: 0; border-radius: var(--pill); background: rgba(10, 12, 16, .82); color: #fff; font: 650 .92rem/1 var(--font-b); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .2s; }
.mbl-open-btn::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--brand); vertical-align: 1px; animation: mbl-blink 1.6s ease-in-out infinite; }
.mbl-open-btn:hover { background: #000; }
.mbl-main:not(.is-closed) .mbl-open-btn { opacity: 0; transform: translateY(8px); pointer-events: none; }
@keyframes mbl-blink { 50% { opacity: .35; } }
@keyframes mbl-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.mbl-main.is-popping .pdp-slide.is-on img { animation: mbl-pop .9s var(--ease) both; }
.mbl-ref { display: block; margin-top: 6px; font: 500 .9rem/1.3 var(--font-b); font-stretch: 100%; color: var(--ink-2); }
.mbl-lead { color: var(--ink-2); max-width: 42ch; }
.mbl-buy .mb-urgent { background: #fff3d6; color: #7a4b00; }
.mbl-buy .ticks { margin-top: 6px; }
.mbl-form { display: grid; gap: 16px; justify-items: stretch; padding: 20px; border-radius: var(--r-m); background: var(--bg-2); }
.mbl-sizes { border: 0; margin: 0; padding: 0; min-width: 0; }
.mbl-sizes legend { font-weight: 650; margin-bottom: 10px; }
.mbl-pill { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 52px; padding: 6px 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mbl-pill:hover { background: var(--bg-3); }
.mbl-pill input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.mbl-pill:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 3px; }
.mbl-pill small { font-size: .7rem; font-weight: 500; opacity: .75; }
.mbl-pill.is-on, .mbl-pill:has(input:checked) { background: var(--brand-600); color: #fff; box-shadow: none; }
.mbl-pill.is-off { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.mbl-submit { width: 100%; min-height: 54px; font-size: 1.02rem; }
.mbl-submit[disabled] { opacity: 1; background: var(--ink-3); color: #fff; cursor: not-allowed; transform: none; box-shadow: none; }
.mbl-form .fine { margin: -4px 0 0; }
@media (min-width: 900px) {
	.mbl-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
	.mbl-sizes .pills { gap: 10px; }
	.mbl-pill { min-width: 68px; }
}

/* Probador: panel oscuro */
.mbl-play { background: radial-gradient(120% 100% at 100% 0%, #16305a 0%, var(--dark) 60%); color: #fff; padding: clamp(36px, 6vw, 80px) 0; }
.mbl-play .eyebrow { color: #7cc0ff; }
.mbl-play-grid { display: grid; gap: 28px; }
.mbl-play-copy { display: grid; gap: 14px; align-content: center; }
.mbl-play-copy h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.025em; text-wrap: balance; }
.mbl-play-copy p:not(.eyebrow) { color: rgba(255, 255, 255, .8); max-width: 40ch; }
@media (min-width: 900px) { .mbl-play-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; } }

/* Cómo funciona */
.mbl-how { background: var(--bg-3); }
.mbl-steps { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.mbl-steps li { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: start; }
.mbl-n { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--brand-600); color: #fff; font: 800 1.25rem/1 var(--font-d); }
.mbl-steps b { font-weight: 700; font-size: 1.05rem; }
.mbl-steps span:not(.mbl-n) { color: var(--ink-2); font-size: .95rem; }
@media (min-width: 760px) { .mbl-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

/* Barra pegajosa de móvil con talla elegida */
.buybar .btn[data-ready] { background: var(--brand-600); }
