/*! TMV Banner Flotante v2.0.2 · TmvData */

.tmvbf,
.tmvbf-pill,
.tmvbf-backdrop {
	--tmvbf-primary: #0B2545;
	--tmvbf-accent: #FFC300;
	--tmvbf-btn-text: #0B2545;
	--tmvbf-w: 320px;
	--tmvbf-ih: 170px;
	--tmvbf-premium: #C9A227;
	--tmvbf-ob: 20px;
	--tmvbf-os: 20px;
	--tmvbf-z: 99990;
}

.tmvbf, .tmvbf *, .tmvbf *::before, .tmvbf *::after,
.tmvbf-pill, .tmvbf-pill * { box-sizing: border-box; }

.tmvbf[hidden], .tmvbf-pill[hidden], .tmvbf-backdrop[hidden] { display: none !important; }

/* ---------- contenedor ---------- */

.tmvbf {
	font-family: inherit;
	font-size: 14px;
	line-height: 1.35;
	color: #1d2433;
	text-align: left;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 22px 50px -14px rgba(11, 37, 69, .5), 0 2px 6px rgba(11, 37, 69, .12);
}

.tmvbf--float {
	position: fixed;
	z-index: var(--tmvbf-z);
	bottom: var(--tmvbf-ob);
	width: var(--tmvbf-w);
	max-width: calc(100vw - 2 * var(--tmvbf-os));
	opacity: 0;
	transform: translateY(28px) scale(.97);
	transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
	pointer-events: none;
}
.tmvbf--float.is-in { opacity: 1; transform: none; pointer-events: auto; }

.tmvbf--br, .tmvbf--tr { right: var(--tmvbf-os); }
.tmvbf--bl, .tmvbf--tl { left: var(--tmvbf-os); }

/* arriba */
.tmvbf--tr, .tmvbf--tl, .tmvbf--bartop {
	top: var(--tmvbf-ob);
	bottom: auto;
	transform: translateY(-28px) scale(.97);
}
body.admin-bar .tmvbf--tr, body.admin-bar .tmvbf--tl, body.admin-bar .tmvbf--bartop,
body.admin-bar .tmvbf-pill.tmvbf--tr, body.admin-bar .tmvbf-pill.tmvbf--tl { top: calc(var(--tmvbf-ob) + 32px); }

.tmvbf--bar, .tmvbf--bartop {
	left: 50%;
	width: min(var(--tmvbf-w), calc(100vw - 2 * var(--tmvbf-os)));
	max-width: none;
	transform: translate(-50%, 28px);
}
.tmvbf--bartop { transform: translate(-50%, -28px); }
.tmvbf--bar.is-in, .tmvbf--bartop.is-in { transform: translate(-50%, 0); }

.tmvbf--center {
	left: 50%;
	top: 50%;
	bottom: auto;
	width: min(var(--tmvbf-w), calc(100vw - 32px));
	max-width: none;
	transform: translate(-50%, -44%) scale(.96);
}
.tmvbf--center.is-in { transform: translate(-50%, -50%); }
.tmvbf--float.tmvbf--center { z-index: calc(var(--tmvbf-z) + 2); }

