/* Pekoso Top — estilos del front (v1.1: lista + escenario de video) */

.pkt {
	--a: #d9a55b;
	--a-rgb: 217, 165, 91;
	--line: rgba(255, 255, 255, .09);
	--txt: #f4f1ea;
	--mut: rgba(244, 241, 234, .58);
	--ease: cubic-bezier(.2, .8, .2, 1);
	position: relative;
	max-width: 1240px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 56px) clamp(18px, 4vw, 48px) clamp(32px, 5vw, 64px);
	color: var(--txt);
	font-family: inherit;
	box-sizing: border-box;
}
.pkt *, .pkt *::before, .pkt *::after { box-sizing: border-box; }
.pkt [hidden] { display: none !important; }

/* Resplandor ambiental: se desvanece hacia los bordes, sin cortes */
.pkt::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(60% 55% at 15% 12%, rgba(var(--a-rgb), .16), transparent 70%),
		radial-gradient(55% 50% at 88% 80%, rgba(140, 70, 255, .11), transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%);
	mask-image: radial-gradient(ellipse at center, #000 35%, transparent 72%);
	animation: pktGlow 14s ease-in-out infinite alternate;
}
.pkt > * { position: relative; z-index: 1; }

/* ---------- Cabecera centrada y compacta ---------- */
.pkt__head { display: grid; justify-items: center; gap: 14px; text-align: center; }

.pkt__logo {
	display: block;
	width: min(70%, 230px);
	height: auto;
	filter: drop-shadow(0 10px 36px rgba(var(--a-rgb), .3));
	animation: pktFloat 6s ease-in-out infinite;
}
.pkt__title {
	margin: 0;
	font-size: clamp(2.4rem, 6vw, 3.6rem);
	line-height: .95;
	font-weight: 800;
	color: #fff;
	letter-spacing: .02em;
}
.pkt__title span { color: var(--a); }

.pkt__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: #fff;
}
.pkt__kicker i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--a);
	box-shadow: 0 0 0 0 rgba(var(--a-rgb), .6);
	animation: pktPulse 2s infinite;
}

.pkt__desc {
	max-width: 64ch;
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
	color: var(--mut);
}

.pkt__cta {
	position: relative;
	display: inline-block;
	overflow: hidden;
	padding: 14px 28px;
	background: var(--a);
	color: #14181f;
	font-weight: 700;
	font-size: .84rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-decoration: none;
	transition: transform .3s var(--ease), box-shadow .3s;
}
.pkt__cta::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
	transform: translateX(-120%);
}
.pkt__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(var(--a-rgb), .7); color: #14181f; }
.pkt__cta:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }

/* ---------- Historial ---------- */
.pkt__history { margin-top: 22px; display: flex; justify-content: center; }
.pkt__weeks {
	display: flex;
	gap: 8px;
	max-width: 100%;
	overflow-x: auto;
	padding: 4px 2px 8px;
	scrollbar-width: thin;
	scrollbar-color: rgba(var(--a-rgb), .4) transparent;
}
.pkt-wk {
	flex: none;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: transparent;
	color: var(--mut);
	font: inherit;
	text-align: left;
	line-height: 1.25;
	cursor: pointer;
	transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.pkt-wk b { display: block; font-size: 13px; color: #fff; }
.pkt-wk small { font-size: 11px; letter-spacing: .06em; }
.pkt-wk:hover { transform: translateY(-2px); border-color: rgba(var(--a-rgb), .5); }
.pkt-wk.is-active { border-color: var(--a); background: rgba(var(--a-rgb), .12); }
.pkt-wk:focus-visible, .pkt-btn:focus-visible, .pkt__cta:focus-visible, .pkt-row:focus-visible, .pkt-frame__play:focus-visible { outline: 2px solid var(--a); outline-offset: 3px; }

/* ---------- Tablero: lista + escenario ---------- */
.pkt__main { margin-top: 18px; }

.pkt-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin: 0 4px 14px;
}
.pkt-head h3 {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--a);
}
.pkt-head span { font-size: 13px; color: var(--mut); }

.pkt-board {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
	gap: clamp(18px, 3vw, 36px);
	align-items: stretch;
}

/* ---------- Lista ---------- */
.pkt-list { display: grid; grid-auto-rows: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }

