/* Naranjita — banners de promociones en la web */
.npb {
	--npb-radius: 0px;
	--npb-accent: #FF6A1F;
	--npb-ink: #24140B;
	position: relative;
	max-width: 1360px;
	margin: 28px auto;
	padding: 0 16px;
	box-sizing: border-box;
}
.npb *, .npb-pop * { box-sizing: border-box; }
.npb--rounded { --npb-radius: 24px; }
.npb-viewport { overflow: hidden; border-radius: var(--npb-radius); box-shadow: 0 10px 30px rgba(36, 20, 11, .12); }
.npb-track { display: flex; transition: transform .7s cubic-bezier(.65, 0, .25, 1); will-change: transform; touch-action: pan-y; }
.npb-slide { flex: 0 0 100%; min-width: 100%; position: relative; }
.npb-slide a { display: block; }
.npb-slide picture, .npb-slide img { display: block; width: 100%; height: auto; }
.npb-slide img { user-select: none; -webkit-user-drag: none; transition: transform 6s ease; }
.npb-slide.is-current img { transform: scale(1.03); }

.npb-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .92); color: var(--npb-ink); cursor: pointer;
	box-shadow: 0 4px 14px rgba(36, 20, 11, .18);
	opacity: 0; transition: opacity .25s, transform .25s, background-color .2s;
}
.npb-prev { left: 30px; }
.npb-next { right: 30px; }
.npb:hover .npb-arrow, .npb:focus-within .npb-arrow { opacity: 1; }
.npb-arrow:hover { background: var(--npb-accent); transform: translateY(-50%) scale(1.08); }
.npb-arrow:focus-visible, .npb-dot:focus-visible, .npb-pop__close:focus-visible { outline: 3px solid var(--npb-accent); outline-offset: 3px; opacity: 1; }

.npb-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.npb-dot { pointer-events: auto; width: 10px; height: 10px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); cursor: pointer; transition: width .35s cubic-bezier(.3, 1.5, .5, 1), background-color .2s; position: relative; overflow: hidden; }
.npb-dot::before { content: ""; position: absolute; inset: -12px; }
.npb-dot.is-on { width: 30px; background: #fff; }
.npb-dot.is-on::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--npb-accent); animation: npb-progress var(--npb-time, 5s) linear forwards; }
.npb.is-paused .npb-dot.is-on::after { animation-play-state: paused; }
.npb.is-single .npb-arrow, .npb.is-single .npb-dots { display: none; }

@keyframes npb-progress { to { width: 100%; } }

@media (max-width: 700px) {
	.npb { margin: 18px auto; padding: 0 12px; }
	.npb--rounded { --npb-radius: 18px; }
	.npb-arrow { display: none; }
	.npb-dots { bottom: 10px; }
}

/* Ventana emergente */
.npb-pop { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(36, 20, 11, .55); backdrop-filter: blur(3px); animation: npb-fade .3s ease; }
.npb-pop[hidden] { display: none; }
.npb-pop__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); animation: npb-pop .5s cubic-bezier(.3, 1.4, .5, 1); }
.npb-pop__box img { display: block; width: 100%; height: auto; max-height: calc(100vh - 40px); object-fit: contain; }
.npb-pop__box a { display: block; }
.npb-pop__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .95); color: #24140B; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.npb-pop__close:hover { transform: rotate(90deg); }
@keyframes npb-fade { from { opacity: 0; } }
@keyframes npb-pop { from { opacity: 0; transform: translateY(30px) scale(.92); } }

@media (prefers-reduced-motion: reduce) {
	.npb-track, .npb-slide img, .npb-arrow, .npb-dot, .npb-pop, .npb-pop__box { transition: none !important; animation: none !important; }
	.npb-slide.is-current img { transform: none; }
}