.tmvbf-backdrop {
	position: fixed;
	inset: 0;
	z-index: calc(var(--tmvbf-z) + 1);
	background: rgba(6, 20, 40, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .3s ease;
}
.tmvbf-backdrop.is-in { opacity: 1; }

.tmvbf--inline {
	position: relative;
	width: 100%;
	margin: 0 0 1.5em;
	box-shadow: 0 10px 30px -12px rgba(11, 37, 69, .35);
}

/* ---------- cabecera ---------- */

.tmvbf__head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 8px 8px 14px;
	background: var(--tmvbf-primary);
	color: #fff;
}
.tmvbf__ico { display: inline-flex; flex: 0 0 18px; width: 18px; height: 18px; color: var(--tmvbf-accent); }
.tmvbf__ico svg { width: 100%; height: 100%; }
.tmvbf__title {
	flex: 1;
	min-width: 0;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tmvbf .tmvbf__hbtn,
.tmvbf .tmvbf__nav,
.tmvbf .tmvbf__dot,
.tmvbf-pill {
	-webkit-appearance: none;
	appearance: none;
	margin: 0;
	border: 0;
	box-shadow: none;
	font: inherit;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
	cursor: pointer;
}
.tmvbf .tmvbf__hbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	padding: 0;
	border-radius: 8px;
	background: transparent;
	color: #fff;
	opacity: .8;
	transition: background .2s, opacity .2s;
}
.tmvbf .tmvbf__hbtn:hover,
.tmvbf .tmvbf__hbtn:focus-visible { background: rgba(255, 255, 255, .15); color: #fff; opacity: 1; }
.tmvbf .tmvbf__hbtn svg { width: 16px; height: 16px; }

.tmvbf button:focus-visible,
.tmvbf a:focus-visible,
.tmvbf-pill:focus-visible { outline: 2px solid var(--tmvbf-accent); outline-offset: 2px; }

/* ---------- carrusel ---------- */

.tmvbf__carousel { position: relative; outline: none; }
.tmvbf__viewport { position: relative; overflow: hidden; touch-action: pan-y; }
.tmvbf__track {
	display: flex;
	transition: transform .55s cubic-bezier(.2, .8, .2, 1);
	will-change: transform;
}

.tmvbf .tmvbf__slide {
	flex: 0 0 100%;
	min-width: 0;
	display: block;
	color: inherit;
	text-decoration: none;
	background: #fff;
	-webkit-user-select: none;
	user-select: none;
}
.tmvbf a.tmvbf__slide:hover,
.tmvbf a.tmvbf__slide:focus { color: inherit; text-decoration: none; }

.tmvbf__media {
	position: relative;
	height: var(--tmvbf-ih);
	overflow: hidden;
	background: linear-gradient(135deg, var(--tmvbf-primary), #1b3a66);
}
.tmvbf .tmvbf__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	transition: transform 6s ease;
}
.tmvbf a.tmvbf__slide:hover .tmvbf__media img { transform: scale(1.06); }
.tmvbf__media.is-empty { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .45); }
.tmvbf__media.is-empty > svg { width: 52px; height: 52px; }

.tmvbf__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--tmvbf-accent);
	color: var(--tmvbf-btn-text);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.tmvbf__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 12px; }
.tmvbf__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--tmvbf-primary);
}
.tmvbf__sub {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	color: #5b6475;
}
.tmvbf__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.tmvbf__price { font-size: 13px; font-weight: 800; color: var(--tmvbf-primary); }
.tmvbf__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--tmvbf-accent);
	color: var(--tmvbf-btn-text);
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease;
}
.tmvbf__btn svg { width: 14px; height: 14px; transition: transform .2s ease; }
.tmvbf a.tmvbf__slide:hover .tmvbf__btn { box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .45); }
.tmvbf a.tmvbf__slide:hover .tmvbf__btn svg { transform: translateX(3px); }

/* flechas */
.tmvbf .tmvbf__nav {
	position: absolute;
	top: calc(var(--tmvbf-ih) / 2);
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .94);
	color: var(--tmvbf-primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
	opacity: 0;
	transition: opacity .2s ease, background .2s ease;
}
.tmvbf .tmvbf__nav svg { width: 16px; height: 16px; }
.tmvbf .tmvbf__prev { left: 8px; }
.tmvbf .tmvbf__next { right: 8px; }
.tmvbf__carousel:hover .tmvbf__nav,
.tmvbf .tmvbf__nav:focus-visible { opacity: 1; }
.tmvbf .tmvbf__nav:hover { background: var(--tmvbf-accent); color: var(--tmvbf-btn-text); }
@media (hover: none) { .tmvbf .tmvbf__nav { opacity: .9; } }