.pkt-row {
	--mx: 50%;
	--my: 50%;
	position: relative;
	display: grid;
	grid-template-columns: 56px clamp(64px, 8vw, 80px) minmax(0, 1fr) auto;
	gap: clamp(10px, 1.6vw, 18px);
	align-items: center;
	padding: 10px 16px 10px 10px;
	overflow: hidden;
	isolation: isolate;
	cursor: pointer;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
	transition: transform .4s var(--ease), border-color .3s, background .3s, box-shadow .4s;
}
.pkt-row::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0;
	transition: opacity .35s;
	background: radial-gradient(320px circle at var(--mx) var(--my), rgba(var(--a-rgb), .17), transparent 60%);
}
.pkt-row:hover { transform: translateX(4px); border-color: rgba(var(--a-rgb), .4); }
.pkt-row:hover::before { opacity: 1; }
.pkt-row.is-active {
	border-color: rgba(var(--a-rgb), .6);
	background: linear-gradient(135deg, rgba(var(--a-rgb), .17), rgba(255, 255, 255, .02));
	box-shadow: 0 0 0 1px rgba(var(--a-rgb), .12), 0 20px 50px -28px rgba(var(--a-rgb), .6);
}

.pkt-row__rank { display: grid; justify-items: center; gap: 6px; }
.pkt-row__pos {
	font-size: 2rem;
	font-weight: 800;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .3);
	transition: -webkit-text-stroke-color .3s, transform .4s var(--ease);
}
.pkt-row:hover .pkt-row__pos { -webkit-text-stroke-color: var(--a); }
.pkt-row.is-active .pkt-row__pos {
	background: linear-gradient(180deg, #fff2d2, var(--a));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-stroke: 0;
	transform: scale(1.1);
}

.pkt-row__cover { width: 100%; aspect-ratio: 1; }
.pkt-row__img, .pkt-row__ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px;
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .8);
}
.pkt-row__ph {
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(var(--a-rgb), .35), rgba(60, 30, 120, .5));
	color: rgba(255, 255, 255, .85);
}
.pkt-row__ph svg { width: 40%; height: 40%; }

.pkt-row__title {
	margin: 0;
	font-size: clamp(1rem, 1.7vw, 1.2rem);
	font-weight: 700;
	line-height: 1.15;
	color: #fff;
}
.pkt-row__artist { margin: 4px 0 0; font-size: .9rem; color: var(--mut); }
.pkt-row__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 14px;
	margin-top: 8px;
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mut);
}
.pkt-row__stats b { margin-left: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0; color: #fff; }

.pkt-row > .pkt-eq { opacity: 0; transition: opacity .3s; }
.pkt-row.is-active > .pkt-eq { opacity: 1; }

/* Movimiento (flechas) */
.pkt-move {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 42px;
	padding: 3px 9px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.pkt-move svg { width: 9px; height: 9px; }
.pkt-move--up { color: #7be39a; background: rgba(123, 227, 154, .1); border-color: rgba(123, 227, 154, .25); }
.pkt-move--up svg { animation: pktUp 1.4s ease-in-out infinite; }
.pkt-move--down { color: #ff7a88; background: rgba(255, 122, 136, .1); border-color: rgba(255, 122, 136, .25); }
.pkt-move--down svg { transform: rotate(180deg); animation: pktDown 1.4s ease-in-out infinite; }
.pkt-move--same { color: var(--mut); background: rgba(255, 255, 255, .05); border-color: var(--line); }
.pkt-move--new {
	color: #14181f;
	background: linear-gradient(100deg, var(--a) 30%, #fff3d6 50%, var(--a) 70%) 0 0 / 220% 100%;
	animation: pktShine 3.2s linear infinite;
}

/* Ecualizador */
.pkt-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.pkt-eq i { width: 3px; height: 100%; background: var(--a); border-radius: 1px; transform-origin: bottom; animation: pktEq 1s ease-in-out infinite; }
.pkt-eq i:nth-child(2) { animation-delay: -.3s; }
.pkt-eq i:nth-child(3) { animation-delay: -.6s; }
.pkt-eq i:nth-child(4) { animation-delay: -.15s; }

/* ---------- Escenario ---------- */
.pkt-stage { position: relative; }
.pkt-stage__item {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
}
.pkt-stage__item.is-swap { animation: pktSwap .6s var(--ease); }

/* Luz ambiental con los colores de la portada */
.pkt-stage__item::before {
	content: "";
	position: absolute;
	inset: -6% -4% 20% -4%;
	z-index: -1;
	background: var(--cover, none) center / cover;
	filter: blur(60px) saturate(1.5);
	opacity: .38;
	border-radius: 30px;
}

.pkt-frame {
	position: relative;
	padding: 1px;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(var(--a-rgb), .9), rgba(var(--a-rgb), .08) 35%, rgba(255, 255, 255, .07) 65%, rgba(var(--a-rgb), .65));
	background-size: 220% 220%;
	box-shadow: 0 30px 80px -34px rgba(var(--a-rgb), .5);
	animation: pktBorder 9s ease-in-out infinite alternate;
}
.pkt-frame__in {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 19px;
	background: #0c1017;
}
.pkt-frame__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.4s var(--ease), filter .5s;
}
.pkt-frame:hover .pkt-frame__thumb { transform: scale(1.05); }
.pkt-frame__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 11, 16, .65), transparent 38%),
		linear-gradient(0deg, rgba(8, 11, 16, .6), transparent 45%);
	pointer-events: none;
}
.pkt-frame__tag {
	position: absolute;
	top: 16px;
	left: 18px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: #fff;
}
.pkt-frame__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 78px;
	height: 78px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--a);
	color: #14181f;
	cursor: pointer;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 0 rgba(var(--a-rgb), .55), 0 14px 40px -8px rgba(0, 0, 0, .7);
	animation: pktRing 2.4s infinite;
	transition: transform .35s var(--ease);
}
.pkt-frame__play svg { width: 30px; height: 30px; margin-left: 4px; }
.pkt-frame__play:hover { transform: translate(-50%, -50%) scale(1.1); }
.pkt-frame__hint {
	position: absolute;
	right: 18px;
	bottom: 14px;
	font-size: 10.5px;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .8);
	pointer-events: none;
}
.pkt-frame__video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pkt-frame.is-playing .pkt-frame__thumb,
.pkt-frame.is-playing .pkt-frame__shade,
.pkt-frame.is-playing .pkt-frame__tag,
.pkt-frame.is-playing .pkt-frame__play,
.pkt-frame.is-playing .pkt-frame__hint { display: none; }

