/* QTP Marketing — Tienda */

/* Botón de WhatsApp: abajo a la derecha, arriba de la barra fija del celular */
.qtp-wa {
	position: fixed;
	right: 16px;
	bottom: 20px;
	z-index: 39;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.qtp-wa:hover { transform: scale(1.06); box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.qtp-wa:focus-visible { outline: 3px solid #128c7e; outline-offset: 3px; }
@media (min-width: 768px) { .qtp-wa { right: 24px; width: 60px; height: 60px; } }
@media print { .qtp-wa { display: none !important; } }

/* Pie: Data Fiscal */
.qtp-fiscal { display: block; width: 60px; margin: 14px auto 0; }
.qtp-fiscal img { display: block; width: 60px; height: auto; }

/* Formulario de arrepentimiento */
.qtp-arr-overlay {
	position: fixed; inset: 0; z-index: 100000;
	background: rgba(15, 23, 42, .55);
	display: flex; align-items: center; justify-content: center;
	padding: 16px; opacity: 0; transition: opacity .2s ease;
}
.qtp-arr-overlay.is-open { opacity: 1; }
.qtp-arr-card {
	position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow-y: auto;
	background: #fff; color: #0f172a; border-radius: 16px; padding: 24px 22px 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	font-family: inherit; font-size: 14px; line-height: 1.45;
}
.qtp-arr-card h2 { margin: 0 32px 8px 0; font-size: 20px; font-weight: 800; line-height: 1.2; color: #0f172a; }
.qtp-arr-card p { margin: 0 0 12px; color: #334155; }
.qtp-arr-x {
	position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
	border: 0; background: transparent; font-size: 26px; line-height: 1; color: #64748b; cursor: pointer;
}
.qtp-arr-form { display: grid; gap: 10px; margin-top: 4px; }
.qtp-arr-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #0f172a; }
.qtp-arr-field input, .qtp-arr-field textarea {
	width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 10px;
	padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 400; color: #0f172a; background: #fff;
}
.qtp-arr-field input:focus, .qtp-arr-field textarea:focus { outline: 2px solid #0f172a; outline-offset: 1px; border-color: #0f172a; }
.qtp-arr-btn {
	margin-top: 4px; width: 100%; border: 0; border-radius: 10px; padding: 13px 14px;
	background: #0f172a; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.qtp-arr-btn[disabled] { opacity: .6; cursor: default; }
.qtp-arr-err { margin: 0; color: #b91c1c; font-size: 13px; min-height: 1em; }
.qtp-arr-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.qtp-arr-code { font-size: 22px; font-weight: 800; letter-spacing: .04em; color: #0f172a !important; text-align: center; padding: 10px; background: #f1f5f9; border-radius: 10px; }
[data-qtp-agotado] { display: none !important; }
/* Color agotado en la ficha */
.qtp-agot-foto { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.45); pointer-events: none; }
.qtp-agot-foto span { background: #0f172a; color: #fff; font-weight: 800; font-size: clamp(20px, 4vw, 30px); letter-spacing: .12em; padding: 10px 26px; border-radius: 10px; transform: rotate(-8deg); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.qtp-agot-aviso { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; font-size: 14px; line-height: 1.35; }
.qtp-agot-aviso strong { font-size: 15px; font-weight: 800; color: #991b1b; text-transform: none; }

/* Tabla de talles */
.qtp-talle-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.qtp-talle-link {
	border: 0; background: none; padding: 4px 0; margin: 0; cursor: pointer;
	font: inherit; font-size: 12px; font-weight: 600; color: inherit;
	text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.qtp-talle-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.qtp-talles-card { max-width: 480px; }
.qtp-talles { margin-top: 8px; }
.qtp-talles-tabla { width: 100%; border-collapse: collapse; font-size: 15px; margin: 4px 0 10px; }
.qtp-talles-tabla th, .qtp-talles-tabla td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(100, 116, 139, .25); }
.qtp-talles-tabla thead th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.qtp-talles-tabla tbody th { font-weight: 800; font-variant-numeric: tabular-nums; }
.qtp-talles-tabla td { font-variant-numeric: tabular-nums; }
.qtp-talles-nota { margin: 0 0 12px; font-size: 13px; opacity: .85; }
.qtp-talles-img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 12px; margin: 4px 0 8px; }
.qtp-talles-wa { margin: 12px 0 0 !important; font-size: 14px; }
.qtp-talles-wa a { color: #128c7e; font-weight: 700; }

/* Descripción de arriba de la ficha: en el celular no se muestra (está entera en la pestaña Descripción) */
@media (max-width: 767px) {
	.qtp-desc-corta { display: none !important; }
}

/* Barra de envío gratis en el carrito */
.qtp-envio { margin: 2px 0 4px; padding: 0 2px; }
.qtp-envio-track { height: 8px; border-radius: 999px; background: rgba(217, 119, 6, .18); overflow: hidden; }
.qtp-envio-fill { position: relative; height: 100%; border-radius: 999px; background: #d97706; transition: width 1.1s cubic-bezier(.22, 1, .36, 1); overflow: hidden; }
.qtp-envio.is-cargando .qtp-envio-fill::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
	transform: translateX(-100%); animation: qtp-envio-brillo 0.9s ease-in-out 2;
}
@keyframes qtp-envio-brillo { to { transform: translateX(100%); } }
.qtp-envio.is-listo.is-cargando .qtp-envio-track { animation: qtp-envio-pop .5s ease 1.05s; }
@keyframes qtp-envio-pop { 50% { transform: scaleY(1.6); } }
@media (prefers-reduced-motion: reduce) { .qtp-envio-fill { transition: none; } .qtp-envio.is-cargando .qtp-envio-fill::after, .qtp-envio.is-listo.is-cargando .qtp-envio-track { animation: none; } }
.qtp-envio.is-listo .qtp-envio-fill { background: #16a34a; }
.qtp-envio-txt { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: #92400e; }
.qtp-envio.is-listo .qtp-envio-txt { color: #15803d; }
html.dark .qtp-envio-txt { color: #fcd34d; }
html.dark .qtp-envio.is-listo .qtp-envio-txt { color: #4ade80; }

/* Foto chica del color elegido (celular) */
.qtp-colorprev {
	display: flex; align-items: center; gap: 12px; width: 100%; margin: 10px 0 2px; padding: 8px;
	border: 1px solid rgba(100, 116, 139, .3); border-radius: 12px; background: transparent;
	font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.qtp-colorprev img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #f8fafc; flex: none; }
.qtp-colorprev-txt { display: grid; gap: 2px; font-size: 13px; }
.qtp-colorprev-txt strong { font-size: 14px; }
.qtp-colorprev-txt span { opacity: .7; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .qtp-colorprev { display: none; } }

/* Tarjetas grises mientras carga (con brillo que va y viene) */
.qtp-sk-host { padding: 0 !important; text-align: left !important; }
.qtp-sk-oculto { display: none !important; }
.qtp-sk-oculto.qtp-sk-sr { display: block !important; position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qtp-sk {
	border-radius: 8px;
	background: linear-gradient(90deg, #eceef1 0%, #eceef1 35%, #f7f8fa 50%, #eceef1 65%, #eceef1 100%);
	background-size: 300% 100%;
	animation: qtp-sk-brillo 1.5s ease-in-out infinite;
}
html.dark .qtp-sk { background-image: linear-gradient(90deg, #1f2430 0%, #1f2430 35%, #2a3040 50%, #1f2430 65%, #1f2430 100%); }
@keyframes qtp-sk-brillo { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .qtp-sk { animation: none; } }
.qtp-sk-grid { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 4px 0 24px; }
.qtp-sk-grid .qtp-sk-card:nth-child(n+3) { display: none; }
@media (min-width: 640px) { .qtp-sk-grid { grid-template-columns: repeat(3, 1fr); } .qtp-sk-grid .qtp-sk-card:nth-child(-n+6) { display: block; } }
@media (min-width: 1024px) { .qtp-sk-grid { grid-template-columns: repeat(4, 1fr); } .qtp-sk-grid .qtp-sk-card:nth-child(n) { display: block; } }
.qtp-sk-card { display: block; }
.qtp-sk-img { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px; }
.qtp-sk-line { height: 14px; margin-top: 12px; width: 80%; }
.qtp-sk-short { width: 50%; }
.qtp-sk-price { width: 35%; height: 18px; }
.qtp-sk-label { width: 60px; height: 12px; margin-top: 20px; }
.qtp-sk-title { height: 30px; width: 75%; margin-top: 12px; }
.qtp-sk-ficha { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 0 16px 32px; }
@media (min-width: 768px) { .qtp-sk-ficha { grid-template-columns: 1fr 1fr; padding: 24px 0 48px; } }
.qtp-sk-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.qtp-sk-thumb { aspect-ratio: 1 / 1; border-radius: 10px; }
.qtp-sk-row { display: flex; gap: 8px; margin-top: 10px; }
.qtp-sk-dot { width: 36px; height: 36px; border-radius: 50%; }
.qtp-sk-pill { width: 56px; height: 32px; border-radius: 8px; }
.qtp-sk-btn { height: 48px; margin-top: 24px; border-radius: 12px; }