/* puntos + progreso */
.tmvbf__dots { display: flex; justify-content: center; gap: 6px; padding: 0 14px 11px; }
.tmvbf .tmvbf__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border-radius: 999px;
	background: #cfd6e2;
	transition: width .3s ease, background .3s ease;
}
.tmvbf .tmvbf__dot:hover { background: #9aa6ba; }
.tmvbf .tmvbf__dot[aria-current="true"] { width: 20px; background: var(--tmvbf-primary); }

.tmvbf__progress { height: 3px; background: rgba(11, 37, 69, .08); }
.tmvbf__progress span { display: block; width: 0; height: 100%; background: var(--tmvbf-accent); }

/* ---------- tipo y nivel Premium ---------- */

.tmvbf__kicker {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8a93a3;
}
.tmvbf .tmvbf__slide--premium { box-shadow: inset 0 0 0 2px var(--tmvbf-premium); }
.tmvbf .tmvbf__slide--premium .tmvbf__body { background: linear-gradient(180deg, rgba(201, 162, 39, .10), rgba(201, 162, 39, 0) 70%); }
.tmvbf .tmvbf__slide--premium .tmvbf__kicker { color: var(--tmvbf-premium); }
.tmvbf__badge--premium {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: linear-gradient(135deg, var(--tmvbf-premium), #f3d46b 55%, var(--tmvbf-premium));
	color: #3a2c00;
}
.tmvbf__badge--premium svg { width: 11px; height: 11px; }

/* ---------- formato horizontal (barra, shortcode layout="h") ---------- */

.tmvbf--h .tmvbf__slide { display: flex; align-items: stretch; }
.tmvbf--h .tmvbf__media { flex: 0 0 38%; max-width: calc(var(--tmvbf-ih) * 1.9); height: auto; min-height: var(--tmvbf-ih); }
.tmvbf--h .tmvbf__body { flex: 1; justify-content: center; padding: 14px 18px; }
.tmvbf--h .tmvbf__nav { top: 50%; }
.tmvbf--h .tmvbf__prev { left: 8px; }
.tmvbf--h .tmvbf__next { right: 8px; }

/* ---------- botón minimizado ---------- */

.tmvbf-pill {
	position: fixed;
	z-index: var(--tmvbf-z);
	bottom: var(--tmvbf-ob);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px 10px 14px;
	border-radius: 999px;
	background: var(--tmvbf-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 12px 28px -8px rgba(11, 37, 69, .55);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity .3s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.tmvbf-pill.tmvbf--tr, .tmvbf-pill.tmvbf--tl { top: var(--tmvbf-ob); bottom: auto; transform: translateY(-16px); }
.tmvbf-pill.is-in { opacity: 1; transform: none; }
.tmvbf-pill:hover { background: var(--tmvbf-primary); color: #fff; filter: brightness(1.15); }
.tmvbf-pill > svg { width: 18px; height: 18px; color: var(--tmvbf-accent); }
.tmvbf-pill__n {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--tmvbf-accent);
	color: var(--tmvbf-btn-text);
	font-size: 11.5px;
}
.tmvbf-pill.is-in::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: 0 0 0 0 var(--tmvbf-accent);
	animation: tmvbf-ping 1.6s ease-out 2;
	pointer-events: none;
}
@keyframes tmvbf-ping {
	0% { box-shadow: 0 0 0 0 var(--tmvbf-accent); opacity: .8; }
	100% { box-shadow: 0 0 0 14px var(--tmvbf-accent); opacity: 0; }
}

/* ---------- celulares: tarjeta compacta a lo ancho ---------- */

@media (max-width: 600px) {
	.tmvbf--br, .tmvbf--bl, .tmvbf--bar, .tmvbf--tr, .tmvbf--tl, .tmvbf--bartop {
		left: 12px;
		right: 12px;
		width: auto;
		max-width: none;
		transform: translateY(28px);
	}
	.tmvbf--tr, .tmvbf--tl, .tmvbf--bartop { transform: translateY(-28px); }
	.tmvbf--br.is-in, .tmvbf--bl.is-in, .tmvbf--bar.is-in,
	.tmvbf--tr.is-in, .tmvbf--tl.is-in, .tmvbf--bartop.is-in { transform: none; }

	.tmvbf--float:not(.tmvbf--center) .tmvbf__slide { display: flex; align-items: stretch; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__media { flex: 0 0 112px; height: auto; min-height: 116px; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__body { flex: 1; min-width: 0; padding: 10px 12px; justify-content: center; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__name { font-size: 15px; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__sub { -webkit-line-clamp: 1; font-size: 12.5px; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__foot { margin-top: 6px; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__btn { padding: 7px 12px; font-size: 12.5px; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__badge { top: 8px; left: 8px; padding: 3px 7px; font-size: 9.5px; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__nav { display: none; }
	.tmvbf--float .tmvbf__head { padding: 6px 6px 6px 12px; }

	.tmvbf--h .tmvbf__media { flex-basis: 40%; }
	.tmvbf-pill { left: auto; right: 12px; }
	.tmvbf-pill.tmvbf--bl, .tmvbf-pill.tmvbf--tl { left: 12px; right: auto; }
	.tmvbf--float:not(.tmvbf--center) .tmvbf__kicker { display: none; }
}

/* ---------- accesibilidad / impresión ---------- */

@media (prefers-reduced-motion: reduce) {
	.tmvbf, .tmvbf *, .tmvbf-pill, .tmvbf-backdrop { transition: none !important; animation: none !important; }
}

@media print {
	.tmvbf--float, .tmvbf-pill, .tmvbf-backdrop { display: none !important; }
}