/* Sin video: portada grande sobre su propio desenfoque */
.pkt-frame--cover .pkt-frame__in::before {
	content: "";
	position: absolute;
	inset: -20px;
	background: var(--cover, none) center / cover;
	filter: blur(28px) saturate(1.4) brightness(.7);
}
.pkt-frame__art {
	position: absolute;
	top: 50%;
	left: 50%;
	height: 80%;
	width: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
	transform: translate(-50%, -50%);
	box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .85);
}
.pkt-frame__art--ph { display: grid; place-items: center; background: linear-gradient(135deg, rgba(var(--a-rgb), .35), rgba(60, 30, 120, .5)); color: #fff; }
.pkt-frame__art--ph svg { width: 36%; height: 36%; }

/* Datos debajo del video */
.pkt-meta { display: grid; gap: 16px; margin-top: auto; }
.pkt-meta__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pkt-meta__title { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.12; color: #fff; }
.pkt-meta__artist { margin: 5px 0 0; font-size: 1rem; color: var(--mut); }
.pkt-meta__top .pkt-move { flex: none; padding: 6px 13px; font-size: 12.5px; }
.pkt-meta__top .pkt-move svg { width: 10px; height: 10px; }

.pkt-nums {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(255, 255, 255, .03);
}
.pkt-num { padding: 12px 8px; text-align: center; }
.pkt-num + .pkt-num { border-left: 1px solid var(--line); }
.pkt-num b { display: block; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.1; color: #fff; }
.pkt-num small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }

.pkt-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pkt-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 11px 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-decoration: none;
	transition: color .3s, background .3s, border-color .3s, transform .3s var(--ease);
}
.pkt-btn svg { width: 18px; height: 18px; }
.pkt-btn:hover { color: #14181f; background: var(--a); border-color: var(--a); transform: translateY(-2px); }

/* ---------- Animaciones de entrada (solo con JS) ---------- */
.pkt-js .pkt__item { opacity: 0; transform: translateY(18px); }
.pkt-js .pkt.is-in .pkt__item {
	opacity: 1;
	transform: none;
	transition: opacity .8s var(--ease) calc(var(--k, 0) * .09s), transform .9s var(--ease) calc(var(--k, 0) * .09s);
}
.pkt-js .pkt-head,
.pkt-js .pkt-stage { opacity: 0; transform: translateY(14px); }
.pkt-js .pkt-panel.is-in .pkt-head { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); }
.pkt-js .pkt-panel.is-in .pkt-stage { opacity: 1; transform: none; transition: opacity .9s var(--ease) .25s, transform 1s var(--ease) .25s; }

.pkt-js .pkt-panel .pkt-row { opacity: 0; transform: translateX(-26px); }
.pkt-js .pkt-panel.is-in .pkt-row {
	opacity: 1;
	transform: none;
	transition:
		opacity .6s var(--ease) calc(var(--i, 0) * .08s + .1s),
		transform .8s var(--ease) calc(var(--i, 0) * .08s + .1s),
		border-color .3s, background .3s, box-shadow .4s;
}
.pkt-js .pkt-panel.is-in .pkt-row:hover { transform: translateX(4px); }
.pkt-js .pkt-panel.is-done .pkt-row { transition: opacity .3s, transform .4s var(--ease), border-color .3s, background .3s, box-shadow .4s; }

/* ---------- Keyframes ---------- */
@keyframes pktGlow { from { opacity: .65; transform: scale(1); } to { opacity: 1; transform: scale(1.05); } }
@keyframes pktFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pktPulse { 70% { box-shadow: 0 0 0 9px rgba(var(--a-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--a-rgb), 0); } }
@keyframes pktRing { 0% { box-shadow: 0 0 0 0 rgba(var(--a-rgb), .55), 0 14px 40px -8px rgba(0, 0, 0, .7); } 70%, 100% { box-shadow: 0 0 0 26px rgba(var(--a-rgb), 0), 0 14px 40px -8px rgba(0, 0, 0, .7); } }
@keyframes pktEq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
@keyframes pktUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes pktDown { 0%, 100% { transform: rotate(180deg) translateY(0); } 50% { transform: rotate(180deg) translateY(-2px); } }
@keyframes pktShine { to { background-position: -220% 0; } }
@keyframes pktBorder { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes pktSwap { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.pkt-board { grid-template-columns: minmax(0, 1fr); }
	.pkt-list { grid-auto-rows: auto; }
}
@media (max-width: 560px) {
	.pkt-row { grid-template-columns: 44px 62px minmax(0, 1fr); padding-right: 12px; }
	.pkt-row > .pkt-eq { display: none; }
	.pkt-row__pos { font-size: 1.6rem; }
	.pkt-frame__play { width: 64px; height: 64px; }
	.pkt-frame__play svg { width: 24px; height: 24px; }
	.pkt-frame__hint { display: none; }
}

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
	.pkt *, .pkt *::before, .pkt *::after { animation: none !important; transition: none !important; }
	.pkt-js .pkt__item, .pkt-js .pkt-head, .pkt-js .pkt-stage, .pkt-js .pkt-panel .pkt-row { opacity: 1 !important; transform: none !important; }
}

/* ======================================================================
 * Blindaje contra los estilos de <button> del tema / Elementor
 * ==================================================================== */
.pkt button.pkt-frame__play {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: grid !important;
	place-items: center !important;
	box-sizing: border-box !important;
	width: 78px !important;
	height: 78px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	aspect-ratio: 1 / 1 !important;
	background: var(--a) !important;
	color: #14181f !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.pkt button.pkt-frame__play svg { display: block !important; width: 30px !important; height: 30px !important; margin-left: 4px !important; }
.pkt button.pkt-frame__play:hover,
.pkt button.pkt-frame__play:focus { background: #e8b873 !important; color: #14181f !important; }
@media (max-width: 560px) {
	.pkt button.pkt-frame__play { width: 64px !important; height: 64px !important; }
	.pkt button.pkt-frame__play svg { width: 24px !important; height: 24px !important; }
}

.pkt button.pkt-wk {
	-webkit-appearance: none !important;
	appearance: none !important;
	margin: 0 !important;
	padding: 8px 14px !important;
	min-width: 0 !important;
	border: 1px solid var(--line) !important;
	border-radius: 14px !important;
	background: transparent !important;
	color: var(--mut) !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none !important;
}
.pkt button.pkt-wk.is-active { border-color: var(--a) !important; background: rgba(var(--a-rgb), .12) !important; }
.pkt button.pkt-wk:hover,
.pkt button.pkt-wk:focus { border-color: rgba(var(--a-rgb), .6) !important; background: rgba(var(--a-rgb), .08) !important; color: var(--mut) !important; }
.pkt button.pkt-wk b { color: #fff !important; }
