/* QTP — secciones «Lo más vendido» y «Fotos de clientes». Modo claro/oscuro (html.dark). */
.qtp-sec {
	--sec-text: #0f172a; --sec-muted: #64748b; --sec-card: #f1f5f9; --sec-border: rgba(15, 23, 42, .08);
	color: var(--sec-text);
	max-width: var(--container-max-w, 80rem);
	margin: 0 auto;
	padding: 48px 16px;
}
html.dark .qtp-sec { --sec-text: #f8fafc; --sec-muted: #94a3b8; --sec-card: #1c1c1a; --sec-border: rgba(255, 255, 255, .08); }
@media (min-width: 768px) { .qtp-sec { padding: 64px 24px; } }
@media (min-width: 1024px) { .qtp-sec { padding: 72px 32px; } }

.qtp-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.qtp-sec-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sec-muted); }
.qtp-sec-title { margin: 0; font-size: clamp(26px, 4vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.qtp-sec-text { margin: 8px 0 0; max-width: 46ch; color: var(--sec-muted); font-size: 15px; }
.qtp-sec-foot { margin-top: 26px; text-align: center; }
.qtp-sec-btn {
	display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px;
	border: 1.5px solid currentColor; color: inherit; font-weight: 700; font-size: 14px; text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
.qtp-sec-btn:hover { background: var(--sec-text); color: var(--sec-card); }
.qtp-sec-arrows { display: none; gap: 8px; }
@media (min-width: 768px) { .qtp-sec-arrows { display: flex; } }
.qtp-sec-arrows button {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--sec-border);
	background: var(--sec-card); color: inherit; font-size: 18px; cursor: pointer; transition: transform .2s ease;
}
.qtp-sec-arrows button:hover { transform: scale(1.06); }

/* ---- Lo más vendido ---- */
.qtp-mv-grid {
	display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px;
}
.qtp-mv-grid::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
	.qtp-mv-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; overflow: visible; }
}
.qtp-mv-card {
	display: flex; flex-direction: column; scroll-snap-align: start;
	border: 1px solid var(--sec-border); border-radius: 18px; overflow: hidden; background: var(--sec-card);
	transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.qtp-mv-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.qtp-mv-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #fff; }
html.dark .qtp-mv-media { background: #262624; }
.qtp-mv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.qtp-mv-alt { opacity: 0; }
.qtp-mv-card:hover .qtp-mv-alt { opacity: 1; }
.qtp-mv-card:hover .qtp-mv-media img { transform: scale(1.04); }
.qtp-mv-body { padding: 12px 14px 16px; }
.qtp-mv-link { display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; }
.qtp-mv-name { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.2; }
.qtp-mv-price { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; font-size: 15px; font-weight: 700; }
.qtp-mv-price del { color: var(--sec-muted); font-weight: 500; font-size: 13px; }

/* ---- Fotos de clientes ---- */
.qtp-fc-places { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 18px; padding: 0; }
.qtp-fc-places span {
	padding: 4px 10px; border-radius: 999px; background: var(--sec-card); border: 1px solid var(--sec-border);
	font-size: 12.5px; font-weight: 600;
}
.qtp-fc-places span::before { content: "📍 "; }
.qtp-fc-row {
	display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 12px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px;
}
.qtp-fc-row::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .qtp-fc-row { grid-auto-columns: 40%; } }
@media (min-width: 1024px) { .qtp-fc-row { grid-auto-columns: calc((100% - 48px) / 4.3); gap: 16px; } }
.qtp-fc-item { position: relative; margin: 0; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: var(--sec-card); }
.qtp-fc-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.qtp-fc-open img { display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; transition: transform .5s ease; }
.qtp-fc-item:hover .qtp-fc-open img { transform: scale(1.04); }
.qtp-fc-cap {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column; gap: 2px; padding: 34px 14px 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
	color: #fff; pointer-events: none;
}
.qtp-fc-place { font-weight: 800; font-size: 15px; text-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.qtp-fc-name { font-size: 13px; opacity: .9; }
.qtp-fc-prod { pointer-events: auto; color: #fff; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.qtp-fc-lb {
	position: fixed; inset: 0; z-index: 99990; display: grid; place-items: center; padding: 16px;
	background: rgba(0, 0, 0, .86);
}
.qtp-fc-lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: min(900px, 100%); }
.qtp-fc-lb-fig img { max-width: 100%; max-height: calc(100vh - 110px); border-radius: 12px; object-fit: contain; }
.qtp-fc-lb-fig figcaption { color: #fff; font-size: 15px; text-align: center; }
.qtp-fc-lb-fig figcaption a { color: #fff; }
.qtp-fc-lb-x, .qtp-fc-lb-nav {
	position: absolute; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer;
}
.qtp-fc-lb-x { top: 14px; right: 14px; width: 42px; height: 42px; font-size: 18px; }
.qtp-fc-lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 28px; line-height: 1; }
.qtp-fc-lb-nav.is-prev { left: 12px; }
.qtp-fc-lb-nav.is-next { right: 12px; }

@media (prefers-reduced-motion: reduce) {
	.qtp-mv-card, .qtp-mv-media img, .qtp-fc-open img { transition: none; }
	.qtp-mv-card:hover, .qtp-mv-card:hover .qtp-mv-media img, .qtp-fc-item:hover .qtp-fc-open img { transform: none; }
}
