:root {
	--ink: #111318;
	--paper: #f4f6f9;
	--accent: #c8f542;
	--accent-ink: #1a2e05;
	--line: rgba(17, 19, 24, .12);
	--font-d: "Syne", sans-serif;
	--font-b: "Manrope", sans-serif;
	--header-h: 4.5rem;
	--space: clamp(1rem, 3vw, 1.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-b);
	background: var(--paper);
	color: var(--ink);
	line-height: 1.5;
	overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; max-width: 100%; }

.container {
	width: min(1100px, calc(100% - 2 * var(--space)));
	margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
	background: var(--ink);
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header--overlay {
	position: absolute;
	left: 0;
	right: 0;
	background: linear-gradient(180deg, rgba(17,19,24,.78), rgba(17,19,24,0));
	border-bottom: 0;
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-h);
	gap: .75rem;
}
.brand {
	font-family: var(--font-d);
	font-weight: 800;
	letter-spacing: .1em;
	text-decoration: none;
	text-transform: uppercase;
	font-size: clamp(1rem, 3vw, 1.15rem);
	background: linear-gradient(120deg, #fff 40%, var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	flex-shrink: 0;
}
.nav {
	display: flex;
	gap: clamp(.75rem, 2vw, 1.15rem);
	flex-wrap: wrap;
	align-items: center;
}
.nav a {
	color: rgba(255,255,255,.88);
	text-decoration: none;
	font-weight: 600;
	font-size: clamp(.82rem, 2.2vw, .9rem);
	letter-spacing: .02em;
	padding: .35rem 0;
}
.nav a:hover { color: var(--accent); }

.nav-toggle {
	display: none;
	border: 1px solid rgba(255,255,255,.35);
	background: transparent;
	color: #fff;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 6px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: #fff;
	position: relative;
	transition: transform .2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}
.nav-toggle span::before { top: -.35rem; }
.nav-toggle span::after { top: .35rem; }
.site-header.is-nav-open .nav-toggle span { background: transparent; }
.site-header.is-nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.site-header.is-nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	align-items: end;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
.hero__visual {
	position: absolute;
	inset: 0;
	z-index: -3;
	background:
		var(--hero-photo, none) center / cover no-repeat,
		linear-gradient(135deg, #161b22 0%, #0b0d10 48%, #1a2a18 100%);
	transform: scale(1.06);
	animation: hero-pan 18s ease-in-out infinite alternate;
}
.hero__shade {
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(90deg, rgba(11,13,16,.88) 0%, rgba(11,13,16,.55) 48%, rgba(11,13,16,.28) 100%),
		linear-gradient(180deg, rgba(11,13,16,.2) 0%, rgba(11,13,16,.82) 100%);
}
.hero__glow {
	position: absolute;
	right: -8%;
	bottom: -20%;
	width: min(55vw, 520px);
	height: min(55vw, 520px);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(200,245,66,.22), transparent 68%);
	z-index: -1;
	animation: hero-glow 7s ease-in-out infinite alternate;
	pointer-events: none;
}
.hero__content {
	width: min(1100px, calc(100% - 2 * var(--space)));
	margin: 0 auto;
	padding: calc(var(--header-h) + 1rem) 0 clamp(2.5rem, 8vh, 5.5rem);
}
.hero__brand {
	font-family: var(--font-d);
	font-size: clamp(2.8rem, 14vw, 8rem);
	font-weight: 800;
	line-height: .86;
	margin: 0 0 .2em;
	text-transform: uppercase;
	letter-spacing: .02em;
	animation: rise .85s ease-out both;
	word-break: break-word;
}
.hero__headline {
	font-family: var(--font-d);
	font-size: clamp(1.2rem, 3.2vw, 2rem);
	font-weight: 700;
	margin: 0 0 .55rem;
	max-width: 16ch;
	letter-spacing: -.02em;
	animation: rise .85s ease-out .08s both;
}
.hero__lead {
	max-width: 30ch;
	margin: 0 0 1.4rem;
	opacity: .9;
	font-size: clamp(.95rem, 2.4vw, 1.15rem);
	animation: rise .85s ease-out .16s both;
}
.hero__actions {
	display: flex;
	gap: .7rem;
	flex-wrap: wrap;
	animation: rise .85s ease-out .24s both;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .85rem 1.25rem;
	border-radius: 2px;
	text-decoration: none;
	font-weight: 700;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, color .2s ease;
	text-align: center;
	min-height: 2.75rem;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }

.section { padding: clamp(2.5rem, 8vw, 5.5rem) 0; }
.section--featured { background: #eef1f4; }
.section-head { margin-bottom: clamp(1.25rem, 3vw, 1.75rem); }
.section-title {
	font-family: var(--font-d);
	font-size: clamp(1.55rem, 4vw, 2.6rem);
	margin: 0 0 .4rem;
	letter-spacing: -.02em;
}
.section-text { color: #2a2f3a; margin: 0; max-width: 40ch; }
.section-cta { margin: 1.75rem 0 0; }

.band {
	background: var(--ink);
	color: #fff;
	padding: clamp(2rem, 6vw, 4rem) 0;
}
.band__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	flex-wrap: wrap;
}
.band__title {
	font-family: var(--font-d);
	font-size: clamp(1.4rem, 3.5vw, 2.2rem);
	margin: 0 0 .35rem;
}
.band__text { margin: 0; opacity: .8; max-width: 36ch; }

.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(.75rem, 2vw, 1rem);
}
.card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 2px;
	overflow: hidden;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
	min-width: 0;
}
.card:hover {
	transform: translateY(-4px);
	border-color: var(--ink);
	box-shadow: 0 16px 36px rgba(17,19,24,.08);
}
.card__media { aspect-ratio: 1; background: #e8ecf1; display: block; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { display: grid; place-items: center; height: 100%; color: #667; min-height: 160px; }
.card__ph.tall { min-height: min(60vw, 420px); }
.card__body { padding: .85rem; }
.card__title {
	font-family: var(--font-d);
	font-size: clamp(.95rem, 2.5vw, 1.05rem);
	margin: 0;
	overflow-wrap: anywhere;
}
.card__title a { text-decoration: none; }
.card__meta { margin: .25rem 0; color: #555; font-size: .85rem; }
.card__price { font-weight: 700; margin: 0; }

.filters {
	display: flex;
	gap: .55rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}
.filters a {
	text-decoration: none;
	padding: .45rem .85rem;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
}
.filters a.is-active { background: var(--ink); color: #fff; }

.product {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: clamp(1.25rem, 4vw, 2.5rem);
	align-items: start;
}
.product__media { min-width: 0; }
.product__media > img,
.product__media .gallery__main { width: 100%; border-radius: 2px; }
.product__info h1 {
	font-family: var(--font-d);
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	margin: .2rem 0 .6rem;
	overflow-wrap: anywhere;
}
.product__price { font-size: clamp(1.2rem, 3vw, 1.4rem); font-weight: 800; }

/* Galería: columna de miniaturas + foto principal (como referencia Nike) */
.gallery {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: .75rem;
	width: 100%;
}
.gallery__thumbs {
	display: flex;
	flex-direction: column;
	flex: 0 0 68px;
	width: 68px;
	gap: .4rem;
	max-height: min(72vh, 560px);
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-width: thin;
}
.gallery__thumb {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: block;
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	background: #e8ecf1;
	cursor: pointer;
	overflow: hidden;
	border-radius: 2px;
	line-height: 0;
}
.gallery__thumb img {
	width: 68px !important;
	height: 68px !important;
	max-width: none;
	object-fit: cover;
	display: block;
	border-radius: 0;
}
.gallery__thumb.is-active {
	border-color: var(--ink);
	background: #dfe3e8;
}
.gallery__stage {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	background: #e8ecf1;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.gallery__main {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	display: block;
	background: #e8ecf1;
}
.gallery__nav {
	position: absolute;
	right: .75rem;
	bottom: .75rem;
	display: flex;
	gap: .4rem;
	z-index: 2;
}
.gallery__btn {
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 999px;
	border: 0;
	background: #fff;
	color: var(--ink);
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(17,19,24,.12);
	display: grid;
	place-items: center;
}
.gallery__btn:hover { background: var(--ink); color: #fff; }

.size-grid-wrap { margin: 1rem 0 1.15rem; }
.size-grid-label { margin: 0 0 .55rem; }
.size-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .45rem;
}
.size-grid__btn {
	appearance: none;
	border: 1px solid var(--line);
	background: #fff;
	padding: .7rem .65rem;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.size-grid__btn.is-active {
	border-color: var(--ink);
	background: var(--ink);
	color: #fff;
}
.size-grid__btn:hover:not(.is-active) { border-color: var(--ink); }
#gshop-size.visually-hidden,
.visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; opacity: .7; }
.field { display: grid; gap: .35rem; margin: .85rem 0; font-weight: 600; }
.field select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.login-card input {
	width: 100%;
	padding: .7rem .8rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	font: inherit;
	background: #fff;
}

.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(1.75rem, 4vw, 2.4rem) 0; }
.footer-inner { display: grid; gap: .55rem; justify-items: center; text-align: center; }
.brand--footer { font-size: 1.05rem; }
.credit { margin: 0; font-size: .9rem; padding-inline: 1rem; }
.empty { background: #fff; border: 1px dashed var(--line); padding: 1rem; }

.wa-float {
	position: fixed;
	right: max(.85rem, env(safe-area-inset-right));
	bottom: max(.85rem, env(safe-area-inset-bottom));
	z-index: 99980;
	background: #25d366;
	color: #053b1c;
	font-weight: 700;
	text-decoration: none;
	padding: .75rem 1rem;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(0,0,0,.22);
	font-size: .9rem;
}

.chatbot {
	position: fixed;
	left: max(.85rem, env(safe-area-inset-left));
	bottom: max(.85rem, env(safe-area-inset-bottom));
	z-index: 99990;
	pointer-events: none;
}
.chatbot__launcher, .chatbot__panel { pointer-events: auto; }
.chatbot__launcher {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	border: 0;
	cursor: pointer;
	padding: .75rem 1rem;
	border-radius: 999px;
	background: var(--ink);
	color: var(--accent);
	font-weight: 700;
}
.chatbot__dot {
	width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent);
}
.chatbot__panel {
	position: absolute;
	left: 0;
	bottom: 3.7rem;
	width: min(calc(100vw - 1.7rem), 360px);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	display: none !important;
	flex-direction: column;
	max-height: min(70vh, 520px);
	box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.chatbot.is-open .chatbot__panel { display: flex !important; }
.chatbot__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .7rem .85rem;
	background: var(--ink);
	color: #fff;
	gap: .5rem;
}
.chatbot__close {
	border: 0;
	background: rgba(255,255,255,.12);
	color: #fff;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.3rem;
	flex-shrink: 0;
}
.chatbot__messages {
	padding: .85rem;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	min-height: 150px;
	flex: 1;
}
.chatbot__bubble {
	max-width: 90%;
	padding: .6rem .75rem;
	border-radius: 10px;
	font-size: .9rem;
	overflow-wrap: anywhere;
}
.chatbot__bubble--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chatbot__bubble--user { align-self: flex-end; background: var(--ink); color: #fff; }
.chatbot__suggestions { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .85rem .65rem; }
.chatbot__chip {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 999px;
	padding: .35rem .65rem;
	font-size: .72rem;
	cursor: pointer;
	text-align: left;
}
.chatbot__form {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: .35rem;
	padding: .7rem;
	background: #fff;
	border-top: 1px solid var(--line);
}
.chatbot__input { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; font: inherit; min-width: 0; }
.chatbot__send { border: 0; border-radius: 8px; padding: .55rem .8rem; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; white-space: nowrap; }

@keyframes rise {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-pan {
	from { transform: scale(1.06) translate3d(0,0,0); }
	to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
@keyframes hero-glow {
	from { opacity: .55; transform: translateX(0); }
	to { opacity: 1; transform: translateX(-8%); }
}

@media (prefers-reduced-motion: reduce) {
	.hero__visual, .hero__glow, .hero__brand, .hero__headline, .hero__lead, .hero__actions {
		animation: none !important;
	}
	.card:hover, .btn:hover { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product { grid-template-columns: 1fr; }
	.gallery {
		flex-direction: column;
	}
	.gallery__thumbs {
		flex-direction: row;
		flex: 0 0 auto;
		width: 100%;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		padding-bottom: .2rem;
	}
	.gallery__thumb,
	.gallery__thumb img {
		flex: 0 0 64px;
		width: 64px !important;
		height: 64px !important;
	}
	.gallery__stage {
		width: 100%;
	}
	.hero__shade {
		background:
			linear-gradient(180deg, rgba(11,13,16,.35) 0%, rgba(11,13,16,.88) 72%),
			linear-gradient(90deg, rgba(11,13,16,.55), rgba(11,13,16,.35));
	}
	.band__inner { align-items: flex-start; }
}

/* ---------- Mobile nav + layout ---------- */
@media (max-width: 720px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: rgba(11, 13, 16, .97);
		padding: .75rem var(--space) 1rem;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		border-top: 1px solid rgba(255,255,255,.08);
	}
	.site-header.is-nav-open .nav { display: flex; }
	.nav a {
		padding: .85rem 0;
		border-bottom: 1px solid rgba(255,255,255,.08);
		font-size: 1rem;
	}
	.site-header--overlay.is-nav-open {
		background: rgba(11, 13, 16, .97);
	}
	.header-inner { position: relative; }
}

@media (max-width: 640px) {
	.hero {
		min-height: 92vh;
		min-height: 92dvh;
		align-items: center;
	}
	.hero__content { padding-bottom: 2.25rem; }
	.hero__actions { width: 100%; }
	.hero__actions .btn {
		flex: 1 1 calc(50% - .35rem);
		min-width: min(100%, 9.5rem);
	}
	.section-cta .btn { width: 100%; }
	.band__inner .btn { width: 100%; }
	.wa-float {
		padding: .85rem;
		border-radius: 50%;
		font-size: 0;
		width: 3.1rem;
		height: 3.1rem;
		display: grid;
		place-items: center;
	}
	.wa-float::before {
		content: "WA";
		font-size: .75rem;
		font-weight: 800;
	}
	.chatbot__launcher-text { display: none; }
	.chatbot__launcher { padding: .9rem; border-radius: 50%; }
	.chatbot__panel {
		left: 0;
		width: min(calc(100vw - 1.5rem), 360px);
		bottom: 3.5rem;
		max-height: min(68dvh, 480px);
	}
}

@media (max-width: 560px) {
	.grid { grid-template-columns: 1fr; }
	.filters { gap: .45rem; }
	.filters a { flex: 1 1 auto; text-align: center; }
}

/* Very small phones */
@media (max-width: 380px) {
	.hero__actions .btn { flex-basis: 100%; }
	.container { width: calc(100% - 1.25rem); }
}

/* Large screens */
@media (min-width: 1400px) {
	.container, .hero__content { width: min(1200px, calc(100% - 3rem)); }
}
