/* QTP Carteles y Ventas — estilos públicos. Respeta el modo oscuro de la tienda (html.dark). */
qtp-slot, qtp-badges, qtp-precio { display: block; }

.qtp-ct {
	--qct-bg: #111; --qct-fg: #fff; --qct-acc: #fff; --qct-bd: transparent;
	position: relative;
	box-sizing: border-box;
	background: var(--qct-bg);
	color: var(--qct-fg);
	border: 1px solid var(--qct-bd);
	font-size: 15px;
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;
}
.qtp-ct *, .qtp-ct *::before, .qtp-ct *::after { box-sizing: border-box; }
.qtp-ct--negro    { --qct-bg: #111111; --qct-fg: #ffffff; --qct-acc: #ffffff; }
.qtp-ct--blanco   { --qct-bg: #ffffff; --qct-fg: #0f172a; --qct-acc: #0f172a; --qct-bd: rgba(15, 23, 42, .12); }
.qtp-ct--rojo     { --qct-bg: #e11d48; --qct-fg: #ffffff; --qct-acc: #ffffff; }
.qtp-ct--amarillo { --qct-bg: #facc15; --qct-fg: #111111; --qct-acc: #111111; }
.qtp-ct--verde    { --qct-bg: #15803d; --qct-fg: #ffffff; --qct-acc: #ffffff; }
.qtp-ct--rosa     { --qct-bg: #ec4899; --qct-fg: #ffffff; --qct-acc: #ffffff; }
html.dark .qtp-ct--blanco { --qct-bg: #1c1c1a; --qct-fg: #f8fafc; --qct-acc: #f8fafc; --qct-bd: rgba(255, 255, 255, .1); }

.qtp-ct-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 14px;
	text-align: center;
}
.qtp-ct-t { font-weight: 800; letter-spacing: .02em; }
.qtp-ct--grande .qtp-ct-t { font-size: 1.35em; }
.qtp-ct-p, .qtp-ct-msg { opacity: .95; }
.qtp-ct-msg { font-weight: 700; }

/* Tamaños */
.qtp-ct--chico  { font-size: 13px; }
.qtp-ct--grande { font-size: 17px; }

/* Franja */
.qtp-ct--franja { width: 100%; padding: 9px 44px; }
.qtp-ct--franja.qtp-ct--chico { padding: 6px 40px; }
.qtp-ct--franja.qtp-ct--grande { padding: 14px 48px; }

/* Caja */
.qtp-ct--caja {
	width: 100%;
	max-width: var(--container-max-w, 80rem);
	margin: 12px auto;
	padding: 14px 18px;
	border-radius: 16px;
}
.qtp-ct--caja.qtp-ct--grande { padding: 24px 28px; border-radius: 20px; }
.qtp-ct--caja.qtp-ct--chico { padding: 10px 14px; border-radius: 12px; }
.qtp-ct-slot--pprecio .qtp-ct--caja, .qtp-ct-slot--pcomprar .qtp-ct--caja { margin: 0; }
.qtp-ct-slot--pprecio, .qtp-ct-slot--pcomprar { display: flex; flex-direction: column; gap: 10px; }
.qtp-ct-slot--tienda { margin-bottom: 16px; }

/* Flotante */
qtp-slot.qtp-ct-slot--fder, qtp-slot.qtp-ct-slot--fizq {
	position: fixed;
	z-index: 45;
	bottom: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: min(340px, calc(100vw - 32px));
}
qtp-slot.qtp-ct-slot--fder { right: 20px; }
qtp-slot.qtp-ct-slot--fizq { left: 20px; }
@media (max-width: 767px) {
	qtp-slot.qtp-ct-slot--fder, qtp-slot.qtp-ct-slot--fizq { bottom: 76px; } /* arriba de la barra de abajo del celular */
	qtp-slot.qtp-ct-slot--fder { right: 12px; }
	qtp-slot.qtp-ct-slot--fizq { left: 12px; }
}
.qtp-ct--flotante {
	padding: 14px 40px 14px 16px;
	border-radius: 16px;
	box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
	animation: qtp-ct-in .45s cubic-bezier(.2, .7, .2, 1) both;
}
.qtp-ct--flotante .qtp-ct-in { justify-content: flex-start; text-align: left; }
@keyframes qtp-ct-in { from { opacity: 0; transform: translateY(14px); } }

/* Todo el cartel es un link */
.qtp-ct--link { cursor: pointer; }
.qtp-ct--link:hover .qtp-ct-t, .qtp-ct--link:hover .qtp-ct-p { text-decoration: underline; text-underline-offset: 3px; }
.qtp-ct--link:focus-visible { outline: 3px solid var(--qct-acc); outline-offset: -3px; }

/* Botón */
.qtp-ct-btn {
	display: inline-flex;
	align-items: center;
	padding: .45em 1em;
	border-radius: 999px;
	border: 0;
	background: var(--qct-fg);
	color: var(--qct-bg);
	font: inherit;
	font-weight: 700;
	font-size: .92em;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .2s ease, opacity .2s ease;
}
.qtp-ct-btn:hover { transform: translateY(-1px); opacity: .9; }
.qtp-ct-btn:focus-visible { outline: 2px solid var(--qct-fg); outline-offset: 2px; }

/* Botón «Anotarme»: el principal (relleno); «Ver ofertas» queda como secundario. */
.qtp-ct-formbtn { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); animation: qtp-ct-pulse 2.4s ease-out infinite; }
.qtp-ct-formbtn + .qtp-ct-btn { background: transparent; color: var(--qct-fg); box-shadow: inset 0 0 0 1.5px var(--qct-fg); }
.qtp-ct-formbtn.is-in { animation: none; opacity: .85; }
.qtp-ct-formbtn[hidden] { display: none; }
@keyframes qtp-ct-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }

/* Ventana del formulario */
.qtp-ct-form { text-align: center; padding: 6px 4px 0; }
.qtp-ct-form-t { margin: 0 0 10px; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.qtp-ct-form-p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.5; opacity: .9; }
.qtp-ct-form-f { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.qtp-ct-form-f input[type="tel"] { order: 2; flex-basis: 100%; }
.qtp-ct-form-f:has(input[type="tel"]) .qtp-ct-form-b { order: 3; flex-basis: 100%; }
.qtp-ct-form-f input[type="email"], .qtp-ct-form-f input[type="tel"] {
	flex: 1; min-width: 0; padding: 13px 14px; border-radius: 12px; border: 1.5px solid rgba(127, 127, 127, .4);
	background: transparent; color: inherit; font: inherit; font-size: 16px;
}
.qtp-ct-form-f input[type="email"]:focus, .qtp-ct-form-f input[type="tel"]:focus { outline: none; border-color: currentColor; }
.qtp-ct-form-b {
	padding: 13px 18px; border: 0; border-radius: 12px; background: #111; color: #fff;
	font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap;
}
html.dark .qtp-ct-form-b { background: #fff; color: #111; }
.qtp-ct-form-b:disabled { opacity: .6; cursor: wait; }
.qtp-ct-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.qtp-ct-form-msg { margin: 6px 0 0; font-size: 14.5px; font-weight: 700; min-height: 1em; }
.qtp-ct-form-msg.is-ok { font-size: 17px; color: #15803d; padding: 10px 0; }
html.dark .qtp-ct-form-msg.is-ok { color: #4ade80; }
.qtp-ct-form-msg.is-err { color: #dc2626; }
.qtp-ct-form-legal { margin: 10px 0 0; font-size: 12px; opacity: .6; }
@media (max-width: 480px) { .qtp-ct-form-f { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .qtp-ct-formbtn { animation: none; } }

/* Cerrar */
.qtp-ct-close {
	position: absolute;
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
	width: 26px; height: 26px;
	border: 0; border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
}
.qtp-ct-close:hover { opacity: 1; background: rgba(127, 127, 127, .2); }
.qtp-ct--flotante .qtp-ct-close, .qtp-ct--caja .qtp-ct-close { top: 8px; transform: none; }

/* Mensajes que van pasando */
.qtp-ct-rot { display: inline-grid; }
.qtp-ct-rot-i { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.qtp-ct-rot-i.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* Lista de beneficios */
.qtp-ct-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 8px 16px;
	width: 100%;
	text-align: left;
}
.qtp-ct--lista .qtp-ct-x-text { width: 100%; }
.qtp-ct-list li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.qtp-ct--franja .qtp-ct-list { display: flex; flex-wrap: wrap; justify-content: center; width: auto; gap: 6px 22px; }

/* Cuenta regresiva */
.qtp-ct-cd { display: inline-flex; gap: 6px; align-items: stretch; }
.qtp-ct-cd-u {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 2.7em;
	padding: .25em .35em;
	border-radius: 8px;
	background: rgba(127, 127, 127, .22);
	line-height: 1.05;
}
.qtp-ct-cd-u b { font-size: 1.25em; font-variant-numeric: tabular-nums; font-weight: 800; }
.qtp-ct-cd-u small { font-size: .62em; text-transform: uppercase; letter-spacing: .08em; opacity: .8; margin-top: 2px; }
.qtp-ct--grande .qtp-ct-cd-u b { font-size: 1.7em; }
.qtp-ct-cd-u[hidden], .qtp-ct-cd[hidden], .qtp-ct-msg[hidden], .qtp-ct-x-text[hidden] { display: none; }

/* Etiquetas en las tarjetas */
qtp-badges.qtp-ct-badges {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 15;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 5px;
	pointer-events: none;
}
qtp-badges.qtp-ct-badges--ficha { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: 4px; }
.qtp-ct-badge {
	display: inline-block;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--qct-bg, #111);
	color: var(--qct-fg, #fff);
	border: 1px solid var(--qct-bd, transparent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	white-space: nowrap;
}
.qtp-ct-badge.qtp-ct--chico { font-size: 10px; padding: 3px 7px; }
.qtp-ct-badge.qtp-ct--grande { font-size: 13px; padding: 6px 12px; }

/* Precio con transferencia y cuotas */
qtp-precio.qtp-ct-pl { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: #64748b; }
html.dark qtp-precio.qtp-ct-pl { color: #94a3b8; }
.qtp-ct-pl-t b { color: #15803d; font-weight: 800; }
html.dark .qtp-ct-pl-t b { color: #4ade80; }
.qtp-ct-pl-c b { font-weight: 700; color: inherit; }
qtp-precio.qtp-ct-pl--ficha { font-size: 14.5px; margin-top: 6px; }

/* Ventana */
.qtp-ct-modal {
	position: fixed; inset: 0; z-index: 99990;
	display: grid; place-items: center;
	padding: 16px;
	background: rgba(0, 0, 0, .55);
	animation: qtp-ct-fade .2s ease both;
}
@keyframes qtp-ct-fade { from { opacity: 0; } }
.qtp-ct-modal-box {
	position: relative;
	width: min(560px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 28px 24px 22px;
	border-radius: 18px;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
html.dark .qtp-ct-modal-box { background: #1c1c1a; color: #f8fafc; }
.qtp-ct-modal-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(127, 127, 127, .15); color: inherit; font-size: 16px; cursor: pointer; }
.qtp-ct-modal-body img { max-width: 100%; height: auto; }
.qtp-ct-modal-body table { width: 100%; border-collapse: collapse; }
.qtp-ct-modal-body td, .qtp-ct-modal-body th { padding: 6px 8px; border-bottom: 1px solid rgba(127, 127, 127, .25); text-align: left; }

@media (max-width: 640px) {
	.qtp-ct--franja { padding-left: 36px; padding-right: 36px; }
	.qtp-ct-cd-u { min-width: 2.4em; }
}
@media (prefers-reduced-motion: reduce) {
	.qtp-ct--flotante, .qtp-ct-modal { animation: none; }
	.qtp-ct-rot-i, .qtp-ct-btn { transition: none; }
}

/* Modo «elegir el lugar» (solo admins) */
.qtp-ct-pick-bar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
	display: flex; gap: 16px; align-items: center; justify-content: center;
	padding: 12px 16px;
	background: #2563eb; color: #fff;
	font: 600 15px/1.3 system-ui, sans-serif;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.qtp-ct-pick-bar.is-ok { background: #15803d; }
.qtp-ct-pick-cancel { color: #fff; background: rgba(255, 255, 255, .2); padding: 6px 12px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.qtp-ct-pick-hl {
	position: absolute; z-index: 99997; display: none; pointer-events: none;
	outline: 3px solid #2563eb; background: rgba(37, 99, 235, .1); border-radius: 4px;
	transition: all .08s ease;
}
.qtp-ct-pick-menu {
	position: fixed; z-index: 99999;
	display: flex; flex-direction: column; gap: 6px;
	width: 220px; padding: 12px;
	background: #fff; color: #0f172a;
	border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
	font: 14px/1.3 system-ui, sans-serif;
}
.qtp-ct-pick-menu button { padding: 9px 10px; border: 0; border-radius: 8px; background: #2563eb; color: #fff; font: 600 14px system-ui, sans-serif; cursor: pointer; text-align: left; }
.qtp-ct-pick-menu button.is-soft { background: #e2e8f0; color: #0f172a; }
.qtp-ct-pick-here { display: block; margin: 8px 0; padding: 14px; border: 2px dashed #15803d; border-radius: 12px; color: #15803d; font: 700 14px system-ui, sans-serif; text-align: center; background: rgba(21, 128, 61, .08); }

/* WordPress cambia los emojis por <img class="emoji">: que no tomen los estilos de las fotos de la tarjeta. */
.qtp-ct img.emoji, .qtp-ct-badge img.emoji, qtp-precio img.emoji {
	position: static !important; display: inline-block !important; inset: auto !important;
	width: 1em !important; height: 1em !important; margin: 0 .2em 0 0 !important; vertical-align: -.12em !important;
	opacity: 1 !important; transform: none !important; object-fit: contain !important; box-shadow: none !important; border: 0 !important;
}

/* Día VIP: precio VIP abajo del precio de la ficha (solo con pase VIP) */
qtp-vip.qtp-ct-vip { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 4px; padding: 9px 12px; border-radius: 10px; background: #fde047; color: #1c1917; font-size: 14.5px; line-height: 1.35; }
qtp-vip.qtp-ct-vip b { font-weight: 800; }
qtp-vip .qtp-ct-vip-s { font-size: 13px; opacity: .85; }
html.dark qtp-vip.qtp-ct-vip { background: #facc15; color: #111; }
