/* ==================================================
   Nakasone — estilos propios de la plantilla (hero: laboratorio holográfico)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   Los colores de cada modelo llegan como variables desde nk.js: --a, --b (degradado) y --acc (neón)
   ================================================== */

.nk-hero {
	--a: #0a0b0b;
	--b: #c367f1;
	--acc: #c367f1;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 640px;
	padding-top: 68px;
	overflow: hidden;
	color: #f5f5f0;
	background: #0a0b0b;
}

/* Fondo: dos capas de degradado que se funden al cambiar de modelo */
.nk-bg { position: absolute; inset: 0; pointer-events: none; }
.nk-bg__layer { position: absolute; inset: 0; display: block; opacity: 0; background: linear-gradient(45deg, var(--la, #0a0b0b) 0%, var(--lb, #c367f1) 100%); transition: opacity .9s linear; }
.nk-bg__layer.is-on { opacity: 1; }
.nk-vignette { position: absolute; inset: 0; display: block; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(5, 3, 12, .75) 100%); }

/* Piso de rejilla neón en perspectiva (corre hacia la cámara) */
/* Va dentro del escenario (sobre el pie del hero) para que se vea entero */
.nk-floor {
	position: absolute;
	left: -50%;
	right: -50%;
	bottom: -2%;
	height: 66%;
	pointer-events: none;
	background-image:
		linear-gradient(var(--acc) 2px, transparent 2px),
		linear-gradient(90deg, var(--acc) 2px, transparent 2px);
	background-size: 72px 72px;
	opacity: .6;
	transform: perspective(520px) rotateX(64deg);
	transform-origin: 50% 100%;
	-webkit-mask-image: linear-gradient(to top, #000 25%, transparent 92%);
	mask-image: linear-gradient(to top, #000 25%, transparent 92%);
	animation: nk-grid var(--grid-speed, 2.4s) linear infinite;
}
@keyframes nk-grid { to { background-position: 0 72px, 0 0; } }

.nk-stage { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; }
.nk-scene { position: absolute; inset: 0; }

/* Cono de luz sobre el pedestal */
.nk-cone {
	position: absolute;
	left: 50%;
	bottom: 14%;
	width: 52%;
	height: 78%;
	translate: -50% 0;
	display: block;
	background: linear-gradient(to top, var(--acc), transparent 85%);
	clip-path: polygon(40% 100%, 60% 100%, 100% 0, 0 0);
	opacity: .18;
	mix-blend-mode: screen;
	pointer-events: none;
}

/* Nombre gigante en monoespaciada: sólido detrás de la zapatilla, contorno delante (como el original) */
.nk-page .nk-name {
	position: absolute;
	left: 0;
	right: 0;
	top: 30%;
	margin: 0;
	padding-left: .24em;   /* compensa el espaciado final para centrar */
	font-family: var(--mb-mono);
	font-weight: 700;
	font-size: clamp(56px, 8.4vw, 170px);
	line-height: 1;
	letter-spacing: .24em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
.nk-name--back { z-index: 1; color: #f5f5f0; text-shadow: 0 0 40px rgba(255, 255, 255, .15); }
.nk-name--front { z-index: 3; color: transparent; -webkit-text-stroke: 2px #f5f5f0; }
.nk-name .nk-ch { display: inline-block; }

/* La zapatilla */
.nk-shoe {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: min(44vw, 76vh, 720px);
	margin: 0;
	translate: -50% -54%;
	perspective: 1200px;
}
.nk-shoe__float { animation: nk-float 6s ease-in-out infinite; }
@keyframes nk-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(1.5deg); } }
.nk-shoe__tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.nk-shoe__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .5)); -webkit-user-drag: none; }
/* Holograma pixelado (canvas) y láser del escáner */
.nk-holo { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
.nk-laser {
	position: absolute;
	left: -10%;
	right: -10%;
	top: var(--laser, 100%);
	z-index: 2;
	display: block;
	height: 4px;
	margin-top: -2px;
	background: #fff;
	box-shadow: 0 0 10px 2px var(--acc), 0 0 40px 10px var(--acc);
	opacity: 0;
	pointer-events: none;
}
/* Pedestal de luz con anillo giratorio */
.nk-pedestal {
	position: absolute;
	left: 50%;
	bottom: -10%;
	z-index: -1;
	display: block;
	width: 80%;
	aspect-ratio: 4 / 1;
	translate: -50% 0;
	border: 2px solid var(--acc);
	border-radius: 50%;
	box-shadow: 0 0 30px var(--acc), inset 0 0 40px var(--acc);
	background: radial-gradient(closest-side, rgba(255, 255, 255, .18), transparent);
}
.nk-pedestal b { position: absolute; inset: -14%; display: block; border: 2px dashed var(--acc); border-radius: 50%; opacity: .7; animation: nk-spin 14s linear infinite; }
@keyframes nk-spin { to { transform: rotate(360deg); } }
.nk-reflect {
	position: absolute;
	left: 0;
	top: 92%;
	z-index: -2;
	width: 100%;
	height: auto;
	transform: scaleY(-1);
	opacity: .16;
	filter: blur(2px);
	-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 55%);
	mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 55%);
	pointer-events: none;
}

/* Katakana vertical (nombre del modelo en japonés) */
.nk-kana {
	position: absolute;
	top: 20%;
	left: calc(var(--gutter) + 8px);
	z-index: 3;
	margin: 0;
	writing-mode: vertical-rl;
	font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', 'Noto Sans JP', sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 2.8vw, 46px);
	letter-spacing: .3em;
	color: var(--acc);
	text-shadow: 0 0 18px var(--acc);
	pointer-events: none;
}

/* Chips: escáner (izquierda) y carro (derecha) */
.nk-scan,
.nk-cart {
	position: absolute;
	top: 16px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 6px 12px 6px 6px;
	font-family: var(--mb-mono);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #f5f5f0;
	background: rgba(10, 10, 10, .72);
	border: 2px solid var(--acc);
}
.nk-scan { left: var(--gutter); }
.nk-scan__monkey { width: 44px; height: 44px; image-rendering: pixelated; background: var(--accent); }
.nk-scan__txt { display: flex; flex-direction: column; line-height: 1.4; }
.nk-scan__txt b { color: var(--accent); font-weight: 700; }
.nk-scan__status { font-variant-numeric: tabular-nums; }
.nk-cart { right: var(--gutter); padding: 8px 12px; font-weight: 700; }
.nk-cart svg { width: 20px; height: 20px; }
.nk-cart__n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; color: #0a0a0a; background: var(--accent); }

/* Ficha del producto */
.nk-panel {
	position: absolute;
	left: var(--gutter);
	bottom: 20px;
	z-index: 5;
	width: min(400px, 32vw);
	padding: 14px 18px 16px;
	background: rgba(10, 10, 10, .62);
	border-left: 4px solid var(--acc);
	box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.nk-drop { margin: 0 0 4px; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.nk-page .nk-model { margin: 0; font-family: var(--mb-display); font-weight: 900; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; letter-spacing: -.02em; text-align: left; text-transform: uppercase; color: #f5f5f0; }
.nk-price-row { display: flex; align-items: center; gap: 14px; margin: 8px 0 6px; }
.nk-price { font-family: var(--mb-mono); font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.nk-stars { display: inline-flex; gap: 3px; }
.nk-stars svg { width: 16px; height: 16px; shape-rendering: crispEdges; }
.nk-stars svg path { fill: rgba(245, 245, 240, .25); }
.nk-stars svg.on path { fill: var(--accent); }
.nk-desc { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: rgba(245, 245, 240, .85); }
.nk-sizes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 12px; }
.nk-sizes__lab { margin-right: 4px; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(245, 245, 240, .7); }
.ak-page .nk-size {
	width: 40px;
	height: 34px;
	margin: 0;
	padding: 0;
	font-family: var(--mb-mono);
	font-size: 13px;
	font-weight: 700;
	color: #f5f5f0;
	background: transparent;
	border: 2px solid rgba(245, 245, 240, .35);
	cursor: pointer;
	transition: background-color .15s linear, border-color .15s linear, color .15s linear;
}
.ak-page .nk-size:hover { color: #f5f5f0; background: rgba(255, 255, 255, .08); border-color: #f5f5f0; }
.ak-page .nk-size[aria-checked="true"] { color: #0a0a0a; background: var(--acc); border-color: var(--acc); }
.ak-page .nk-add {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: auto;
	min-height: 46px;
	margin: 0;
	padding: 10px 18px;
	font-family: var(--mb-mono);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #0a0a0a;
	background: var(--accent);
	border: 0;
	box-shadow: 5px 5px 0 var(--acc);
	cursor: pointer;
	transition: translate .12s linear, box-shadow .12s linear;
}
.ak-page .nk-add:hover { color: #0a0a0a; background: var(--accent); translate: -2px -2px; box-shadow: 7px 7px 0 var(--acc); }
.nk-added { display: block; min-height: 1.4em; margin-top: 8px; font-family: var(--mb-mono); font-size: 11px; letter-spacing: .06em; color: var(--accent); }
.nk-fly { position: fixed; z-index: 9000; width: 120px; height: auto; pointer-events: none; }

/* Riel de modelos */
.nk-rail { position: absolute; top: 90px; right: var(--gutter); z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.ak-page .nk-rail__item {
	position: relative;
	display: grid;
	grid-template-columns: 64px 1fr;
	align-items: center;
	gap: 10px;
	width: 220px;
	margin: 0;
	padding: 6px 12px 6px 6px;
	overflow: hidden;
	font-family: var(--mb-mono);
	font-size: 12px;
	letter-spacing: .08em;
	text-align: left;
	text-transform: uppercase;
	color: rgba(245, 245, 240, .7);
	background: rgba(10, 10, 10, .45);
	border: 2px solid rgba(245, 245, 240, .18);
	cursor: pointer;
	transition: border-color .2s linear, color .2s linear, background-color .2s linear;
}
.nk-rail__item img { width: 64px; height: 44px; object-fit: contain; -webkit-user-drag: none; }
.nk-rail__item b { color: var(--accent); }
.ak-page .nk-rail__item:hover { color: #f5f5f0; background: rgba(10, 10, 10, .65); border-color: rgba(245, 245, 240, .5); }
.ak-page .nk-rail__item.is-on { color: #f5f5f0; background: rgba(10, 10, 10, .7); border-color: var(--acc); }
.nk-rail__item i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--acc); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; }

/* ---------- Pie del hero ---------- */
.nk-foot {
	position: relative;
	z-index: 6;
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: minmax(260px, 1fr) auto auto;
	gap: 14px clamp(20px, 3vw, 44px);
	align-items: center;
	/* a la derecha queda libre el lugar del botón flotante de WhatsApp */
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	background: #0a0a0a;
	border-top: 3px solid var(--accent);
}
.nk-foot__meta { margin: 0 0 4px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.nk-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.nk-ctrl { display: flex; align-items: center; gap: 10px; }
.nk-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.nk-idx { display: inline-block; font-family: var(--mb-display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.02em; vertical-align: -5px; color: var(--accent); }

@media (max-width: 1180px) {
	.nk-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.nk-foot .ak-actions { grid-column: 1 / -1; }
	.nk-kana { display: none; }
	.nk-rail__item { width: 180px; }
}
@media (max-height: 780px) and (min-width: 901px) {
	.nk-desc { display: none; }
	.nk-rail__item { padding: 4px 10px 4px 4px; }
	.nk-rail__item img { height: 34px; }
}

/* ---------- Tablet y móvil: la escena arriba, la ficha y el riel debajo ---------- */
@media (max-width: 900px) {
	.nk-hero { height: auto; min-height: 0; }
	.nk-stage { display: flex; flex-direction: column; }
	.nk-scene { position: relative; inset: auto; height: 58svh; min-height: 380px; }
	.nk-floor { top: 14svh; bottom: auto; height: 46svh; }
	.nk-page .nk-name { top: 22%; font-size: clamp(40px, 13.5vw, 120px); letter-spacing: .12em; padding-left: .12em; }
	.nk-shoe { width: min(84vw, 520px); }
	.nk-rail { position: relative; top: auto; right: auto; flex-direction: row; gap: 6px; padding: 0 var(--gutter); overflow-x: auto; }
	.nk-rail__item { grid-template-columns: 1fr; width: auto; min-width: 84px; padding: 4px; justify-items: center; }
	.nk-rail__item span { font-size: 10px; }
	.nk-panel { position: relative; left: auto; bottom: auto; width: auto; margin: 14px var(--gutter) 18px; }
	.nk-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.nk-ctrl { order: -1; }
	.nk-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}
@media (max-width: 520px) {
	.nk-scan__txt b { display: none; }
	.nk-cart span { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.nk-floor, .nk-shoe__float, .nk-pedestal b { animation: none; }
	.nk-bg__layer { transition: none; }
}
